mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
1 line
1.9 KiB
JavaScript
1 line
1.9 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["aa9c28fd"],{aa9c28fd:function(e,a,t){"use strict";t.d(a,"__esModule",{value:!0}),t.d(a,"texts",{enumerable:!0,get:function(){return o;}}),t("448ff2b4");let o=[{value:"\u81EA ",paraId:0},{value:"5.13.0",paraId:0},{value:" \u7248\u672C\u5F00\u59CB\u63D0\u4F9B\u8FD9\u4E9B\u65B9\u6CD5\u3002",paraId:0},{value:"\u83B7\u53D6\u7EC4\u4EF6\u7684 ",paraId:1,tocIndex:0},{value:"ref",paraId:1,tocIndex:0},{value:" \u5C5E\u6027\u5B9A\u4E49\uFF0C\u8FD9\u5BF9\u4E8E\u672A\u76F4\u63A5\u66B4\u9732\u6216\u8005\u5B50\u7EC4\u4EF6\u7684 ",paraId:1,tocIndex:0},{value:"ref",paraId:1,tocIndex:0},{value:" \u5C5E\u6027\u5B9A\u4E49\u975E\u5E38\u6709\u7528\u3002",paraId:1,tocIndex:0},{value:"import { Select } from 'antd';\nimport type { GetRef } from 'antd';\n\ntype SelectRefType = GetRef<typeof Select>; // BaseSelectRef\n",paraId:2,tocIndex:0},{value:"\u83B7\u53D6\u7EC4\u4EF6\u7684 ",paraId:3,tocIndex:1},{value:"props",paraId:3,tocIndex:1},{value:" \u5C5E\u6027\u5B9A\u4E49\uFF1A",paraId:3,tocIndex:1},{value:"import { Checkbox } from 'antd';\nimport type { GetProps } from 'antd';\n\ntype CheckboxGroupType = GetProps<typeof Checkbox.Group>;\n",paraId:4,tocIndex:1},{value:"\u83B7\u53D6\u7EC4\u4EF6\u7684\u5355\u4E2A ",paraId:5,tocIndex:2},{value:"props",paraId:5,tocIndex:2},{value:" \u5C5E\u6027\u5B9A\u4E49\u3002\u5B83\u5DF2\u7ECF\u5C06 ",paraId:5,tocIndex:2},{value:"NonNullable",paraId:5,tocIndex:2},{value:" \u8FDB\u884C\u4E86\u5C01\u88C5\uFF0C\u6240\u4EE5\u4E0D\u7528\u518D\u8003\u8651\u4E3A\u7A7A\u7684\u60C5\u51B5\uFF1A",paraId:5,tocIndex:2},{value:"import { Select } from 'antd';\nimport type { GetProp, SelectProps } from 'antd';\n\n// \u4EE5\u4E0B\u4E24\u79CD\u90FD\u53EF\u4EE5\u751F\u6548\ntype SelectOptionType1 = GetProp<SelectProps, 'options'>[number];\ntype SelectOptionType2 = GetProp<typeof Select, 'options'>[number];\n",paraId:6,tocIndex:2}];}}]); |