mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["f977ae8e"],{f977ae8e:function(a,e,d){"use strict";d.d(e,"__esModule",{value:!0}),d.d(e,"texts",{enumerable:!0,get:function(){return n;}}),d("cd05e860");let n=[{value:"\u53EF\u63D0\u4F9B\u6210\u529F\u3001\u8B66\u544A\u548C\u9519\u8BEF\u7B49\u53CD\u9988\u4FE1\u606F\u3002",paraId:0,tocIndex:0},{value:"\u9876\u90E8\u5C45\u4E2D\u663E\u793A\u5E76\u81EA\u52A8\u6D88\u5931\uFF0C\u662F\u4E00\u79CD\u4E0D\u6253\u65AD\u7528\u6237\u64CD\u4F5C\u7684\u8F7B\u91CF\u7EA7\u63D0\u793A\u65B9\u5F0F\u3002",paraId:0,tocIndex:0},{value:"\u901A\u7528\u5C5E\u6027\u53C2\u8003\uFF1A",paraId:1,tocIndex:12},{value:"\u901A\u7528\u5C5E\u6027",paraId:2,tocIndex:12},{value:"\u7EC4\u4EF6\u63D0\u4F9B\u4E86\u4E00\u4E9B\u9759\u6001\u65B9\u6CD5\uFF0C\u4F7F\u7528\u65B9\u5F0F\u548C\u53C2\u6570\u5982\u4E0B\uFF1A",paraId:3,tocIndex:12},{value:"message.success(content, [duration], onClose)",paraId:4,tocIndex:12},{value:"message.error(content, [duration], onClose)",paraId:4,tocIndex:12},{value:"message.info(content, [duration], onClose)",paraId:4,tocIndex:12},{value:"message.warning(content, [duration], onClose)",paraId:4,tocIndex:12},{value:"message.loading(content, [duration], onClose)",paraId:4,tocIndex:12},{value:"\u53C2\u6570",paraId:5,tocIndex:12},{value:"\u8BF4\u660E",paraId:5,tocIndex:12},{value:"\u7C7B\u578B",paraId:5,tocIndex:12},{value:"\u9ED8\u8BA4\u503C",paraId:5,tocIndex:12},{value:"content",paraId:5,tocIndex:12},{value:"\u63D0\u793A\u5185\u5BB9",paraId:5,tocIndex:12},{value:"ReactNode | config",paraId:5,tocIndex:12},{value:"-",paraId:5,tocIndex:12},{value:"duration",paraId:5,tocIndex:12},{value:"\u81EA\u52A8\u5173\u95ED\u7684\u5EF6\u65F6\uFF0C\u5355\u4F4D\u79D2\u3002\u8BBE\u4E3A 0 \u65F6\u4E0D\u81EA\u52A8\u5173\u95ED",paraId:5,tocIndex:12},{value:"number",paraId:5,tocIndex:12},{value:"3",paraId:5,tocIndex:12},{value:"onClose",paraId:5,tocIndex:12},{value:"\u5173\u95ED\u65F6\u89E6\u53D1\u7684\u56DE\u8C03\u51FD\u6570",paraId:5,tocIndex:12},{value:"function",paraId:5,tocIndex:12},{value:"-",paraId:5,tocIndex:12},{value:"\u7EC4\u4EF6\u540C\u65F6\u63D0\u4F9B promise \u63A5\u53E3\u3002",paraId:6,tocIndex:12},{value:"message[level](content, [duration]).then(afterClose)",paraId:7,tocIndex:12},{value:"message[level](content, [duration], onClose).then(afterClose)",paraId:7,tocIndex:12},{value:"\u5176\u4E2D ",paraId:8,tocIndex:12},{value:"message[level]",paraId:8,tocIndex:12},{value:" \u662F\u7EC4\u4EF6\u5DF2\u7ECF\u63D0\u4F9B\u7684\u9759\u6001\u65B9\u6CD5\u3002",paraId:8,tocIndex:12},{value:"then",paraId:8,tocIndex:12},{value:" \u63A5\u53E3\u8FD4\u56DE\u503C\u662F Promise\u3002",paraId:8,tocIndex:12},{value:"\u4E5F\u53EF\u4EE5\u5BF9\u8C61\u7684\u5F62\u5F0F\u4F20\u9012\u53C2\u6570\uFF1A",paraId:9,tocIndex:12},{value:"message.open(config)",paraId:10,tocIndex:12},{value:"message.success(config)",paraId:10,tocIndex:12},{value:"message.error(config)",paraId:10,tocIndex:12},{value:"message.info(config)",paraId:10,tocIndex:12},{value:"message.warning(config)",paraId:10,tocIndex:12},{value:"message.loading(config)",paraId:10,tocIndex:12},{value:"config",paraId:11,tocIndex:12},{value:" \u5BF9\u8C61\u5C5E\u6027\u5982\u4E0B\uFF1A",paraId:11,tocIndex:12},{value:"\u53C2\u6570",paraId:12,tocIndex:12},{value:"\u8BF4\u660E",paraId:12,tocIndex:12},{value:"\u7C7B\u578B",paraId:12,tocIndex:12},{value:"\u9ED8\u8BA4\u503C",paraId:12,tocIndex:12},{value:"className",paraId:12,tocIndex:12},{value:"\u81EA\u5B9A\u4E49 CSS class",paraId:12,tocIndex:12},{value:"string",paraId:12,tocIndex:12},{value:"-",paraId:12,tocIndex:12},{value:"content",paraId:12,tocIndex:12},{value:"\u63D0\u793A\u5185\u5BB9",paraId:12,tocIndex:12},{value:"ReactNode",paraId:12,tocIndex:12},{value:"-",paraId:12,tocIndex:12},{value:"duration",paraId:12,tocIndex:12},{value:"\u81EA\u52A8\u5173\u95ED\u7684\u5EF6\u65F6\uFF0C\u5355\u4F4D\u79D2\u3002\u8BBE\u4E3A 0 \u65F6\u4E0D\u81EA\u52A8\u5173\u95ED",paraId:12,tocIndex:12},{value:"number",paraId:12,tocIndex:12},{value:"3",paraId:12,tocIndex:12},{value:"icon",paraId:12,tocIndex:12},{value:"\u81EA\u5B9A\u4E49\u56FE\u6807",paraId:12,tocIndex:12},{value:"ReactNode",paraId:12,tocIndex:12},{value:"-",paraId:12,tocIndex:12},{value:"key",paraId:12,tocIndex:12},{value:"\u5F53\u524D\u63D0\u793A\u7684\u552F\u4E00\u6807\u5FD7",paraId:12,tocIndex:12},{value:"string | number",paraId:12,tocIndex:12},{value:"-",paraId:12,tocIndex:12},{value:"style",paraId:12,tocIndex:12},{value:"\u81EA\u5B9A\u4E49\u5185\u8054\u6837\u5F0F",paraId:12,tocIndex:12},{value:"CSSProperties",paraId:12,tocIndex:12},{value:"-",paraId:12,tocIndex:12},{value:"onClick",paraId:12,tocIndex:12},{value:"\u70B9\u51FB message \u65F6\u89E6\u53D1\u7684\u56DE\u8C03\u51FD\u6570",paraId:12,tocIndex:12},{value:"function",paraId:12,tocIndex:12},{value:"-",paraId:12,tocIndex:12},{value:"onClose",paraId:12,tocIndex:12},{value:"\u5173\u95ED\u65F6\u89E6\u53D1\u7684\u56DE\u8C03\u51FD\u6570",paraId:12,tocIndex:12},{value:"function",paraId:12,tocIndex:12},{value:"-",paraId:12,tocIndex:12},{value:"\u8FD8\u63D0\u4F9B\u4E86\u5168\u5C40\u914D\u7F6E\u548C\u5168\u5C40\u9500\u6BC1\u65B9\u6CD5\uFF1A",paraId:13,tocIndex:13},{value:"message.config(options)",paraId:14,tocIndex:13},{value:"message.destroy()",paraId:14,tocIndex:13},{value:"\u4E5F\u53EF\u901A\u8FC7 ",paraId:15,tocIndex:13},{value:"message.destroy(key)",paraId:15,tocIndex:13},{value:" \u6765\u5173\u95ED\u4E00\u6761\u6D88\u606F\u3002",paraId:15,tocIndex:13},{value:"\u5F53\u4F60\u4F7F\u7528 ",paraId:16,tocIndex:14},{value:"ConfigProvider",paraId:16,tocIndex:14},{value:" \u8FDB\u884C\u5168\u5C40\u5316\u914D\u7F6E\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u9ED8\u8BA4\u81EA\u52A8\u5F00\u542F RTL \u6A21\u5F0F\u3002(4.3.0+)",paraId:16,tocIndex:14},{value:"\u5F53\u4F60\u60F3\u5355\u72EC\u4F7F\u7528\uFF0C\u53EF\u901A\u8FC7\u5982\u4E0B\u8BBE\u7F6E\u5F00\u542F RTL \u6A21\u5F0F\u3002",paraId:17,tocIndex:14},{value:"message.config({\n top: 100,\n duration: 2,\n maxCount: 3,\n rtl: true,\n prefixCls: 'my-message',\n});\n",paraId:18,tocIndex:14},{value:"\u53C2\u6570",paraId:19,tocIndex:14},{value:"\u8BF4\u660E",paraId:19,tocIndex:14},{value:"\u7C7B\u578B",paraId:19,tocIndex:14},{value:"\u9ED8\u8BA4\u503C",paraId:19,tocIndex:14},{value:"\u7248\u672C",paraId:19,tocIndex:14},{value:"duration",paraId:19,tocIndex:14},{value:"\u9ED8\u8BA4\u81EA\u52A8\u5173\u95ED\u5EF6\u65F6\uFF0C\u5355\u4F4D\u79D2",paraId:19,tocIndex:14},{value:"number",paraId:19,tocIndex:14},{value:"3",paraId:19,tocIndex:14},{value:"getContainer",paraId:19,tocIndex:14},{value:"\u914D\u7F6E\u6E32\u67D3\u8282\u70B9\u7684\u8F93\u51FA\u4F4D\u7F6E\uFF0C\u4F46\u4F9D\u65E7\u4E3A\u5168\u5C4F\u5C55\u793A",paraId:19,tocIndex:14},{value:"() => HTMLElement",paraId:19,tocIndex:14},{value:"() => document.body",paraId:19,tocIndex:14},{value:"maxCount",paraId:19,tocIndex:14},{value:"\u6700\u5927\u663E\u793A\u6570\uFF0C\u8D85\u8FC7\u9650\u5236\u65F6\uFF0C\u6700\u65E9\u7684\u6D88\u606F\u4F1A\u88AB\u81EA\u52A8\u5173\u95ED",paraId:19,tocIndex:14},{value:"number",paraId:19,tocIndex:14},{value:"-",paraId:19,tocIndex:14},{value:"prefixCls",paraId:19,tocIndex:14},{value:"\u6D88\u606F\u8282\u70B9\u7684 className \u524D\u7F00",paraId:19,tocIndex:14},{value:"string",paraId:19,tocIndex:14},{value:"ant-message",paraId:19,tocIndex:14},{value:"4.5.0",paraId:19,tocIndex:14},{value:"rtl",paraId:19,tocIndex:14},{value:"\u662F\u5426\u5F00\u542F RTL \u6A21\u5F0F",paraId:19,tocIndex:14},{value:"boolean",paraId:19,tocIndex:14},{value:"false",paraId:19,tocIndex:14},{value:"top",paraId:19,tocIndex:14},{value:"\u6D88\u606F\u8DDD\u79BB\u9876\u90E8\u7684\u4F4D\u7F6E",paraId:19,tocIndex:14},{value:"string | number",paraId:19,tocIndex:14},{value:"8",paraId:19,tocIndex:14},{value:"locale/prefixCls/theme",paraId:20},{value:"\u76F4\u63A5\u8C03\u7528 message \u65B9\u6CD5\uFF0Cantd \u4F1A\u901A\u8FC7 ",paraId:21,tocIndex:17},{value:"ReactDOM.render",paraId:21,tocIndex:17},{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:21,tocIndex:17},{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:22,tocIndex:17},{value:"message.useMessage",paraId:22,tocIndex:17},{value:" \u65B9\u6CD5\u4F1A\u8FD4\u56DE ",paraId:22,tocIndex:17},{value:"api",paraId:22,tocIndex:17},{value:" \u5B9E\u4F53\u4EE5\u53CA ",paraId:22,tocIndex:17},{value:"contextHolder",paraId:22,tocIndex:17},{value:" \u8282\u70B9\u3002\u5C06\u5176\u63D2\u5165\u5230\u4F60\u9700\u8981\u83B7\u53D6 context \u4F4D\u7F6E\u5373\u53EF\uFF1A",paraId:22,tocIndex:17},{value:'const [api, contextHolder] = message.useMessage();\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:23,tocIndex:17},{value:"\u5F02\u540C",paraId:24,tocIndex:17},{value:"\uFF1A\u901A\u8FC7 hooks \u521B\u5EFA\u7684 ",paraId:24,tocIndex:17},{value:"contextHolder",paraId:24,tocIndex:17},{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:24,tocIndex:17},{value:"\u53EF\u901A\u8FC7 ",paraId:25,tocIndex:17},{value:"App \u5305\u88F9\u7EC4\u4EF6",paraId:26,tocIndex:17},{value:" \u7B80\u5316 ",paraId:25,tocIndex:17},{value:"useMessage",paraId:25,tocIndex:17},{value:" \u7B49\u65B9\u6CD5\u9700\u8981\u624B\u52A8\u690D\u5165 contextHolder \u7684\u95EE\u9898\u3002",paraId:25,tocIndex:17},{value:"\u4F60\u53EF\u4EE5\u901A\u8FC7 ",paraId:27,tocIndex:18},{value:"ConfigProvider.config",paraId:28,tocIndex:18},{value:" \u8FDB\u884C\u8BBE\u7F6E\u3002",paraId:27,tocIndex:18}];}}]); |