mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["25719dca"],{"25719dca":function(a,e,d){"use strict";d.d(e,"__esModule",{value:!0}),d.d(e,"texts",{enumerable:!0,get:function(){return I;}}),d("4ad4d759");let I=[{value:"\u9700\u8981\u7528\u6237\u5904\u7406\u4E8B\u52A1\uFF0C\u53C8\u4E0D\u5E0C\u671B\u8DF3\u8F6C\u9875\u9762\u4EE5\u81F4\u6253\u65AD\u5DE5\u4F5C\u6D41\u7A0B\u65F6\uFF0C\u53EF\u4EE5\u4F7F\u7528 ",paraId:0,tocIndex:0},{value:"Modal",paraId:0,tocIndex:0},{value:" \u5728\u5F53\u524D\u9875\u9762\u6B63\u4E2D\u6253\u5F00\u4E00\u4E2A\u6D6E\u5C42\uFF0C\u627F\u8F7D\u76F8\u5E94\u7684\u64CD\u4F5C\u3002",paraId:0,tocIndex:0},{value:"\u53E6\u5916\u5F53\u9700\u8981\u4E00\u4E2A\u7B80\u6D01\u7684\u786E\u8BA4\u6846\u8BE2\u95EE\u7528\u6237\u65F6\uFF0C\u53EF\u4EE5\u4F7F\u7528 ",paraId:1,tocIndex:0},{value:"App.useApp",paraId:2,tocIndex:0},{value:" \u5C01\u88C5\u7684\u8BED\u6CD5\u7CD6\u65B9\u6CD5\u3002",paraId:1,tocIndex:0},{value:"\u901A\u7528\u5C5E\u6027\u53C2\u8003\uFF1A",paraId:3,tocIndex:24},{value:"\u901A\u7528\u5C5E\u6027",paraId:4,tocIndex:24},{value:"\u53C2\u6570",paraId:5,tocIndex:24},{value:"\u8BF4\u660E",paraId:5,tocIndex:24},{value:"\u7C7B\u578B",paraId:5,tocIndex:24},{value:"\u9ED8\u8BA4\u503C",paraId:5,tocIndex:24},{value:"\u7248\u672C",paraId:5,tocIndex:24},{value:"afterClose",paraId:5,tocIndex:24},{value:"Modal \u5B8C\u5168\u5173\u95ED\u540E\u7684\u56DE\u8C03",paraId:5,tocIndex:24},{value:"function",paraId:5,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"classNames",paraId:5,tocIndex:24},{value:"\u914D\u7F6E\u5F39\u7A97\u5185\u7F6E\u6A21\u5757\u7684 className",paraId:5,tocIndex:24},{value:"Record<SemanticDOM, string>",paraId:6,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"styles",paraId:5,tocIndex:24},{value:"\u914D\u7F6E\u5F39\u7A97\u5185\u7F6E\u6A21\u5757\u7684 style",paraId:5,tocIndex:24},{value:"Record<SemanticDOM, CSSProperties>",paraId:7,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"5.10.0",paraId:5,tocIndex:24},{value:"cancelButtonProps",paraId:5,tocIndex:24},{value:"cancel \u6309\u94AE props",paraId:5,tocIndex:24},{value:"ButtonProps",paraId:8,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"cancelText",paraId:5,tocIndex:24},{value:"\u53D6\u6D88\u6309\u94AE\u6587\u5B57",paraId:5,tocIndex:24},{value:"ReactNode",paraId:5,tocIndex:24},{value:"\u53D6\u6D88",paraId:5,tocIndex:24},{value:"centered",paraId:5,tocIndex:24},{value:"\u5782\u76F4\u5C45\u4E2D\u5C55\u793A Modal",paraId:5,tocIndex:24},{value:"boolean",paraId:5,tocIndex:24},{value:"false",paraId:5,tocIndex:24},{value:"closable",paraId:5,tocIndex:24},{value:"\u662F\u5426\u663E\u793A\u53F3\u4E0A\u89D2\u7684\u5173\u95ED\u6309\u94AE",paraId:5,tocIndex:24},{value:"boolean | { closeIcon?: React.ReactNode; disabled?: boolean; }",paraId:5,tocIndex:24},{value:"true",paraId:5,tocIndex:24},{value:"closeIcon",paraId:5,tocIndex:24},{value:"\u81EA\u5B9A\u4E49\u5173\u95ED\u56FE\u6807\u30025.7.0\uFF1A\u8BBE\u7F6E\u4E3A ",paraId:5,tocIndex:24},{value:"null",paraId:5,tocIndex:24},{value:" \u6216 ",paraId:5,tocIndex:24},{value:"false",paraId:5,tocIndex:24},{value:" \u65F6\u9690\u85CF\u5173\u95ED\u6309\u94AE",paraId:5,tocIndex:24},{value:"ReactNode",paraId:5,tocIndex:24},{value:"<CloseOutlined />",paraId:5,tocIndex:24},{value:"confirmLoading",paraId:5,tocIndex:24},{value:"\u786E\u5B9A\u6309\u94AE loading",paraId:5,tocIndex:24},{value:"boolean",paraId:5,tocIndex:24},{value:"false",paraId:5,tocIndex:24},{value:"destroyOnClose",paraId:5,tocIndex:24},{value:"\u5173\u95ED\u65F6\u9500\u6BC1 Modal \u91CC\u7684\u5B50\u5143\u7D20",paraId:5,tocIndex:24},{value:"boolean",paraId:5,tocIndex:24},{value:"false",paraId:5,tocIndex:24},{value:"focusTriggerAfterClose",paraId:5,tocIndex:24},{value:"\u5BF9\u8BDD\u6846\u5173\u95ED\u540E\u662F\u5426\u9700\u8981\u805A\u7126\u89E6\u53D1\u5143\u7D20",paraId:5,tocIndex:24},{value:"boolean",paraId:5,tocIndex:24},{value:"true",paraId:5,tocIndex:24},{value:"4.9.0",paraId:5,tocIndex:24},{value:"footer",paraId:5,tocIndex:24},{value:"\u5E95\u90E8\u5185\u5BB9\uFF0C\u5F53\u4E0D\u9700\u8981\u9ED8\u8BA4\u5E95\u90E8\u6309\u94AE\u65F6\uFF0C\u53EF\u4EE5\u8BBE\u4E3A ",paraId:5,tocIndex:24},{value:"footer={null}",paraId:5,tocIndex:24},{value:"React.ReactNode | ((params:",paraId:5,tocIndex:24},{value:"footerRenderParams",paraId:9,tocIndex:24},{value:")=> React.ReactNode)",paraId:5,tocIndex:24},{value:"(\u786E\u5B9A\u53D6\u6D88\u6309\u94AE)",paraId:5,tocIndex:24},{value:"renderFunction: 5.9.0",paraId:5,tocIndex:24},{value:"forceRender",paraId:5,tocIndex:24},{value:"\u5F3A\u5236\u6E32\u67D3 Modal",paraId:5,tocIndex:24},{value:"boolean",paraId:5,tocIndex:24},{value:"false",paraId:5,tocIndex:24},{value:"getContainer",paraId:5,tocIndex:24},{value:"\u6307\u5B9A Modal \u6302\u8F7D\u7684\u8282\u70B9\uFF0C\u4F46\u4F9D\u65E7\u4E3A\u5168\u5C4F\u5C55\u793A\uFF0C",paraId:5,tocIndex:24},{value:"false",paraId:5,tocIndex:24},{value:" \u4E3A\u6302\u8F7D\u5728\u5F53\u524D\u4F4D\u7F6E",paraId:5,tocIndex:24},{value:"HTMLElement | () => HTMLElement | Selectors | false",paraId:5,tocIndex:24},{value:"document.body",paraId:5,tocIndex:24},{value:"keyboard",paraId:5,tocIndex:24},{value:"\u662F\u5426\u652F\u6301\u952E\u76D8 esc \u5173\u95ED",paraId:5,tocIndex:24},{value:"boolean",paraId:5,tocIndex:24},{value:"true",paraId:5,tocIndex:24},{value:"mask",paraId:5,tocIndex:24},{value:"\u662F\u5426\u5C55\u793A\u906E\u7F69",paraId:5,tocIndex:24},{value:"boolean",paraId:5,tocIndex:24},{value:"true",paraId:5,tocIndex:24},{value:"maskClosable",paraId:5,tocIndex:24},{value:"\u70B9\u51FB\u8499\u5C42\u662F\u5426\u5141\u8BB8\u5173\u95ED",paraId:5,tocIndex:24},{value:"boolean",paraId:5,tocIndex:24},{value:"true",paraId:5,tocIndex:24},{value:"modalRender",paraId:5,tocIndex:24},{value:"\u81EA\u5B9A\u4E49\u6E32\u67D3\u5BF9\u8BDD\u6846",paraId:5,tocIndex:24},{value:"(node: ReactNode) => ReactNode",paraId:5,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"4.7.0",paraId:5,tocIndex:24},{value:"okButtonProps",paraId:5,tocIndex:24},{value:"ok \u6309\u94AE props",paraId:5,tocIndex:24},{value:"ButtonProps",paraId:10,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"okText",paraId:5,tocIndex:24},{value:"\u786E\u8BA4\u6309\u94AE\u6587\u5B57",paraId:5,tocIndex:24},{value:"ReactNode",paraId:5,tocIndex:24},{value:"\u786E\u5B9A",paraId:5,tocIndex:24},{value:"okType",paraId:5,tocIndex:24},{value:"\u786E\u8BA4\u6309\u94AE\u7C7B\u578B",paraId:5,tocIndex:24},{value:"string",paraId:5,tocIndex:24},{value:"primary",paraId:5,tocIndex:24},{value:"style",paraId:5,tocIndex:24},{value:"\u53EF\u7528\u4E8E\u8BBE\u7F6E\u6D6E\u5C42\u7684\u6837\u5F0F\uFF0C\u8C03\u6574\u6D6E\u5C42\u4F4D\u7F6E\u7B49",paraId:5,tocIndex:24},{value:"CSSProperties",paraId:5,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"loading",paraId:5,tocIndex:24},{value:"\u663E\u793A\u9AA8\u67B6\u5C4F",paraId:5,tocIndex:24},{value:"boolean",paraId:5,tocIndex:24},{value:"5.18.0",paraId:5,tocIndex:24},{value:"title",paraId:5,tocIndex:24},{value:"\u6807\u9898",paraId:5,tocIndex:24},{value:"ReactNode",paraId:5,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"open",paraId:5,tocIndex:24},{value:"\u5BF9\u8BDD\u6846\u662F\u5426\u53EF\u89C1",paraId:5,tocIndex:24},{value:"boolean",paraId:5,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"width",paraId:5,tocIndex:24},{value:"\u5BBD\u5EA6",paraId:5,tocIndex:24},{value:"string | number",paraId:5,tocIndex:24},{value:"520",paraId:5,tocIndex:24},{value:"wrapClassName",paraId:5,tocIndex:24},{value:"\u5BF9\u8BDD\u6846\u5916\u5C42\u5BB9\u5668\u7684\u7C7B\u540D",paraId:5,tocIndex:24},{value:"string",paraId:5,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"zIndex",paraId:5,tocIndex:24},{value:"\u8BBE\u7F6E Modal \u7684 ",paraId:5,tocIndex:24},{value:"z-index",paraId:5,tocIndex:24},{value:"number",paraId:5,tocIndex:24},{value:"1000",paraId:5,tocIndex:24},{value:"onCancel",paraId:5,tocIndex:24},{value:"\u70B9\u51FB\u906E\u7F69\u5C42\u6216\u53F3\u4E0A\u89D2\u53C9\u6216\u53D6\u6D88\u6309\u94AE\u7684\u56DE\u8C03",paraId:5,tocIndex:24},{value:"function(e)",paraId:5,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"onOk",paraId:5,tocIndex:24},{value:"\u70B9\u51FB\u786E\u5B9A\u56DE\u8C03",paraId:5,tocIndex:24},{value:"function(e)",paraId:5,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"afterOpenChange",paraId:5,tocIndex:24},{value:"\u6253\u5F00\u548C\u5173\u95ED Modal \u65F6\u52A8\u753B\u7ED3\u675F\u540E\u7684\u56DE\u8C03",paraId:5,tocIndex:24},{value:"(open: boolean) => void",paraId:5,tocIndex:24},{value:"-",paraId:5,tocIndex:24},{value:"5.4.0",paraId:5,tocIndex:24},{value:"<Modal />",paraId:11,tocIndex:25},{value:" \u9ED8\u8BA4\u5173\u95ED\u540E\u72B6\u6001\u4E0D\u4F1A\u81EA\u52A8\u6E05\u7A7A\uFF0C\u5982\u679C\u5E0C\u671B\u6BCF\u6B21\u6253\u5F00\u90FD\u662F\u65B0\u5185\u5BB9\uFF0C\u8BF7\u8BBE\u7F6E ",paraId:11,tocIndex:25},{value:"destroyOnClose",paraId:11,tocIndex:25},{value:"\u3002",paraId:11,tocIndex:25},{value:"<Modal />",paraId:11,tocIndex:25},{value:" \u548C Form \u4E00\u8D77\u914D\u5408\u4F7F\u7528\u65F6\uFF0C\u8BBE\u7F6E ",paraId:11,tocIndex:25},{value:"destroyOnClose",paraId:11,tocIndex:25},{value:" \u4E5F\u4E0D\u4F1A\u5728 Modal \u5173\u95ED\u65F6\u9500\u6BC1\u8868\u5355\u5B57\u6BB5\u6570\u636E\uFF0C\u9700\u8981\u8BBE\u7F6E ",paraId:11,tocIndex:25},{value:"<Form preserve={false} />",paraId:11,tocIndex:25},{value:"\u3002",paraId:11,tocIndex:25},{value:"Modal.method()",paraId:11,tocIndex:25},{value:" RTL \u6A21\u5F0F\u4EC5\u652F\u6301 hooks \u7528\u6CD5\u3002",paraId:11,tocIndex:25},{value:"\u5305\u62EC\uFF1A",paraId:12,tocIndex:26},{value:"Modal.info",paraId:13,tocIndex:26},{value:"Modal.success",paraId:13,tocIndex:26},{value:"Modal.error",paraId:13,tocIndex:26},{value:"Modal.warning",paraId:13,tocIndex:26},{value:"Modal.confirm",paraId:13,tocIndex:26},{value:"\u4EE5\u4E0A\u5747\u4E3A\u4E00\u4E2A\u51FD\u6570\uFF0C\u53C2\u6570\u4E3A object\uFF0C\u5177\u4F53\u5C5E\u6027\u5982\u4E0B\uFF1A",paraId:14,tocIndex:26},{value:"\u53C2\u6570",paraId:15,tocIndex:26},{value:"\u8BF4\u660E",paraId:15,tocIndex:26},{value:"\u7C7B\u578B",paraId:15,tocIndex:26},{value:"\u9ED8\u8BA4\u503C",paraId:15,tocIndex:26},{value:"\u7248\u672C",paraId:15,tocIndex:26},{value:"afterClose",paraId:15,tocIndex:26},{value:"Modal \u5B8C\u5168\u5173\u95ED\u540E\u7684\u56DE\u8C03",paraId:15,tocIndex:26},{value:"function",paraId:15,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"4.9.0",paraId:15,tocIndex:26},{value:"autoFocusButton",paraId:15,tocIndex:26},{value:"\u6307\u5B9A\u81EA\u52A8\u83B7\u5F97\u7126\u70B9\u7684\u6309\u94AE",paraId:15,tocIndex:26},{value:"null | ",paraId:15,tocIndex:26},{value:"ok",paraId:15,tocIndex:26},{value:" | ",paraId:15,tocIndex:26},{value:"cancel",paraId:15,tocIndex:26},{value:"ok",paraId:15,tocIndex:26},{value:"cancelButtonProps",paraId:15,tocIndex:26},{value:"cancel \u6309\u94AE props",paraId:15,tocIndex:26},{value:"ButtonProps",paraId:16,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"cancelText",paraId:15,tocIndex:26},{value:"\u8BBE\u7F6E Modal.confirm \u53D6\u6D88\u6309\u94AE\u6587\u5B57",paraId:15,tocIndex:26},{value:"string",paraId:15,tocIndex:26},{value:"\u53D6\u6D88",paraId:15,tocIndex:26},{value:"centered",paraId:15,tocIndex:26},{value:"\u5782\u76F4\u5C45\u4E2D\u5C55\u793A Modal",paraId:15,tocIndex:26},{value:"boolean",paraId:15,tocIndex:26},{value:"false",paraId:15,tocIndex:26},{value:"className",paraId:15,tocIndex:26},{value:"\u5BB9\u5668\u7C7B\u540D",paraId:15,tocIndex:26},{value:"string",paraId:15,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"closable",paraId:15,tocIndex:26},{value:"\u662F\u5426\u663E\u793A\u53F3\u4E0A\u89D2\u7684\u5173\u95ED\u6309\u94AE",paraId:15,tocIndex:26},{value:"boolean",paraId:15,tocIndex:26},{value:"false",paraId:15,tocIndex:26},{value:"4.9.0",paraId:15,tocIndex:26},{value:"closeIcon",paraId:15,tocIndex:26},{value:"\u81EA\u5B9A\u4E49\u5173\u95ED\u56FE\u6807",paraId:15,tocIndex:26},{value:"ReactNode",paraId:15,tocIndex:26},{value:"undefined",paraId:15,tocIndex:26},{value:"4.9.0",paraId:15,tocIndex:26},{value:"content",paraId:15,tocIndex:26},{value:"\u5185\u5BB9",paraId:15,tocIndex:26},{value:"ReactNode",paraId:15,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"footer",paraId:15,tocIndex:26},{value:"\u5E95\u90E8\u5185\u5BB9\uFF0C\u5F53\u4E0D\u9700\u8981\u9ED8\u8BA4\u5E95\u90E8\u6309\u94AE\u65F6\uFF0C\u53EF\u4EE5\u8BBE\u4E3A ",paraId:15,tocIndex:26},{value:"footer: null",paraId:15,tocIndex:26},{value:"React.ReactNode | ((params:",paraId:15,tocIndex:26},{value:"footerRenderParams",paraId:17,tocIndex:26},{value:")=> React.ReactNode)",paraId:15,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"renderFunction: 5.9.0",paraId:15,tocIndex:26},{value:"getContainer",paraId:15,tocIndex:26},{value:"\u6307\u5B9A Modal \u6302\u8F7D\u7684 HTML \u8282\u70B9\uFF0Cfalse \u4E3A\u6302\u8F7D\u5728\u5F53\u524D dom",paraId:15,tocIndex:26},{value:"HTMLElement | () => HTMLElement | Selectors | false",paraId:15,tocIndex:26},{value:"document.body",paraId:15,tocIndex:26},{value:"icon",paraId:15,tocIndex:26},{value:"\u81EA\u5B9A\u4E49\u56FE\u6807",paraId:15,tocIndex:26},{value:"ReactNode",paraId:15,tocIndex:26},{value:"<ExclamationCircleFilled />",paraId:15,tocIndex:26},{value:"keyboard",paraId:15,tocIndex:26},{value:"\u662F\u5426\u652F\u6301\u952E\u76D8 esc \u5173\u95ED",paraId:15,tocIndex:26},{value:"boolean",paraId:15,tocIndex:26},{value:"true",paraId:15,tocIndex:26},{value:"mask",paraId:15,tocIndex:26},{value:"\u662F\u5426\u5C55\u793A\u906E\u7F69",paraId:15,tocIndex:26},{value:"boolean",paraId:15,tocIndex:26},{value:"true",paraId:15,tocIndex:26},{value:"maskClosable",paraId:15,tocIndex:26},{value:"\u70B9\u51FB\u8499\u5C42\u662F\u5426\u5141\u8BB8\u5173\u95ED",paraId:15,tocIndex:26},{value:"boolean",paraId:15,tocIndex:26},{value:"false",paraId:15,tocIndex:26},{value:"okButtonProps",paraId:15,tocIndex:26},{value:"ok \u6309\u94AE props",paraId:15,tocIndex:26},{value:"ButtonProps",paraId:18,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"okText",paraId:15,tocIndex:26},{value:"\u786E\u8BA4\u6309\u94AE\u6587\u5B57",paraId:15,tocIndex:26},{value:"string",paraId:15,tocIndex:26},{value:"\u786E\u5B9A",paraId:15,tocIndex:26},{value:"okType",paraId:15,tocIndex:26},{value:"\u786E\u8BA4\u6309\u94AE\u7C7B\u578B",paraId:15,tocIndex:26},{value:"string",paraId:15,tocIndex:26},{value:"primary",paraId:15,tocIndex:26},{value:"style",paraId:15,tocIndex:26},{value:"\u53EF\u7528\u4E8E\u8BBE\u7F6E\u6D6E\u5C42\u7684\u6837\u5F0F\uFF0C\u8C03\u6574\u6D6E\u5C42\u4F4D\u7F6E\u7B49",paraId:15,tocIndex:26},{value:"CSSProperties",paraId:15,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"title",paraId:15,tocIndex:26},{value:"\u6807\u9898",paraId:15,tocIndex:26},{value:"ReactNode",paraId:15,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"width",paraId:15,tocIndex:26},{value:"\u5BBD\u5EA6",paraId:15,tocIndex:26},{value:"string | number",paraId:15,tocIndex:26},{value:"416",paraId:15,tocIndex:26},{value:"wrapClassName",paraId:15,tocIndex:26},{value:"\u5BF9\u8BDD\u6846\u5916\u5C42\u5BB9\u5668\u7684\u7C7B\u540D",paraId:15,tocIndex:26},{value:"string",paraId:15,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"4.18.0",paraId:15,tocIndex:26},{value:"zIndex",paraId:15,tocIndex:26},{value:"\u8BBE\u7F6E Modal \u7684 ",paraId:15,tocIndex:26},{value:"z-index",paraId:15,tocIndex:26},{value:"number",paraId:15,tocIndex:26},{value:"1000",paraId:15,tocIndex:26},{value:"onCancel",paraId:15,tocIndex:26},{value:"\u70B9\u51FB\u53D6\u6D88\u56DE\u8C03\uFF0C\u53C2\u6570\u4E3A\u5173\u95ED\u51FD\u6570\uFF0C\u82E5\u8FD4\u56DE promise \u65F6 resolve \u4E3A\u6B63\u5E38\u5173\u95ED, reject \u4E3A\u4E0D\u5173\u95ED",paraId:15,tocIndex:26},{value:"function(close)",paraId:15,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"onOk",paraId:15,tocIndex:26},{value:"\u70B9\u51FB\u786E\u5B9A\u56DE\u8C03\uFF0C\u53C2\u6570\u4E3A\u5173\u95ED\u51FD\u6570\uFF0C\u82E5\u8FD4\u56DE promise \u65F6 resolve \u4E3A\u6B63\u5E38\u5173\u95ED, reject \u4E3A\u4E0D\u5173\u95ED",paraId:15,tocIndex:26},{value:"function(close)",paraId:15,tocIndex:26},{value:"-",paraId:15,tocIndex:26},{value:"\u4EE5\u4E0A\u51FD\u6570\u8C03\u7528\u540E\uFF0C\u4F1A\u8FD4\u56DE\u4E00\u4E2A\u5F15\u7528\uFF0C\u53EF\u4EE5\u901A\u8FC7\u8BE5\u5F15\u7528\u66F4\u65B0\u548C\u5173\u95ED\u5F39\u7A97\u3002",paraId:19,tocIndex:26},{value:"const modal = Modal.info();\n\nmodal.update({\n title: '\u4FEE\u6539\u7684\u6807\u9898',\n content: '\u4FEE\u6539\u7684\u5185\u5BB9',\n});\n\n// \u5728 4.8.0 \u6216\u66F4\u9AD8\u7248\u672C\u4E2D\uFF0C\u53EF\u4EE5\u901A\u8FC7\u4F20\u5165\u51FD\u6570\u7684\u65B9\u5F0F\u66F4\u65B0\u5F39\u7A97\nmodal.update((prevConfig) => ({\n ...prevConfig,\n title: `${prevConfig.title}\uFF08\u65B0\uFF09`,\n}));\n\nmodal.destroy();\n",paraId:20,tocIndex:26},{value:"Modal.destroyAll",paraId:21,tocIndex:26},{value:"\u4F7F\u7528 ",paraId:22,tocIndex:26},{value:"Modal.destroyAll()",paraId:22,tocIndex:26},{value:" \u53EF\u4EE5\u9500\u6BC1\u5F39\u51FA\u7684\u786E\u8BA4\u7A97\uFF08\u5373\u4E0A\u8FF0\u7684 ",paraId:22,tocIndex:26},{value:"Modal.info",paraId:22,tocIndex:26},{value:"\u3001",paraId:22,tocIndex:26},{value:"Modal.success",paraId:22,tocIndex:26},{value:"\u3001",paraId:22,tocIndex:26},{value:"Modal.error",paraId:22,tocIndex:26},{value:"\u3001",paraId:22,tocIndex:26},{value:"Modal.warning",paraId:22,tocIndex:26},{value:"\u3001",paraId:22,tocIndex:26},{value:"Modal.confirm",paraId:22,tocIndex:26},{value:"\uFF09\u3002\u901A\u5E38\u7528\u4E8E\u8DEF\u7531\u76D1\u542C\u5F53\u4E2D\uFF0C\u5904\u7406\u8DEF\u7531\u524D\u8FDB\u3001\u540E\u9000\u4E0D\u80FD\u9500\u6BC1\u786E\u8BA4\u5BF9\u8BDD\u6846\u7684\u95EE\u9898\uFF0C\u800C\u4E0D\u7528\u5404\u5904\u53BB\u4F7F\u7528\u5B9E\u4F8B\u7684\u8FD4\u56DE\u503C\u8FDB\u884C\u5173\u95ED\uFF08",paraId:22,tocIndex:26},{value:"modal.destroy()",paraId:22,tocIndex:26},{value:" \u9002\u7528\u4E8E\u4E3B\u52A8\u5173\u95ED\uFF0C\u800C\u4E0D\u662F\u8DEF\u7531\u8FD9\u6837\u88AB\u52A8\u5173\u95ED\uFF09",paraId:22,tocIndex:26},{value:"import { browserHistory } from 'react-router';\n\n// router change\nbrowserHistory.listen(() => {\n Modal.destroyAll();\n});\n",paraId:23,tocIndex:26},{value:"\u5F53\u4F60\u9700\u8981\u4F7F\u7528 Context \u65F6\uFF0C\u53EF\u4EE5\u901A\u8FC7 ",paraId:24,tocIndex:27},{value:"Modal.useModal",paraId:24,tocIndex:27},{value:" \u521B\u5EFA\u4E00\u4E2A ",paraId:24,tocIndex:27},{value:"contextHolder",paraId:24,tocIndex:27},{value:" \u63D2\u5165\u5B50\u8282\u70B9\u4E2D\u3002\u901A\u8FC7 hooks \u521B\u5EFA\u7684\u4E34\u65F6 Modal \u5C06\u4F1A\u5F97\u5230 ",paraId:24,tocIndex:27},{value:"contextHolder",paraId:24,tocIndex:27},{value:" \u6240\u5728\u4F4D\u7F6E\u7684\u6240\u6709\u4E0A\u4E0B\u6587\u3002\u521B\u5EFA\u7684 ",paraId:24,tocIndex:27},{value:"modal",paraId:24,tocIndex:27},{value:" \u5BF9\u8C61\u62E5\u6709\u4E0E ",paraId:24,tocIndex:27},{value:"Modal.method",paraId:25,tocIndex:27},{value:" \u76F8\u540C\u7684\u521B\u5EFA\u901A\u77E5\u65B9\u6CD5\u3002",paraId:24,tocIndex:27},{value:"const [modal, contextHolder] = Modal.useModal();\n\nReact.useEffect(() => {\n modal.confirm({\n // ...\n });\n}, []);\n\nreturn <div>{contextHolder}</div>;\n",paraId:26,tocIndex:27},{value:"modal.confirm",paraId:27,tocIndex:27},{value:" \u8FD4\u56DE\u65B9\u6CD5\uFF1A",paraId:27,tocIndex:27},{value:"destroy",paraId:28,tocIndex:27},{value:"\uFF1A\u9500\u6BC1\u5F53\u524D\u7A97\u53E3",paraId:28,tocIndex:27},{value:"update",paraId:28,tocIndex:27},{value:"\uFF1A\u66F4\u65B0\u5F53\u524D\u7A97\u53E3",paraId:28,tocIndex:27},{value:"then",paraId:28,tocIndex:27},{value:"\uFF1APromise \u94FE\u5F0F\u8C03\u7528\uFF0C\u652F\u6301 ",paraId:28,tocIndex:27},{value:"await",paraId:28,tocIndex:27},{value:" \u64CD\u4F5C\u3002\u8BE5\u65B9\u6CD5\u4E3A Hooks \u4EC5\u6709",paraId:28,tocIndex:27},{value:"//\u70B9\u51FB `onOk` \u65F6\u8FD4\u56DE `true`\uFF0C\u70B9\u51FB `onCancel` \u65F6\u8FD4\u56DE `false`\nconst confirmed = await modal.confirm({ ... });\n",paraId:29,tocIndex:27},{value:"\u53C2\u6570",paraId:30,tocIndex:28},{value:"\u8BF4\u660E",paraId:30,tocIndex:28},{value:"\u7C7B\u578B",paraId:30,tocIndex:28},{value:"\u9ED8\u8BA4\u503C",paraId:30,tocIndex:28},{value:"originNode",paraId:30,tocIndex:28},{value:"\u9ED8\u8BA4\u8282\u70B9",paraId:30,tocIndex:28},{value:"React.ReactNode",paraId:30,tocIndex:28},{value:"-",paraId:30,tocIndex:28},{value:"extra",paraId:30,tocIndex:28},{value:"\u6269\u5C55\u9009\u9879",paraId:30,tocIndex:28},{value:"{ OkBtn: FC; CancelBtn: FC }",paraId:30,tocIndex:28},{value:"-",paraId:30,tocIndex:28},{value:"Modal \u5728\u5173\u95ED\u65F6\u4F1A\u5C06\u5185\u5BB9\u8FDB\u884C memo \u4ECE\u800C\u907F\u514D\u5173\u95ED\u8FC7\u7A0B\u4E2D\u7684\u5185\u5BB9\u8DF3\u8DC3\u3002\u4E5F\u56E0\u6B64\u5982\u679C\u4F60\u5728\u914D\u5408\u4F7F\u7528 Form \u6709\u5173\u95ED\u65F6\u91CD\u7F6E ",paraId:31,tocIndex:32},{value:"initialValues",paraId:31,tocIndex:32},{value:" \u7684\u64CD\u4F5C\uFF0C\u8BF7\u901A\u8FC7\u5728 effect \u4E2D\u8C03\u7528 ",paraId:31,tocIndex:32},{value:"resetFields",paraId:31,tocIndex:32},{value:" \u6765\u91CD\u7F6E\u3002",paraId:31,tocIndex:32},{value:"locale/prefixCls/theme",paraId:32},{value:"\u76F4\u63A5\u8C03\u7528 Modal \u65B9\u6CD5\uFF0Cantd \u4F1A\u901A\u8FC7 ",paraId:33,tocIndex:33},{value:"ReactDOM.render",paraId:33,tocIndex:33},{value:" \u52A8\u6001\u521B\u5EFA\u65B0\u7684 React \u5B9E\u4F53\u3002\u5176 context \u4E0E\u5F53\u524D\u4EE3\u7801\u6240\u5728 context \u5E76\u4E0D\u76F8\u540C\uFF0C\u56E0\u800C\u65E0\u6CD5\u83B7\u53D6 context \u4FE1\u606F\u3002",paraId:33,tocIndex:33},{value:"\u5F53\u4F60\u9700\u8981 context \u4FE1\u606F\uFF08\u4F8B\u5982 ConfigProvider \u914D\u7F6E\u7684\u5185\u5BB9\uFF09\u65F6\uFF0C\u53EF\u4EE5\u901A\u8FC7 ",paraId:34,tocIndex:33},{value:"Modal.useModal",paraId:34,tocIndex:33},{value:" \u65B9\u6CD5\u4F1A\u8FD4\u56DE ",paraId:34,tocIndex:33},{value:"modal",paraId:34,tocIndex:33},{value:" \u5B9E\u4F53\u4EE5\u53CA ",paraId:34,tocIndex:33},{value:"contextHolder",paraId:34,tocIndex:33},{value:" \u8282\u70B9\u3002\u5C06\u5176\u63D2\u5165\u5230\u4F60\u9700\u8981\u83B7\u53D6 context \u4F4D\u7F6E\u5373\u53EF\uFF1A",paraId:34,tocIndex:33},{value:'const [modal, contextHolder] = Modal.useModal();\n\nreturn (\n <Context1.Provider value="Ant">\n {/* contextHolder \u5728 Context1 \u5185\uFF0C\u5B83\u53EF\u4EE5\u83B7\u5F97 Context1 \u7684 context */}\n {contextHolder}\n <Context2.Provider value="Design">\n {/* contextHolder \u5728 Context2 \u5916\uFF0C\u56E0\u800C\u4E0D\u4F1A\u83B7\u5F97 Context2 \u7684 context */}\n </Context2.Provider>\n </Context1.Provider>\n);\n',paraId:35,tocIndex:33},{value:"\u5F02\u540C",paraId:36,tocIndex:33},{value:"\uFF1A\u901A\u8FC7 hooks \u521B\u5EFA\u7684 ",paraId:36,tocIndex:33},{value:"contextHolder",paraId:36,tocIndex:33},{value:" \u5FC5\u987B\u63D2\u5165\u5230\u5B50\u5143\u7D20\u8282\u70B9\u4E2D\u624D\u4F1A\u751F\u6548\uFF0C\u5F53\u4F60\u4E0D\u9700\u8981\u4E0A\u4E0B\u6587\u4FE1\u606F\u65F6\u8BF7\u76F4\u63A5\u8C03\u7528\u3002",paraId:36,tocIndex:33},{value:"\u53EF\u901A\u8FC7 ",paraId:37,tocIndex:33},{value:"App \u5305\u88F9\u7EC4\u4EF6",paraId:38,tocIndex:33},{value:" \u7B80\u5316 ",paraId:37,tocIndex:33},{value:"useModal",paraId:37,tocIndex:33},{value:" \u7B49\u65B9\u6CD5\u9700\u8981\u624B\u52A8\u690D\u5165 contextHolder \u7684\u95EE\u9898\u3002",paraId:37,tocIndex:33},{value:"\u4F60\u53EF\u4EE5\u901A\u8FC7 ",paraId:39,tocIndex:34},{value:"ConfigProvider.config",paraId:40,tocIndex:34},{value:" \u8FDB\u884C\u8BBE\u7F6E\u3002",paraId:39,tocIndex:34}];}}]); |