@wx-design/components 1.2.2 → 1.3.0-alpha.10
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/core/ConfigProvider/index.d.ts +8 -3
- package/es/core/ConfigProvider/index.vue.d.ts +12 -16
- package/es/core/Modal/index.vue.d.ts +61 -110
- package/es/core/Select/index.vue.d.ts +25 -44
- package/es/core/Table/components/CellEditors/Boolean.d.ts +133 -33
- package/es/core/Table/components/CellEditors/Cascader.d.ts +8 -11
- package/es/core/Table/components/CellEditors/Color.d.ts +4 -7
- package/es/core/Table/components/CellEditors/DatePicker.d.ts +3 -8
- package/es/core/Table/components/CellEditors/DynamicCell.d.ts +1 -4
- package/es/core/Table/components/CellEditors/Image.d.ts +5 -8
- package/es/core/Table/components/CellEditors/Input.d.ts +3 -6
- package/es/core/Table/components/CellEditors/InputNumber.d.ts +3 -8
- package/es/core/Table/components/CellEditors/PopOver.d.ts +2 -5
- package/es/core/Table/components/CellEditors/Select.d.ts +9 -12
- package/es/core/Table/components/CellEditors/utils.d.ts +1 -1
- package/es/core/Table/components/CellRender.d.ts +2 -21
- package/es/core/Table/components/FilterTagsDisplay/index.vue.d.ts +37 -0
- package/es/core/Table/components/HeaderRender/index.d.ts +10 -8
- package/es/core/Table/components/TableSet/ColumnSet.vue.d.ts +487 -26
- package/es/core/Table/components/TableSet/index.vue.d.ts +6 -15
- package/es/core/Table/components/TableSet/utils.d.ts +1 -1
- package/es/core/Table/components/Toolbar/index.vue.d.ts +20 -0
- package/es/core/Table/configs/column.d.ts +2 -2
- package/es/core/Table/configs/table.d.ts +1 -1
- package/es/core/Table/hooks/index.d.ts +4 -0
- package/es/core/Table/hooks/useTableCore.d.ts +16 -0
- package/es/core/Table/hooks/useTableData.d.ts +16 -0
- package/es/core/Table/hooks/useTableEvents.d.ts +14 -10
- package/es/core/Table/hooks/useTableFilters.d.ts +19 -0
- package/es/core/Table/index.d.ts +3 -2
- package/es/core/Table/index.vue.d.ts +134 -132
- package/es/core/Table/renderer/FilterRender/index.vue.d.ts +14 -11
- package/es/core/Table/utils/autoColumnWidth.d.ts +1 -1
- package/es/core/Table/utils/footer.d.ts +2 -2
- package/es/core/Table/utils/tree-helper.d.ts +1 -1
- package/es/index.d.ts +7 -7
- package/es/index.mjs +31068 -31560
- package/es/locales/lang/bn.d.ts +6 -0
- package/es/locales/lang/en.d.ts +6 -0
- package/es/locales/lang/vi.d.ts +6 -0
- package/es/locales/lang/zh-cn.d.ts +6 -0
- package/es/locales/useLocale.d.ts +8 -2
- package/es/style.css +1 -1
- package/lib/core/ConfigProvider/index.d.ts +8 -3
- package/lib/core/ConfigProvider/index.vue.d.ts +12 -16
- package/lib/core/Modal/index.vue.d.ts +61 -110
- package/lib/core/Select/index.vue.d.ts +25 -44
- package/lib/core/Table/components/CellEditors/Boolean.d.ts +133 -33
- package/lib/core/Table/components/CellEditors/Cascader.d.ts +8 -11
- package/lib/core/Table/components/CellEditors/Color.d.ts +4 -7
- package/lib/core/Table/components/CellEditors/DatePicker.d.ts +3 -8
- package/lib/core/Table/components/CellEditors/DynamicCell.d.ts +1 -4
- package/lib/core/Table/components/CellEditors/Image.d.ts +5 -8
- package/lib/core/Table/components/CellEditors/Input.d.ts +3 -6
- package/lib/core/Table/components/CellEditors/InputNumber.d.ts +3 -8
- package/lib/core/Table/components/CellEditors/PopOver.d.ts +2 -5
- package/lib/core/Table/components/CellEditors/Select.d.ts +9 -12
- package/lib/core/Table/components/CellEditors/utils.d.ts +1 -1
- package/lib/core/Table/components/CellRender.d.ts +2 -21
- package/lib/core/Table/components/FilterTagsDisplay/index.vue.d.ts +37 -0
- package/lib/core/Table/components/HeaderRender/index.d.ts +10 -8
- package/lib/core/Table/components/TableSet/ColumnSet.vue.d.ts +487 -26
- package/lib/core/Table/components/TableSet/index.vue.d.ts +6 -15
- package/lib/core/Table/components/TableSet/utils.d.ts +1 -1
- package/lib/core/Table/components/Toolbar/index.vue.d.ts +20 -0
- package/lib/core/Table/configs/column.d.ts +2 -2
- package/lib/core/Table/configs/table.d.ts +1 -1
- package/lib/core/Table/hooks/index.d.ts +4 -0
- package/lib/core/Table/hooks/useTableCore.d.ts +16 -0
- package/lib/core/Table/hooks/useTableData.d.ts +16 -0
- package/lib/core/Table/hooks/useTableEvents.d.ts +14 -10
- package/lib/core/Table/hooks/useTableFilters.d.ts +19 -0
- package/lib/core/Table/index.d.ts +3 -2
- package/lib/core/Table/index.vue.d.ts +134 -132
- package/lib/core/Table/renderer/FilterRender/index.vue.d.ts +14 -11
- package/lib/core/Table/utils/autoColumnWidth.d.ts +1 -1
- package/lib/core/Table/utils/footer.d.ts +2 -2
- package/lib/core/Table/utils/tree-helper.d.ts +1 -1
- package/lib/index.d.ts +7 -7
- package/lib/index.js +5 -7
- package/lib/locales/lang/bn.d.ts +6 -0
- package/lib/locales/lang/en.d.ts +6 -0
- package/lib/locales/lang/vi.d.ts +6 -0
- package/lib/locales/lang/zh-cn.d.ts +6 -0
- package/lib/locales/useLocale.d.ts +8 -2
- package/lib/style.css +1 -1
- package/package.json +3 -3
- package/types/table/table.d.ts +6 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { App, Ref } from
|
|
2
|
-
import
|
|
3
|
-
import zhCn from "../../locales/lang/zh-cn";
|
|
1
|
+
import { App, Ref, InjectionKey } from 'vue';
|
|
2
|
+
import { default as zhCn } from '../../locales/lang/zh-cn';
|
|
4
3
|
export declare const injectSabDesignLocaleKey: InjectionKey<Ref<typeof zhCn>>;
|
|
5
4
|
export declare const useConfigProvide: () => {
|
|
6
5
|
locale: {
|
|
@@ -20,6 +19,12 @@ export declare const useConfigProvide: () => {
|
|
|
20
19
|
filter: string;
|
|
21
20
|
reset: string;
|
|
22
21
|
};
|
|
22
|
+
filterTags: {
|
|
23
|
+
label: string;
|
|
24
|
+
clearAll: string;
|
|
25
|
+
booleanTrue: string;
|
|
26
|
+
booleanFalse: string;
|
|
27
|
+
};
|
|
23
28
|
loadingText: string;
|
|
24
29
|
emptyText: string;
|
|
25
30
|
total: string;
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
default?(_: {}): any;
|
|
3
|
-
};
|
|
4
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
1
|
+
type __VLS_Props = {
|
|
5
2
|
lang?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
-
} : {
|
|
16
|
-
type: import('vue').PropType<T[K]>;
|
|
17
|
-
required: true;
|
|
3
|
+
};
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
18
8
|
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
19
11
|
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
20
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
17
|
new (): {
|
|
22
18
|
$slots: S;
|
|
@@ -1,136 +1,87 @@
|
|
|
1
|
-
import { VxeModalProps } from
|
|
1
|
+
import { VxeModalProps } from 'vxe-pc-ui';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
title?(_: {
|
|
6
|
+
minimized: boolean;
|
|
7
|
+
maximized: boolean;
|
|
8
|
+
$modal: import('vxe-pc-ui').VxeModalConstructor;
|
|
9
|
+
}): any;
|
|
10
|
+
header?(_: {
|
|
11
|
+
$modal: import('vxe-pc-ui').VxeModalConstructor;
|
|
12
|
+
}): any;
|
|
13
|
+
corner?(_: {
|
|
14
|
+
$modal: import('vxe-pc-ui').VxeModalConstructor;
|
|
15
|
+
}): any;
|
|
16
|
+
aside?(_: {
|
|
17
|
+
$modal: import('vxe-pc-ui').VxeModalConstructor;
|
|
18
|
+
}): any;
|
|
19
|
+
default?(_: {
|
|
20
|
+
$modal: import('vxe-pc-ui').VxeModalConstructor;
|
|
21
|
+
}): any;
|
|
22
|
+
left?(_: {
|
|
23
|
+
$modal: import('vxe-pc-ui').VxeModalConstructor;
|
|
24
|
+
}): any;
|
|
25
|
+
right?(_: {
|
|
26
|
+
$modal: import('vxe-pc-ui').VxeModalConstructor;
|
|
27
|
+
}): any;
|
|
28
|
+
footer?(_: {
|
|
29
|
+
$modal: import('vxe-pc-ui').VxeModalConstructor;
|
|
30
|
+
}): any;
|
|
31
|
+
leftfoot?(_: {
|
|
32
|
+
$modal: import('vxe-pc-ui').VxeModalConstructor;
|
|
33
|
+
}): any;
|
|
34
|
+
rightfoot?(_: {
|
|
35
|
+
$modal: import('vxe-pc-ui').VxeModalConstructor;
|
|
36
|
+
}): any;
|
|
37
|
+
};
|
|
38
|
+
refs: {};
|
|
39
|
+
rootEl: any;
|
|
35
40
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
showFooter: boolean;
|
|
39
|
-
resize: boolean;
|
|
40
|
-
width: number;
|
|
41
|
-
height: number;
|
|
42
|
-
showMaximize: boolean;
|
|
43
|
-
lockView: boolean;
|
|
44
|
-
lockScroll: boolean;
|
|
45
|
-
mask: boolean;
|
|
46
|
-
confirmClosable: boolean;
|
|
47
|
-
cancelClosable: boolean;
|
|
48
|
-
showClose: boolean;
|
|
49
|
-
showTitleOverflow: boolean;
|
|
50
|
-
draggable: boolean;
|
|
51
|
-
type: string;
|
|
52
|
-
dblclickZoom: boolean;
|
|
53
|
-
appendToBody: boolean;
|
|
54
|
-
transfer: boolean;
|
|
55
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
42
|
+
declare const __VLS_component: import('vue').DefineComponent<VxeModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
56
43
|
resize: (...args: any[]) => void;
|
|
57
|
-
|
|
44
|
+
hide: (...args: any[]) => void;
|
|
45
|
+
zoom: (...args: any[]) => void;
|
|
58
46
|
"update:modelValue": (...args: any[]) => void;
|
|
47
|
+
close: (...args: any[]) => void;
|
|
48
|
+
confirm: (...args: any[]) => void;
|
|
59
49
|
show: (...args: any[]) => void;
|
|
60
|
-
hide: (...args: any[]) => void;
|
|
61
50
|
"before-hide": (...args: any[]) => void;
|
|
62
|
-
close: (...args: any[]) => void;
|
|
63
51
|
cancel: (...args: any[]) => void;
|
|
64
|
-
zoom: (...args: any[]) => void;
|
|
65
52
|
move: (...args: any[]) => void;
|
|
66
|
-
}, string, import(
|
|
67
|
-
showHeader: boolean;
|
|
68
|
-
showFooter: boolean;
|
|
69
|
-
resize: boolean;
|
|
70
|
-
width: number;
|
|
71
|
-
height: number;
|
|
72
|
-
showMaximize: boolean;
|
|
73
|
-
lockView: boolean;
|
|
74
|
-
lockScroll: boolean;
|
|
75
|
-
mask: boolean;
|
|
76
|
-
confirmClosable: boolean;
|
|
77
|
-
cancelClosable: boolean;
|
|
78
|
-
showClose: boolean;
|
|
79
|
-
showTitleOverflow: boolean;
|
|
80
|
-
draggable: boolean;
|
|
81
|
-
type: string;
|
|
82
|
-
dblclickZoom: boolean;
|
|
83
|
-
appendToBody: boolean;
|
|
84
|
-
transfer: boolean;
|
|
85
|
-
}>>> & {
|
|
86
|
-
onShow?: ((...args: any[]) => any) | undefined;
|
|
87
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
88
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
}, string, import('vue').PublicProps, Readonly<VxeModalProps> & Readonly<{
|
|
89
54
|
onResize?: ((...args: any[]) => any) | undefined;
|
|
90
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
91
55
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onZoom?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
92
61
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
93
62
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
94
|
-
onZoom?: ((...args: any[]) => any) | undefined;
|
|
95
63
|
onMove?: ((...args: any[]) => any) | undefined;
|
|
96
|
-
}
|
|
64
|
+
}>, {
|
|
97
65
|
type: import("vxe-pc-ui").VxeModalPropTypes.Type;
|
|
66
|
+
resize: import("vxe-pc-ui").VxeModalPropTypes.Resize;
|
|
98
67
|
mask: import("vxe-pc-ui").VxeModalPropTypes.Mask;
|
|
99
|
-
|
|
68
|
+
height: import("vxe-pc-ui").VxeModalPropTypes.Height;
|
|
69
|
+
width: import("vxe-pc-ui").VxeModalPropTypes.Width;
|
|
70
|
+
showHeader: import("vxe-pc-ui").VxeModalPropTypes.ShowHeader;
|
|
71
|
+
showFooter: import("vxe-pc-ui").VxeModalPropTypes.ShowFooter;
|
|
100
72
|
lockScroll: import("vxe-pc-ui").VxeModalPropTypes.LockScroll;
|
|
73
|
+
draggable: import("vxe-pc-ui").VxeModalPropTypes.Draggable;
|
|
74
|
+
showClose: import("vxe-pc-ui").VxeModalPropTypes.ShowClose;
|
|
75
|
+
lockView: import("vxe-pc-ui").VxeModalPropTypes.LockView;
|
|
101
76
|
cancelClosable: import("vxe-pc-ui").VxeModalPropTypes.CancelClosable;
|
|
102
77
|
confirmClosable: import("vxe-pc-ui").VxeModalPropTypes.ConfirmClosable;
|
|
103
|
-
resize: import("vxe-pc-ui").VxeModalPropTypes.Resize;
|
|
104
|
-
showHeader: import("vxe-pc-ui").VxeModalPropTypes.ShowHeader;
|
|
105
|
-
showFooter: import("vxe-pc-ui").VxeModalPropTypes.ShowFooter;
|
|
106
78
|
showMaximize: import("vxe-pc-ui").VxeModalPropTypes.ShowMaximize;
|
|
107
|
-
showClose: import("vxe-pc-ui").VxeModalPropTypes.ShowClose;
|
|
108
79
|
dblclickZoom: import("vxe-pc-ui").VxeModalPropTypes.DblclickZoom;
|
|
109
|
-
draggable: import("vxe-pc-ui").VxeModalPropTypes.Draggable;
|
|
110
|
-
width: import("vxe-pc-ui").VxeModalPropTypes.Width;
|
|
111
|
-
height: import("vxe-pc-ui").VxeModalPropTypes.Height;
|
|
112
80
|
showTitleOverflow: import("vxe-pc-ui").VxeModalPropTypes.ShowTitleOverflow;
|
|
113
81
|
transfer: import("vxe-pc-ui").VxeModalPropTypes.Transfer;
|
|
114
|
-
}, {}>;
|
|
115
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
82
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
83
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
116
84
|
export default _default;
|
|
117
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
118
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
119
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
120
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
121
|
-
} : {
|
|
122
|
-
type: import('vue').PropType<T[K]>;
|
|
123
|
-
required: true;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
type __VLS_WithDefaults<P, D> = {
|
|
127
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
128
|
-
default: D[K];
|
|
129
|
-
}> : P[K];
|
|
130
|
-
};
|
|
131
|
-
type __VLS_Prettify<T> = {
|
|
132
|
-
[K in keyof T]: T[K];
|
|
133
|
-
} & {};
|
|
134
85
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
135
86
|
new (): {
|
|
136
87
|
$slots: S;
|
|
@@ -1,60 +1,41 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SabSelectProps } from '../../types/select';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
-
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {
|
|
6
|
+
item: any;
|
|
7
|
+
}): any;
|
|
8
|
+
default?(_: {
|
|
9
|
+
item: any;
|
|
10
|
+
}): any;
|
|
11
|
+
default?(_: any): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
4
15
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
"update:modelValue": (value: any) => void;
|
|
14
|
-
focus: (value: any) => void;
|
|
15
|
-
blur: (value: any) => void;
|
|
16
|
-
change: (value: any) => void;
|
|
17
|
-
loadmore: (value: any, pagination: any) => void;
|
|
18
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabSelectProps>, {
|
|
19
|
-
labelKey: string;
|
|
20
|
-
valueKey: string;
|
|
21
|
-
disabledKey: string;
|
|
22
|
-
selectType: string;
|
|
23
|
-
clearable: boolean;
|
|
24
|
-
filterable: boolean;
|
|
25
|
-
}>>> & {
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<SabSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
+
focus: (value: any) => any;
|
|
19
|
+
blur: (value: any) => any;
|
|
20
|
+
change: (value: any) => any;
|
|
21
|
+
"update:modelValue": (value: any) => any;
|
|
22
|
+
loadmore: (value: any, pagination: any) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<SabSelectProps> & Readonly<{
|
|
26
24
|
onFocus?: ((value: any) => any) | undefined;
|
|
27
25
|
onBlur?: ((value: any) => any) | undefined;
|
|
28
26
|
onChange?: ((value: any) => any) | undefined;
|
|
29
27
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
30
28
|
onLoadmore?: ((value: any, pagination: any) => any) | undefined;
|
|
31
|
-
}
|
|
29
|
+
}>, {
|
|
30
|
+
clearable: boolean;
|
|
32
31
|
labelKey: string;
|
|
33
32
|
valueKey: string;
|
|
34
33
|
disabledKey: string;
|
|
35
|
-
clearable: boolean;
|
|
36
34
|
filterable: boolean;
|
|
37
35
|
selectType: "v1" | "v2";
|
|
38
|
-
}, {}>;
|
|
39
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
40
38
|
export default _default;
|
|
41
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
43
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
44
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
45
|
-
} : {
|
|
46
|
-
type: import('vue').PropType<T[K]>;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
type __VLS_WithDefaults<P, D> = {
|
|
51
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
52
|
-
default: D[K];
|
|
53
|
-
}> : P[K];
|
|
54
|
-
};
|
|
55
|
-
type __VLS_Prettify<T> = {
|
|
56
|
-
[K in keyof T]: T[K];
|
|
57
|
-
} & {};
|
|
58
39
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
40
|
new (): {
|
|
60
41
|
$slots: S;
|
|
@@ -1,36 +1,136 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { SabColumnProps } from '../../../../types/table';
|
|
2
|
+
declare const SabCellBoolean: import('vue').DefineComponent<{
|
|
3
|
+
name?: string | undefined;
|
|
4
|
+
disabled?: boolean | undefined;
|
|
5
|
+
modelValue?: string | number | boolean | undefined;
|
|
6
|
+
validateEvent?: boolean | undefined;
|
|
7
|
+
readonly loading?: boolean | undefined;
|
|
8
|
+
readonly width?: (string | number) | undefined;
|
|
9
|
+
readonly inlinePrompt?: boolean | undefined;
|
|
10
|
+
readonly activeText?: string | undefined;
|
|
11
|
+
readonly inactiveText?: string | undefined;
|
|
12
|
+
readonly activeValue?: (string | number | boolean) | undefined;
|
|
13
|
+
readonly inactiveValue?: (string | number | boolean) | undefined;
|
|
14
|
+
readonly ariaLabel?: string | undefined;
|
|
15
|
+
id?: string | undefined;
|
|
16
|
+
size?: "" | "small" | "default" | "large" | undefined;
|
|
17
|
+
tabindex?: string | number | undefined;
|
|
18
|
+
readonly inactiveActionIcon?: (string | import('vue').Component) | undefined;
|
|
19
|
+
readonly activeActionIcon?: (string | import('vue').Component) | undefined;
|
|
20
|
+
readonly activeIcon?: (string | import('vue').Component) | undefined;
|
|
21
|
+
readonly inactiveIcon?: (string | import('vue').Component) | undefined;
|
|
22
|
+
readonly beforeChange?: (() => Promise<boolean> | boolean) | undefined;
|
|
23
|
+
indeterminate?: boolean | undefined;
|
|
24
|
+
checked?: boolean | undefined;
|
|
25
|
+
border?: boolean | undefined;
|
|
26
|
+
value?: string | number | boolean | Record<string, any> | undefined;
|
|
27
|
+
label?: string | number | boolean | Record<string, any> | undefined;
|
|
28
|
+
ariaControls?: string | undefined;
|
|
29
|
+
trueValue?: string | number | undefined;
|
|
30
|
+
falseValue?: string | number | undefined;
|
|
31
|
+
trueLabel?: string | number | undefined;
|
|
32
|
+
falseLabel?: string | number | undefined;
|
|
33
|
+
showType?: ("checkbox" | "switch") | undefined;
|
|
34
|
+
valueTrue?: any | ((param: {
|
|
35
|
+
row: D;
|
|
36
|
+
column: SabColumnProps<D>;
|
|
37
|
+
}) => any);
|
|
38
|
+
valueFalse?: any | ((param: {
|
|
39
|
+
row: D;
|
|
40
|
+
column: SabColumnProps<D>;
|
|
41
|
+
}) => any);
|
|
42
|
+
onChange?: ((params: {
|
|
43
|
+
value: boolean;
|
|
44
|
+
row: import("vxe-table").VxeTablePropTypes.Row;
|
|
45
|
+
column: SabColumnProps<import("vxe-table").VxeTablePropTypes.Row>;
|
|
46
|
+
}) => void) | undefined;
|
|
47
|
+
row: any;
|
|
48
|
+
column: import('vxe-table').VxeColumnProps<import("vxe-table").VxeTablePropTypes.Row> & {
|
|
49
|
+
field?: string | number | undefined;
|
|
50
|
+
sabCellType?: "input" | "input-number" | "select" | "date-picker" | "image" | "color" | "boolean" | "popover" | "dynamic";
|
|
51
|
+
editorProps?: Partial<import('../../../../types/table').SabCellEditorParams>;
|
|
52
|
+
getEditorProps?(scope: import("vxe-table").VxeColumnSlotTypes.DefaultSlotParams<import("vxe-table").VxeTablePropTypes.Row> | import("vxe-table").VxeColumnSlotTypes.EditSlotParams<import("vxe-table").VxeTablePropTypes.Row>): Partial<import('../../../../types/table').SabCellEditorParams>;
|
|
53
|
+
editable?: boolean;
|
|
54
|
+
slots?: Partial<import('../../../../types/table').SabColumnSlots<import("vxe-table").VxeTablePropTypes.Row>> | undefined;
|
|
55
|
+
visible?: boolean;
|
|
56
|
+
headerFilterConfig?: import('../../../../types/table').SabColumnFilterParams;
|
|
57
|
+
xTable?: import('vxe-table').VxeTableInstance;
|
|
58
|
+
enableAutoWidth?: boolean;
|
|
59
|
+
enableBatchAction?: boolean;
|
|
60
|
+
noHeaderSet?: boolean;
|
|
61
|
+
withSummary?: boolean;
|
|
62
|
+
footerMethod?(column: SabColumnProps<import("vxe-table").VxeTablePropTypes.Row>, data: import("vxe-table").VxeTablePropTypes.Row[], $table: import('vxe-table').VxeTableConstructor<any> & import('vxe-table').VxeTablePrivateMethods<any>): any;
|
|
63
|
+
children?: SabColumnProps<import("vxe-table").VxeTablePropTypes.Row>[] | undefined;
|
|
64
|
+
transformRowDataToCell?(scope: import("vxe-table").VxeColumnSlotTypes.DefaultSlotParams<import("vxe-table").VxeTablePropTypes.Row> | import("vxe-table").VxeColumnSlotTypes.EditSlotParams<import("vxe-table").VxeTablePropTypes.Row>): any;
|
|
65
|
+
alwaysShowEdit?: boolean;
|
|
66
|
+
};
|
|
67
|
+
}, () => JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<{
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
disabled?: boolean | undefined;
|
|
70
|
+
modelValue?: string | number | boolean | undefined;
|
|
71
|
+
validateEvent?: boolean | undefined;
|
|
72
|
+
readonly loading?: boolean | undefined;
|
|
73
|
+
readonly width?: (string | number) | undefined;
|
|
74
|
+
readonly inlinePrompt?: boolean | undefined;
|
|
75
|
+
readonly activeText?: string | undefined;
|
|
76
|
+
readonly inactiveText?: string | undefined;
|
|
77
|
+
readonly activeValue?: (string | number | boolean) | undefined;
|
|
78
|
+
readonly inactiveValue?: (string | number | boolean) | undefined;
|
|
79
|
+
readonly ariaLabel?: string | undefined;
|
|
80
|
+
id?: string | undefined;
|
|
81
|
+
size?: "" | "small" | "default" | "large" | undefined;
|
|
82
|
+
tabindex?: string | number | undefined;
|
|
83
|
+
readonly inactiveActionIcon?: (string | import('vue').Component) | undefined;
|
|
84
|
+
readonly activeActionIcon?: (string | import('vue').Component) | undefined;
|
|
85
|
+
readonly activeIcon?: (string | import('vue').Component) | undefined;
|
|
86
|
+
readonly inactiveIcon?: (string | import('vue').Component) | undefined;
|
|
87
|
+
readonly beforeChange?: (() => Promise<boolean> | boolean) | undefined;
|
|
88
|
+
indeterminate?: boolean | undefined;
|
|
89
|
+
checked?: boolean | undefined;
|
|
90
|
+
border?: boolean | undefined;
|
|
91
|
+
value?: string | number | boolean | Record<string, any> | undefined;
|
|
92
|
+
label?: string | number | boolean | Record<string, any> | undefined;
|
|
93
|
+
ariaControls?: string | undefined;
|
|
94
|
+
trueValue?: string | number | undefined;
|
|
95
|
+
falseValue?: string | number | undefined;
|
|
96
|
+
trueLabel?: string | number | undefined;
|
|
97
|
+
falseLabel?: string | number | undefined;
|
|
98
|
+
showType?: ("checkbox" | "switch") | undefined;
|
|
99
|
+
valueTrue?: any | ((param: {
|
|
100
|
+
row: D;
|
|
101
|
+
column: SabColumnProps<D>;
|
|
102
|
+
}) => any);
|
|
103
|
+
valueFalse?: any | ((param: {
|
|
104
|
+
row: D;
|
|
105
|
+
column: SabColumnProps<D>;
|
|
106
|
+
}) => any);
|
|
107
|
+
onChange?: ((params: {
|
|
108
|
+
value: boolean;
|
|
109
|
+
row: import("vxe-table").VxeTablePropTypes.Row;
|
|
110
|
+
column: SabColumnProps<import("vxe-table").VxeTablePropTypes.Row>;
|
|
111
|
+
}) => void) | undefined;
|
|
112
|
+
row: any;
|
|
113
|
+
column: import('vxe-table').VxeColumnProps<import("vxe-table").VxeTablePropTypes.Row> & {
|
|
114
|
+
field?: string | number | undefined;
|
|
115
|
+
sabCellType?: "input" | "input-number" | "select" | "date-picker" | "image" | "color" | "boolean" | "popover" | "dynamic";
|
|
116
|
+
editorProps?: Partial<import('../../../../types/table').SabCellEditorParams>;
|
|
117
|
+
getEditorProps?(scope: import("vxe-table").VxeColumnSlotTypes.DefaultSlotParams<import("vxe-table").VxeTablePropTypes.Row> | import("vxe-table").VxeColumnSlotTypes.EditSlotParams<import("vxe-table").VxeTablePropTypes.Row>): Partial<import('../../../../types/table').SabCellEditorParams>;
|
|
118
|
+
editable?: boolean;
|
|
119
|
+
slots?: Partial<import('../../../../types/table').SabColumnSlots<import("vxe-table").VxeTablePropTypes.Row>> | undefined;
|
|
120
|
+
visible?: boolean;
|
|
121
|
+
headerFilterConfig?: import('../../../../types/table').SabColumnFilterParams;
|
|
122
|
+
xTable?: import('vxe-table').VxeTableInstance;
|
|
123
|
+
enableAutoWidth?: boolean;
|
|
124
|
+
enableBatchAction?: boolean;
|
|
125
|
+
noHeaderSet?: boolean;
|
|
126
|
+
withSummary?: boolean;
|
|
127
|
+
footerMethod?(column: SabColumnProps<import("vxe-table").VxeTablePropTypes.Row>, data: import("vxe-table").VxeTablePropTypes.Row[], $table: import('vxe-table').VxeTableConstructor<any> & import('vxe-table').VxeTablePrivateMethods<any>): any;
|
|
128
|
+
children?: SabColumnProps<import("vxe-table").VxeTablePropTypes.Row>[] | undefined;
|
|
129
|
+
transformRowDataToCell?(scope: import("vxe-table").VxeColumnSlotTypes.DefaultSlotParams<import("vxe-table").VxeTablePropTypes.Row> | import("vxe-table").VxeColumnSlotTypes.EditSlotParams<import("vxe-table").VxeTablePropTypes.Row>): any;
|
|
130
|
+
alwaysShowEdit?: boolean;
|
|
131
|
+
};
|
|
132
|
+
}> & Readonly<{
|
|
24
133
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
readonly onChange?: any;
|
|
27
|
-
readonly modelValue?: any;
|
|
28
|
-
readonly disabled?: any;
|
|
29
|
-
readonly showType?: any;
|
|
30
|
-
readonly valueTrue?: any;
|
|
31
|
-
readonly valueFalse?: any;
|
|
32
|
-
readonly row?: any;
|
|
33
|
-
readonly column?: any;
|
|
34
|
-
}, {}>;
|
|
134
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
35
135
|
export default SabCellBoolean;
|
|
36
136
|
export declare const config: Partial<SabColumnProps>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { CascaderValue } from "element-plus";
|
|
6
|
-
import type { SabColumnProps } from "../../../../types/table";
|
|
7
|
-
declare const SabCellEditCascader: import("vue").DefineComponent<{
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CascaderValue } from 'element-plus';
|
|
3
|
+
import { SabColumnProps } from '../../../../types/table';
|
|
4
|
+
declare const SabCellEditCascader: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
5
|
options: ArrayConstructor;
|
|
9
6
|
modelValue: {
|
|
10
7
|
type: PropType<CascaderValue>;
|
|
@@ -13,7 +10,7 @@ declare const SabCellEditCascader: import("vue").DefineComponent<{
|
|
|
13
10
|
renderOption: FunctionConstructor;
|
|
14
11
|
dynamicOptions: FunctionConstructor;
|
|
15
12
|
revalidateOnFocus: BooleanConstructor;
|
|
16
|
-
}
|
|
13
|
+
}>, () => JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
14
|
options: ArrayConstructor;
|
|
18
15
|
modelValue: {
|
|
19
16
|
type: PropType<CascaderValue>;
|
|
@@ -22,11 +19,11 @@ declare const SabCellEditCascader: import("vue").DefineComponent<{
|
|
|
22
19
|
renderOption: FunctionConstructor;
|
|
23
20
|
dynamicOptions: FunctionConstructor;
|
|
24
21
|
revalidateOnFocus: BooleanConstructor;
|
|
25
|
-
}>> & {
|
|
22
|
+
}>> & Readonly<{
|
|
26
23
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}
|
|
24
|
+
}>, {
|
|
28
25
|
modelValue: CascaderValue;
|
|
29
26
|
revalidateOnFocus: boolean;
|
|
30
|
-
}, {}>;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
28
|
export default SabCellEditCascader;
|
|
32
29
|
export declare const config: Partial<SabColumnProps>;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import type { SabColumnProps } from "../../../../types/table";
|
|
5
|
-
declare const SabCellColor: import("vue").DefineComponent<{
|
|
1
|
+
import { SabColumnProps } from '../../../../types/table';
|
|
2
|
+
declare const SabCellColor: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
3
|
color: StringConstructor;
|
|
7
|
-
}
|
|
4
|
+
}>, () => JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
5
|
color: StringConstructor;
|
|
9
|
-
}
|
|
6
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
7
|
export default SabCellColor;
|
|
11
8
|
export declare const config: Partial<SabColumnProps>;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { DatePickerProps } from "element-plus";
|
|
5
|
-
import type { SabColumnProps } from "../../../../types/table";
|
|
6
|
-
declare const SabCellEditDatePicker: import("vue").DefineComponent<DatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<DatePickerProps>, {
|
|
7
|
-
[x: string]: unknown;
|
|
8
|
-
}, {}>;
|
|
1
|
+
import { DatePickerProps } from 'element-plus';
|
|
2
|
+
import { SabColumnProps } from '../../../../types/table';
|
|
3
|
+
declare const SabCellEditDatePicker: import('vue').DefineComponent<DatePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DatePickerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
4
|
export default SabCellEditDatePicker;
|
|
10
5
|
export declare const config: Partial<SabColumnProps>;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import type { SabColumnProps } from "../../../../types/table";
|
|
5
|
-
declare const SabCellImage: import("vue").DefineComponent<{
|
|
1
|
+
import { SabColumnProps } from '../../../../types/table';
|
|
2
|
+
declare const SabCellImage: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
3
|
src: StringConstructor;
|
|
7
4
|
showThumb: BooleanConstructor;
|
|
8
|
-
}
|
|
5
|
+
}>, () => JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
6
|
src: StringConstructor;
|
|
10
7
|
showThumb: BooleanConstructor;
|
|
11
|
-
}
|
|
8
|
+
}>> & Readonly<{}>, {
|
|
12
9
|
showThumb: boolean;
|
|
13
|
-
}, {}>;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
11
|
export default SabCellImage;
|
|
15
12
|
export declare const config: Partial<SabColumnProps>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { InputProps } from "element-plus";
|
|
5
|
-
import type { SabColumnProps } from "../../../../types/table";
|
|
6
|
-
declare const SabCellEditInput: import("vue").DefineComponent<InputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<InputProps>, {}, {}>;
|
|
1
|
+
import { InputProps } from 'element-plus';
|
|
2
|
+
import { SabColumnProps } from '../../../../types/table';
|
|
3
|
+
declare const SabCellEditInput: import('vue').DefineComponent<InputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
4
|
export default SabCellEditInput;
|
|
8
5
|
export declare const config: Partial<SabColumnProps>;
|