antdv-next 1.0.0-beta.3 → 1.0.0-rc.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.mjs +4 -4
- package/dist/_util/hooks/useClosable.d.mts +0 -1
- package/dist/_util/hooks/useClosable.mjs +1 -1
- package/dist/_util/hooks/useMergeSemantic.d.mts +2 -3
- package/dist/_util/hooks/useMergeSemantic.mjs +9 -9
- package/dist/_util/tools.mjs +1 -1
- package/dist/_util/warning.d.mts +0 -1
- package/dist/affix/index.d.mts +3 -3
- package/dist/alert/Alert.d.mts +24 -7
- package/dist/alert/Alert.mjs +91 -28
- package/dist/anchor/Anchor.d.mts +18 -7
- package/dist/antd.css +1 -1
- package/dist/antd.js +101 -112
- package/dist/app/App.d.mts +2 -2
- package/dist/app/App.mjs +2 -2
- package/dist/auto-complete/index.d.mts +23 -11
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/avatar/Avatar.d.mts +3 -3
- package/dist/avatar/AvatarGroup.d.mts +2 -2
- package/dist/avatar/style/index.mjs +2 -2
- package/dist/badge/Ribbon.d.mts +21 -5
- package/dist/badge/Ribbon.mjs +44 -23
- package/dist/badge/SingleNumber.mjs +2 -1
- package/dist/badge/index.d.mts +14 -7
- package/dist/badge/style/ribbon.mjs +1 -1
- package/dist/breadcrumb/Breadcrumb.d.mts +17 -6
- package/dist/breadcrumb/Breadcrumb.mjs +18 -3
- package/dist/breadcrumb/BreadcrumbItem.d.mts +1 -0
- package/dist/breadcrumb/BreadcrumbItem.mjs +29 -4
- package/dist/breadcrumb/style/index.mjs +5 -5
- package/dist/button/Button.d.mts +18 -10
- package/dist/button/buttonHelper.d.mts +0 -1
- package/dist/button/index.d.mts +1 -1
- package/dist/button/style/compact.mjs +28 -19
- package/dist/button/style/token.d.mts +0 -5
- package/dist/button/style/variant.mjs +27 -3
- package/dist/calendar/generateCalendar.d.mts +20 -7
- package/dist/calendar/generateCalendar.mjs +1 -1
- package/dist/calendar/index.d.mts +3 -3
- package/dist/card/Card.d.mts +23 -6
- package/dist/card/CardGrid.d.mts +2 -2
- package/dist/card/CardMeta.d.mts +20 -7
- package/dist/carousel/index.d.mts +3 -3
- package/dist/cascader/Panel.d.mts +3 -3
- package/dist/cascader/index.d.mts +31 -10
- package/dist/checkbox/Checkbox.d.mts +16 -7
- package/dist/checkbox/Checkbox.mjs +1 -1
- package/dist/checkbox/Group.d.mts +4 -3
- package/dist/checkbox/Group.mjs +11 -2
- package/dist/collapse/Collapse.d.mts +19 -6
- package/dist/collapse/Collapse.mjs +1 -1
- package/dist/color-picker/ColorPicker.d.mts +3 -3
- package/dist/color-picker/interface.d.mts +15 -7
- package/dist/color-picker/style/input.mjs +2 -0
- package/dist/components.d.mts +2 -3
- package/dist/config-provider/context.d.mts +58 -12
- package/dist/config-provider/context.mjs +3 -3
- package/dist/config-provider/define.d.mts +7 -1
- package/dist/config-provider/index.d.mts +3 -4
- package/dist/config-provider/index.mjs +82 -8
- package/dist/date-picker/generatePicker/index.d.mts +15 -15
- package/dist/date-picker/generatePicker/interface.d.mts +37 -10
- package/dist/date-picker/hooks/useMergedPickerSemantic.mjs +2 -2
- package/dist/date-picker/index.d.mts +25 -25
- package/dist/descriptions/Cell.mjs +5 -5
- package/dist/descriptions/DescriptionsContext.d.mts +13 -0
- package/dist/descriptions/Item.d.mts +3 -3
- package/dist/descriptions/hooks/useRow.mjs +7 -7
- package/dist/descriptions/index.d.mts +22 -7
- package/dist/divider/index.d.mts +15 -5
- package/dist/drawer/DrawerPanel.d.mts +28 -3
- package/dist/drawer/DrawerPanel.mjs +3 -3
- package/dist/drawer/index.d.mts +4 -4
- package/dist/drawer/index.mjs +4 -0
- package/dist/drawer/style/index.mjs +9 -2
- package/dist/dropdown/dropdown.d.mts +20 -7
- package/dist/empty/index.d.mts +18 -7
- package/dist/flex/index.d.mts +3 -3
- package/dist/float-button/BackTop.d.mts +3 -3
- package/dist/float-button/FloatButton.d.mts +6 -7
- package/dist/float-button/FloatButtonGroup.d.mts +25 -6
- package/dist/form/Form.d.mts +16 -7
- package/dist/form/FormItem/index.d.mts +3 -3
- package/dist/form/FormItem/index.mjs +1 -1
- package/dist/form/FormItemInput.d.mts +0 -1
- package/dist/grid/index.d.mts +2 -2
- package/dist/grid/row.d.mts +2 -2
- package/dist/image/PreviewGroup.d.mts +3 -5
- package/dist/image/index.d.mts +34 -14
- package/dist/index.d.mts +3 -4
- package/dist/input/Input.d.mts +17 -4
- package/dist/input/Input.mjs +2 -2
- package/dist/input/OTP/index.d.mts +13 -4
- package/dist/input/Password.mjs +3 -3
- package/dist/input/Search.d.mts +21 -9
- package/dist/input/TextArea.d.mts +16 -7
- package/dist/input/TextArea.mjs +2 -2
- package/dist/input/index.d.mts +11 -11
- package/dist/input/style/index.mjs +5 -2
- package/dist/input/style/variants.mjs +2 -1
- package/dist/input-number/index.d.mts +20 -7
- package/dist/layout/index.d.mts +6 -6
- package/dist/layout/layout.d.mts +2 -3
- package/dist/locale/index.d.mts +0 -1
- package/dist/masonry/Masonry.d.mts +14 -7
- package/dist/masonry/MasonryItem.mjs +2 -2
- package/dist/mentions/index.d.mts +18 -7
- package/dist/mentions/index.mjs +2 -2
- package/dist/mentions/style/index.mjs +2 -2
- package/dist/menu/MenuContext.d.mts +0 -1
- package/dist/menu/MenuDivider.d.mts +2 -2
- package/dist/menu/MenuItem.d.mts +3 -3
- package/dist/menu/MenuItem.mjs +4 -3
- package/dist/menu/SubMenu.d.mts +3 -3
- package/dist/menu/SubMenu.mjs +5 -0
- package/dist/menu/index.d.mts +5 -5
- package/dist/menu/menu.d.mts +42 -10
- package/dist/menu/menu.mjs +2 -2
- package/dist/menu/style/index.d.mts +1 -1
- package/dist/menu/style/vertical.mjs +1 -1
- package/dist/message/PurePanel.d.mts +5 -7
- package/dist/message/index.mjs +2 -2
- package/dist/message/interface.d.mts +20 -4
- package/dist/message/useMessage.d.mts +0 -1
- package/dist/modal/Modal.d.mts +3 -3
- package/dist/modal/confirm.mjs +8 -4
- package/dist/modal/interface.d.mts +22 -3
- package/dist/modal/style/index.mjs +11 -8
- package/dist/notification/PurePanel.d.mts +8 -8
- package/dist/notification/index.mjs +2 -2
- package/dist/notification/interface.d.mts +18 -5
- package/dist/notification/style/index.mjs +8 -8
- package/dist/notification/useNotification.d.mts +2 -3
- package/dist/package.d.mts +4 -0
- package/dist/package.mjs +1 -1
- package/dist/pagination/Pagination.d.mts +3 -3
- package/dist/pagination/Pagination.mjs +11 -10
- package/dist/pagination/interface.d.mts +14 -5
- package/dist/pagination/style/bordered.mjs +2 -2
- package/dist/pagination/style/index.d.mts +10 -5
- package/dist/pagination/style/index.mjs +52 -103
- package/dist/popconfirm/PurePanel.d.mts +5 -7
- package/dist/popconfirm/index.d.mts +8 -6
- package/dist/popconfirm/index.mjs +7 -3
- package/dist/popover/index.d.mts +16 -9
- package/dist/popover/index.mjs +8 -5
- package/dist/progress/Line.mjs +3 -3
- package/dist/progress/progress.d.mts +20 -7
- package/dist/qrcode/index.d.mts +3 -3
- package/dist/qrcode/index.mjs +2 -1
- package/dist/qrcode/interface.d.mts +11 -3
- package/dist/radio/group.mjs +3 -3
- package/dist/radio/index.d.mts +5 -5
- package/dist/radio/interface.d.mts +13 -3
- package/dist/radio/radio.d.mts +3 -3
- package/dist/radio/radio.mjs +1 -1
- package/dist/rate/index.d.mts +3 -3
- package/dist/result/index.d.mts +22 -7
- package/dist/result/index.mjs +11 -6
- package/dist/result/noFound.d.mts +2 -2
- package/dist/result/serverError.d.mts +2 -2
- package/dist/result/unauthorized.d.mts +2 -2
- package/dist/segmented/index.d.mts +18 -7
- package/dist/select/index.d.mts +48 -20
- package/dist/skeleton/Avatar.d.mts +2 -2
- package/dist/skeleton/Button.d.mts +2 -2
- package/dist/skeleton/Image.d.mts +2 -2
- package/dist/skeleton/Input.d.mts +2 -2
- package/dist/skeleton/Node.d.mts +3 -3
- package/dist/skeleton/Skeleton.d.mts +22 -7
- package/dist/slider/index.d.mts +19 -6
- package/dist/slider/index.mjs +4 -4
- package/dist/space/index.d.mts +18 -9
- package/dist/spin/Indicator/Progress.mjs +3 -3
- package/dist/spin/index.d.mts +19 -6
- package/dist/splitter/SplitBar.mjs +12 -12
- package/dist/splitter/Splitter.d.mts +3 -3
- package/dist/splitter/Splitter.mjs +1 -1
- package/dist/splitter/hooks/useItems.mjs +2 -2
- package/dist/splitter/hooks/useResizable.mjs +5 -5
- package/dist/splitter/hooks/useResize.mjs +2 -2
- package/dist/splitter/index.d.mts +2 -2
- package/dist/splitter/interface.d.mts +21 -7
- package/dist/splitter/style/index.mjs +2 -28
- package/dist/statistic/Statistic.d.mts +21 -6
- package/dist/statistic/Statistic.mjs +1 -1
- package/dist/statistic/Timer.d.mts +5 -5
- package/dist/statistic/index.d.mts +5 -5
- package/dist/steps/context.mjs +5 -2
- package/dist/steps/index.d.mts +31 -9
- package/dist/steps/index.mjs +3 -3
- package/dist/style/motion/fade.mjs +25 -0
- package/dist/switch/index.d.mts +14 -7
- package/dist/switch/index.mjs +2 -2
- package/dist/table/Column.d.mts +3 -3
- package/dist/table/ColumnGroup.d.mts +3 -3
- package/dist/table/InternalTable.d.mts +35 -13
- package/dist/table/InternalTable.mjs +12 -6
- package/dist/table/Table.d.mts +3 -3
- package/dist/table/TableMeasureRowContext.mjs +20 -0
- package/dist/table/hooks/useFilter/FilterDropdown.mjs +17 -12
- package/dist/table/hooks/useSelection.mjs +1 -1
- package/dist/table/interface.d.mts +1 -2
- package/dist/table/style/virtual.mjs +1 -1
- package/dist/tabs/TabPane.d.mts +3 -3
- package/dist/tabs/index.d.mts +27 -11
- package/dist/tabs/index.mjs +5 -5
- package/dist/tag/CheckableTag.d.mts +3 -3
- package/dist/tag/CheckableTagGroup.d.mts +3 -3
- package/dist/tag/index.d.mts +16 -7
- package/dist/tag/index.mjs +1 -1
- package/dist/tag/style/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -2
- package/dist/theme/interface/maps/index.d.mts +0 -1
- package/dist/theme/useToken.mjs +3 -3
- package/dist/theme/util/genStyleUtils.mjs +3 -2
- package/dist/time-picker/index.d.mts +38 -14
- package/dist/time-picker/index.mjs +1 -1
- package/dist/timeline/Timeline.d.mts +49 -14
- package/dist/timeline/Timeline.mjs +82 -11
- package/dist/timeline/index.d.mts +1 -2
- package/dist/timeline/style/horizontal.mjs +73 -0
- package/dist/timeline/style/index.d.mts +10 -5
- package/dist/timeline/style/index.mjs +93 -137
- package/dist/timeline/useItems.mjs +52 -0
- package/dist/tooltip/PurePanel.d.mts +2 -2
- package/dist/tooltip/UniqueProvider/index.d.mts +2 -2
- package/dist/tooltip/index.d.mts +17 -8
- package/dist/tooltip/index.mjs +11 -3
- package/dist/tooltip/style/index.d.mts +7 -1
- package/dist/tooltip/style/index.mjs +3 -2
- package/dist/tour/index.d.mts +3 -3
- package/dist/tour/index.mjs +1 -1
- package/dist/tour/interface.d.mts +29 -3
- package/dist/transfer/Actions.d.mts +2 -2
- package/dist/transfer/ListItem.mjs +4 -4
- package/dist/transfer/Section.d.mts +2 -2
- package/dist/transfer/Transfer.d.mts +3 -3
- package/dist/transfer/Transfer.mjs +4 -4
- package/dist/transfer/index.d.mts +1 -1
- package/dist/transfer/interface.d.mts +32 -7
- package/dist/transfer/search.d.mts +3 -3
- package/dist/tree/DirectoryTree.d.mts +3 -3
- package/dist/tree/Tree.d.mts +18 -7
- package/dist/tree/index.d.mts +0 -1
- package/dist/tree-select/index.d.mts +41 -12
- package/dist/tree-select/style/index.d.mts +1 -1
- package/dist/typography/Editable.mjs +4 -4
- package/dist/typography/Link.d.mts +3 -3
- package/dist/typography/Paragraph.d.mts +3 -3
- package/dist/typography/Text.d.mts +3 -3
- package/dist/typography/Title.d.mts +3 -3
- package/dist/typography/Typography.d.mts +3 -3
- package/dist/typography/Typography.mjs +2 -12
- package/dist/typography/index.d.mts +9 -10
- package/dist/typography/interface.d.mts +0 -2
- package/dist/typography/style/mixins.mjs +3 -3
- package/dist/upload/Dragger.d.mts +3 -3
- package/dist/upload/Upload.d.mts +3 -4
- package/dist/upload/index.d.mts +3 -3
- package/dist/upload/interface.d.mts +13 -4
- package/dist/watermark/index.d.mts +2 -2
- package/dist/watermark/index.mjs +3 -3
- package/package.json +45 -41
- package/web-tags.json +1918 -1873
- package/web-types.json +6815 -7198
- package/dist/timeline/TimelineItem.d.mts +0 -20
- package/dist/timeline/TimelineItem.mjs +0 -115
- package/dist/timeline/TimelineItemList.mjs +0 -158
|
@@ -4,14 +4,27 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.mjs";
|
|
6
6
|
import { ComponentBaseProps, Variant } from "../config-provider/context.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import { SlotsType } from "vue";
|
|
7
|
+
import * as vue112 from "vue";
|
|
8
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { InputNumberProps, InputNumberRef as VcInputNumberRef, ValueType } from "@v-c/input-number";
|
|
10
10
|
|
|
11
11
|
//#region src/input-number/index.d.ts
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
interface InputNumberSemanticClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
prefix?: string;
|
|
15
|
+
suffix?: string;
|
|
16
|
+
input?: string;
|
|
17
|
+
actions?: string;
|
|
18
|
+
}
|
|
19
|
+
interface InputNumberSemanticStyles {
|
|
20
|
+
root?: CSSProperties;
|
|
21
|
+
prefix?: CSSProperties;
|
|
22
|
+
suffix?: CSSProperties;
|
|
23
|
+
input?: CSSProperties;
|
|
24
|
+
actions?: CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
type InputNumberClassNamesType = SemanticClassNamesType<InputNumberProps$1, InputNumberSemanticClassNames>;
|
|
27
|
+
type InputNumberStylesType = SemanticStylesType<InputNumberProps$1, InputNumberSemanticStyles>;
|
|
15
28
|
interface InputNumberStepContext {
|
|
16
29
|
offset: ValueType;
|
|
17
30
|
type: 'up' | 'down';
|
|
@@ -69,8 +82,8 @@ interface InputNumberSlots {
|
|
|
69
82
|
addonAfter?: () => any;
|
|
70
83
|
default?: () => any;
|
|
71
84
|
}
|
|
72
|
-
declare const InputNumber:
|
|
85
|
+
declare const InputNumber: vue112.DefineSetupFnComponent<InputNumberProps$1, InputNumberEmits, SlotsType<InputNumberSlots>, InputNumberProps$1 & {
|
|
73
86
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
74
|
-
},
|
|
87
|
+
}, vue112.PublicProps>;
|
|
75
88
|
//#endregion
|
|
76
89
|
export { InputNumber, InputNumberEmits, InputNumberProps$1 as InputNumberProps, InputNumberStepContext, type ValueType, VcInputNumberRef };
|
package/dist/layout/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BasicProps, Layout } from "./layout.mjs";
|
|
2
2
|
import { SiderEmits, SiderProps, SiderSlots, useSiderCtx } from "./Sider.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue114 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/layout/index.d.ts
|
|
6
6
|
declare const useLayoutSider: typeof useSiderCtx;
|
|
7
|
-
declare const LayoutHeader:
|
|
8
|
-
declare const LayoutFooter:
|
|
9
|
-
declare const LayoutContent:
|
|
10
|
-
declare const LayoutSider:
|
|
7
|
+
declare const LayoutHeader: vue114.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue114.PublicProps>;
|
|
8
|
+
declare const LayoutFooter: vue114.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue114.PublicProps>;
|
|
9
|
+
declare const LayoutContent: vue114.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue114.PublicProps>;
|
|
10
|
+
declare const LayoutSider: vue114.DefineSetupFnComponent<SiderProps, SiderEmits, vue114.SlotsType<SiderSlots>, SiderProps & {
|
|
11
11
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
12
|
-
},
|
|
12
|
+
}, vue114.PublicProps>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, useLayoutSider };
|
package/dist/layout/layout.d.mts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue267 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/layout/layout.d.ts
|
|
5
|
-
|
|
6
5
|
interface BasicProps extends ComponentBaseProps {
|
|
7
6
|
suffixCls?: string;
|
|
8
7
|
hasSider?: boolean;
|
|
9
8
|
}
|
|
10
|
-
declare const Layout:
|
|
9
|
+
declare const Layout: vue267.DefineSetupFnComponent<BasicProps, {}, {}, BasicProps & {}, vue267.PublicProps>;
|
|
11
10
|
//#endregion
|
|
12
11
|
export { BasicProps, Layout };
|
package/dist/locale/index.d.mts
CHANGED
|
@@ -5,14 +5,21 @@ import { RowProps } from "../grid/row.mjs";
|
|
|
5
5
|
import "../grid/index.mjs";
|
|
6
6
|
import { MasonryItemType } from "./MasonryItem.mjs";
|
|
7
7
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
8
|
-
import * as
|
|
9
|
-
import { SlotsType } from "vue";
|
|
8
|
+
import * as vue257 from "vue";
|
|
9
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
10
10
|
|
|
11
11
|
//#region src/masonry/Masonry.d.ts
|
|
12
12
|
type Key = string | number;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
interface MasonrySemanticClassNames {
|
|
14
|
+
root?: string;
|
|
15
|
+
item?: string;
|
|
16
|
+
}
|
|
17
|
+
interface MasonrySemanticStyles {
|
|
18
|
+
root?: CSSProperties;
|
|
19
|
+
item?: CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
type MasonryClassNamesType = SemanticClassNamesType<MasonryProps, MasonrySemanticClassNames>;
|
|
22
|
+
type MasonryStylesType = SemanticStylesType<MasonryProps, MasonrySemanticStyles>;
|
|
16
23
|
interface MasonryProps extends ComponentBaseProps {
|
|
17
24
|
classes?: MasonryClassNamesType;
|
|
18
25
|
styles?: MasonryStylesType;
|
|
@@ -43,8 +50,8 @@ interface MasonrySlots {
|
|
|
43
50
|
interface MasonryRef {
|
|
44
51
|
nativeElement: HTMLDivElement;
|
|
45
52
|
}
|
|
46
|
-
declare const Masonry:
|
|
53
|
+
declare const Masonry: vue257.DefineSetupFnComponent<MasonryProps, MasonryEmits, SlotsType<MasonrySlots>, MasonryProps & {
|
|
47
54
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
48
|
-
},
|
|
55
|
+
}, vue257.PublicProps>;
|
|
49
56
|
//#endregion
|
|
50
57
|
export { Masonry, MasonryEmits, MasonryProps, MasonryRef, MasonrySlots };
|
|
@@ -7,8 +7,8 @@ const MasonryItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
7
7
|
const domRef = shallowRef();
|
|
8
8
|
let observer = null;
|
|
9
9
|
const onResize = () => {
|
|
10
|
-
const onResize
|
|
11
|
-
if (onResize
|
|
10
|
+
const onResize = props?.onResize;
|
|
11
|
+
if (onResize) onResize();
|
|
12
12
|
};
|
|
13
13
|
watch([() => props.onResize, domRef], (_n, _o, onCleanup) => {
|
|
14
14
|
if (props.onResize && domRef.value) {
|
|
@@ -4,15 +4,26 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { InputStatus } from "../_util/statusUtils.mjs";
|
|
6
6
|
import { ComponentBaseProps, Variant } from "../config-provider/context.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import { App, SlotsType } from "vue";
|
|
7
|
+
import * as vue123 from "vue";
|
|
8
|
+
import { App, CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { DataDrivenOptionProps, MentionsProps, MentionsRef, Option } from "@v-c/mentions";
|
|
10
10
|
|
|
11
11
|
//#region src/mentions/index.d.ts
|
|
12
12
|
type MentionPlacement = 'top' | 'bottom';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
interface MentionSemanticClassNames {
|
|
14
|
+
root?: string;
|
|
15
|
+
textarea?: string;
|
|
16
|
+
popup?: string;
|
|
17
|
+
suffix?: string;
|
|
18
|
+
}
|
|
19
|
+
interface MentionSemanticStyles {
|
|
20
|
+
root?: CSSProperties;
|
|
21
|
+
textarea?: CSSProperties;
|
|
22
|
+
popup?: CSSProperties;
|
|
23
|
+
suffix?: CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
type MentionsClassNamesType = SemanticClassNamesType<MentionProps, MentionSemanticClassNames>;
|
|
26
|
+
type MentionsStylesType = SemanticStylesType<MentionProps, MentionSemanticStyles>;
|
|
16
27
|
interface MentionsOptionProps extends DataDrivenOptionProps {
|
|
17
28
|
content?: VueNode;
|
|
18
29
|
}
|
|
@@ -66,9 +77,9 @@ interface MentionsEntity {
|
|
|
66
77
|
prefix: string;
|
|
67
78
|
value: string;
|
|
68
79
|
}
|
|
69
|
-
declare const InternalMentions:
|
|
80
|
+
declare const InternalMentions: vue123.DefineSetupFnComponent<MentionProps, MentionsEmits, SlotsType<MentionsSlots>, MentionProps & {
|
|
70
81
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
71
|
-
},
|
|
82
|
+
}, vue123.PublicProps>;
|
|
72
83
|
declare const Mentions: typeof InternalMentions & {
|
|
73
84
|
Option: typeof Option;
|
|
74
85
|
getMentions: (value: string, config?: MentionsConfig) => MentionsEntity[];
|
package/dist/mentions/index.mjs
CHANGED
|
@@ -149,7 +149,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
|
|
|
149
149
|
"disabled": true
|
|
150
150
|
}, { default: () => [createVNode(spin_default, { "size": "small" }, null)] }) : props.options !== void 0 ? null : filterEmpty(slots.default?.() ?? []).filter(Boolean);
|
|
151
151
|
const mergedPopupClassName = clsx(mergedClassNames.value.popup, rootClass.value, hashId.value, cssVarCls.value, rootCls.value);
|
|
152
|
-
const classNames
|
|
152
|
+
const classNames = {
|
|
153
153
|
mentions: clsx({
|
|
154
154
|
[`${prefixCls.value}-disabled`]: mergedDisabled.value,
|
|
155
155
|
[`${prefixCls.value}-focused`]: focused.value,
|
|
@@ -171,7 +171,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
|
|
|
171
171
|
"prefixCls": prefixCls.value,
|
|
172
172
|
"className": mergedClassName,
|
|
173
173
|
"style": rootStyle,
|
|
174
|
-
"classNames": classNames
|
|
174
|
+
"classNames": classNames,
|
|
175
175
|
"styles": mergedStylesValue,
|
|
176
176
|
"popupClassName": props.popupClassName,
|
|
177
177
|
"notFoundContent": notFoundContent.value,
|
|
@@ -42,7 +42,7 @@ const genDropdownStyle = (token) => {
|
|
|
42
42
|
"fontWeight": "normal",
|
|
43
43
|
lineHeight,
|
|
44
44
|
"cursor": "pointer",
|
|
45
|
-
"transition": `background ${motionDurationSlow} ease`,
|
|
45
|
+
"transition": `background-color ${motionDurationSlow} ease`,
|
|
46
46
|
"&:hover": { backgroundColor: controlItemBgHover },
|
|
47
47
|
"&-disabled": {
|
|
48
48
|
"color": colorTextDisabled,
|
|
@@ -64,7 +64,7 @@ const genDropdownStyle = (token) => {
|
|
|
64
64
|
} } };
|
|
65
65
|
};
|
|
66
66
|
const genMentionsStyle = (token) => {
|
|
67
|
-
const { componentCls,
|
|
67
|
+
const { componentCls, colorText, antCls, colorTextDisabled, calc } = token;
|
|
68
68
|
const [varName, varRef] = genCssVar(antCls, "cmp-mentions");
|
|
69
69
|
return { [componentCls]: [
|
|
70
70
|
resetComponent(token),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue391 from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/menu/MenuDivider.d.ts
|
|
4
4
|
interface MenuDividerProps {
|
|
5
5
|
prefixCls?: string;
|
|
6
6
|
dashed?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const MenuDivider:
|
|
8
|
+
declare const MenuDivider: vue391.DefineSetupFnComponent<MenuDividerProps, {}, {}, MenuDividerProps & {}, vue391.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { MenuDivider };
|
package/dist/menu/MenuItem.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue393 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
import { MenuItemType } from "@v-c/menu";
|
|
5
5
|
|
|
@@ -24,8 +24,8 @@ interface MenuItemSlots {
|
|
|
24
24
|
title: () => any;
|
|
25
25
|
extra: () => any;
|
|
26
26
|
}
|
|
27
|
-
declare const MenuItem:
|
|
27
|
+
declare const MenuItem: vue393.DefineSetupFnComponent<MenuItemProps$1, EmptyEmit, SlotsType<MenuItemSlots>, MenuItemProps$1 & {
|
|
28
28
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
29
|
-
},
|
|
29
|
+
}, vue393.PublicProps>;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { MenuItem, MenuItemProps$1 as MenuItemProps, MenuItemSlots };
|
package/dist/menu/MenuItem.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { useSiderCtx } from "../layout/Sider.mjs";
|
|
|
6
6
|
import { useMenuContext } from "./MenuContext.mjs";
|
|
7
7
|
import { createVNode, defineComponent, isVNode, mergeProps } from "vue";
|
|
8
8
|
import { clsx } from "@v-c/util";
|
|
9
|
-
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
9
|
+
import { filterEmpty, getAttrStyleAndClass } from "@v-c/util/dist/props-util";
|
|
10
10
|
import { omit } from "es-toolkit";
|
|
11
11
|
import { Item } from "@v-c/menu";
|
|
12
12
|
|
|
@@ -21,6 +21,7 @@ const MenuItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
21
21
|
const extra = getSlotPropsFnRun(slots, props, "extra");
|
|
22
22
|
const icon = getSlotPropsFnRun(slots, props, "icon");
|
|
23
23
|
const title = getSlotPropsFnRun(slots, props, "title");
|
|
24
|
+
const { className, style } = getAttrStyleAndClass(attrs);
|
|
24
25
|
const { danger } = props;
|
|
25
26
|
const { prefixCls, firstLevel, direction, disableMenuItemTitleTooltip, inlineCollapsed: isInlineCollapsed, styles, classes } = menuContext.value;
|
|
26
27
|
const children = filterEmpty(slots?.default?.());
|
|
@@ -53,8 +54,8 @@ const MenuItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
53
54
|
"class": clsx(firstLevel ? classes?.item : classes?.subMenu?.item, {
|
|
54
55
|
[`${prefixCls}-item-danger`]: !!danger,
|
|
55
56
|
[`${prefixCls}-item-only-child`]: (icon ? childrenLength + 1 : childrenLength) === 1
|
|
56
|
-
},
|
|
57
|
-
"style": [
|
|
57
|
+
}, className),
|
|
58
|
+
"style": [firstLevel ? styles?.item : styles?.subMenu?.item, style],
|
|
58
59
|
"title": typeof title === "string" ? title : void 0
|
|
59
60
|
}), { default: () => [icon ? createVNode(icon, {
|
|
60
61
|
class: clsx(`${prefixCls}-item-icon`, firstLevel ? classes?.itemIcon : classes?.subMenu?.itemIcon),
|
package/dist/menu/SubMenu.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmptyEmit, VueNode } from "../_util/type.mjs";
|
|
2
2
|
import { SubMenuType } from "./interface.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue397 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/menu/SubMenu.d.ts
|
|
@@ -12,8 +12,8 @@ interface SubMenuSlots {
|
|
|
12
12
|
icon: () => any;
|
|
13
13
|
default: () => any;
|
|
14
14
|
}
|
|
15
|
-
declare const SubMenu:
|
|
15
|
+
declare const SubMenu: vue397.DefineSetupFnComponent<SubMenuProps, EmptyEmit, SlotsType<SubMenuSlots>, SubMenuProps & {
|
|
16
16
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
17
|
-
},
|
|
17
|
+
}, vue397.PublicProps>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SubMenu, SubMenuProps };
|
package/dist/menu/SubMenu.mjs
CHANGED
|
@@ -140,6 +140,11 @@ const SubMenu$1 = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
140
140
|
required: false,
|
|
141
141
|
default: void 0
|
|
142
142
|
},
|
|
143
|
+
popupRender: {
|
|
144
|
+
type: Function,
|
|
145
|
+
required: false,
|
|
146
|
+
default: void 0
|
|
147
|
+
},
|
|
143
148
|
onClick: {
|
|
144
149
|
type: Function,
|
|
145
150
|
required: false,
|
package/dist/menu/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { ItemType } from "./interface.mjs";
|
|
|
4
4
|
import { MenuEmits, MenuProps as MenuProps$1, MenuSlots } from "./menu.mjs";
|
|
5
5
|
import { SubMenu as SubMenu$1, SubMenuProps } from "./SubMenu.mjs";
|
|
6
6
|
import { MenuDivider } from "./MenuDivider.mjs";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue125 from "vue";
|
|
8
8
|
import { SlotsType } from "vue";
|
|
9
9
|
import { MenuItemGroupProps, MenuRef } from "@v-c/menu";
|
|
10
10
|
|
|
@@ -14,12 +14,12 @@ interface MenuRef$1 {
|
|
|
14
14
|
menu: MenuRef | null;
|
|
15
15
|
focus: (options?: FocusOptions) => void;
|
|
16
16
|
}
|
|
17
|
-
declare const Menu:
|
|
17
|
+
declare const Menu: vue125.DefineSetupFnComponent<MenuProps$1, MenuEmits, SlotsType<MenuSlots>, MenuProps$1 & {
|
|
18
18
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
19
|
-
},
|
|
20
|
-
declare const MenuItem:
|
|
19
|
+
}, vue125.PublicProps>;
|
|
20
|
+
declare const MenuItem: vue125.DefineSetupFnComponent<MenuItemProps$1, EmptyEmit, SlotsType<MenuItemSlots>, MenuItemProps$1 & {
|
|
21
21
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
22
|
-
},
|
|
22
|
+
}, vue125.PublicProps>;
|
|
23
23
|
declare const _default: typeof Menu & {
|
|
24
24
|
Item: typeof MenuItem$1;
|
|
25
25
|
SubMenu: typeof SubMenu$1;
|
package/dist/menu/menu.d.mts
CHANGED
|
@@ -1,20 +1,52 @@
|
|
|
1
|
-
import { SemanticClassNames, SemanticStyles } from "../_util/hooks/useMergeSemantic.mjs";
|
|
2
|
-
import "../_util/hooks/index.mjs";
|
|
3
1
|
import { ItemType } from "./interface.mjs";
|
|
4
2
|
import { MenuTheme } from "./MenuContext.mjs";
|
|
5
3
|
import { CSSProperties, SlotsType } from "vue";
|
|
6
4
|
import { MenuInfo, MenuItemProps, MenuProps, RenderIconInfo, SelectInfo } from "@v-c/menu";
|
|
7
5
|
|
|
8
6
|
//#region src/menu/menu.d.ts
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
interface MenuSemanticClassNames {
|
|
8
|
+
root?: string;
|
|
9
|
+
itemTitle?: string;
|
|
10
|
+
list?: string;
|
|
11
|
+
item?: string;
|
|
12
|
+
itemIcon?: string;
|
|
13
|
+
itemContent?: string;
|
|
14
|
+
}
|
|
15
|
+
interface MenuSemanticStyles {
|
|
16
|
+
root?: CSSProperties;
|
|
17
|
+
itemTitle?: CSSProperties;
|
|
18
|
+
list?: CSSProperties;
|
|
19
|
+
item?: CSSProperties;
|
|
20
|
+
itemIcon?: CSSProperties;
|
|
21
|
+
itemContent?: CSSProperties;
|
|
22
|
+
}
|
|
23
|
+
interface SubMenuSemanticClassNames {
|
|
24
|
+
item?: string;
|
|
25
|
+
itemTitle?: string;
|
|
26
|
+
list?: string;
|
|
27
|
+
itemContent?: string;
|
|
28
|
+
itemIcon?: string;
|
|
29
|
+
}
|
|
30
|
+
interface SubMenuSemanticStyles {
|
|
31
|
+
item?: CSSProperties;
|
|
32
|
+
itemTitle?: CSSProperties;
|
|
33
|
+
list?: CSSProperties;
|
|
34
|
+
itemContent?: CSSProperties;
|
|
35
|
+
itemIcon?: CSSProperties;
|
|
36
|
+
}
|
|
37
|
+
interface MenuPopupSemanticClassNames {
|
|
38
|
+
root?: string;
|
|
39
|
+
}
|
|
40
|
+
interface MenuPopupSemanticStyles {
|
|
41
|
+
root?: CSSProperties;
|
|
42
|
+
}
|
|
43
|
+
type MenuClassNamesSchemaType = MenuSemanticClassNames & {
|
|
44
|
+
popup?: MenuPopupSemanticClassNames | string;
|
|
45
|
+
subMenu?: SubMenuSemanticClassNames;
|
|
14
46
|
};
|
|
15
|
-
type MenuStylesSchemaType =
|
|
16
|
-
popup?:
|
|
17
|
-
subMenu?:
|
|
47
|
+
type MenuStylesSchemaType = MenuSemanticStyles & {
|
|
48
|
+
popup?: MenuPopupSemanticStyles | CSSProperties;
|
|
49
|
+
subMenu?: SubMenuSemanticStyles;
|
|
18
50
|
};
|
|
19
51
|
type MenuClassNamesType = MenuClassNamesSchemaType | ((info: {
|
|
20
52
|
props: MenuProps$1;
|
package/dist/menu/menu.mjs
CHANGED
|
@@ -105,12 +105,12 @@ const InternalMenu = /* @__PURE__ */ defineComponent((props, { slots, emit, attr
|
|
|
105
105
|
expose({ menu: menuRef });
|
|
106
106
|
return () => {
|
|
107
107
|
const expandIcon = slots?.expandIcon ?? props?.expandIcon;
|
|
108
|
-
const mergedExpandIcon = (props
|
|
108
|
+
const mergedExpandIcon = (props) => {
|
|
109
109
|
if (typeof expandIcon === "function" || isEmptyIcon(expandIcon)) return expandIcon || null;
|
|
110
110
|
if (typeof overrideObj.value?.expandIcon === "function" || isEmptyIcon(overrideObj.value?.expandIcon)) return overrideObj.value.expandIcon || null;
|
|
111
111
|
if (typeof contextExpandIcon.value === "function" || isEmptyIcon(contextExpandIcon.value)) return contextExpandIcon.value || null;
|
|
112
112
|
const mergedIcon = expandIcon ?? overrideObj?.value.expandIcon ?? contextExpandIcon.value;
|
|
113
|
-
const icon = typeof mergedIcon === "function" ? mergedIcon?.(props
|
|
113
|
+
const icon = typeof mergedIcon === "function" ? mergedIcon?.(props) : mergedIcon;
|
|
114
114
|
const iconChild = filterEmpty(Array.isArray(icon) ? icon : [icon])[0];
|
|
115
115
|
if (isVNode(iconChild)) return createVNode(iconChild, { class: `${prefixCls.value}-submenu-expand-icon` });
|
|
116
116
|
};
|
|
@@ -66,7 +66,7 @@ const getVerticalStyle = (token) => {
|
|
|
66
66
|
"alignItems": "center",
|
|
67
67
|
"transition": [
|
|
68
68
|
`border-color ${motionDurationSlow}`,
|
|
69
|
-
`background ${motionDurationSlow}`,
|
|
69
|
+
`background-color ${motionDurationSlow}`,
|
|
70
70
|
`padding ${motionDurationFast} ${motionEaseOut}`
|
|
71
71
|
].join(","),
|
|
72
72
|
[`> ${componentCls}-title-content`]: {
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import { ArgsClassNamesType, ArgsStylesType, NoticeType, SemanticName } from "./interface.mjs";
|
|
5
|
-
import * as vue396 from "vue";
|
|
2
|
+
import { ArgsClassNamesType, ArgsStylesType, MessageSemanticClassNames, MessageSemanticStyles, NoticeType } from "./interface.mjs";
|
|
3
|
+
import * as vue399 from "vue";
|
|
6
4
|
|
|
7
5
|
//#region src/message/PurePanel.d.ts
|
|
8
6
|
interface PureContentProps {
|
|
9
7
|
prefixCls: string;
|
|
10
8
|
type?: NoticeType;
|
|
11
9
|
icon?: VueNode;
|
|
12
|
-
classNames?:
|
|
13
|
-
styles?:
|
|
10
|
+
classNames?: MessageSemanticClassNames;
|
|
11
|
+
styles?: MessageSemanticStyles;
|
|
14
12
|
}
|
|
15
13
|
interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children' | 'classNames' | 'styles'> {
|
|
16
14
|
content?: VueNode;
|
|
@@ -31,6 +29,6 @@ interface PurePanelProps extends Omit<PureContentProps, 'prefixCls' | 'children'
|
|
|
31
29
|
styles?: ArgsStylesType;
|
|
32
30
|
}
|
|
33
31
|
/** @private Internal Component. Do not use in your production. */
|
|
34
|
-
declare const PurePanel:
|
|
32
|
+
declare const PurePanel: vue399.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue399.PublicProps>;
|
|
35
33
|
//#endregion
|
|
36
34
|
export { PurePanel };
|
package/dist/message/index.mjs
CHANGED
|
@@ -83,8 +83,8 @@ const GlobalHolderWrapper = /* @__PURE__ */ defineComponent((props) => {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}, { immediate: true });
|
|
86
|
+
const global = globalConfig();
|
|
86
87
|
return () => {
|
|
87
|
-
const global = globalConfig();
|
|
88
88
|
const holderNode = createVNode(GlobalHolder, {
|
|
89
89
|
"ref": holderRef,
|
|
90
90
|
"sync": sync,
|
|
@@ -94,7 +94,7 @@ const GlobalHolderWrapper = /* @__PURE__ */ defineComponent((props) => {
|
|
|
94
94
|
return createVNode(config_provider_default, {
|
|
95
95
|
"prefixCls": global.getRootPrefixCls(),
|
|
96
96
|
"iconPrefixCls": global.getIconPrefixCls(),
|
|
97
|
-
"theme": global.
|
|
97
|
+
"theme": global.theme.value
|
|
98
98
|
}, _isSlot(dom) ? dom : { default: () => [dom] });
|
|
99
99
|
};
|
|
100
100
|
}, { props: { onReady: {
|
|
@@ -6,9 +6,18 @@ import { Key } from "@v-c/util/dist/type";
|
|
|
6
6
|
|
|
7
7
|
//#region src/message/interface.d.ts
|
|
8
8
|
type NoticeType = 'info' | 'success' | 'error' | 'warning' | 'loading';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
interface MessageSemanticClassNames {
|
|
10
|
+
root?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
content?: string;
|
|
13
|
+
}
|
|
14
|
+
interface MessageSemanticStyles {
|
|
15
|
+
root?: CSSProperties;
|
|
16
|
+
icon?: CSSProperties;
|
|
17
|
+
content?: CSSProperties;
|
|
18
|
+
}
|
|
19
|
+
type ArgsClassNamesType = SemanticClassNamesType<ArgsProps, MessageSemanticClassNames>;
|
|
20
|
+
type ArgsStylesType = SemanticStylesType<ArgsProps, MessageSemanticStyles>;
|
|
12
21
|
interface ConfigOptions {
|
|
13
22
|
top?: string | number;
|
|
14
23
|
duration?: number;
|
|
@@ -62,6 +71,11 @@ interface ArgsProps {
|
|
|
62
71
|
* @descEN keep the timer running or not on hover
|
|
63
72
|
*/
|
|
64
73
|
pauseOnHover?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @descCN 消息通知的应用上下文
|
|
76
|
+
* @descEN The application context of the message notification
|
|
77
|
+
*/
|
|
78
|
+
appContext?: any;
|
|
65
79
|
}
|
|
66
80
|
type JointContent = VueNode | ArgsProps;
|
|
67
81
|
interface MessageType extends PromiseLike<boolean> {
|
|
@@ -72,11 +86,13 @@ type TypeOpen = (content: JointContent,
|
|
|
72
86
|
* @descCN 消息通知持续显示的时间,也可以直接使用 onClose。
|
|
73
87
|
* @descEN You can also use onClose directly to determine how long the message notification continues to be displayed.
|
|
74
88
|
*/
|
|
89
|
+
|
|
75
90
|
duration?: number | VoidFunction,
|
|
76
91
|
/**
|
|
77
92
|
* @descCN 消息通知关闭时进行调用的回调函数
|
|
78
93
|
* @descEN The callback function called when the message notification is closed
|
|
79
94
|
*/
|
|
95
|
+
|
|
80
96
|
onClose?: VoidFunction) => MessageType;
|
|
81
97
|
interface MessageInstance {
|
|
82
98
|
info: TypeOpen;
|
|
@@ -88,4 +104,4 @@ interface MessageInstance {
|
|
|
88
104
|
destroy: (key?: Key) => void;
|
|
89
105
|
}
|
|
90
106
|
//#endregion
|
|
91
|
-
export { ArgsClassNamesType, ArgsProps, ArgsStylesType, ConfigOptions, MessageInstance, MessageType, NoticeType,
|
|
107
|
+
export { ArgsClassNamesType, ArgsProps, ArgsStylesType, ConfigOptions, MessageInstance, MessageSemanticClassNames, MessageSemanticStyles, MessageType, NoticeType, TypeOpen };
|
|
@@ -3,7 +3,6 @@ import { MaybeRef } from "@v-c/util/dist/type";
|
|
|
3
3
|
import * as vue_jsx_runtime15 from "vue/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/message/useMessage.d.ts
|
|
6
|
-
|
|
7
6
|
declare function useMessage(messageConfig?: ConfigOptions): readonly [MessageInstance, () => vue_jsx_runtime15.JSX.Element];
|
|
8
7
|
//#endregion
|
|
9
8
|
export { useMessage };
|
package/dist/modal/Modal.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ModalEmits, ModalProps, ModalSlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue289 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/modal/Modal.d.ts
|
|
6
|
-
declare const Modal:
|
|
6
|
+
declare const Modal: vue289.DefineSetupFnComponent<ModalProps, ModalEmits, SlotsType<ModalSlots>, ModalProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue289.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Modal };
|
package/dist/modal/confirm.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { devUseWarning, isDev } from "../_util/warning.mjs";
|
|
|
2
2
|
import { globalConfig } from "../config-provider/index.mjs";
|
|
3
3
|
import ConfirmDialog_default from "./ConfirmDialog.mjs";
|
|
4
4
|
import destroyFns_default from "./destroyFns.mjs";
|
|
5
|
-
import { createVNode, defineComponent, render } from "vue";
|
|
5
|
+
import { createVNode, defineComponent, render, watch } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/modal/confirm.tsx
|
|
8
8
|
let defaultRootPrefixCls = "";
|
|
@@ -362,15 +362,19 @@ function confirm(config) {
|
|
|
362
362
|
function renderWithProps(props) {
|
|
363
363
|
const rootPrefixCls = global.getPrefixCls(void 0, getRootPrefixCls());
|
|
364
364
|
const iconPrefixCls = global.getIconPrefixCls?.();
|
|
365
|
-
const theme = global.
|
|
365
|
+
const theme = global.theme.value;
|
|
366
366
|
const prefixCls = props.prefixCls ?? `${rootPrefixCls}-modal`;
|
|
367
|
-
|
|
367
|
+
const vnode = createVNode(ConfirmDialogWrapper, {
|
|
368
368
|
...props,
|
|
369
369
|
prefixCls,
|
|
370
370
|
rootPrefixCls,
|
|
371
371
|
iconPrefixCls,
|
|
372
372
|
theme
|
|
373
|
-
})
|
|
373
|
+
});
|
|
374
|
+
watch(() => global.theme.value, () => {
|
|
375
|
+
vnode.component?.update?.();
|
|
376
|
+
});
|
|
377
|
+
render(vnode, container);
|
|
374
378
|
}
|
|
375
379
|
function close(...args) {
|
|
376
380
|
currentConfig = {
|
|
@@ -12,9 +12,28 @@ import { CSSProperties } from "vue";
|
|
|
12
12
|
import { DialogProps } from "@v-c/dialog";
|
|
13
13
|
|
|
14
14
|
//#region src/modal/interface.d.ts
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
interface ModalSemanticClassNames {
|
|
16
|
+
root?: string;
|
|
17
|
+
header?: string;
|
|
18
|
+
body?: string;
|
|
19
|
+
footer?: string;
|
|
20
|
+
container?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
wrapper?: string;
|
|
23
|
+
mask?: string;
|
|
24
|
+
}
|
|
25
|
+
interface ModalSemanticStyles {
|
|
26
|
+
root?: CSSProperties;
|
|
27
|
+
header?: CSSProperties;
|
|
28
|
+
body?: CSSProperties;
|
|
29
|
+
footer?: CSSProperties;
|
|
30
|
+
container?: CSSProperties;
|
|
31
|
+
title?: CSSProperties;
|
|
32
|
+
wrapper?: CSSProperties;
|
|
33
|
+
mask?: CSSProperties;
|
|
34
|
+
}
|
|
35
|
+
type ModalClassNamesType = SemanticClassNamesType<ModalProps, ModalSemanticClassNames>;
|
|
36
|
+
type ModalStylesType = SemanticStylesType<ModalProps, ModalSemanticStyles>;
|
|
18
37
|
interface ModalCommonProps extends Omit<DialogProps, 'footer' | 'width' | 'onClose' | 'animation' | 'maskAnimation' | 'transitionName' | 'maskTransitionName' | 'mask' | 'classNames' | 'styles' | 'modalRender' | 'rootStyle' | 'style' | OmitFocusType> {
|
|
19
38
|
footer?: VueNode | ((params: {
|
|
20
39
|
originNode: VueNode;
|