@aplus-frontend/ui 0.0.1-beta.1 → 0.0.1-beta.3
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/es/index.mjs +124 -118
- package/es/src/ap-field/checkbox/helper.d.ts +6 -0
- package/es/src/ap-field/date/constant.d.ts +1 -0
- package/es/src/ap-field/index.d.ts +5 -0
- package/es/src/ap-field/interface.d.ts +29 -0
- package/es/src/ap-form/ap-form-item-group/helper.d.ts +8 -0
- package/es/src/ap-form/ap-form-item-group/helper.mjs +14 -0
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +45 -0
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +58 -0
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +4 -0
- package/es/src/ap-form/ap-form-item.vue.d.ts +47 -0
- package/es/src/ap-form/ap-form-item.vue.mjs +76 -0
- package/es/src/ap-form/ap-form-item.vue2.mjs +4 -0
- package/es/src/ap-form/ap-form.d.ts +1681 -0
- package/es/src/ap-form/ap-form.mjs +5 -0
- package/es/src/ap-form/constant.d.ts +3 -0
- package/es/src/ap-form/constant.mjs +17 -0
- package/es/src/ap-form/index.d.ts +2593 -0
- package/es/src/ap-form/index.mjs +10 -0
- package/es/src/ap-form/interface.d.ts +7 -0
- package/es/src/ap-form/style/ap-form-item-group.css +9 -0
- package/es/src/base-button/button.vue.d.ts +5 -5
- package/es/src/base-button/index.d.ts +53 -48
- package/es/src/base-button/modal-button.vue.d.ts +8 -6
- package/es/src/base-button/pop-confirm-button.vue.d.ts +4 -3
- package/es/src/basic/arrow.vue.d.ts +4 -3
- package/es/src/basic/help.vue.d.ts +6 -6
- package/es/src/basic/index.d.ts +196 -70
- package/es/src/basic/title.vue.d.ts +5 -4
- package/es/src/button/index.d.ts +20 -15
- package/es/src/config-provider/config-provider-props.d.ts +28 -16
- package/es/src/config-provider/config-provider-props.mjs +8 -4
- package/es/src/config-provider/config-provider.d.ts +92 -68
- package/es/src/config-provider/constants.d.ts +3 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +47 -32
- package/es/src/config-provider/hooks/use-namespace.d.ts +3 -3
- package/es/src/config-provider/index.d.ts +532 -156
- package/es/src/container/collapse/header.vue.d.ts +3 -3
- package/es/src/container/collapse/index.vue.d.ts +4 -4
- package/es/src/container/index.d.ts +119 -38
- package/es/src/container/scroll-container.vue.d.ts +5 -4
- package/es/src/count-down/button.vue.d.ts +5 -4
- package/es/src/count-down/index.d.ts +88 -41
- package/es/src/count-down/input.vue.d.ts +5 -4
- package/es/src/cropper/cropper-avatar.vue.d.ts +6 -5
- package/es/src/cropper/cropper-image.vue.d.ts +7 -7
- package/es/src/cropper/cropper-modal.vue.d.ts +4 -4
- package/es/src/cropper/index.d.ts +308 -93
- package/es/src/description/description.vue.d.ts +6 -6
- package/es/src/description/index.d.ts +169 -48
- package/es/src/dropdown/dropdown.vue.d.ts +6 -5
- package/es/src/dropdown/index.d.ts +35 -28
- package/es/src/hooks/index.d.ts +1 -0
- package/es/src/hooks/useControllableValue.d.ts +13 -0
- package/es/src/hooks/useControllableValue.mjs +24 -0
- package/es/src/hooks/useMessage.d.ts +9 -7
- package/es/src/icon/icon.vue.d.ts +5 -4
- package/es/src/icon/index.d.ts +175 -52
- package/es/src/icon/svg-icon.vue.d.ts +5 -4
- package/es/src/icon-picker/icon-picker.vue.d.ts +9 -8
- package/es/src/icon-picker/index.d.ts +160 -51
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +79 -75
- package/es/src/modal/basic.vue.d.ts +70 -64
- package/es/src/modal/components/modal-close.vue.d.ts +6 -5
- package/es/src/modal/components/modal-footer.vue.d.ts +69 -64
- package/es/src/modal/components/modal-header.vue.d.ts +4 -3
- package/es/src/modal/components/modal-wrapper.vue.d.ts +5 -4
- package/es/src/modal/components/modal.d.ts +69 -63
- package/es/src/modal/hooks/use-moda-full-screen.d.ts +2 -2
- package/es/src/modal/index.d.ts +144 -134
- package/es/src/modal/props.d.ts +19 -16
- package/es/src/pro-form/component-map.d.ts +2 -2
- package/es/src/pro-form/components/api-cascader.vue.d.ts +6 -5
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +7 -6
- package/es/src/pro-form/components/api-select.vue.d.ts +8 -7
- package/es/src/pro-form/components/api-transfer.vue.d.ts +6 -5
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +6 -5
- package/es/src/pro-form/components/api-tree.vue.d.ts +7 -6
- package/es/src/pro-form/components/form-action.vue.d.ts +6 -5
- package/es/src/pro-form/components/form-item.vue.d.ts +3 -3
- package/es/src/pro-form/components/radio-button-group.vue.d.ts +5 -4
- package/es/src/pro-form/hooks/use-advanced.d.ts +2 -2
- package/es/src/pro-form/hooks/use-break-point.d.ts +4 -3
- package/es/src/pro-form/hooks/use-label-width.d.ts +51 -50
- package/es/src/pro-form/pro-form.vue.d.ts +16 -13
- package/es/src/pro-table/component-map.d.ts +2 -2
- package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +3 -2
- package/es/src/pro-table/components/editable/cell-component.d.ts +2 -1
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +19 -18
- package/es/src/pro-table/components/editable/index.d.ts +2 -2
- package/es/src/pro-table/components/header-cell.vue.d.ts +3 -3
- package/es/src/pro-table/components/settings/column-setting.vue.d.ts +3 -2
- package/es/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -1
- package/es/src/pro-table/components/settings/index.vue.d.ts +4 -4
- package/es/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -1
- package/es/src/pro-table/components/settings/size-setting.vue.d.ts +2 -1
- package/es/src/pro-table/components/table-action.vue.d.ts +3 -3
- package/es/src/pro-table/components/table-footer.vue.d.ts +7 -5
- package/es/src/pro-table/components/table-header.vue.d.ts +4 -4
- package/es/src/pro-table/components/table-image.vue.d.ts +5 -4
- package/es/src/pro-table/components/table-selection-bar.vue.d.ts +5 -4
- package/es/src/pro-table/components/table-title.vue.d.ts +3 -3
- package/es/src/pro-table/const.d.ts +3 -0
- package/es/src/pro-table/const.mjs +10 -4
- package/es/src/pro-table/hooks/use-data-source.d.ts +2 -1
- package/es/src/pro-table/interface.d.ts +4 -0
- package/es/src/pro-table/pro-table.vue.d.ts +45 -36
- package/es/src/pro-table/pro-table.vue.mjs +221 -211
- package/es/src/pro-table/style/pro-table.css +10 -5
- package/es/src/prompt/dialog.vue.d.ts +4 -3
- package/es/src/prompt/index.d.ts +2 -2
- package/es/src/scroll-bar/bar-item.d.ts +4 -3
- package/es/src/scroll-bar/index.d.ts +52 -53
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +8 -9
- package/es/src/scroll-bar/scroll-bar.vue.mjs +44 -44
- package/es/src/strength-meter/index.d.ts +26 -21
- package/es/src/strength-meter/strength-meter.vue.d.ts +6 -5
- package/es/src/theme/ap-form/ap-form-item-group.css +9 -0
- package/es/src/theme/pro-table/pro-table.css +10 -5
- package/es/src/transition/collapse-transition.vue.d.ts +2 -1
- package/es/src/transition/create-transition.d.ts +5 -5
- package/es/src/transition/index.d.ts +97 -96
- package/es/src/utils/slot.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/src/ap-field/checkbox/helper.d.ts +6 -0
- package/lib/src/ap-field/date/constant.d.ts +1 -0
- package/lib/src/ap-field/index.d.ts +5 -0
- package/lib/src/ap-field/interface.d.ts +29 -0
- package/lib/src/ap-form/ap-form-item-group/helper.d.ts +8 -0
- package/lib/src/ap-form/ap-form-item-group/helper.js +1 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +45 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -0
- package/lib/src/ap-form/ap-form-item.vue.d.ts +47 -0
- package/lib/src/ap-form/ap-form-item.vue.js +1 -0
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -0
- package/lib/src/ap-form/ap-form.d.ts +1681 -0
- package/lib/src/ap-form/ap-form.js +1 -0
- package/lib/src/ap-form/constant.d.ts +3 -0
- package/lib/src/ap-form/constant.js +1 -0
- package/lib/src/ap-form/index.d.ts +2593 -0
- package/lib/src/ap-form/index.js +1 -0
- package/lib/src/ap-form/interface.d.ts +7 -0
- package/lib/src/ap-form/style/ap-form-item-group.css +9 -0
- package/lib/src/base-button/button.vue.d.ts +5 -5
- package/lib/src/base-button/index.d.ts +53 -48
- package/lib/src/base-button/modal-button.vue.d.ts +8 -6
- package/lib/src/base-button/pop-confirm-button.vue.d.ts +4 -3
- package/lib/src/basic/arrow.vue.d.ts +4 -3
- package/lib/src/basic/help.vue.d.ts +6 -6
- package/lib/src/basic/index.d.ts +196 -70
- package/lib/src/basic/title.vue.d.ts +5 -4
- package/lib/src/button/index.d.ts +20 -15
- package/lib/src/config-provider/config-provider-props.d.ts +28 -16
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +92 -68
- package/lib/src/config-provider/constants.d.ts +3 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +47 -32
- package/lib/src/config-provider/hooks/use-namespace.d.ts +3 -3
- package/lib/src/config-provider/index.d.ts +532 -156
- package/lib/src/container/collapse/header.vue.d.ts +3 -3
- package/lib/src/container/collapse/index.vue.d.ts +4 -4
- package/lib/src/container/index.d.ts +119 -38
- package/lib/src/container/scroll-container.vue.d.ts +5 -4
- package/lib/src/count-down/button.vue.d.ts +5 -4
- package/lib/src/count-down/index.d.ts +88 -41
- package/lib/src/count-down/input.vue.d.ts +5 -4
- package/lib/src/cropper/cropper-avatar.vue.d.ts +6 -5
- package/lib/src/cropper/cropper-image.vue.d.ts +7 -7
- package/lib/src/cropper/cropper-modal.vue.d.ts +4 -4
- package/lib/src/cropper/index.d.ts +308 -93
- package/lib/src/description/description.vue.d.ts +6 -6
- package/lib/src/description/index.d.ts +169 -48
- package/lib/src/dropdown/dropdown.vue.d.ts +6 -5
- package/lib/src/dropdown/index.d.ts +35 -28
- package/lib/src/hooks/index.d.ts +1 -0
- package/lib/src/hooks/useControllableValue.d.ts +13 -0
- package/lib/src/hooks/useControllableValue.js +1 -0
- package/lib/src/hooks/useMessage.d.ts +9 -7
- package/lib/src/icon/icon.vue.d.ts +5 -4
- package/lib/src/icon/index.d.ts +175 -52
- package/lib/src/icon/svg-icon.vue.d.ts +5 -4
- package/lib/src/icon-picker/icon-picker.vue.d.ts +9 -8
- package/lib/src/icon-picker/index.d.ts +160 -51
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +70 -64
- package/lib/src/modal/components/modal-close.vue.d.ts +6 -5
- package/lib/src/modal/components/modal-footer.vue.d.ts +69 -64
- package/lib/src/modal/components/modal-header.vue.d.ts +4 -3
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +5 -4
- package/lib/src/modal/components/modal.d.ts +69 -63
- package/lib/src/modal/hooks/use-moda-full-screen.d.ts +2 -2
- package/lib/src/modal/index.d.ts +144 -134
- package/lib/src/modal/props.d.ts +19 -16
- package/lib/src/pro-form/component-map.d.ts +2 -2
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +6 -5
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +7 -6
- package/lib/src/pro-form/components/api-select.vue.d.ts +8 -7
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +6 -5
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +6 -5
- package/lib/src/pro-form/components/api-tree.vue.d.ts +7 -6
- package/lib/src/pro-form/components/form-action.vue.d.ts +6 -5
- package/lib/src/pro-form/components/form-item.vue.d.ts +3 -3
- package/lib/src/pro-form/components/radio-button-group.vue.d.ts +5 -4
- package/lib/src/pro-form/hooks/use-advanced.d.ts +2 -2
- package/lib/src/pro-form/hooks/use-break-point.d.ts +4 -3
- package/lib/src/pro-form/hooks/use-label-width.d.ts +51 -50
- package/lib/src/pro-form/pro-form.vue.d.ts +16 -13
- package/lib/src/pro-table/component-map.d.ts +2 -2
- package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +3 -2
- package/lib/src/pro-table/components/editable/cell-component.d.ts +2 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +19 -18
- package/lib/src/pro-table/components/editable/index.d.ts +2 -2
- package/lib/src/pro-table/components/header-cell.vue.d.ts +3 -3
- package/lib/src/pro-table/components/settings/column-setting.vue.d.ts +3 -2
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -1
- package/lib/src/pro-table/components/settings/index.vue.d.ts +4 -4
- package/lib/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -1
- package/lib/src/pro-table/components/settings/size-setting.vue.d.ts +2 -1
- package/lib/src/pro-table/components/table-action.vue.d.ts +3 -3
- package/lib/src/pro-table/components/table-footer.vue.d.ts +7 -5
- package/lib/src/pro-table/components/table-header.vue.d.ts +4 -4
- package/lib/src/pro-table/components/table-image.vue.d.ts +5 -4
- package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +5 -4
- package/lib/src/pro-table/components/table-title.vue.d.ts +3 -3
- package/lib/src/pro-table/const.d.ts +3 -0
- package/lib/src/pro-table/const.js +1 -1
- package/lib/src/pro-table/hooks/use-data-source.d.ts +2 -1
- package/lib/src/pro-table/interface.d.ts +4 -0
- package/lib/src/pro-table/pro-table.vue.d.ts +45 -36
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/style/pro-table.css +10 -5
- package/lib/src/prompt/dialog.vue.d.ts +4 -3
- package/lib/src/prompt/index.d.ts +2 -2
- package/lib/src/scroll-bar/bar-item.d.ts +4 -3
- package/lib/src/scroll-bar/index.d.ts +52 -53
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +8 -9
- package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
- package/lib/src/strength-meter/index.d.ts +26 -21
- package/lib/src/strength-meter/strength-meter.vue.d.ts +6 -5
- package/lib/src/theme/ap-form/ap-form-item-group.css +9 -0
- package/lib/src/theme/pro-table/pro-table.css +10 -5
- package/lib/src/transition/collapse-transition.vue.d.ts +2 -1
- package/lib/src/transition/create-transition.d.ts +5 -5
- package/lib/src/transition/index.d.ts +97 -96
- package/lib/src/utils/slot.d.ts +2 -2
- package/package.json +2 -2
- package/es/src/constants/component-setting.d.ts +0 -74
- package/es/src/constants/component-setting.mjs +0 -90
- package/lib/src/constants/component-setting.d.ts +0 -74
- package/lib/src/constants/component-setting.js +0 -1
|
@@ -1,46 +1,163 @@
|
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
|
+
import { CollapseContainerOptions } from '..';
|
|
3
|
+
import { DescItem } from './interface';
|
|
1
4
|
export * from './interface';
|
|
2
5
|
export { useDescription } from './use-description';
|
|
3
|
-
export declare const Description:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
title: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
size: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
validator: (v: string) => boolean;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
bordered: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
column: {
|
|
22
|
-
type: (ObjectConstructor | NumberConstructor)[];
|
|
23
|
-
default: () => {
|
|
24
|
-
xxl: number;
|
|
25
|
-
xl: number;
|
|
26
|
-
lg: number;
|
|
27
|
-
md: number;
|
|
28
|
-
sm: number;
|
|
29
|
-
xs: number;
|
|
6
|
+
export declare const Description: {
|
|
7
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
8
|
+
useCollapse: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
30
11
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
12
|
+
title: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
validator: (v: string) => boolean;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
bordered: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
column: {
|
|
26
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
27
|
+
default: () => {
|
|
28
|
+
xxl: number;
|
|
29
|
+
xl: number;
|
|
30
|
+
lg: number;
|
|
31
|
+
md: number;
|
|
32
|
+
sm: number;
|
|
33
|
+
xs: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
collapseOptions: {
|
|
37
|
+
type: PropType<CollapseContainerOptions>;
|
|
38
|
+
default: null;
|
|
39
|
+
};
|
|
40
|
+
schema: {
|
|
41
|
+
type: PropType< DescItem[]>;
|
|
42
|
+
default: () => never[];
|
|
43
|
+
};
|
|
44
|
+
data: {
|
|
45
|
+
type: ObjectConstructor;
|
|
46
|
+
};
|
|
47
|
+
}>> & {
|
|
48
|
+
onRegister?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "register"[], VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
50
|
+
useCollapse: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
title: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
size: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
validator: (v: string) => boolean;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
bordered: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
column: {
|
|
68
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
69
|
+
default: () => {
|
|
70
|
+
xxl: number;
|
|
71
|
+
xl: number;
|
|
72
|
+
lg: number;
|
|
73
|
+
md: number;
|
|
74
|
+
sm: number;
|
|
75
|
+
xs: number;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
collapseOptions: {
|
|
79
|
+
type: PropType<CollapseContainerOptions>;
|
|
80
|
+
default: null;
|
|
81
|
+
};
|
|
82
|
+
schema: {
|
|
83
|
+
type: PropType< DescItem[]>;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
data: {
|
|
87
|
+
type: ObjectConstructor;
|
|
88
|
+
};
|
|
89
|
+
}>> & {
|
|
90
|
+
onRegister?: ((...args: any[]) => any) | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
size: string;
|
|
93
|
+
bordered: boolean;
|
|
94
|
+
title: string;
|
|
95
|
+
column: number | Record<string, any>;
|
|
96
|
+
schema: DescItem[];
|
|
97
|
+
useCollapse: boolean;
|
|
98
|
+
collapseOptions: CollapseContainerOptions;
|
|
99
|
+
}, true, {}, {}, {
|
|
100
|
+
P: {};
|
|
101
|
+
B: {};
|
|
102
|
+
D: {};
|
|
103
|
+
C: {};
|
|
104
|
+
M: {};
|
|
105
|
+
Defaults: {};
|
|
106
|
+
}, Readonly< ExtractPropTypes<{
|
|
107
|
+
useCollapse: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
title: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
size: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
validator: (v: string) => boolean;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
bordered: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
column: {
|
|
125
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
126
|
+
default: () => {
|
|
127
|
+
xxl: number;
|
|
128
|
+
xl: number;
|
|
129
|
+
lg: number;
|
|
130
|
+
md: number;
|
|
131
|
+
sm: number;
|
|
132
|
+
xs: number;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
collapseOptions: {
|
|
136
|
+
type: PropType<CollapseContainerOptions>;
|
|
137
|
+
default: null;
|
|
138
|
+
};
|
|
139
|
+
schema: {
|
|
140
|
+
type: PropType< DescItem[]>;
|
|
141
|
+
default: () => never[];
|
|
142
|
+
};
|
|
143
|
+
data: {
|
|
144
|
+
type: ObjectConstructor;
|
|
145
|
+
};
|
|
146
|
+
}>> & {
|
|
147
|
+
onRegister?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
149
|
+
size: string;
|
|
150
|
+
bordered: boolean;
|
|
151
|
+
title: string;
|
|
152
|
+
column: number | Record<string, any>;
|
|
153
|
+
schema: DescItem[];
|
|
154
|
+
useCollapse: boolean;
|
|
155
|
+
collapseOptions: CollapseContainerOptions;
|
|
156
|
+
}>;
|
|
157
|
+
__isFragment?: undefined;
|
|
158
|
+
__isTeleport?: undefined;
|
|
159
|
+
__isSuspense?: undefined;
|
|
160
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
44
161
|
useCollapse: {
|
|
45
162
|
type: BooleanConstructor;
|
|
46
163
|
default: boolean;
|
|
@@ -59,7 +176,7 @@ export declare const Description: import('@aplus-frontend/utils/src/vue/install'
|
|
|
59
176
|
default: boolean;
|
|
60
177
|
};
|
|
61
178
|
column: {
|
|
62
|
-
type: (
|
|
179
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
63
180
|
default: () => {
|
|
64
181
|
xxl: number;
|
|
65
182
|
xl: number;
|
|
@@ -70,11 +187,11 @@ export declare const Description: import('@aplus-frontend/utils/src/vue/install'
|
|
|
70
187
|
};
|
|
71
188
|
};
|
|
72
189
|
collapseOptions: {
|
|
73
|
-
type:
|
|
190
|
+
type: PropType<CollapseContainerOptions>;
|
|
74
191
|
default: null;
|
|
75
192
|
};
|
|
76
193
|
schema: {
|
|
77
|
-
type:
|
|
194
|
+
type: PropType< DescItem[]>;
|
|
78
195
|
default: () => never[];
|
|
79
196
|
};
|
|
80
197
|
data: {
|
|
@@ -82,12 +199,16 @@ export declare const Description: import('@aplus-frontend/utils/src/vue/install'
|
|
|
82
199
|
};
|
|
83
200
|
}>> & {
|
|
84
201
|
onRegister?: ((...args: any[]) => any) | undefined;
|
|
85
|
-
}, {
|
|
202
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "register"[], "register", {
|
|
86
203
|
size: string;
|
|
87
|
-
title: string;
|
|
88
204
|
bordered: boolean;
|
|
205
|
+
title: string;
|
|
89
206
|
column: number | Record<string, any>;
|
|
90
|
-
schema:
|
|
207
|
+
schema: DescItem[];
|
|
91
208
|
useCollapse: boolean;
|
|
92
|
-
collapseOptions:
|
|
93
|
-
}, {}
|
|
209
|
+
collapseOptions: CollapseContainerOptions;
|
|
210
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
|
|
211
|
+
$props: {
|
|
212
|
+
onClick?: (() => void) | undefined;
|
|
213
|
+
};
|
|
214
|
+
});
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { DropdownProps, DropMenu } from './interface';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
|
|
4
|
-
declare const _default: __VLS_WithTemplateSlots<
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
|
|
5
6
|
trigger: () => string[];
|
|
6
7
|
dropMenuList: () => never[];
|
|
7
8
|
selectedKeys: () => never[];
|
|
8
|
-
}>, {}, unknown, {}, {},
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
10
|
menuEvent: (...args: any[]) => void;
|
|
10
|
-
}, string,
|
|
11
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
|
|
11
12
|
trigger: () => string[];
|
|
12
13
|
dropMenuList: () => never[];
|
|
13
14
|
selectedKeys: () => never[];
|
|
@@ -24,9 +25,9 @@ export default _default;
|
|
|
24
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
26
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
27
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
-
type:
|
|
28
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
29
|
} : {
|
|
29
|
-
type:
|
|
30
|
+
type: PropType<T[K]>;
|
|
30
31
|
required: true;
|
|
31
32
|
};
|
|
32
33
|
};
|
|
@@ -1,39 +1,42 @@
|
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
|
+
import { DropMenu } from './interface';
|
|
3
|
+
import { Recordable } from '../type';
|
|
1
4
|
export * from './interface';
|
|
2
|
-
export declare const Dropdown:
|
|
3
|
-
new (...args: any[]):
|
|
5
|
+
export declare const Dropdown: {
|
|
6
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
4
7
|
trigger: {
|
|
5
|
-
type:
|
|
8
|
+
type: PropType<("click" | "contextmenu" | "hover")[]>;
|
|
6
9
|
default: () => string[];
|
|
7
10
|
};
|
|
8
11
|
selectedKeys: {
|
|
9
|
-
type:
|
|
12
|
+
type: PropType<string[]>;
|
|
10
13
|
default: () => never[];
|
|
11
14
|
};
|
|
12
15
|
popconfirm: {
|
|
13
|
-
type:
|
|
16
|
+
type: PropType<boolean>;
|
|
14
17
|
};
|
|
15
18
|
dropMenuList: {
|
|
16
|
-
type:
|
|
19
|
+
type: PropType<( DropMenu & Recordable<any>)[]>;
|
|
17
20
|
default: () => never[];
|
|
18
21
|
};
|
|
19
22
|
}>> & {
|
|
20
23
|
onMenuEvent?: ((...args: any[]) => any) | undefined;
|
|
21
|
-
}, {}, unknown, {}, {},
|
|
24
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
22
25
|
menuEvent: (...args: any[]) => void;
|
|
23
|
-
},
|
|
26
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
24
27
|
trigger: {
|
|
25
|
-
type:
|
|
28
|
+
type: PropType<("click" | "contextmenu" | "hover")[]>;
|
|
26
29
|
default: () => string[];
|
|
27
30
|
};
|
|
28
31
|
selectedKeys: {
|
|
29
|
-
type:
|
|
32
|
+
type: PropType<string[]>;
|
|
30
33
|
default: () => never[];
|
|
31
34
|
};
|
|
32
35
|
popconfirm: {
|
|
33
|
-
type:
|
|
36
|
+
type: PropType<boolean>;
|
|
34
37
|
};
|
|
35
38
|
dropMenuList: {
|
|
36
|
-
type:
|
|
39
|
+
type: PropType<( DropMenu & Recordable<any>)[]>;
|
|
37
40
|
default: () => never[];
|
|
38
41
|
};
|
|
39
42
|
}>> & {
|
|
@@ -41,7 +44,7 @@ export declare const Dropdown: import('@aplus-frontend/utils/src/vue/install').S
|
|
|
41
44
|
}, {
|
|
42
45
|
trigger: ("click" | "contextmenu" | "hover")[];
|
|
43
46
|
selectedKeys: string[];
|
|
44
|
-
dropMenuList: (
|
|
47
|
+
dropMenuList: ( DropMenu & Recordable<any>)[];
|
|
45
48
|
}, true, {}, {}, {
|
|
46
49
|
P: {};
|
|
47
50
|
B: {};
|
|
@@ -49,20 +52,20 @@ export declare const Dropdown: import('@aplus-frontend/utils/src/vue/install').S
|
|
|
49
52
|
C: {};
|
|
50
53
|
M: {};
|
|
51
54
|
Defaults: {};
|
|
52
|
-
}, Readonly<
|
|
55
|
+
}, Readonly< ExtractPropTypes<{
|
|
53
56
|
trigger: {
|
|
54
|
-
type:
|
|
57
|
+
type: PropType<("click" | "contextmenu" | "hover")[]>;
|
|
55
58
|
default: () => string[];
|
|
56
59
|
};
|
|
57
60
|
selectedKeys: {
|
|
58
|
-
type:
|
|
61
|
+
type: PropType<string[]>;
|
|
59
62
|
default: () => never[];
|
|
60
63
|
};
|
|
61
64
|
popconfirm: {
|
|
62
|
-
type:
|
|
65
|
+
type: PropType<boolean>;
|
|
63
66
|
};
|
|
64
67
|
dropMenuList: {
|
|
65
|
-
type:
|
|
68
|
+
type: PropType<( DropMenu & Recordable<any>)[]>;
|
|
66
69
|
default: () => never[];
|
|
67
70
|
};
|
|
68
71
|
}>> & {
|
|
@@ -70,37 +73,41 @@ export declare const Dropdown: import('@aplus-frontend/utils/src/vue/install').S
|
|
|
70
73
|
}, {}, {}, {}, {}, {
|
|
71
74
|
trigger: ("click" | "contextmenu" | "hover")[];
|
|
72
75
|
selectedKeys: string[];
|
|
73
|
-
dropMenuList: (
|
|
76
|
+
dropMenuList: ( DropMenu & Recordable<any>)[];
|
|
74
77
|
}>;
|
|
75
78
|
__isFragment?: undefined;
|
|
76
79
|
__isTeleport?: undefined;
|
|
77
80
|
__isSuspense?: undefined;
|
|
78
|
-
} &
|
|
81
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
79
82
|
trigger: {
|
|
80
|
-
type:
|
|
83
|
+
type: PropType<("click" | "contextmenu" | "hover")[]>;
|
|
81
84
|
default: () => string[];
|
|
82
85
|
};
|
|
83
86
|
selectedKeys: {
|
|
84
|
-
type:
|
|
87
|
+
type: PropType<string[]>;
|
|
85
88
|
default: () => never[];
|
|
86
89
|
};
|
|
87
90
|
popconfirm: {
|
|
88
|
-
type:
|
|
91
|
+
type: PropType<boolean>;
|
|
89
92
|
};
|
|
90
93
|
dropMenuList: {
|
|
91
|
-
type:
|
|
94
|
+
type: PropType<( DropMenu & Recordable<any>)[]>;
|
|
92
95
|
default: () => never[];
|
|
93
96
|
};
|
|
94
97
|
}>> & {
|
|
95
98
|
onMenuEvent?: ((...args: any[]) => any) | undefined;
|
|
96
|
-
}, {}, unknown, {}, {},
|
|
99
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
97
100
|
menuEvent: (...args: any[]) => void;
|
|
98
101
|
}, string, {
|
|
99
102
|
trigger: ("click" | "contextmenu" | "hover")[];
|
|
100
103
|
selectedKeys: string[];
|
|
101
|
-
dropMenuList: (
|
|
102
|
-
}, {}, string, {}> &
|
|
104
|
+
dropMenuList: ( DropMenu & Recordable<any>)[];
|
|
105
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
103
106
|
$slots: {
|
|
104
107
|
default?(_: {}): any;
|
|
105
108
|
};
|
|
106
|
-
})
|
|
109
|
+
}) & Plugin<any[]> & (new (...args: any[]) => {
|
|
110
|
+
$props: {
|
|
111
|
+
onClick?: (() => void) | undefined;
|
|
112
|
+
};
|
|
113
|
+
});
|
package/es/src/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Recordable } from '../type';
|
|
2
|
+
import { Ref, UnwrapRef } from 'vue';
|
|
3
|
+
|
|
4
|
+
type Options = {
|
|
5
|
+
defaultValue?: any;
|
|
6
|
+
defaultValuePropName?: string;
|
|
7
|
+
valuePropName?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function useControllableValue<ValueType = any>(props: Recordable, emit: (event: any, ...args: any[]) => void, options?: Options): {
|
|
10
|
+
value: Ref<UnwrapRef<ValueType>>;
|
|
11
|
+
updateValue: (newValue: any) => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ref as v, watch as c } from "vue";
|
|
2
|
+
function V(u, f, e) {
|
|
3
|
+
const d = (e == null ? void 0 : e.defaultValuePropName) || "defaultValue", l = (e == null ? void 0 : e.valuePropName) || "value", r = v(
|
|
4
|
+
u[d] || (e == null ? void 0 : e.defaultValue)
|
|
5
|
+
);
|
|
6
|
+
function m(a) {
|
|
7
|
+
u[l] === void 0 && (r.value = a), f(`update:${l}`, a);
|
|
8
|
+
}
|
|
9
|
+
return c(
|
|
10
|
+
() => u[l],
|
|
11
|
+
(a) => {
|
|
12
|
+
u[l] !== void 0 && (console.log("set inner to ", a), r.value = a);
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
immediate: !0
|
|
16
|
+
}
|
|
17
|
+
), {
|
|
18
|
+
value: r,
|
|
19
|
+
updateValue: m
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
V as useControllableValue
|
|
24
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
|
2
2
|
import { NotificationArgsProps, ConfigProps } from 'ant-design-vue/lib/notification';
|
|
3
|
+
import { ModalFuncProps } from 'ant-design-vue';
|
|
4
|
+
import { MessageApi } from 'ant-design-vue/es/message';
|
|
3
5
|
|
|
4
6
|
export interface NotifyApi {
|
|
5
7
|
info(config: NotificationArgsProps): void;
|
|
@@ -23,33 +25,33 @@ export type ModalOptionsPartial = Partial<ModalOptionsEx> & Pick<ModalOptionsEx,
|
|
|
23
25
|
*/
|
|
24
26
|
declare function createConfirm(options: ModalOptionsEx): {
|
|
25
27
|
destroy: () => void;
|
|
26
|
-
update: (newConfig:
|
|
28
|
+
update: (newConfig: ModalFuncProps) => void;
|
|
27
29
|
};
|
|
28
30
|
declare function createSuccessModal(options: ModalOptionsPartial): {
|
|
29
31
|
destroy: () => void;
|
|
30
|
-
update: (newConfig:
|
|
32
|
+
update: (newConfig: ModalFuncProps) => void;
|
|
31
33
|
};
|
|
32
34
|
declare function createErrorModal(options: ModalOptionsPartial): {
|
|
33
35
|
destroy: () => void;
|
|
34
|
-
update: (newConfig:
|
|
36
|
+
update: (newConfig: ModalFuncProps) => void;
|
|
35
37
|
};
|
|
36
38
|
declare function createInfoModal(options: ModalOptionsPartial): {
|
|
37
39
|
destroy: () => void;
|
|
38
|
-
update: (newConfig:
|
|
40
|
+
update: (newConfig: ModalFuncProps) => void;
|
|
39
41
|
};
|
|
40
42
|
declare function createWarningModal(options: ModalOptionsPartial): {
|
|
41
43
|
destroy: () => void;
|
|
42
|
-
update: (newConfig:
|
|
44
|
+
update: (newConfig: ModalFuncProps) => void;
|
|
43
45
|
};
|
|
44
46
|
declare function createModal(options: ModalOptionsPartial, type: IconType): {
|
|
45
47
|
destroy: () => void;
|
|
46
|
-
update: (newConfig:
|
|
48
|
+
update: (newConfig: ModalFuncProps) => void;
|
|
47
49
|
};
|
|
48
50
|
/**
|
|
49
51
|
* @description: message
|
|
50
52
|
*/
|
|
51
53
|
export declare function useMessage(): {
|
|
52
|
-
createMessage:
|
|
54
|
+
createMessage: MessageApi;
|
|
53
55
|
notification: NotifyApi;
|
|
54
56
|
createConfirm: typeof createConfirm;
|
|
55
57
|
createSuccessModal: typeof createSuccessModal;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IconProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IconProps>, {
|
|
4
5
|
size: number;
|
|
5
6
|
prefix: string;
|
|
6
7
|
spin: boolean;
|
|
7
|
-
}>, {}, unknown, {}, {},
|
|
8
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IconProps>, {
|
|
8
9
|
size: number;
|
|
9
10
|
prefix: string;
|
|
10
11
|
spin: boolean;
|
|
@@ -17,9 +18,9 @@ export default _default;
|
|
|
17
18
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
19
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
20
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
-
type:
|
|
21
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
22
|
} : {
|
|
22
|
-
type:
|
|
23
|
+
type: PropType<T[K]>;
|
|
23
24
|
required: true;
|
|
24
25
|
};
|
|
25
26
|
};
|