@sdata/web-vue 2.1.0 → 2.1.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/es/_components/icon-hover.js +8 -5
- package/es/_components/icon-hover.vue.d.ts +4 -2
- package/es/_components/icon-hover.vue_vue_type_script_lang.js +1 -0
- package/es/_components/picker/input-range.vue.d.ts +4 -2
- package/es/_components/picker/input.vue.d.ts +4 -2
- package/es/_hooks/use-input.d.ts +1 -1
- package/es/_hooks/use-pagination.d.ts +7 -4
- package/es/_hooks/use-popup-overflow-hidden.js +2 -1
- package/es/_utils/debounce.d.ts +1 -1
- package/es/_utils/get-value-by-path.d.ts +2 -2
- package/es/_utils/is-equal.js +1 -1
- package/es/_utils/is.d.ts +3 -3
- package/es/_utils/is.js +1 -1
- package/es/_utils/omit.d.ts +1 -1
- package/es/_utils/pick.d.ts +1 -1
- package/es/_utils/pick.js +1 -2
- package/es/_utils/throttle-by-raf.d.ts +2 -2
- package/es/_utils/types.d.ts +1 -1
- package/es/affix/affix.vue.d.ts +1 -1
- package/es/affix/index.d.ts +3 -3
- package/es/alert/alert.vue.d.ts +4 -2
- package/es/alert/index.d.ts +8 -4
- package/es/auto-complete/auto-complete.js +2 -3
- package/es/calendar/components/cell.vue.d.ts +2 -2
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/calendar/context.d.ts +2 -1
- package/es/cascader/base-cascader-panel.js +4 -5
- package/es/cascader/cascader-option.js +6 -8
- package/es/checkbox/checkbox.d.ts +4 -2
- package/es/checkbox/index.d.ts +8 -4
- package/es/collapse/collapse-item.d.ts +4 -2
- package/es/collapse/index.d.ts +4 -2
- package/es/date-picker/context.d.ts +1 -1
- package/es/date-picker/hooks/use-inject-datepicker-transform.d.ts +1 -1
- package/es/date-picker/hooks/use-provide-datepicker-transform.d.ts +1 -1
- package/es/date-picker/hooks/use-range-header-value.d.ts +3 -3
- package/es/date-picker/index.d.ts +15 -13
- package/es/date-picker/interface.d.ts +1 -1
- package/es/date-picker/panels/date/index.vue.d.ts +2 -2
- package/es/date-picker/panels/footer.vue.d.ts +1 -1
- package/es/date-picker/panels/month/index.vue.d.ts +1 -1
- package/es/date-picker/panels/shortcuts.vue.d.ts +1 -1
- package/es/date-picker/panels/week/index.vue.d.ts +2 -2
- package/es/date-picker/picker-panel.vue.d.ts +7 -7
- package/es/date-picker/picker.vue.d.ts +11 -9
- package/es/date-picker/range-picker-panel.vue.d.ts +9 -9
- package/es/date-picker/range-picker.vue.d.ts +15 -13
- package/es/drawer/drawer.vue.d.ts +5 -3
- package/es/drawer/index.d.ts +11 -7
- package/es/dropdown/dropdown-button.vue.d.ts +2 -2
- package/es/dropdown/dropdown.vue.d.ts +2 -2
- package/es/dropdown/index.d.ts +7 -7
- package/es/dropdown/interface.d.ts +2 -2
- package/es/form/context.d.ts +7 -6
- package/es/form/form-item.vue.d.ts +6 -10
- package/es/form/index.d.ts +6 -10
- package/es/form/interface.d.ts +2 -2
- package/es/grid/grid-col.vue.d.ts +3 -7
- package/es/grid/hook/use-responsive-value.d.ts +7 -19
- package/es/grid/index.d.ts +2 -6
- package/es/grid/interface.d.ts +11 -18
- package/es/image/image.vue.d.ts +2 -2
- package/es/image/interface.d.ts +1 -1
- package/es/image/preview-group.vue.d.ts +1 -1
- package/es/image/preview.vue.d.ts +1 -1
- package/es/input/index.d.ts +4 -2
- package/es/input/input-password.vue.d.ts +4 -2
- package/es/input/input.js +3 -4
- package/es/input-number/input-number.js +20 -19
- package/es/input-tag/input-tag.js +10 -12
- package/es/list/use-pagination.d.ts +7 -4
- package/es/locale/index.d.ts +1 -1
- package/es/locale/index.js +1 -1
- package/es/locale/interface.d.ts +1 -0
- package/es/mention/mention.js +10 -10
- package/es/menu/interface.d.ts +1 -3
- package/es/menu/sub-menu-pop.vue.d.ts +2 -2
- package/es/message/message.vue.d.ts +4 -2
- package/es/modal/index.d.ts +8 -4
- package/es/modal/interface.d.ts +2 -2
- package/es/modal/modal.vue.d.ts +4 -2
- package/es/notification/notification.vue.d.ts +4 -2
- package/es/page-header/index.d.ts +8 -4
- package/es/page-header/page-header.vue.d.ts +4 -2
- package/es/pagination/page-jumper.vue.d.ts +1 -1
- package/es/pagination/page-options.vue.d.ts +16 -8
- package/es/popconfirm/index.d.ts +3 -3
- package/es/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/radio/index.d.ts +8 -4
- package/es/radio/radio.d.ts +4 -2
- package/es/scrollbar/interface.d.ts +1 -1
- package/es/select/index.d.ts +16 -8
- package/es/select/select.d.ts +8 -4
- package/es/select/select.js +6 -4
- package/es/statistic/statistic.vue_vue_type_script_lang.js +2 -2
- package/es/table/table-operation-td.d.ts +16 -8
- package/es/table/table-operation-td.js +10 -13
- package/es/table/table-th.js +17 -6
- package/es/table/table.js +33 -34
- package/es/tabs/tabs-tab.vue.d.ts +4 -2
- package/es/textarea/index.d.ts +8 -4
- package/es/textarea/textarea.vue.d.ts +4 -2
- package/es/time-picker/index.d.ts +23 -15
- package/es/time-picker/panel.vue.d.ts +1 -1
- package/es/time-picker/range-panel.d.ts +1 -1
- package/es/time-picker/range-panel.js +6 -7
- package/es/time-picker/time-picker.vue.d.ts +11 -7
- package/es/time-picker/utils/index.d.ts +1 -1
- package/es/transfer/index.d.ts +24 -12
- package/es/transfer/transfer-list-item.js +2 -5
- package/es/transfer/transfer-view.vue.d.ts +12 -6
- package/es/transfer/transfer.vue.d.ts +12 -6
- package/es/tree/base-node.vue.d.ts +8 -4
- package/es/tree/interface.d.ts +1 -1
- package/es/tree/transition-node-list.vue.d.ts +8 -4
- package/es/tree/tree.vue.d.ts +2 -2
- package/es/tree-select/panel.js +5 -3
- package/es/tree-select/tree-select.vue.d.ts +1 -1
- package/es/trigger/context.d.ts +3 -3
- package/es/trigger/interface.d.ts +3 -2
- package/es/trigger/trigger.js +17 -16
- package/es/typography/base.js +2 -2
- package/es/typography/edit-content.vue.d.ts +12 -6
- package/es/typography/interface.d.ts +1 -1
- package/es/typography/operations.vue.d.ts +1 -1
- package/es/upload/interfaces.d.ts +3 -3
- package/es/upload/upload-list.js +2 -5
- package/es/upload/upload.js +4 -5
- package/es/verification-code/verification-code.js +7 -6
- package/json/web-types.json +2 -2
- package/package.json +1 -1
package/es/drawer/index.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ declare const Drawer: {
|
|
|
108
108
|
[x: string]: boolean;
|
|
109
109
|
})[]>;
|
|
110
110
|
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
111
|
-
t: (key: string, ...args:
|
|
111
|
+
t: (key: string, ...args: unknown[]) => string;
|
|
112
112
|
mounted: import("vue").Ref<boolean, boolean>;
|
|
113
113
|
computedVisible: import("vue").ComputedRef<boolean>;
|
|
114
114
|
mergedMask: import("vue").ComputedRef<boolean | undefined>;
|
|
@@ -3503,7 +3503,7 @@ declare const Drawer: {
|
|
|
3503
3503
|
};
|
|
3504
3504
|
}>, {
|
|
3505
3505
|
prefixCls: string;
|
|
3506
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
3506
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3507
3507
|
prefix: {
|
|
3508
3508
|
type: StringConstructor;
|
|
3509
3509
|
};
|
|
@@ -3515,7 +3515,9 @@ declare const Drawer: {
|
|
|
3515
3515
|
type: BooleanConstructor;
|
|
3516
3516
|
default: boolean;
|
|
3517
3517
|
};
|
|
3518
|
-
}>> & Readonly<{
|
|
3518
|
+
}>> & Readonly<{
|
|
3519
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
3520
|
+
}>, {
|
|
3519
3521
|
size: "medium" | "large" | "small" | "mini";
|
|
3520
3522
|
disabled: boolean;
|
|
3521
3523
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -3752,7 +3754,7 @@ declare const Drawer: {
|
|
|
3752
3754
|
[x: string]: boolean;
|
|
3753
3755
|
})[]>;
|
|
3754
3756
|
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
3755
|
-
t: (key: string, ...args:
|
|
3757
|
+
t: (key: string, ...args: unknown[]) => string;
|
|
3756
3758
|
mounted: import("vue").Ref<boolean, boolean>;
|
|
3757
3759
|
computedVisible: import("vue").ComputedRef<boolean>;
|
|
3758
3760
|
mergedMask: import("vue").ComputedRef<boolean | undefined>;
|
|
@@ -3902,7 +3904,7 @@ declare const Drawer: {
|
|
|
3902
3904
|
[x: string]: boolean;
|
|
3903
3905
|
})[]>;
|
|
3904
3906
|
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
3905
|
-
t: (key: string, ...args:
|
|
3907
|
+
t: (key: string, ...args: unknown[]) => string;
|
|
3906
3908
|
mounted: import("vue").Ref<boolean, boolean>;
|
|
3907
3909
|
computedVisible: import("vue").ComputedRef<boolean>;
|
|
3908
3910
|
mergedMask: import("vue").ComputedRef<boolean | undefined>;
|
|
@@ -7297,7 +7299,7 @@ declare const Drawer: {
|
|
|
7297
7299
|
};
|
|
7298
7300
|
}>, {
|
|
7299
7301
|
prefixCls: string;
|
|
7300
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
7302
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7301
7303
|
prefix: {
|
|
7302
7304
|
type: StringConstructor;
|
|
7303
7305
|
};
|
|
@@ -7309,7 +7311,9 @@ declare const Drawer: {
|
|
|
7309
7311
|
type: BooleanConstructor;
|
|
7310
7312
|
default: boolean;
|
|
7311
7313
|
};
|
|
7312
|
-
}>> & Readonly<{
|
|
7314
|
+
}>> & Readonly<{
|
|
7315
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
7316
|
+
}>, {
|
|
7313
7317
|
size: "medium" | "large" | "small" | "mini";
|
|
7314
7318
|
disabled: boolean;
|
|
7315
7319
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -739,7 +739,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
739
739
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
740
740
|
'update:popupVisible': (_visible: boolean) => true;
|
|
741
741
|
popupVisibleChange: (_visible: boolean) => true;
|
|
742
|
-
select: (_value: string | number | Record<string,
|
|
742
|
+
select: (_value: string | number | Record<string, unknown> | undefined, _ev: Event) => true;
|
|
743
743
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
744
744
|
popupVisible: {
|
|
745
745
|
type: BooleanConstructor;
|
|
@@ -769,7 +769,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
769
769
|
default: boolean;
|
|
770
770
|
};
|
|
771
771
|
}>> & Readonly<{
|
|
772
|
-
onSelect?: ((_value: string | number | Record<string,
|
|
772
|
+
onSelect?: ((_value: string | number | Record<string, unknown> | undefined, _ev: Event) => any) | undefined;
|
|
773
773
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
774
774
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
775
775
|
}>, {
|
|
@@ -38,7 +38,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
38
38
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
39
|
'update:popupVisible': (_visible: boolean) => true;
|
|
40
40
|
popupVisibleChange: (_visible: boolean) => true;
|
|
41
|
-
select: (_value: string | number | Record<string,
|
|
41
|
+
select: (_value: string | number | Record<string, unknown> | undefined, _ev: Event) => true;
|
|
42
42
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
43
|
popupVisible: {
|
|
44
44
|
type: BooleanConstructor;
|
|
@@ -68,7 +68,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
68
68
|
default: boolean;
|
|
69
69
|
};
|
|
70
70
|
}>> & Readonly<{
|
|
71
|
-
onSelect?: ((_value: string | number | Record<string,
|
|
71
|
+
onSelect?: ((_value: string | number | Record<string, unknown> | undefined, _ev: Event) => any) | undefined;
|
|
72
72
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
73
73
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
74
74
|
}>, {
|
package/es/dropdown/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare const Dropdown: {
|
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
37
|
}>> & Readonly<{
|
|
38
|
-
onSelect?: ((_value: string | number | Record<string,
|
|
38
|
+
onSelect?: ((_value: string | number | Record<string, unknown> | undefined, _ev: Event) => any) | undefined;
|
|
39
39
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
40
40
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
41
41
|
}>, {
|
|
@@ -45,7 +45,7 @@ declare const Dropdown: {
|
|
|
45
45
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
46
|
'update:popupVisible': (_visible: boolean) => true;
|
|
47
47
|
popupVisibleChange: (_visible: boolean) => true;
|
|
48
|
-
select: (_value: string | number | Record<string,
|
|
48
|
+
select: (_value: string | number | Record<string, unknown> | undefined, _ev: Event) => true;
|
|
49
49
|
}, import("vue").PublicProps, {
|
|
50
50
|
position: import("./interface").DropdownPosition;
|
|
51
51
|
popupVisible: boolean;
|
|
@@ -1184,7 +1184,7 @@ declare const Dropdown: {
|
|
|
1184
1184
|
default: boolean;
|
|
1185
1185
|
};
|
|
1186
1186
|
}>> & Readonly<{
|
|
1187
|
-
onSelect?: ((_value: string | number | Record<string,
|
|
1187
|
+
onSelect?: ((_value: string | number | Record<string, unknown> | undefined, _ev: Event) => any) | undefined;
|
|
1188
1188
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
1189
1189
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
1190
1190
|
}>, {
|
|
@@ -1231,7 +1231,7 @@ declare const Dropdown: {
|
|
|
1231
1231
|
default: boolean;
|
|
1232
1232
|
};
|
|
1233
1233
|
}>> & Readonly<{
|
|
1234
|
-
onSelect?: ((_value: string | number | Record<string,
|
|
1234
|
+
onSelect?: ((_value: string | number | Record<string, unknown> | undefined, _ev: Event) => any) | undefined;
|
|
1235
1235
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
1236
1236
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
1237
1237
|
}>, {
|
|
@@ -1241,7 +1241,7 @@ declare const Dropdown: {
|
|
|
1241
1241
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1242
1242
|
'update:popupVisible': (_visible: boolean) => true;
|
|
1243
1243
|
popupVisibleChange: (_visible: boolean) => true;
|
|
1244
|
-
select: (_value: string | number | Record<string,
|
|
1244
|
+
select: (_value: string | number | Record<string, unknown> | undefined, _ev: Event) => true;
|
|
1245
1245
|
}, string, {
|
|
1246
1246
|
position: import("./interface").DropdownPosition;
|
|
1247
1247
|
popupVisible: boolean;
|
|
@@ -4446,7 +4446,7 @@ declare const Dropdown: {
|
|
|
4446
4446
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4447
4447
|
'update:popupVisible': (_visible: boolean) => true;
|
|
4448
4448
|
popupVisibleChange: (_visible: boolean) => true;
|
|
4449
|
-
select: (_value: string | number | Record<string,
|
|
4449
|
+
select: (_value: string | number | Record<string, unknown> | undefined, _ev: Event) => true;
|
|
4450
4450
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4451
4451
|
popupVisible: {
|
|
4452
4452
|
type: BooleanConstructor;
|
|
@@ -4476,7 +4476,7 @@ declare const Dropdown: {
|
|
|
4476
4476
|
default: boolean;
|
|
4477
4477
|
};
|
|
4478
4478
|
}>> & Readonly<{
|
|
4479
|
-
onSelect?: ((_value: string | number | Record<string,
|
|
4479
|
+
onSelect?: ((_value: string | number | Record<string, unknown> | undefined, _ev: Event) => any) | undefined;
|
|
4480
4480
|
"onUpdate:popupVisible"?: ((_visible: boolean) => any) | undefined;
|
|
4481
4481
|
onPopupVisibleChange?: ((_visible: boolean) => any) | undefined;
|
|
4482
4482
|
}>, {
|
|
@@ -12,14 +12,14 @@ export interface DropDownProps {
|
|
|
12
12
|
export interface DOption {
|
|
13
13
|
value: string | number;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
-
_props?: Record<string,
|
|
15
|
+
_props?: Record<string, unknown>;
|
|
16
16
|
_slots?: Slots;
|
|
17
17
|
}
|
|
18
18
|
export interface DGroup {
|
|
19
19
|
isGroup: true;
|
|
20
20
|
options: DropdownOption[];
|
|
21
21
|
title?: string;
|
|
22
|
-
_props?: Record<string,
|
|
22
|
+
_props?: Record<string, unknown>;
|
|
23
23
|
_slots?: Slots;
|
|
24
24
|
}
|
|
25
25
|
export interface DSubmenu extends DOption {
|
package/es/form/context.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { InjectionKey } from 'vue';
|
|
1
|
+
import type { CSSProperties, InjectionKey } from 'vue';
|
|
2
|
+
import type { ColProps } from '../grid/interface';
|
|
2
3
|
import { Size } from '../_utils/constant';
|
|
3
4
|
import { Data } from '../_utils/types';
|
|
4
5
|
import { FieldData, FieldRule, FormItemEventHandler, ValidatedError, ValidateStatus } from './interface';
|
|
@@ -6,10 +7,10 @@ export interface FormContext {
|
|
|
6
7
|
layout: string;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
labelAlign: string;
|
|
9
|
-
labelColProps?:
|
|
10
|
-
wrapperColProps?:
|
|
11
|
-
labelColStyle?:
|
|
12
|
-
wrapperColStyle?:
|
|
10
|
+
labelColProps?: ColProps;
|
|
11
|
+
wrapperColProps?: ColProps;
|
|
12
|
+
labelColStyle?: CSSProperties;
|
|
13
|
+
wrapperColStyle?: CSSProperties;
|
|
13
14
|
model: Data;
|
|
14
15
|
size: Size;
|
|
15
16
|
rules?: Record<string, FieldRule | FieldRule[]>;
|
|
@@ -40,7 +41,7 @@ export interface FormItemInfo {
|
|
|
40
41
|
disabled: boolean;
|
|
41
42
|
error: boolean;
|
|
42
43
|
labelWidth?: number;
|
|
43
|
-
validate: () => Promise<
|
|
44
|
+
validate: () => Promise<undefined | Record<string, ValidatedError>>;
|
|
44
45
|
clearValidate: () => void;
|
|
45
46
|
resetField: () => void;
|
|
46
47
|
setField: (data: FieldData) => void;
|
|
@@ -84,18 +84,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
84
84
|
isRequired: import("vue").ComputedRef<boolean>;
|
|
85
85
|
isError: import("vue").ComputedRef<boolean>;
|
|
86
86
|
finalMessage: import("vue").ComputedRef<string[]>;
|
|
87
|
-
mergedLabelCol: import("vue").ComputedRef<any
|
|
88
|
-
mergedWrapperCol: import("vue").ComputedRef<any
|
|
87
|
+
mergedLabelCol: import("vue").ComputedRef<Record<string, any>>;
|
|
88
|
+
mergedWrapperCol: import("vue").ComputedRef<Record<string, any>>;
|
|
89
89
|
labelColCls: import("vue").ComputedRef<(string | {
|
|
90
90
|
[x: string]: string | number | boolean | undefined;
|
|
91
91
|
})[]>;
|
|
92
92
|
autoLabelWidth: import("vue").Ref<boolean | undefined, boolean | undefined> | undefined;
|
|
93
93
|
layout: import("vue").Ref<string | undefined, string | undefined> | undefined;
|
|
94
|
-
mergedLabelStyle: import("vue").ComputedRef<any>;
|
|
94
|
+
mergedLabelStyle: import("vue").ComputedRef<import("vue").CSSProperties | Record<string, any> | undefined>;
|
|
95
95
|
wrapperColCls: import("vue").ComputedRef<(string | {
|
|
96
96
|
[x: string]: boolean;
|
|
97
97
|
})[]>;
|
|
98
|
-
mergedWrapperStyle: import("vue").ComputedRef<any>;
|
|
98
|
+
mergedWrapperStyle: import("vue").ComputedRef<import("vue").CSSProperties | Record<string, any> | undefined>;
|
|
99
99
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
100
|
field: {
|
|
101
101
|
type: StringConstructor;
|
|
@@ -256,9 +256,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
256
256
|
type: NumberConstructor;
|
|
257
257
|
};
|
|
258
258
|
xs: {
|
|
259
|
-
type: PropType<number |
|
|
260
|
-
[key: string]: any;
|
|
261
|
-
}>;
|
|
259
|
+
type: PropType<number | import("../grid/interface").ColResponsiveConfig>;
|
|
262
260
|
};
|
|
263
261
|
sm: {
|
|
264
262
|
type: PropType<number | {
|
|
@@ -312,9 +310,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
312
310
|
type: NumberConstructor;
|
|
313
311
|
};
|
|
314
312
|
xs: {
|
|
315
|
-
type: PropType<number |
|
|
316
|
-
[key: string]: any;
|
|
317
|
-
}>;
|
|
313
|
+
type: PropType<number | import("../grid/interface").ColResponsiveConfig>;
|
|
318
314
|
};
|
|
319
315
|
sm: {
|
|
320
316
|
type: PropType<number | {
|
package/es/form/index.d.ts
CHANGED
|
@@ -378,18 +378,18 @@ declare const Form: {
|
|
|
378
378
|
isRequired: import("vue").ComputedRef<boolean>;
|
|
379
379
|
isError: import("vue").ComputedRef<boolean>;
|
|
380
380
|
finalMessage: import("vue").ComputedRef<string[]>;
|
|
381
|
-
mergedLabelCol: import("vue").ComputedRef<any
|
|
382
|
-
mergedWrapperCol: import("vue").ComputedRef<any
|
|
381
|
+
mergedLabelCol: import("vue").ComputedRef<Record<string, any>>;
|
|
382
|
+
mergedWrapperCol: import("vue").ComputedRef<Record<string, any>>;
|
|
383
383
|
labelColCls: import("vue").ComputedRef<(string | {
|
|
384
384
|
[x: string]: string | number | boolean | undefined;
|
|
385
385
|
})[]>;
|
|
386
386
|
autoLabelWidth: import("vue").Ref<boolean | undefined, boolean | undefined> | undefined;
|
|
387
387
|
layout: import("vue").Ref<string | undefined, string | undefined> | undefined;
|
|
388
|
-
mergedLabelStyle: import("vue").ComputedRef<any>;
|
|
388
|
+
mergedLabelStyle: import("vue").ComputedRef<import("vue").CSSProperties | Record<string, any> | undefined>;
|
|
389
389
|
wrapperColCls: import("vue").ComputedRef<(string | {
|
|
390
390
|
[x: string]: boolean;
|
|
391
391
|
})[]>;
|
|
392
|
-
mergedWrapperStyle: import("vue").ComputedRef<any>;
|
|
392
|
+
mergedWrapperStyle: import("vue").ComputedRef<import("vue").CSSProperties | Record<string, any> | undefined>;
|
|
393
393
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
394
394
|
field: {
|
|
395
395
|
type: StringConstructor;
|
|
@@ -550,9 +550,7 @@ declare const Form: {
|
|
|
550
550
|
type: NumberConstructor;
|
|
551
551
|
};
|
|
552
552
|
xs: {
|
|
553
|
-
type: import("vue").PropType<number |
|
|
554
|
-
[key: string]: any;
|
|
555
|
-
}>;
|
|
553
|
+
type: import("vue").PropType<number | import("../grid/interface").ColResponsiveConfig>;
|
|
556
554
|
};
|
|
557
555
|
sm: {
|
|
558
556
|
type: import("vue").PropType<number | {
|
|
@@ -606,9 +604,7 @@ declare const Form: {
|
|
|
606
604
|
type: NumberConstructor;
|
|
607
605
|
};
|
|
608
606
|
xs: {
|
|
609
|
-
type: import("vue").PropType<number |
|
|
610
|
-
[key: string]: any;
|
|
611
|
-
}>;
|
|
607
|
+
type: import("vue").PropType<number | import("../grid/interface").ColResponsiveConfig>;
|
|
612
608
|
};
|
|
613
609
|
sm: {
|
|
614
610
|
type: import("vue").PropType<number | {
|
package/es/form/interface.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export interface FieldRule<FieldValue = any> {
|
|
|
19
19
|
negative?: boolean;
|
|
20
20
|
true?: boolean;
|
|
21
21
|
false?: boolean;
|
|
22
|
-
includes?:
|
|
23
|
-
deepEqual?:
|
|
22
|
+
includes?: FieldValue[];
|
|
23
|
+
deepEqual?: FieldValue;
|
|
24
24
|
empty?: boolean;
|
|
25
25
|
hasKeys?: string[];
|
|
26
26
|
validator?: (value: FieldValue | undefined, callback: (error?: string) => void) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { FlexType } from './interface';
|
|
2
|
+
import { FlexType, ColResponsiveConfig } from './interface';
|
|
3
3
|
declare const _default: typeof __VLS_export;
|
|
4
4
|
export default _default;
|
|
5
5
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -14,9 +14,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
14
14
|
type: NumberConstructor;
|
|
15
15
|
};
|
|
16
16
|
xs: {
|
|
17
|
-
type: PropType<number |
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
}>;
|
|
17
|
+
type: PropType<number | ColResponsiveConfig>;
|
|
20
18
|
};
|
|
21
19
|
sm: {
|
|
22
20
|
type: PropType<number | {
|
|
@@ -70,9 +68,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
70
68
|
type: NumberConstructor;
|
|
71
69
|
};
|
|
72
70
|
xs: {
|
|
73
|
-
type: PropType<number |
|
|
74
|
-
[key: string]: any;
|
|
75
|
-
}>;
|
|
71
|
+
type: PropType<number | ColResponsiveConfig>;
|
|
76
72
|
};
|
|
77
73
|
sm: {
|
|
78
74
|
type: PropType<number | {
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { ResponsiveValue } from '../interface';
|
|
2
|
+
import type { ColResponsiveConfig, ResponsiveValue } from '../interface';
|
|
3
3
|
export declare function useResponsiveValue(props: Ref<{
|
|
4
4
|
val: number;
|
|
5
5
|
key: string;
|
|
6
|
-
xs?: number |
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
md?: number | {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
};
|
|
15
|
-
lg?: number | {
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
};
|
|
18
|
-
xl?: number | {
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
};
|
|
21
|
-
xxl?: number | {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
};
|
|
6
|
+
xs?: number | ColResponsiveConfig;
|
|
7
|
+
sm?: number | ColResponsiveConfig;
|
|
8
|
+
md?: number | ColResponsiveConfig;
|
|
9
|
+
lg?: number | ColResponsiveConfig;
|
|
10
|
+
xl?: number | ColResponsiveConfig;
|
|
11
|
+
xxl?: number | ColResponsiveConfig;
|
|
24
12
|
}>): import("vue").ComputedRef<number | ResponsiveValue>;
|
package/es/grid/index.d.ts
CHANGED
|
@@ -185,9 +185,7 @@ declare const Grid: {
|
|
|
185
185
|
type: NumberConstructor;
|
|
186
186
|
};
|
|
187
187
|
xs: {
|
|
188
|
-
type: import("vue").PropType<number |
|
|
189
|
-
[key: string]: any;
|
|
190
|
-
}>;
|
|
188
|
+
type: import("vue").PropType<number | import("./interface").ColResponsiveConfig>;
|
|
191
189
|
};
|
|
192
190
|
sm: {
|
|
193
191
|
type: import("vue").PropType<number | {
|
|
@@ -241,9 +239,7 @@ declare const Grid: {
|
|
|
241
239
|
type: NumberConstructor;
|
|
242
240
|
};
|
|
243
241
|
xs: {
|
|
244
|
-
type: import("vue").PropType<number |
|
|
245
|
-
[key: string]: any;
|
|
246
|
-
}>;
|
|
242
|
+
type: import("vue").PropType<number | import("./interface").ColResponsiveConfig>;
|
|
247
243
|
};
|
|
248
244
|
sm: {
|
|
249
245
|
type: import("vue").PropType<number | {
|
package/es/grid/interface.d.ts
CHANGED
|
@@ -6,6 +6,11 @@ export interface ResponsiveValue {
|
|
|
6
6
|
sm?: number;
|
|
7
7
|
xs?: number;
|
|
8
8
|
}
|
|
9
|
+
export interface ColResponsiveConfig {
|
|
10
|
+
span?: number;
|
|
11
|
+
offset?: number;
|
|
12
|
+
order?: number;
|
|
13
|
+
}
|
|
9
14
|
export type FlexType = number | string | 'initial' | 'auto' | 'none';
|
|
10
15
|
export interface RowProps {
|
|
11
16
|
gutter?: number | ResponsiveValue | ResponsiveValue[];
|
|
@@ -18,24 +23,12 @@ export interface ColProps {
|
|
|
18
23
|
span?: number;
|
|
19
24
|
offset?: number | undefined;
|
|
20
25
|
order?: number | undefined;
|
|
21
|
-
xs?: number |
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
md?: number | {
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
} | undefined;
|
|
30
|
-
lg?: number | {
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
} | undefined;
|
|
33
|
-
xl?: number | {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
} | undefined;
|
|
36
|
-
xxl?: number | {
|
|
37
|
-
[key: string]: any;
|
|
38
|
-
} | undefined;
|
|
26
|
+
xs?: number | ColResponsiveConfig | undefined;
|
|
27
|
+
sm?: number | ColResponsiveConfig | undefined;
|
|
28
|
+
md?: number | ColResponsiveConfig | undefined;
|
|
29
|
+
lg?: number | ColResponsiveConfig | undefined;
|
|
30
|
+
xl?: number | ColResponsiveConfig | undefined;
|
|
31
|
+
xxl?: number | ColResponsiveConfig | undefined;
|
|
39
32
|
flex?: number | string | 'initial' | 'auto' | 'none' | undefined;
|
|
40
33
|
}
|
|
41
34
|
export interface GridProps {
|
package/es/image/image.vue.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
59
59
|
type: (ObjectConstructor | StringConstructor | ArrayConstructor)[];
|
|
60
60
|
};
|
|
61
61
|
}>, {
|
|
62
|
-
t: (key: string, ...args:
|
|
62
|
+
t: (key: string, ...args: unknown[]) => string;
|
|
63
63
|
refImg: import("vue").Ref<any, any>;
|
|
64
64
|
prefixCls: string;
|
|
65
65
|
wrapperClassNames: import("vue").ComputedRef<import("vue").ClassValue[]>;
|
|
@@ -484,7 +484,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
484
484
|
refWrapper: import("vue").Ref<any, any>;
|
|
485
485
|
refImage: import("vue").Ref<any, any>;
|
|
486
486
|
onWheel: {
|
|
487
|
-
(
|
|
487
|
+
(e: WheelEvent): void;
|
|
488
488
|
cancel(): void;
|
|
489
489
|
};
|
|
490
490
|
onMaskClick: (e: MouseEvent) => void;
|
package/es/image/interface.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface ImagePreviewProps {
|
|
|
32
32
|
wheelZoom?: boolean;
|
|
33
33
|
defaultScale?: number;
|
|
34
34
|
zoomRate?: number;
|
|
35
|
-
groupArrowProps?: Record<string,
|
|
35
|
+
groupArrowProps?: Record<string, unknown>;
|
|
36
36
|
onClose?: () => void;
|
|
37
37
|
}
|
|
38
38
|
export interface ImagePreviewGroupProps extends Omit<ImagePreviewProps, 'src' | 'onClose'> {
|
|
@@ -187,7 +187,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
187
187
|
refWrapper: import("vue").Ref<any, any>;
|
|
188
188
|
refImage: import("vue").Ref<any, any>;
|
|
189
189
|
onWheel: {
|
|
190
|
-
(
|
|
190
|
+
(e: WheelEvent): void;
|
|
191
191
|
cancel(): void;
|
|
192
192
|
};
|
|
193
193
|
onMaskClick: (e: MouseEvent) => void;
|
|
@@ -78,7 +78,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
78
78
|
refWrapper: import("vue").Ref<any, any>;
|
|
79
79
|
refImage: import("vue").Ref<any, any>;
|
|
80
80
|
onWheel: {
|
|
81
|
-
(
|
|
81
|
+
(e: WheelEvent): void;
|
|
82
82
|
cancel(): void;
|
|
83
83
|
};
|
|
84
84
|
onMaskClick: (e: MouseEvent) => void;
|
package/es/input/index.d.ts
CHANGED
|
@@ -623,7 +623,7 @@ declare const Input: {
|
|
|
623
623
|
};
|
|
624
624
|
}>, {
|
|
625
625
|
prefixCls: string;
|
|
626
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
626
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
627
627
|
prefix: {
|
|
628
628
|
type: StringConstructor;
|
|
629
629
|
};
|
|
@@ -635,7 +635,9 @@ declare const Input: {
|
|
|
635
635
|
type: BooleanConstructor;
|
|
636
636
|
default: boolean;
|
|
637
637
|
};
|
|
638
|
-
}>> & Readonly<{
|
|
638
|
+
}>> & Readonly<{
|
|
639
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
640
|
+
}>, {
|
|
639
641
|
size: "medium" | "large" | "small" | "mini";
|
|
640
642
|
disabled: boolean;
|
|
641
643
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -297,7 +297,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
297
297
|
};
|
|
298
298
|
}>, {
|
|
299
299
|
prefixCls: string;
|
|
300
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
300
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
301
301
|
prefix: {
|
|
302
302
|
type: StringConstructor;
|
|
303
303
|
};
|
|
@@ -309,7 +309,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
309
309
|
type: BooleanConstructor;
|
|
310
310
|
default: boolean;
|
|
311
311
|
};
|
|
312
|
-
}>> & Readonly<{
|
|
312
|
+
}>> & Readonly<{
|
|
313
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
314
|
+
}>, {
|
|
313
315
|
size: "medium" | "large" | "small" | "mini";
|
|
314
316
|
disabled: boolean;
|
|
315
317
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/es/input/input.js
CHANGED
|
@@ -364,11 +364,10 @@ var input_default = /* @__PURE__ */ defineComponent({
|
|
|
364
364
|
"onCompositionupdate": handleComposition,
|
|
365
365
|
"onCompositionend": handleComposition
|
|
366
366
|
}, mergeInputAttrs.value), null),
|
|
367
|
-
showClearBtn.value && createVNode(icon_hover_default, {
|
|
367
|
+
showClearBtn.value && createVNode(icon_hover_default, mergeProps({
|
|
368
368
|
"prefix": prefixCls,
|
|
369
|
-
"class": `${prefixCls}-clear-btn
|
|
370
|
-
|
|
371
|
-
}, { default: () => [createVNode(IconClose, null, null)] }),
|
|
369
|
+
"class": `${prefixCls}-clear-btn`
|
|
370
|
+
}, { onClick: handleClear }), { default: () => [createVNode(IconClose, null, null)] }),
|
|
372
371
|
(slots.suffix || Boolean(props.maxLength) && props.showWordLimit || Boolean(feedback.value)) && createVNode("span", { "class": [`${prefixCls}-suffix`, { [`${prefixCls}-suffix-has-feedback`]: feedback.value }] }, [
|
|
373
372
|
Boolean(props.maxLength) && props.showWordLimit && createVNode("span", { "class": `${prefixCls}-word-limit` }, [
|
|
374
373
|
valueLength.value,
|
|
@@ -11,7 +11,7 @@ import IconDown from "../icon/icon-down/index.js";
|
|
|
11
11
|
import IconUp from "../icon/icon-up/index.js";
|
|
12
12
|
import IconMinus from "../icon/icon-minus/index.js";
|
|
13
13
|
import IconPlus from "../icon/icon-plus/index.js";
|
|
14
|
-
import { Fragment, computed, createVNode, defineComponent, ref, toRefs, watch } from "vue";
|
|
14
|
+
import { Fragment, computed, createVNode, defineComponent, mergeProps, ref, toRefs, watch } from "vue";
|
|
15
15
|
import NP from "number-precision";
|
|
16
16
|
//#region components/input-number/input-number.tsx
|
|
17
17
|
var FIRST_DELAY = 800;
|
|
@@ -413,26 +413,28 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
413
413
|
{ [`${prefixCls}-readonly`]: props.readOnly }
|
|
414
414
|
]);
|
|
415
415
|
const renderPrependButton = () => {
|
|
416
|
-
return createVNode(Button, {
|
|
416
|
+
return createVNode(Button, mergeProps({
|
|
417
417
|
"size": mergedSize.value,
|
|
418
|
-
"tabindex": "-1",
|
|
419
418
|
"class": `${prefixCls}-step-button`,
|
|
420
|
-
"disabled": mergedDisabled.value || isMin.value
|
|
421
|
-
|
|
422
|
-
"
|
|
423
|
-
"
|
|
424
|
-
|
|
419
|
+
"disabled": mergedDisabled.value || isMin.value
|
|
420
|
+
}, {
|
|
421
|
+
tabindex: "-1",
|
|
422
|
+
onMousedown: (ev) => handleStepButton(ev, "minus", true),
|
|
423
|
+
onMouseup: clearRepeatTimer,
|
|
424
|
+
onMouseleave: clearRepeatTimer
|
|
425
|
+
}), { icon: () => createVNode(IconMinus, null, null) });
|
|
425
426
|
};
|
|
426
427
|
const renderAppendButton = () => {
|
|
427
|
-
return createVNode(Button, {
|
|
428
|
+
return createVNode(Button, mergeProps({
|
|
428
429
|
"size": mergedSize.value,
|
|
429
|
-
"tabindex": "-1",
|
|
430
430
|
"class": `${prefixCls}-step-button`,
|
|
431
|
-
"disabled": mergedDisabled.value || isMax.value
|
|
432
|
-
|
|
433
|
-
"
|
|
434
|
-
"
|
|
435
|
-
|
|
431
|
+
"disabled": mergedDisabled.value || isMax.value
|
|
432
|
+
}, {
|
|
433
|
+
tabindex: "-1",
|
|
434
|
+
onMousedown: (ev) => handleStepButton(ev, "plus", true),
|
|
435
|
+
onMouseup: clearRepeatTimer,
|
|
436
|
+
onMouseleave: clearRepeatTimer
|
|
437
|
+
}), { icon: () => createVNode(IconPlus, null, null) });
|
|
436
438
|
};
|
|
437
439
|
const render = () => {
|
|
438
440
|
const _slots = props.mode === "embed" ? {
|
|
@@ -446,7 +448,7 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
446
448
|
suffix: slots.suffix,
|
|
447
449
|
append: props.hideButton ? slots.append : renderAppendButton
|
|
448
450
|
};
|
|
449
|
-
return createVNode(Input, {
|
|
451
|
+
return createVNode(Input, mergeProps({
|
|
450
452
|
"key": `__arco__${props.mode}`,
|
|
451
453
|
"ref": inputRef,
|
|
452
454
|
"class": cls.value,
|
|
@@ -468,9 +470,8 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
468
470
|
"onFocus": handleFocus,
|
|
469
471
|
"onBlur": handleBlur,
|
|
470
472
|
"onClear": handleClear,
|
|
471
|
-
"onChange": handleChange
|
|
472
|
-
|
|
473
|
-
}, _slots);
|
|
473
|
+
"onChange": handleChange
|
|
474
|
+
}, { onKeydown: onKeyDown }), _slots);
|
|
474
475
|
};
|
|
475
476
|
return {
|
|
476
477
|
inputRef,
|