antdv-next 1.0.0-alpha.4 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_util/PurePanel.js +106 -0
- package/dist/_util/hooks/useMergeSemantic.js +3 -3
- package/dist/_util/styleUtils.js +10 -0
- package/dist/_util/tools.js +2 -1
- package/dist/_util/wave/WaveEffect.js +6 -1
- package/dist/_util/wave/style.js +4 -3
- package/dist/affix/index.d.ts +3 -3
- package/dist/alert/Alert.d.ts +4 -3
- package/dist/alert/Alert.js +1 -1
- package/dist/anchor/Anchor.d.ts +5 -5
- package/dist/anchor/AnchorLink.js +2 -2
- package/dist/anchor/index.d.ts +1 -1
- package/dist/antd.js +123 -115
- package/dist/app/App.d.ts +2 -2
- package/dist/auto-complete/index.d.ts +78 -0
- package/dist/auto-complete/index.js +634 -0
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +3 -3
- package/dist/badge/ScrollNumber.js +1 -1
- package/dist/badge/SingleNumber.js +1 -1
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/index.js +5 -3
- package/dist/badge/style/index.js +1 -1
- package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
- package/dist/breadcrumb/Breadcrumb.js +0 -8
- package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.js +1 -17
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/button/Button.d.ts +3 -3
- package/dist/button/style/variant.js +116 -104
- package/dist/calendar/Header.js +1 -1
- package/dist/calendar/generateCalendar.d.ts +3 -3
- package/dist/calendar/index.d.ts +3 -3
- package/dist/calendar/style/index.d.ts +1 -1
- package/dist/calendar/style/index.js +1 -1
- package/dist/card/Card.d.ts +3 -3
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardMeta.d.ts +3 -3
- package/dist/card/style/index.js +11 -2
- package/dist/carousel/index.d.ts +3 -3
- package/dist/cascader/Panel.d.ts +3 -3
- package/dist/cascader/index.d.ts +4 -3
- package/dist/cascader/index.js +3 -1
- package/dist/checkbox/Checkbox.d.ts +3 -3
- package/dist/checkbox/Group.d.ts +3 -3
- package/dist/checkbox/style/index.d.ts +1 -1
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/color-picker/ColorPicker.d.ts +3 -3
- package/dist/color-picker/ColorPicker.js +13 -2
- package/dist/components.d.ts +11 -8
- package/dist/components.js +7 -4
- package/dist/config-provider/context.d.ts +2 -1
- package/dist/config-provider/context.js +3 -3
- package/dist/config-provider/define.d.ts +14 -0
- package/dist/config-provider/index.d.ts +3 -3
- package/dist/config-provider/index.js +21 -2
- package/dist/date-picker/generatePicker/generateRangePicker.js +2 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.js +3 -2
- package/dist/date-picker/generatePicker/index.d.ts +17 -17
- package/dist/date-picker/index.d.ts +29 -27
- package/dist/date-picker/index.js +3 -0
- package/dist/date-picker/style/panel.js +4 -4
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/divider/index.d.ts +2 -2
- package/dist/drawer/index.d.ts +6 -4
- package/dist/drawer/index.js +17 -5
- package/dist/drawer/useFocusable.d.ts +10 -0
- package/dist/drawer/useFocusable.js +18 -0
- package/dist/dropdown/dropdown.d.ts +4 -4
- package/dist/dropdown/dropdown.js +12 -3
- package/dist/empty/index.d.ts +3 -3
- package/dist/flex/index.d.ts +3 -3
- package/dist/flex/index.js +1 -1
- package/dist/float-button/BackTop.d.ts +3 -3
- package/dist/float-button/BackTop.js +4 -1
- package/dist/float-button/FloatButton.d.ts +3 -3
- package/dist/float-button/FloatButtonGroup.d.ts +3 -3
- package/dist/float-button/PurePanel.js +5 -5
- package/dist/float-button/style/button.js +4 -4
- package/dist/float-button/style/group.js +12 -12
- package/dist/form/ErrorList.js +4 -7
- package/dist/form/Form.d.ts +7 -3
- package/dist/form/Form.js +39 -22
- package/dist/form/FormItem/ItemHolder.js +0 -1
- package/dist/form/FormItem/index.d.ts +5 -5
- package/dist/form/FormItem/index.js +48 -29
- package/dist/form/FormItemInput.js +17 -19
- package/dist/form/style/index.js +3 -2
- package/dist/form/utils/valueUtil.js +4 -1
- package/dist/grid/col.js +7 -2
- package/dist/grid/index.d.ts +2 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/grid/style/index.js +7 -5
- package/dist/image/PreviewGroup.d.ts +2 -2
- package/dist/image/index.d.ts +7 -4
- package/dist/image/index.js +2 -0
- package/dist/image/style/index.d.ts +1 -1
- package/dist/index.d.ts +16 -12
- package/dist/index.js +7 -4
- package/dist/input/Input.js +1 -1
- package/dist/input/OTP/index.js +1 -1
- package/dist/input/TextArea.d.ts +3 -3
- package/dist/input/TextArea.js +1 -1
- package/dist/input/index.d.ts +11 -11
- package/dist/input/style/index.d.ts +2 -2
- package/dist/input-number/index.d.ts +4 -4
- package/dist/input-number/index.js +2 -6
- package/dist/input-number/style/index.js +18 -17
- package/dist/layout/index.d.ts +6 -6
- package/dist/layout/layout.d.ts +2 -2
- package/dist/layout/style/sider.js +1 -1
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/Masonry.js +8 -6
- package/dist/mentions/index.d.ts +4 -3
- package/dist/mentions/index.js +4 -2
- package/dist/mentions/style/index.js +18 -17
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/MenuItem.d.ts +3 -3
- package/dist/menu/index.d.ts +5 -5
- package/dist/menu/style/horizontal.js +1 -1
- package/dist/menu/style/index.js +5 -5
- package/dist/message/PurePanel.d.ts +2 -2
- package/dist/message/useMessage.d.ts +1 -0
- package/dist/modal/ConfirmDialog.js +1 -1
- package/dist/modal/Modal.d.ts +3 -3
- package/dist/modal/Modal.js +17 -6
- package/dist/modal/PurePanel.js +305 -0
- package/dist/modal/index.js +2 -0
- package/dist/modal/interface.d.ts +3 -1
- package/dist/notification/PurePanel.d.ts +2 -2
- package/dist/notification/PurePanel.js +4 -3
- package/dist/notification/style/index.d.ts +1 -1
- package/dist/notification/useNotification.d.ts +2 -1
- package/dist/notification/useNotification.js +7 -7
- package/dist/package.d.ts +143 -3
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +3 -3
- package/dist/pagination/Pagination.js +1 -1
- package/dist/pagination/style/index.js +61 -50
- package/dist/popconfirm/PurePanel.d.ts +2 -2
- package/dist/popconfirm/PurePanel.js +2 -1
- package/dist/popconfirm/index.d.ts +3 -3
- package/dist/popover/PurePanel.js +4 -2
- package/dist/popover/index.d.ts +9 -6
- package/dist/popover/index.js +2 -1
- package/dist/popover/style/index.js +11 -8
- package/dist/progress/progress.d.ts +3 -3
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/radio/index.d.ts +5 -5
- package/dist/radio/radio.d.ts +3 -3
- package/dist/radio/style/index.js +1 -1
- package/dist/rate/index.d.ts +3 -3
- package/dist/rate/style/index.d.ts +1 -1
- package/dist/result/index.d.ts +3 -3
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/segmented/index.d.ts +3 -3
- package/dist/select/index.d.ts +6 -6
- package/dist/select/index.js +5 -3
- package/dist/select/style/dropdown.js +1 -1
- package/dist/select/style/select-input-multiple.js +31 -29
- package/dist/select/style/select-input.js +50 -44
- package/dist/skeleton/Avatar.d.ts +2 -2
- package/dist/skeleton/Button.d.ts +2 -2
- package/dist/skeleton/Image.d.ts +2 -2
- package/dist/skeleton/Input.d.ts +2 -2
- package/dist/skeleton/Node.d.ts +3 -3
- package/dist/skeleton/Skeleton.d.ts +3 -3
- package/dist/skeleton/Skeleton.js +1 -1
- package/dist/skeleton/Title.d.ts +1 -2
- package/dist/skeleton/Title.js +0 -5
- package/dist/slider/index.d.ts +3 -3
- package/dist/space/Compact.d.ts +2 -0
- package/dist/space/Compact.js +17 -4
- package/dist/space/index.d.ts +5 -5
- package/dist/space/style/addon.js +20 -19
- package/dist/spin/index.d.ts +3 -3
- package/dist/spin/index.js +7 -6
- package/dist/splitter/SplitBar.js +9 -2
- package/dist/splitter/Splitter.d.ts +3 -3
- package/dist/splitter/Splitter.js +2 -1
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +6 -6
- package/dist/statistic/Statistic.d.ts +3 -3
- package/dist/statistic/Timer.d.ts +5 -5
- package/dist/statistic/index.d.ts +5 -5
- package/dist/steps/ProgressIcon.js +9 -2
- package/dist/steps/index.d.ts +3 -3
- package/dist/steps/index.js +7 -4
- package/dist/steps/style/horizontal.js +13 -10
- package/dist/steps/style/icon.js +12 -9
- package/dist/steps/style/index.js +19 -18
- package/dist/steps/style/inline.js +20 -17
- package/dist/steps/style/label-placement.js +22 -20
- package/dist/steps/style/nav.js +7 -5
- package/dist/steps/style/panel.js +34 -32
- package/dist/steps/style/progress-dot.js +10 -8
- package/dist/steps/style/progress.js +29 -58
- package/dist/steps/style/rtl.js +6 -4
- package/dist/steps/style/small.js +10 -8
- package/dist/steps/style/status.js +124 -121
- package/dist/steps/style/util.js +7 -4
- package/dist/steps/style/vertical.js +17 -14
- package/dist/style/placementArrow.js +7 -5
- package/dist/switch/index.d.ts +3 -3
- package/dist/table/Column.d.ts +3 -3
- package/dist/table/ColumnGroup.d.ts +3 -3
- package/dist/table/InternalTable.js +20 -6
- package/dist/table/Table.d.ts +3 -3
- package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/dist/table/style/index.js +3 -3
- package/dist/table/style/radius.js +6 -0
- package/dist/table/style/virtual.js +1 -1
- package/dist/tabs/TabPane.d.ts +3 -3
- package/dist/tabs/index.d.ts +3 -3
- package/dist/tag/CheckableTag.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.js +3 -3
- package/dist/tag/index.d.ts +3 -3
- package/dist/theme/context.d.ts +2 -2
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/useToken.d.ts +2 -2
- package/dist/theme/useToken.js +1 -1
- package/dist/theme/util/genStyleUtils.d.ts +2 -2
- package/dist/theme/util/genStyleUtils.js +8 -5
- package/dist/theme/util/useResetIconStyle.js +1 -1
- package/dist/time-picker/index.d.ts +8 -7
- package/dist/time-picker/index.js +17 -13
- package/dist/timeline/Timeline.d.ts +3 -3
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/PurePanel.js +12 -8
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/style/index.js +10 -8
- package/dist/tooltip/util.js +5 -3
- package/dist/tour/PurePanel.js +243 -0
- package/dist/tour/index.d.ts +3 -3
- package/dist/tour/index.js +2 -0
- package/dist/tour/style/index.js +5 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +3 -3
- package/dist/transfer/Transfer.js +2 -2
- package/dist/transfer/search.d.ts +3 -3
- package/dist/tree/DirectoryTree.d.ts +3 -3
- package/dist/tree/Tree.d.ts +3 -3
- package/dist/tree/style/index.d.ts +1 -1
- package/dist/tree-select/index.d.ts +5 -4
- package/dist/tree-select/index.js +3 -1
- package/dist/typography/Link.d.ts +3 -3
- package/dist/typography/Paragraph.d.ts +3 -3
- package/dist/typography/Text.d.ts +3 -3
- package/dist/typography/Title.d.ts +3 -3
- package/dist/typography/Typography.d.ts +3 -3
- package/dist/typography/index.d.ts +9 -9
- package/dist/upload/Dragger.d.ts +6 -3
- package/dist/upload/Upload.d.ts +3 -3
- package/dist/upload/Upload.js +15 -1
- package/dist/upload/index.d.ts +6 -3
- package/dist/upload/interface.d.ts +4 -4
- package/global.d.ts +3 -0
- package/package.json +69 -17
- package/web-tags.json +5069 -0
- package/web-types.json +14335 -0
package/dist/card/Card.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { Tab, TabsSlots } from "../tabs/index.js";
|
|
5
5
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue246 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/card/Card.d.ts
|
|
@@ -60,8 +60,8 @@ interface CardSlots {
|
|
|
60
60
|
tabLabelRender?: TabsSlots['labelRender'];
|
|
61
61
|
tabBarExtraContent?: () => any;
|
|
62
62
|
}
|
|
63
|
-
declare const Card:
|
|
63
|
+
declare const Card: vue246.DefineSetupFnComponent<CardProps, CardEmits, SlotsType<CardSlots>, CardProps & {
|
|
64
64
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
65
|
-
},
|
|
65
|
+
}, vue246.PublicProps>;
|
|
66
66
|
//#endregion
|
|
67
67
|
export { Card, CardEmits, CardProps, CardSize, CardSlots, CardTabListType };
|
package/dist/card/CardGrid.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue248 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/card/CardGrid.d.ts
|
|
4
4
|
interface CardGridProps {
|
|
5
5
|
prefixCls?: string;
|
|
6
6
|
hoverable?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const CardGrid:
|
|
8
|
+
declare const CardGrid: vue248.DefineSetupFnComponent<CardGridProps, {}, {}, CardGridProps & {}, vue248.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { CardGrid, CardGridProps };
|
package/dist/card/CardMeta.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue244 from "vue";
|
|
5
5
|
import { SlotsType } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/card/CardMeta.d.ts
|
|
@@ -22,8 +22,8 @@ interface CardMetaSlots {
|
|
|
22
22
|
description?: () => any;
|
|
23
23
|
default?: () => any;
|
|
24
24
|
}
|
|
25
|
-
declare const CardMeta:
|
|
25
|
+
declare const CardMeta: vue244.DefineSetupFnComponent<CardMetaProps, EmptyEmit, SlotsType<CardMetaSlots>, CardMetaProps & {
|
|
26
26
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
27
|
-
},
|
|
27
|
+
}, vue244.PublicProps>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { CardMeta, CardMetaProps };
|
package/dist/card/style/index.js
CHANGED
|
@@ -166,8 +166,16 @@ const genCardStyle = (token) => {
|
|
|
166
166
|
fontSize: token.fontSize
|
|
167
167
|
},
|
|
168
168
|
[`${componentCls}-body`]: {
|
|
169
|
-
padding: bodyPadding,
|
|
170
|
-
borderRadius: `0 0 ${unit(token.borderRadiusLG)} ${unit(token.borderRadiusLG)}
|
|
169
|
+
"padding": bodyPadding,
|
|
170
|
+
"borderRadius": `0 0 ${unit(token.borderRadiusLG)} ${unit(token.borderRadiusLG)}`,
|
|
171
|
+
"&:first-child": {
|
|
172
|
+
borderStartStartRadius: token.borderRadiusLG,
|
|
173
|
+
borderStartEndRadius: token.borderRadiusLG
|
|
174
|
+
},
|
|
175
|
+
"&:not(:last-child)": {
|
|
176
|
+
borderEndStartRadius: 0,
|
|
177
|
+
borderEndEndRadius: 0
|
|
178
|
+
}
|
|
171
179
|
},
|
|
172
180
|
[`${componentCls}-grid`]: genCardGridStyle(token),
|
|
173
181
|
[`${componentCls}-cover`]: { "> *": {
|
|
@@ -196,6 +204,7 @@ const genCardStyle = (token) => {
|
|
|
196
204
|
},
|
|
197
205
|
[`${componentCls}-contain-grid`]: {
|
|
198
206
|
borderRadius: `${unit(token.borderRadiusLG)} ${unit(token.borderRadiusLG)} 0 0 `,
|
|
207
|
+
[`&:not(:has(> ${componentCls}-head))`]: { borderRadius: 0 },
|
|
199
208
|
[`${componentCls}-body`]: {
|
|
200
209
|
display: "flex",
|
|
201
210
|
flexWrap: "wrap"
|
package/dist/carousel/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue76 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
import { SlickProps } from "@v-c/slick";
|
|
6
6
|
|
|
@@ -45,8 +45,8 @@ interface CarouselRef {
|
|
|
45
45
|
autoPlay: (playType?: 'update' | 'leave' | 'blur') => void;
|
|
46
46
|
innerSlider: any;
|
|
47
47
|
}
|
|
48
|
-
declare const Carousel:
|
|
48
|
+
declare const Carousel: vue76.DefineSetupFnComponent<CarouselProps, CarouselEmits, SlotsType<CarouselSlots>, CarouselProps & {
|
|
49
49
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
50
|
-
},
|
|
50
|
+
}, vue76.PublicProps>;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { Carousel, CarouselEmits, CarouselProps, CarouselRef, CarouselSlots };
|
package/dist/cascader/Panel.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CascaderProps as CascaderProps$1 } from "./index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue80 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
import { CascaderProps, DefaultOptionType } from "@v-c/cascader";
|
|
5
5
|
|
|
@@ -16,8 +16,8 @@ interface CascaderPanelSlots {
|
|
|
16
16
|
notFoundContent?: () => any;
|
|
17
17
|
optionRender?: (option: DefaultOptionType) => any;
|
|
18
18
|
}
|
|
19
|
-
declare const CascaderPanel:
|
|
19
|
+
declare const CascaderPanel: vue80.DefineSetupFnComponent<CascaderPanelProps<DefaultOptionType, string, boolean>, CascaderPanelEmits, SlotsType<CascaderPanelSlots>, CascaderPanelProps<DefaultOptionType, string, boolean> & {
|
|
20
20
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
21
|
-
},
|
|
21
|
+
}, vue80.PublicProps>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { CascaderPanel, CascaderPanelEmits, CascaderPanelProps, CascaderPanelSlots };
|
package/dist/cascader/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { InputStatus } from "../_util/statusUtils.js";
|
|
|
6
6
|
import { SelectCommonPlacement } from "../_util/motion.js";
|
|
7
7
|
import { CascaderPanel } from "./Panel.js";
|
|
8
8
|
import { Variant } from "../config-provider/context.js";
|
|
9
|
-
import * as
|
|
9
|
+
import * as vue78 from "vue";
|
|
10
10
|
import { App, CSSProperties, SlotsType } from "vue";
|
|
11
11
|
import { CascaderProps, DefaultOptionType, SHOW_CHILD, SHOW_PARENT } from "@v-c/cascader";
|
|
12
12
|
|
|
@@ -77,14 +77,15 @@ interface CascaderEmits {
|
|
|
77
77
|
'search': NonNullable<CascaderProps['onSearch']>;
|
|
78
78
|
[key: string]: (...args: any[]) => void;
|
|
79
79
|
}
|
|
80
|
-
declare const InternalCascader:
|
|
80
|
+
declare const InternalCascader: vue78.DefineSetupFnComponent<CascaderProps$1<DefaultOptionType, string, boolean>, CascaderEmits, SlotsType<CascaderSlots>, CascaderProps$1<DefaultOptionType, string, boolean> & {
|
|
81
81
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
82
|
-
},
|
|
82
|
+
}, vue78.PublicProps>;
|
|
83
83
|
declare const Cascader: typeof InternalCascader & {
|
|
84
84
|
install: (app: App) => void;
|
|
85
85
|
Panel: typeof CascaderPanel;
|
|
86
86
|
SHOW_PARENT: typeof SHOW_PARENT;
|
|
87
87
|
SHOW_CHILD: typeof SHOW_CHILD;
|
|
88
|
+
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
88
89
|
};
|
|
89
90
|
//#endregion
|
|
90
91
|
export { Cascader, CascaderEmits, CascaderProps$1 as CascaderProps, CascaderSlots };
|
package/dist/cascader/index.js
CHANGED
|
@@ -8,9 +8,10 @@ import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.js";
|
|
|
8
8
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
9
9
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
10
10
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
11
|
-
import
|
|
11
|
+
import PurePanel_default from "../_util/PurePanel.js";
|
|
12
12
|
import { getMergedStatus, getStatusClassNames } from "../_util/statusUtils.js";
|
|
13
13
|
import { DefaultRenderEmpty } from "../config-provider/defaultRenderEmpty.js";
|
|
14
|
+
import { useFormItemInputContext } from "../form/context.js";
|
|
14
15
|
import { useVariants } from "../form/hooks/useVariant.js";
|
|
15
16
|
import mergedBuiltinPlacements_default from "../select/mergedBuiltinPlacements.js";
|
|
16
17
|
import style_default from "../select/style/index.js";
|
|
@@ -715,6 +716,7 @@ Cascader.install = (app) => {
|
|
|
715
716
|
app.component(Cascader.name, Cascader);
|
|
716
717
|
app.component(Panel_default.name, Panel_default);
|
|
717
718
|
};
|
|
719
|
+
Cascader._InternalPanelDoNotUseOrYouWillBeFired = PurePanel_default(Cascader, "popupAlign", (props) => omit(props, ["visible"]));
|
|
718
720
|
var cascader_default = Cascader;
|
|
719
721
|
|
|
720
722
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import "../_util/hooks/index.js";
|
|
3
3
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue240 from "vue";
|
|
5
5
|
import { SlotsType } from "vue";
|
|
6
6
|
import { CheckboxChangeEvent } from "@v-c/checkbox";
|
|
7
7
|
|
|
@@ -44,8 +44,8 @@ interface CheckboxProps extends AbstractCheckboxProps {
|
|
|
44
44
|
classes?: CheckboxClassNamesType;
|
|
45
45
|
styles?: CheckboxStylesType;
|
|
46
46
|
}
|
|
47
|
-
declare const InternalCheckbox:
|
|
47
|
+
declare const InternalCheckbox: vue240.DefineSetupFnComponent<CheckboxProps, CheckboxEmits, SlotsType<CheckboxSlots>, CheckboxProps & {
|
|
48
48
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
49
|
-
},
|
|
49
|
+
}, vue240.PublicProps>;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { AbstractCheckboxProps, CheckboxEmits, CheckboxProps, CheckboxSlots, InternalCheckbox };
|
package/dist/checkbox/Group.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue238 from "vue";
|
|
4
4
|
import { CSSProperties, SlotsType } from "vue";
|
|
5
5
|
import { CheckboxChangeEvent } from "@v-c/checkbox";
|
|
6
6
|
|
|
@@ -41,8 +41,8 @@ interface CheckboxGroupSlots {
|
|
|
41
41
|
index: number;
|
|
42
42
|
}) => any;
|
|
43
43
|
}
|
|
44
|
-
declare const CheckboxGroup:
|
|
44
|
+
declare const CheckboxGroup: vue238.DefineSetupFnComponent<CheckboxGroupProps, CheckboxGroupEmits, SlotsType<CheckboxGroupSlots>, CheckboxGroupProps & {
|
|
45
45
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
46
|
-
},
|
|
46
|
+
}, vue238.PublicProps>;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { AbstractCheckboxGroupProps, CheckboxGroup, CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType };
|
|
@@ -3,7 +3,7 @@ import { VueNode } from "../_util/type.js";
|
|
|
3
3
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import "../_util/hooks/index.js";
|
|
5
5
|
import { CollapsibleType } from "./CollapsePanel.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue448 from "vue";
|
|
7
7
|
import { CSSProperties, SlotsType } from "vue";
|
|
8
8
|
import { ItemType } from "@v-c/collapse";
|
|
9
9
|
|
|
@@ -69,8 +69,8 @@ interface CollapseSlots {
|
|
|
69
69
|
index: number;
|
|
70
70
|
}) => any;
|
|
71
71
|
}
|
|
72
|
-
declare const Collapse:
|
|
72
|
+
declare const Collapse: vue448.DefineSetupFnComponent<CollapseProps, CollapseEmits, SlotsType<CollapseSlots>, CollapseProps & {
|
|
73
73
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
74
|
-
},
|
|
74
|
+
}, vue448.PublicProps>;
|
|
75
75
|
//#endregion
|
|
76
76
|
export { Collapse, CollapseProps };
|
|
@@ -3,12 +3,12 @@ import { PopoverProps } from "../popover/index.js";
|
|
|
3
3
|
import { AggregationColor } from "./color.js";
|
|
4
4
|
import { ColorFormatType, ColorPickerClassNamesType, ColorPickerEmits, ColorPickerProps as ColorPickerProps$1, ColorPickerSlots, ColorPickerStylesType, ColorValueType, ModeType, PresetsItem, TriggerPlacement, TriggerType } from "./interface.js";
|
|
5
5
|
import "../components.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue396 from "vue";
|
|
7
7
|
import { SlotsType } from "vue";
|
|
8
8
|
import * as _v_c_color_picker0 from "@v-c/color-picker";
|
|
9
9
|
|
|
10
10
|
//#region src/color-picker/ColorPicker.d.ts
|
|
11
|
-
declare const ColorPicker:
|
|
11
|
+
declare const ColorPicker: vue396.DefineSetupFnComponent<ColorPickerProps$1, ColorPickerEmits, SlotsType<ColorPickerSlots>, Omit<_v_c_color_picker0.ColorPickerProps, "value" | "onChange" | "defaultValue" | "components" | "panelRender" | "onChangeComplete" | "disabledAlpha"> & {
|
|
12
12
|
[key: `data-${string}`]: string;
|
|
13
13
|
mode?: ModeType | ModeType[];
|
|
14
14
|
value?: ColorValueType;
|
|
@@ -44,6 +44,6 @@ declare const ColorPicker: vue392.DefineSetupFnComponent<ColorPickerProps$1, Col
|
|
|
44
44
|
disabledFormat?: boolean;
|
|
45
45
|
} & Pick<PopoverProps, "getPopupContainer" | "autoAdjustOverflow" | "destroyOnHidden"> & {
|
|
46
46
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
47
|
-
},
|
|
47
|
+
}, vue396.PublicProps>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { ColorPicker };
|
|
@@ -9,9 +9,10 @@ import { ContextIsolator } from "../_util/ContextIsolator.js";
|
|
|
9
9
|
import { AggregationColor } from "./color.js";
|
|
10
10
|
import { genAlphaColor, generateColor, getColorAlpha } from "./util.js";
|
|
11
11
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
12
|
-
import
|
|
13
|
-
import { useFormItemInputContext } from "../form/context.js";
|
|
12
|
+
import PurePanel_default from "../_util/PurePanel.js";
|
|
14
13
|
import { getStatusClassNames } from "../_util/statusUtils.js";
|
|
14
|
+
import { useFormItemInputContext } from "../form/context.js";
|
|
15
|
+
import popover_default from "../popover/index.js";
|
|
15
16
|
import ColorPickerPanel_default from "./ColorPickerPanel.js";
|
|
16
17
|
import ColorTrigger_default from "./components/ColorTrigger.js";
|
|
17
18
|
import useModeColor from "./hooks/useModeColor.js";
|
|
@@ -63,6 +64,11 @@ const ColorPicker = /* @__PURE__ */ defineComponent((props, { slots, expose, emi
|
|
|
63
64
|
}
|
|
64
65
|
};
|
|
65
66
|
const triggerOpenChange = (visible) => {
|
|
67
|
+
if (open.value !== void 0) {
|
|
68
|
+
emit("openChange", visible);
|
|
69
|
+
emit("update:open", visible);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
66
72
|
if (!visible || !mergedDisabled.value) {
|
|
67
73
|
internalPopupOpen.value = visible;
|
|
68
74
|
emit("openChange", visible);
|
|
@@ -357,6 +363,11 @@ const ColorPicker = /* @__PURE__ */ defineComponent((props, { slots, expose, emi
|
|
|
357
363
|
name: "AColorPicker",
|
|
358
364
|
inheritAttrs: false
|
|
359
365
|
});
|
|
366
|
+
ColorPicker._InternalPanelDoNotUseOrYouWillBeFired = PurePanel_default(ColorPicker, void 0, (props) => ({
|
|
367
|
+
...props,
|
|
368
|
+
placement: "bottom",
|
|
369
|
+
autoAdjustOverflow: false
|
|
370
|
+
}), "color-picker", (prefixCls) => prefixCls);
|
|
360
371
|
ColorPicker.install = (app) => {
|
|
361
372
|
app.component(ColorPicker.name, ColorPicker);
|
|
362
373
|
};
|
package/dist/components.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ import { Row, RowProps } from "./grid/row.js";
|
|
|
4
4
|
import "./grid/index.js";
|
|
5
5
|
import { FormEmits, FormInstance, FormProps, FormSlots, InternalForm } from "./form/Form.js";
|
|
6
6
|
import { UniqueProvider } from "./tooltip/UniqueProvider/index.js";
|
|
7
|
-
import { TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots, _default as _default$
|
|
7
|
+
import { TooltipAlignConfig, TooltipEmits, TooltipPlacement, TooltipProps, TooltipRef, TooltipSlots, _default as _default$10 } from "./tooltip/index.js";
|
|
8
8
|
import { InternalFormItem } from "./form/FormItem/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { DatePickerEmits, DatePickerSlots } from "./date-picker/generatePicker/generateSinglePicker.js";
|
|
10
|
+
import { TimePickerLocale, TimePickerProps, TimeRangePicker, TimeRangePickerProps, _default as _default$9 } from "./time-picker/index.js";
|
|
10
11
|
import { DateMonthPicker, DatePickerProps, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, MonthPickerProps, RangePickerProps, WeekPickerProps, _default as _default$2 } from "./date-picker/index.js";
|
|
11
12
|
import { EmptyProps, _default as _default$3 } from "./empty/index.js";
|
|
12
13
|
import { ButtonColorType, ButtonHTMLType, ButtonShape, ButtonType, ButtonVariantType } from "./button/buttonHelper.js";
|
|
@@ -17,7 +18,7 @@ import { Select, SelectEmits, SelectOptGroup, SelectOption, SelectProps, SelectS
|
|
|
17
18
|
import { PaginationClassNamesType, PaginationConfig, PaginationEmits, PaginationLocale, PaginationPosition, PaginationProps, PaginationSlots, PaginationStylesType } from "./pagination/interface.js";
|
|
18
19
|
import { Pagination } from "./pagination/Pagination.js";
|
|
19
20
|
import "./pagination/index.js";
|
|
20
|
-
import {
|
|
21
|
+
import { Popover, PopoverProps } from "./popover/index.js";
|
|
21
22
|
import { Popconfirm, PopconfirmEmits, PopconfirmProps, PopconfirmSlots } from "./popconfirm/index.js";
|
|
22
23
|
import { CheckboxEmits, CheckboxProps, CheckboxSlots, InternalCheckbox } from "./checkbox/Checkbox.js";
|
|
23
24
|
import { CheckboxGroup, CheckboxGroupEmits, CheckboxGroupProps, CheckboxGroupSlots, CheckboxOptionType } from "./checkbox/Group.js";
|
|
@@ -32,7 +33,7 @@ import { Dropdown } from "./dropdown/index.js";
|
|
|
32
33
|
import { ColumnType, ColumnsType, SortOrder, SorterResult, TableLocale, TablePaginationConfig, TableRowSelection } from "./table/interface.js";
|
|
33
34
|
import { Column } from "./table/Column.js";
|
|
34
35
|
import { ColumnGroup } from "./table/ColumnGroup.js";
|
|
35
|
-
import { SpinProps, SpinSlots, _default as _default$
|
|
36
|
+
import { SpinProps, SpinSlots, _default as _default$7 } from "./spin/index.js";
|
|
36
37
|
import { TableClassNamesType, TableEmits, TableProps, TableSlots, TableStylesType } from "./table/InternalTable.js";
|
|
37
38
|
import { DataIndex, InternalTable, Summary, SummaryCell, SummaryRow } from "./table/index.js";
|
|
38
39
|
import { TourEmits, TourLocale, TourProps, TourSlots, TourStylesType } from "./tour/interface.js";
|
|
@@ -44,6 +45,7 @@ import { InternalTransfer } from "./transfer/index.js";
|
|
|
44
45
|
import { Progress, ProgressProps } from "./progress/progress.js";
|
|
45
46
|
import "./progress/index.js";
|
|
46
47
|
import { UploadChangeParam, UploadEmits, UploadFile, UploadProps, UploadSlots } from "./upload/interface.js";
|
|
48
|
+
import { ConfigProviderProps } from "./config-provider/define.js";
|
|
47
49
|
import { ConfigProvider } from "./config-provider/index.js";
|
|
48
50
|
import { Alert, AlertEmits, AlertProps, AlertSlots } from "./alert/Alert.js";
|
|
49
51
|
import "./alert/index.js";
|
|
@@ -53,7 +55,7 @@ import "./anchor/index.js";
|
|
|
53
55
|
import { RibbonProps } from "./badge/Ribbon.js";
|
|
54
56
|
import { Badge, BadgeProps, BadgeSlots } from "./badge/index.js";
|
|
55
57
|
import { BreadcrumbItemProps } from "./breadcrumb/BreadcrumbItem.js";
|
|
56
|
-
import { Breadcrumb, BreadcrumbEmits,
|
|
58
|
+
import { Breadcrumb, BreadcrumbEmits, BreadcrumbProps, BreadcrumbSlots, ItemType } from "./breadcrumb/Breadcrumb.js";
|
|
57
59
|
import { TabPane, TabPaneProps } from "./tabs/TabPane.js";
|
|
58
60
|
import { Tabs, TabsEmits, TabsProps, TabsRef, TabsSlots } from "./tabs/index.js";
|
|
59
61
|
import { Card, CardEmits, CardProps, CardSize, CardSlots, CardTabListType } from "./card/Card.js";
|
|
@@ -83,7 +85,7 @@ import { staticMethods as staticMethods$1 } from "./notification/index.js";
|
|
|
83
85
|
import { QRCodeEmits, QRCodeProps } from "./qrcode/interface.js";
|
|
84
86
|
import { QRCode } from "./qrcode/index.js";
|
|
85
87
|
import { RadioChangeEvent, RadioEmits, RadioGroupEmits, RadioGroupOptionType, RadioGroupProps, RadioGroupSlots, RadioProps, RadioSlots } from "./radio/interface.js";
|
|
86
|
-
import { ResultProps, _default as _default$
|
|
88
|
+
import { ResultProps, _default as _default$6 } from "./result/index.js";
|
|
87
89
|
import { Segmented, SegmentedEmits, SegmentedOptions, SegmentedProps } from "./segmented/index.js";
|
|
88
90
|
import { SkeletonAvatar } from "./skeleton/Avatar.js";
|
|
89
91
|
import { SkeletonButton } from "./skeleton/Button.js";
|
|
@@ -96,7 +98,7 @@ import { Slider, SliderEmits, SliderProps } from "./slider/index.js";
|
|
|
96
98
|
import { Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots } from "./space/index.js";
|
|
97
99
|
import { StatisticProps } from "./statistic/Statistic.js";
|
|
98
100
|
import { StatisticTimerProps } from "./statistic/Timer.js";
|
|
99
|
-
import { StatisticTimer, _default as _default$
|
|
101
|
+
import { StatisticTimer, _default as _default$8 } from "./statistic/index.js";
|
|
100
102
|
import { Steps, StepsProps } from "./steps/index.js";
|
|
101
103
|
import { Switch, SwitchEmits, SwitchProps, SwitchSize, SwitchSlots } from "./switch/index.js";
|
|
102
104
|
import { CheckableTag, CheckableTagProps } from "./tag/CheckableTag.js";
|
|
@@ -111,6 +113,7 @@ import { Affix, AffixProps } from "./affix/index.js";
|
|
|
111
113
|
import { useModal } from "./modal/useModal/index.js";
|
|
112
114
|
import { AppProps } from "./app/App.js";
|
|
113
115
|
import { _default } from "./app/index.js";
|
|
116
|
+
import { AutoComplete, AutoCompleteClassNamesType, AutoCompleteEmits, AutoCompleteProps, AutoCompleteSlots, AutoCompleteStylesType, DataSourceItemObject, DataSourceItemType, Option } from "./auto-complete/index.js";
|
|
114
117
|
import { AvatarGroup, AvatarGroupProps } from "./avatar/AvatarGroup.js";
|
|
115
118
|
import { AvatarEmits, AvatarProps, AvatarSlots } from "./avatar/Avatar.js";
|
|
116
119
|
import { Avatar } from "./avatar/index.js";
|
|
@@ -131,7 +134,7 @@ import { CompoundedInput, InputGroup, InputOTP, InputPassword, InputSearch } fro
|
|
|
131
134
|
import { BasicProps, Layout } from "./layout/layout.js";
|
|
132
135
|
import { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
133
136
|
import "./masonry/index.js";
|
|
134
|
-
import { MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, Option } from "./mentions/index.js";
|
|
137
|
+
import { MentionPlacement, Mentions, MentionsClassNamesType, MentionsEmits, MentionsOptionProps, MentionsProps, MentionsRef, MentionsSlots, MentionsStylesType, Option as Option$1 } from "./mentions/index.js";
|
|
135
138
|
import { useMessage } from "./message/useMessage.js";
|
|
136
139
|
import { staticMethods } from "./message/index.js";
|
|
137
140
|
import { _default as _default$5 } from "./modal/index.js";
|
package/dist/components.js
CHANGED
|
@@ -20,6 +20,9 @@ import modal_default from "./modal/index.js";
|
|
|
20
20
|
import useNotification from "./notification/useNotification.js";
|
|
21
21
|
import notification_default from "./notification/index.js";
|
|
22
22
|
import app_default from "./app/index.js";
|
|
23
|
+
import empty_default from "./empty/index.js";
|
|
24
|
+
import select_default, { SelectOptGroup, SelectOption } from "./select/index.js";
|
|
25
|
+
import auto_complete_default, { Option } from "./auto-complete/index.js";
|
|
23
26
|
import popover_default from "./popover/index.js";
|
|
24
27
|
import AvatarGroup_default from "./avatar/AvatarGroup.js";
|
|
25
28
|
import avatar_default from "./avatar/index.js";
|
|
@@ -30,8 +33,6 @@ import menu_default, { MenuItem } from "./menu/index.js";
|
|
|
30
33
|
import dropdown_default from "./dropdown/index.js";
|
|
31
34
|
import breadcrumb_default from "./breadcrumb/index.js";
|
|
32
35
|
import radio_default, { RadioButton, RadioGroup } from "./radio/index.js";
|
|
33
|
-
import empty_default from "./empty/index.js";
|
|
34
|
-
import select_default, { SelectOptGroup, SelectOption } from "./select/index.js";
|
|
35
36
|
import calendar_default from "./calendar/index.js";
|
|
36
37
|
import TabPane_default from "./tabs/TabPane.js";
|
|
37
38
|
import tabs_default from "./tabs/index.js";
|
|
@@ -67,7 +68,7 @@ import input_default, { InputGroup, InputOTP, InputPassword, InputSearch } from
|
|
|
67
68
|
import layout_default, { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider } from "./layout/index.js";
|
|
68
69
|
import masonry_default from "./masonry/index.js";
|
|
69
70
|
import spin_default from "./spin/index.js";
|
|
70
|
-
import mentions_default, { Option } from "./mentions/index.js";
|
|
71
|
+
import mentions_default, { Option as Option$1 } from "./mentions/index.js";
|
|
71
72
|
import pagination_default from "./pagination/index.js";
|
|
72
73
|
import popconfirm_default from "./popconfirm/index.js";
|
|
73
74
|
import progress_default from "./progress/progress.js";
|
|
@@ -101,6 +102,8 @@ var components_exports = /* @__PURE__ */ __export({
|
|
|
101
102
|
Alert: () => alert_default,
|
|
102
103
|
Anchor: () => anchor_default,
|
|
103
104
|
App: () => app_default,
|
|
105
|
+
AutoComplete: () => auto_complete_default,
|
|
106
|
+
AutoCompleteOption: () => Option,
|
|
104
107
|
Avatar: () => avatar_default,
|
|
105
108
|
AvatarGroup: () => AvatarGroup_default,
|
|
106
109
|
BackTop: () => BackTop_default,
|
|
@@ -154,7 +157,7 @@ var components_exports = /* @__PURE__ */ __export({
|
|
|
154
157
|
LayoutSider: () => LayoutSider,
|
|
155
158
|
Masonry: () => masonry_default,
|
|
156
159
|
Mentions: () => mentions_default,
|
|
157
|
-
MentionsOption: () => Option,
|
|
160
|
+
MentionsOption: () => Option$1,
|
|
158
161
|
Menu: () => menu_default,
|
|
159
162
|
MenuDivider: () => MenuDivider_default,
|
|
160
163
|
MenuItem: () => MenuItem,
|
|
@@ -28,6 +28,7 @@ import { TransferProps } from "../transfer/interface.js";
|
|
|
28
28
|
import "../upload/interface.js";
|
|
29
29
|
import "../locale/index.js";
|
|
30
30
|
import "./defaultRenderEmpty.js";
|
|
31
|
+
import "./index.js";
|
|
31
32
|
import { ShowWaveEffect } from "../_util/wave/interface.js";
|
|
32
33
|
import { AlertProps } from "../alert/Alert.js";
|
|
33
34
|
import "../alert/index.js";
|
|
@@ -71,8 +72,8 @@ import { TagProps } from "../tag/index.js";
|
|
|
71
72
|
import "../tree/Tree.js";
|
|
72
73
|
import { TreeSelectProps } from "../tree-select/index.js";
|
|
73
74
|
import "../typography/interface.js";
|
|
74
|
-
import { CSSProperties, Ref } from "vue";
|
|
75
75
|
import { DerivativeFunc } from "@antdv-next/cssinjs";
|
|
76
|
+
import { CSSProperties, Ref } from "vue";
|
|
76
77
|
|
|
77
78
|
//#region src/config-provider/context.d.ts
|
|
78
79
|
|
|
@@ -68,7 +68,7 @@ function useComponentBaseConfig(propName, props, keys, suffixCls) {
|
|
|
68
68
|
const propValue = computed(() => {
|
|
69
69
|
return context.value[propName];
|
|
70
70
|
});
|
|
71
|
-
const toRefs = (propValues) => {
|
|
71
|
+
const toRefs$1 = (propValues) => {
|
|
72
72
|
const result = {
|
|
73
73
|
classes: computed(() => EMPTY_OBJECT),
|
|
74
74
|
styles: computed(() => EMPTY_OBJECT),
|
|
@@ -84,7 +84,7 @@ function useComponentBaseConfig(propName, props, keys, suffixCls) {
|
|
|
84
84
|
return result;
|
|
85
85
|
};
|
|
86
86
|
return {
|
|
87
|
-
...toRefs(propValue),
|
|
87
|
+
...toRefs$1(propValue),
|
|
88
88
|
direction: computed(() => context.value.direction),
|
|
89
89
|
prefixCls: computed(() => {
|
|
90
90
|
return context.value?.getPrefixCls(suffixCls ?? propName, props?.prefixCls);
|
|
@@ -94,7 +94,7 @@ function useComponentBaseConfig(propName, props, keys, suffixCls) {
|
|
|
94
94
|
getPrefixCls: context.value.getPrefixCls,
|
|
95
95
|
getTargetContainer: context.value.getTargetContainer,
|
|
96
96
|
virtual: computed(() => context.value.virtual),
|
|
97
|
-
renderEmpty: context.value.renderEmpty,
|
|
97
|
+
renderEmpty: computed(() => context.value.renderEmpty),
|
|
98
98
|
popupMatchSelectWidth: computed(() => context.value.popupMatchSelectWidth),
|
|
99
99
|
popupOverflow: computed(() => context.value.popupOverflow)
|
|
100
100
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SizeType } from "./SizeContext.js";
|
|
2
2
|
import { WarningContextProps } from "../_util/warning.js";
|
|
3
|
+
import { ColumnType } from "../table/interface.js";
|
|
4
|
+
import "../table/index.js";
|
|
3
5
|
import { Locale } from "../locale/index.js";
|
|
4
6
|
import { RenderEmptyHandler } from "./defaultRenderEmpty.js";
|
|
5
7
|
import { AlertConfig, BadgeConfig, ButtonConfig, CSPConfig, CardConfig, CascaderConfig, CollapseConfig, ComponentStyleConfig, DatePickerConfig, DirectionType, EmptyConfig, FlexConfig, FloatButtonConfig, FloatButtonGroupConfig, InputConfig, InputNumberConfig, InputSearchConfig, MentionsConfig, MenuConfig, NotificationConfig, OTPConfig, PaginationConfig, PopconfirmConfig, PopoverConfig, PopupOverflow, RangePickerConfig, SelectConfig, SpaceConfig, SpinConfig, TabsConfig, TagConfig, TextAreaConfig, ThemeConfig, TimePickerConfig, TooltipConfig, TransferConfig, TreeSelectConfig, Variant, WaveConfig } from "./context.js";
|
|
@@ -11,6 +13,12 @@ interface ConfigProviderProps {
|
|
|
11
13
|
prefixCls?: string;
|
|
12
14
|
iconPrefixCls?: string;
|
|
13
15
|
renderEmpty?: RenderEmptyHandler;
|
|
16
|
+
transformCellText?: (ctx: {
|
|
17
|
+
text: any;
|
|
18
|
+
column: ColumnType<any>;
|
|
19
|
+
record: Record<string, any>;
|
|
20
|
+
index: number;
|
|
21
|
+
}) => any;
|
|
14
22
|
csp?: CSPConfig;
|
|
15
23
|
variant?: Variant;
|
|
16
24
|
input?: InputConfig;
|
|
@@ -98,6 +106,12 @@ interface ConfigProviderProps {
|
|
|
98
106
|
}
|
|
99
107
|
interface ConfigProviderSlots {
|
|
100
108
|
renderEmpty?: (componentName?: string) => any;
|
|
109
|
+
transformCellText?: (ctx: {
|
|
110
|
+
text: any;
|
|
111
|
+
column: ColumnType<any>;
|
|
112
|
+
record: Record<string, any>;
|
|
113
|
+
index: number;
|
|
114
|
+
}) => any;
|
|
101
115
|
[key: string]: any;
|
|
102
116
|
}
|
|
103
117
|
interface ConfigProviderEmits {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ConfigProviderEmits, ConfigProviderProps, ConfigProviderSlots } from "./define.js";
|
|
2
2
|
import { CSPConfig } from "./context.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue82 from "vue";
|
|
4
4
|
import { SlotsType, VNodeChild } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/config-provider/index.d.ts
|
|
7
7
|
|
|
8
|
-
declare const ConfigProvider:
|
|
8
|
+
declare const ConfigProvider: vue82.DefineSetupFnComponent<ConfigProviderProps, ConfigProviderEmits, SlotsType<ConfigProviderSlots>, ConfigProviderProps & {
|
|
9
9
|
[x: `on${Capitalize<string>}`]: ((...args: any[] | unknown[]) => any) | undefined;
|
|
10
|
-
},
|
|
10
|
+
}, vue82.PublicProps>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ConfigProvider };
|
|
@@ -11,8 +11,8 @@ import "../tooltip/index.js";
|
|
|
11
11
|
import { DisabledContextProvider } from "./DisabledContext.js";
|
|
12
12
|
import { useTheme } from "./hooks/useTheme.js";
|
|
13
13
|
import "./style/index.js";
|
|
14
|
-
import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps } from "vue";
|
|
15
14
|
import { createTheme, useStyleContext } from "@antdv-next/cssinjs";
|
|
15
|
+
import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps } from "vue";
|
|
16
16
|
import { IconContextProvider } from "@antdv-next/icons";
|
|
17
17
|
import defu from "defu";
|
|
18
18
|
|
|
@@ -25,9 +25,12 @@ const PASSED_PROPS = [
|
|
|
25
25
|
"getPopupContainer",
|
|
26
26
|
"renderEmpty",
|
|
27
27
|
"wave",
|
|
28
|
+
"input",
|
|
28
29
|
"pagination",
|
|
29
30
|
"transfer",
|
|
30
31
|
"mentions",
|
|
32
|
+
"form",
|
|
33
|
+
"select",
|
|
31
34
|
"button"
|
|
32
35
|
];
|
|
33
36
|
const providerDefaultProps = { componentDisabled: void 0 };
|
|
@@ -196,6 +199,11 @@ const ProviderChildren = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
196
199
|
required: false,
|
|
197
200
|
default: void 0
|
|
198
201
|
},
|
|
202
|
+
transformCellText: {
|
|
203
|
+
type: Function,
|
|
204
|
+
required: false,
|
|
205
|
+
default: void 0
|
|
206
|
+
},
|
|
199
207
|
csp: {
|
|
200
208
|
type: Object,
|
|
201
209
|
required: false,
|
|
@@ -553,7 +561,13 @@ const ConfigProvider = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
553
561
|
const context = useConfig();
|
|
554
562
|
const { locale } = useLocaleContext() ?? {};
|
|
555
563
|
return () => {
|
|
556
|
-
|
|
564
|
+
const renderEmpty = slots?.renderEmpty ?? props?.renderEmpty;
|
|
565
|
+
const transformCellText = slots?.transformCellText ?? props?.transformCellText;
|
|
566
|
+
return createVNode(ProviderChildren, mergeProps({ "parentContext": context.value }, props, {
|
|
567
|
+
"renderEmpty": renderEmpty,
|
|
568
|
+
"transformCellText": transformCellText,
|
|
569
|
+
"legacyLocale": locale?.value
|
|
570
|
+
}), slots);
|
|
557
571
|
};
|
|
558
572
|
}, {
|
|
559
573
|
props: /* @__PURE__ */ mergeDefaults({
|
|
@@ -582,6 +596,11 @@ const ConfigProvider = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
582
596
|
required: false,
|
|
583
597
|
default: void 0
|
|
584
598
|
},
|
|
599
|
+
transformCellText: {
|
|
600
|
+
type: Function,
|
|
601
|
+
required: false,
|
|
602
|
+
default: void 0
|
|
603
|
+
},
|
|
585
604
|
csp: {
|
|
586
605
|
type: Object,
|
|
587
606
|
required: false,
|
|
@@ -11,8 +11,8 @@ import { ContextIsolator } from "../../_util/ContextIsolator.js";
|
|
|
11
11
|
import { useDisabledContext } from "../../config-provider/DisabledContext.js";
|
|
12
12
|
import en_US_default from "../locale/en_US.js";
|
|
13
13
|
import useLocale_default from "../../locale/useLocale.js";
|
|
14
|
-
import { useFormItemInputContext } from "../../form/context.js";
|
|
15
14
|
import { getMergedStatus, getStatusClassNames } from "../../_util/statusUtils.js";
|
|
15
|
+
import { useFormItemInputContext } from "../../form/context.js";
|
|
16
16
|
import { useVariants } from "../../form/hooks/useVariant.js";
|
|
17
17
|
import style_default from "../style/index.js";
|
|
18
18
|
import useMergedPickerSemantic from "../hooks/useMergedPickerSemantic.js";
|
|
@@ -107,7 +107,7 @@ function generateRangePicker(generateConfig) {
|
|
|
107
107
|
});
|
|
108
108
|
return () => {
|
|
109
109
|
const { placeholder, components, placement, suffixIcon, allowClear, popupClassName: _popupClassName, dropdownClassName: _dropdownClassName, popupStyle: _popupStyle, rootClass: _rootClass, classes: _classes, styles: _styles, status: _status, variant: _variant, bordered: _bordered, size: _size, disabled: _disabled, locale: _locale, getPopupContainer: _getPopupContainer,...restProps } = props;
|
|
110
|
-
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
110
|
+
const { className, style, restAttrs } = getAttrStyleAndClass(attrs, void 0, props);
|
|
111
111
|
const mergedSuffixIcon = getSlotPropsFnRun(slots, { suffixIcon }, "suffixIcon", false);
|
|
112
112
|
const [mergedAllowClear] = useIcons({ allowClear }, prefixCls.value);
|
|
113
113
|
const mergedComponents = useComponents(components);
|
|
@@ -11,8 +11,8 @@ import { ContextIsolator } from "../../_util/ContextIsolator.js";
|
|
|
11
11
|
import { useDisabledContext } from "../../config-provider/DisabledContext.js";
|
|
12
12
|
import en_US_default from "../locale/en_US.js";
|
|
13
13
|
import useLocale_default from "../../locale/useLocale.js";
|
|
14
|
-
import { useFormItemInputContext } from "../../form/context.js";
|
|
15
14
|
import { getMergedStatus, getStatusClassNames } from "../../_util/statusUtils.js";
|
|
15
|
+
import { useFormItemInputContext } from "../../form/context.js";
|
|
16
16
|
import { useVariants } from "../../form/hooks/useVariant.js";
|
|
17
17
|
import style_default from "../style/index.js";
|
|
18
18
|
import useMergedPickerSemantic from "../hooks/useMergedPickerSemantic.js";
|
|
@@ -65,6 +65,7 @@ function generatePicker(generateConfig) {
|
|
|
65
65
|
};
|
|
66
66
|
const handleCalendarChange = (date, dateStr, info) => {
|
|
67
67
|
emit("calendarChange", date, dateStr, info);
|
|
68
|
+
if (props.multiple && !props.needConfirm) triggerChange(date, dateStr);
|
|
68
69
|
if (picker === TIME && !props.multiple) emit("select", date[0] ?? date);
|
|
69
70
|
};
|
|
70
71
|
const handlePanelChange = (value, mode) => {
|
|
@@ -111,7 +112,7 @@ function generatePicker(generateConfig) {
|
|
|
111
112
|
});
|
|
112
113
|
return () => {
|
|
113
114
|
const { placeholder, components, placement, suffixIcon, allowClear, popupClassName: _popupClassName, dropdownClassName: _dropdownClassName, popupStyle: _popupStyle, rootClass: _rootClass, classes: _classes, styles: _styles, status: _status, variant: _variant, bordered: _bordered, size: _size, disabled: _disabled, locale: _locale, getPopupContainer: _getPopupContainer,...restProps } = props;
|
|
114
|
-
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
115
|
+
const { className, style, restAttrs } = getAttrStyleAndClass(attrs, void 0, props);
|
|
115
116
|
const mergedSuffixIcon = getSlotPropsFnRun(slots, { suffixIcon }, "suffixIcon", false);
|
|
116
117
|
const [mergedAllowClear, removeIcon] = useIcons({
|
|
117
118
|
allowClear,
|