@sdata/web-vue 1.10.0 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sd.css +148 -952
- package/dist/sd.min.css +1 -1
- package/es/_components/input-label/style/input-label.scss +11 -51
- package/es/_components/select-view/select-view.d.ts +1 -1
- package/es/_components/select-view/style/index.css +0 -84
- package/es/_components/virtual-list/interface.d.ts +10 -1
- package/es/{table/hooks/use-table-virtual-size.d.ts → _components/virtual-list/use-virtual-size.d.ts} +4 -2
- package/es/{table/hooks/use-table-virtual-size.js → _components/virtual-list/use-virtual-size.js} +17 -20
- package/es/_components/virtual-list/virtual-list.js +64 -2
- package/es/_components/virtual-list/virtual-list.vue.d.ts +208 -0
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +277 -5
- package/es/_utils/clipboard.js +2 -1
- package/es/auto-complete/auto-complete.d.ts +1 -1
- package/es/auto-complete/index.d.ts +24 -15
- package/es/auto-complete/style/index.css +0 -16
- package/es/auto-complete/style/index.scss +11 -26
- package/es/badge/style/index.scss +11 -41
- package/es/button/style/index.css +35 -445
- package/es/button/style/index.scss +57 -332
- package/es/card/style/index.scss +18 -52
- package/es/carousel/index.d.ts +1 -0
- package/es/cascader/cascader-panel.vue.d.ts +1 -1
- package/es/cascader/cascader.vue.d.ts +3 -3
- package/es/cascader/index.d.ts +10 -10
- package/es/cascader/interface.d.ts +5 -0
- package/es/color-picker/style/index.scss +17 -99
- package/es/config-provider/config-provider.vue.d.ts +1 -1
- package/es/config-provider/index.d.ts +4 -3
- package/es/date-picker/index.d.ts +21 -14
- package/es/date-picker/panels/date/index.vue.d.ts +1 -1
- package/es/date-picker/panels/week/index.vue.d.ts +7 -7
- package/es/date-picker/picker.vue.d.ts +1 -1
- package/es/date-picker/range-picker.vue.d.ts +1 -1
- package/es/descriptions/descriptions.d.ts +1 -1
- package/es/descriptions/index.d.ts +4 -4
- package/es/descriptions/style/index.scss +18 -63
- package/es/form/style/index.css +12 -176
- package/es/form/style/status.scss +36 -73
- package/es/index.css +148 -952
- package/es/index.d.ts +21 -20
- package/es/input/style/input.scss +14 -66
- package/es/input-number/index.d.ts +5 -0
- package/es/input-tag/style/index.css +0 -84
- package/es/input-tag/style/input-tag.scss +16 -170
- package/es/list/style/index.scss +12 -42
- package/es/menu/index.d.ts +8 -0
- package/es/menu/style/index.css +0 -178
- package/es/menu/style/index.scss +36 -139
- package/es/pagination/index.d.ts +3 -3
- package/es/pagination/interface.d.ts +2 -1
- package/es/pagination/page-options.js +1 -1
- package/es/pagination/page-options.vue.d.ts +72 -71
- package/es/pagination/page-options.vue_vue_type_script_lang.js +6 -0
- package/es/pagination/pagination.d.ts +3 -3
- package/es/pagination/style/index.css +0 -12
- package/es/pagination/style/index.scss +19 -76
- package/es/radio/index.d.ts +3 -0
- package/es/result/style/index.css +0 -16
- package/es/result/style/index.scss +12 -34
- package/es/select/index.d.ts +9 -9
- package/es/select/interface.d.ts +2 -1
- package/es/select/select.d.ts +3 -3
- package/es/slider/index.d.ts +6 -3
- package/es/slider/slider.vue.d.ts +1 -1
- package/es/steps/index.d.ts +2 -0
- package/es/switch/index.d.ts +3 -0
- package/es/table/context.d.ts +1 -1
- package/es/table/hooks/use-column-resize.d.ts +2 -3
- package/es/table/hooks/use-column-resize.js +48 -21
- package/es/table/hooks/use-drag.d.ts +4 -2
- package/es/table/hooks/use-drag.js +16 -2
- package/es/table/index.d.ts +22 -34
- package/es/table/interface.d.ts +21 -2
- package/es/table/style/index.css +97 -21
- package/es/table/style/index.scss +137 -125
- package/es/table/table-operation-td.d.ts +2 -2
- package/es/table/table-operation-td.js +4 -5
- package/es/table/table-operation-th.js +4 -4
- package/es/table/table-tbody.js +1 -1
- package/es/table/table-td.js +5 -6
- package/es/table/table-th.js +25 -24
- package/es/table/table-thead.js +1 -1
- package/es/table/table-tr.js +1 -1
- package/es/table/table.d.ts +12 -16
- package/es/table/table.js +399 -190
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/style/index.scss +53 -135
- package/es/tag/index.d.ts +3 -3
- package/es/tag/style/index.css +0 -84
- package/es/tag/style/index.scss +19 -146
- package/es/tag/tag.vue.d.ts +1 -1
- package/es/theme-provider/index.d.ts +9 -9
- package/es/time-picker/index.d.ts +1 -0
- package/es/timeline/index.d.ts +1 -0
- package/es/transfer/index.d.ts +1 -0
- package/es/transfer/interface.d.ts +1 -1
- package/es/tree/hooks/use-tree-data.d.ts +17 -29
- package/es/tree/index.d.ts +6 -1
- package/es/tree/interface.d.ts +2 -0
- package/es/tree/tree.js +1 -1
- package/es/tree/tree.vue.d.ts +3561 -13
- package/es/tree/tree.vue_vue_type_script_lang.js +21 -9
- package/es/tree-select/hooks/use-selected-state.js +3 -1
- package/es/tree-select/index.d.ts +3 -0
- package/es/tree-select/tree-select.vue.d.ts +1367 -3
- package/json/vetur-attributes.json +1 -6
- package/json/vetur-tags.json +0 -1
- package/json/web-types.json +7 -11
- package/package.json +1 -1
- package/es/style/theme/legacy-less-var.scss +0 -15
- package/es/table/table-col-group.js +0 -21
- package/es/table/table-col-group.vue_vue_type_script_lang.js +0 -32
- package/es/table/table-legacy-virtual-list.js +0 -47
- package/es/table/table-legacy-virtual-list.vue.d.ts +0 -156
- package/es/table/table-legacy-virtual-list.vue_vue_type_script_lang.js +0 -148
- package/es/table/table-virtual-list-item.d.ts +0 -22
- package/es/table/table-virtual-list-item.js +0 -37
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
2
|
import type { SDOptions } from '../_utils/types';
|
|
3
|
+
import type { FilterOption, SelectOptionData, SelectOptionGroup } from '../select/interface';
|
|
3
4
|
import _AutoComplete from './auto-complete';
|
|
5
|
+
export type AutoCompleteData = Array<string | number | SelectOptionData | SelectOptionGroup>;
|
|
6
|
+
export type AutoCompleteFilterOption = FilterOption;
|
|
7
|
+
export type AutoCompleteChangeHandler = (value: string) => void;
|
|
8
|
+
export type AutoCompleteSearchHandler = (value: string) => void;
|
|
9
|
+
export type AutoCompleteSelectHandler = (value: string) => void;
|
|
10
|
+
export type AutoCompleteClearHandler = (event: Event) => void;
|
|
11
|
+
export type AutoCompleteDropdownScrollHandler = (event: Event) => void;
|
|
12
|
+
export type AutoCompleteDropdownReachBottomHandler = (event: Event) => void;
|
|
4
13
|
declare const AutoComplete: {
|
|
5
14
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
6
15
|
modelValue: {
|
|
@@ -16,7 +25,7 @@ declare const AutoComplete: {
|
|
|
16
25
|
default: boolean;
|
|
17
26
|
};
|
|
18
27
|
data: {
|
|
19
|
-
type: import("vue").PropType<(string | number |
|
|
28
|
+
type: import("vue").PropType<(string | number | SelectOptionData | SelectOptionGroup)[]>;
|
|
20
29
|
default: () => never[];
|
|
21
30
|
};
|
|
22
31
|
popupContainer: {
|
|
@@ -27,7 +36,7 @@ declare const AutoComplete: {
|
|
|
27
36
|
default: boolean;
|
|
28
37
|
};
|
|
29
38
|
filterOption: {
|
|
30
|
-
type: import("vue").PropType<
|
|
39
|
+
type: import("vue").PropType<FilterOption>;
|
|
31
40
|
default: boolean;
|
|
32
41
|
};
|
|
33
42
|
triggerProps: {
|
|
@@ -65,11 +74,11 @@ declare const AutoComplete: {
|
|
|
65
74
|
}, import("vue").PublicProps, {
|
|
66
75
|
disabled: boolean;
|
|
67
76
|
defaultValue: string;
|
|
68
|
-
data: (string | number |
|
|
77
|
+
data: (string | number | SelectOptionData | SelectOptionGroup)[];
|
|
78
|
+
strict: boolean;
|
|
69
79
|
modelValue: string;
|
|
70
80
|
allowClear: boolean;
|
|
71
|
-
filterOption:
|
|
72
|
-
strict: boolean;
|
|
81
|
+
filterOption: FilterOption;
|
|
73
82
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
74
83
|
P: {};
|
|
75
84
|
B: {};
|
|
@@ -91,7 +100,7 @@ declare const AutoComplete: {
|
|
|
91
100
|
default: boolean;
|
|
92
101
|
};
|
|
93
102
|
data: {
|
|
94
|
-
type: import("vue").PropType<(string | number |
|
|
103
|
+
type: import("vue").PropType<(string | number | SelectOptionData | SelectOptionGroup)[]>;
|
|
95
104
|
default: () => never[];
|
|
96
105
|
};
|
|
97
106
|
popupContainer: {
|
|
@@ -102,7 +111,7 @@ declare const AutoComplete: {
|
|
|
102
111
|
default: boolean;
|
|
103
112
|
};
|
|
104
113
|
filterOption: {
|
|
105
|
-
type: import("vue").PropType<
|
|
114
|
+
type: import("vue").PropType<FilterOption>;
|
|
106
115
|
default: boolean;
|
|
107
116
|
};
|
|
108
117
|
triggerProps: {
|
|
@@ -132,11 +141,11 @@ declare const AutoComplete: {
|
|
|
132
141
|
}, {
|
|
133
142
|
disabled: boolean;
|
|
134
143
|
defaultValue: string;
|
|
135
|
-
data: (string | number |
|
|
144
|
+
data: (string | number | SelectOptionData | SelectOptionGroup)[];
|
|
145
|
+
strict: boolean;
|
|
136
146
|
modelValue: string;
|
|
137
147
|
allowClear: boolean;
|
|
138
|
-
filterOption:
|
|
139
|
-
strict: boolean;
|
|
148
|
+
filterOption: FilterOption;
|
|
140
149
|
}>;
|
|
141
150
|
__isFragment?: never;
|
|
142
151
|
__isTeleport?: never;
|
|
@@ -155,7 +164,7 @@ declare const AutoComplete: {
|
|
|
155
164
|
default: boolean;
|
|
156
165
|
};
|
|
157
166
|
data: {
|
|
158
|
-
type: import("vue").PropType<(string | number |
|
|
167
|
+
type: import("vue").PropType<(string | number | SelectOptionData | SelectOptionGroup)[]>;
|
|
159
168
|
default: () => never[];
|
|
160
169
|
};
|
|
161
170
|
popupContainer: {
|
|
@@ -166,7 +175,7 @@ declare const AutoComplete: {
|
|
|
166
175
|
default: boolean;
|
|
167
176
|
};
|
|
168
177
|
filterOption: {
|
|
169
|
-
type: import("vue").PropType<
|
|
178
|
+
type: import("vue").PropType<FilterOption>;
|
|
170
179
|
default: boolean;
|
|
171
180
|
};
|
|
172
181
|
triggerProps: {
|
|
@@ -204,11 +213,11 @@ declare const AutoComplete: {
|
|
|
204
213
|
}, string, {
|
|
205
214
|
disabled: boolean;
|
|
206
215
|
defaultValue: string;
|
|
207
|
-
data: (string | number |
|
|
216
|
+
data: (string | number | SelectOptionData | SelectOptionGroup)[];
|
|
217
|
+
strict: boolean;
|
|
208
218
|
modelValue: string;
|
|
209
219
|
allowClear: boolean;
|
|
210
|
-
filterOption:
|
|
211
|
-
strict: boolean;
|
|
220
|
+
filterOption: FilterOption;
|
|
212
221
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
213
222
|
install: (app: App, options?: SDOptions) => void;
|
|
214
223
|
};
|
|
@@ -38,22 +38,6 @@
|
|
|
38
38
|
font-size: 14px;
|
|
39
39
|
line-height: 36px;
|
|
40
40
|
}
|
|
41
|
-
.sd-autocomplete-popup .sd-select-popup .sd-select-option {
|
|
42
|
-
color: var(--color-text-1);
|
|
43
|
-
background-color: var(--color-bg-popup);
|
|
44
|
-
}
|
|
45
|
-
.sd-autocomplete-popup .sd-select-popup .sd-select-option-selected {
|
|
46
|
-
color: var(--color-text-1);
|
|
47
|
-
background-color: var(--color-bg-popup);
|
|
48
|
-
}
|
|
49
|
-
.sd-autocomplete-popup .sd-select-popup .sd-select-option-hover {
|
|
50
|
-
color: var(--color-text-1);
|
|
51
|
-
background-color: var(--color-fill-2);
|
|
52
|
-
}
|
|
53
|
-
.sd-autocomplete-popup .sd-select-popup .sd-select-option-disabled {
|
|
54
|
-
color: var(--color-text-4);
|
|
55
|
-
background-color: var(--color-bg-popup);
|
|
56
|
-
}
|
|
57
41
|
.sd-autocomplete-popup .sd-select-popup .sd-select-option-selected {
|
|
58
42
|
font-weight: 500;
|
|
59
43
|
}
|
|
@@ -1,36 +1,21 @@
|
|
|
1
1
|
@use '@style/theme/index.scss' as theme;
|
|
2
2
|
@use 'sass:string';
|
|
3
3
|
@use 'sass:map';
|
|
4
|
-
@use '
|
|
4
|
+
@use 'sass:meta';
|
|
5
|
+
@use '@components/auto-complete/style/token.scss' as token;
|
|
5
6
|
@use '@components/auto-complete/style/token.scss' as *;
|
|
6
7
|
|
|
7
8
|
$auto-complete-prefix-cls: string.unquote('#{theme.$prefix}-autocomplete');
|
|
8
9
|
$select-prefix-cls: string.unquote('#{theme.$prefix}-select');
|
|
9
10
|
|
|
10
|
-
$
|
|
11
|
-
|
|
12
|
-
'auto-complete-option-color-bg_disabled': $auto-complete-option-color-bg_disabled,
|
|
13
|
-
'auto-complete-option-color-bg_hover': $auto-complete-option-color-bg_hover,
|
|
14
|
-
'auto-complete-option-color-bg_selected': $auto-complete-option-color-bg_selected,
|
|
15
|
-
'auto-complete-option-color-text_default': $auto-complete-option-color-text_default,
|
|
16
|
-
'auto-complete-option-color-text_disabled': $auto-complete-option-color-text_disabled,
|
|
17
|
-
'auto-complete-option-color-text_hover': $auto-complete-option-color-text_hover,
|
|
18
|
-
'auto-complete-option-color-text_selected': $auto-complete-option-color-text_selected,
|
|
19
|
-
'auto-complete-option-font-weight_selected': $auto-complete-option-font-weight_selected,
|
|
20
|
-
'auto-complete-option-height': $auto-complete-option-height,
|
|
21
|
-
'auto-complete-option-padding-horizontal': $auto-complete-option-padding-horizontal,
|
|
22
|
-
'auto-complete-popup-border-radius': $auto-complete-popup-border-radius,
|
|
23
|
-
'auto-complete-popup-box-shadow': $auto-complete-popup-box-shadow,
|
|
24
|
-
'auto-complete-popup-color-border': $auto-complete-popup-color-border,
|
|
25
|
-
'auto-complete-popup-font-size': $auto-complete-popup-font-size,
|
|
26
|
-
'auto-complete-popup-max-height': $auto-complete-popup-max-height,
|
|
27
|
-
'auto-complete-popup-padding-vertical': $auto-complete-popup-padding-vertical,
|
|
28
|
-
'prefix': theme.$prefix,
|
|
29
|
-
'sd-cssvars-prefix': theme.$sd-cssvars-prefix,
|
|
30
|
-
);
|
|
11
|
+
@function token-var($name, $fallback: null) {
|
|
12
|
+
$value: map.get(meta.module-variables('token'), $name);
|
|
31
13
|
|
|
32
|
-
@
|
|
33
|
-
|
|
14
|
+
@if $value == null {
|
|
15
|
+
@return $fallback;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@return $value;
|
|
34
19
|
}
|
|
35
20
|
|
|
36
21
|
.#{$auto-complete-prefix-cls} {
|
|
@@ -59,8 +44,8 @@ $__less-vars: (
|
|
|
59
44
|
}
|
|
60
45
|
|
|
61
46
|
&#{$class-suffix} {
|
|
62
|
-
color:
|
|
63
|
-
background-color:
|
|
47
|
+
color: token-var('auto-complete-option-color-text_#{$status}');
|
|
48
|
+
background-color: token-var('auto-complete-option-color-bg_#{$status}');
|
|
64
49
|
}
|
|
65
50
|
}
|
|
66
51
|
|
|
@@ -3,50 +3,20 @@
|
|
|
3
3
|
@use 'sass:list';
|
|
4
4
|
@use 'sass:string';
|
|
5
5
|
@use 'sass:map';
|
|
6
|
-
@use '
|
|
6
|
+
@use 'sass:meta';
|
|
7
|
+
@use '@components/badge/style/token.scss' as token;
|
|
7
8
|
@use '@components/badge/style/token.scss' as *;
|
|
8
9
|
|
|
9
10
|
$badge-prefix-cls: string.unquote('#{theme.$prefix}-badge');
|
|
10
11
|
|
|
11
|
-
$
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'badge-red-color-dot-bg': $badge-red-color-dot-bg,
|
|
20
|
-
'badge-orangered-color-dot-bg': $badge-orangered-color-dot-bg,
|
|
21
|
-
'badge-orange-color-dot-bg': $badge-orange-color-dot-bg,
|
|
22
|
-
'badge-gold-color-dot-bg': $badge-gold-color-dot-bg,
|
|
23
|
-
'badge-lime-color-dot-bg': $badge-lime-color-dot-bg,
|
|
24
|
-
'badge-green-color-dot-bg': $badge-green-color-dot-bg,
|
|
25
|
-
'badge-cyan-color-dot-bg': $badge-cyan-color-dot-bg,
|
|
26
|
-
'badge-sdblue-color-dot-bg': $badge-sdblue-color-dot-bg,
|
|
27
|
-
'badge-purple-color-dot-bg': $badge-purple-color-dot-bg,
|
|
28
|
-
'badge-pinkpurple-color-dot-bg': $badge-pinkpurple-color-dot-bg,
|
|
29
|
-
'badge-magenta-color-dot-bg': $badge-magenta-color-dot-bg,
|
|
30
|
-
'badge-gray-color-dot-bg': $badge-gray-color-dot-bg,
|
|
31
|
-
'badge-color-status-text': $badge-color-status-text,
|
|
32
|
-
'badge-font-count-size': $badge-font-count-size,
|
|
33
|
-
'badge-font-count-weight': $badge-font-count-weight,
|
|
34
|
-
'badge-font-status-text-size': $badge-font-status-text-size,
|
|
35
|
-
'badge-margin-status-text-left': $badge-margin-status-text-left,
|
|
36
|
-
'badge-padding-count-horizontal': $badge-padding-count-horizontal,
|
|
37
|
-
'badge-size-count-height': $badge-size-count-height,
|
|
38
|
-
'badge-size-dot-width': $badge-size-dot-width,
|
|
39
|
-
'line-height-base': theme.$line-height-base,
|
|
40
|
-
'prefix': theme.$prefix,
|
|
41
|
-
'radius-circle': global.$radius-circle,
|
|
42
|
-
'sd-cssvars-prefix': theme.$sd-cssvars-prefix,
|
|
43
|
-
'transition-duration-3': theme.$transition-duration-3,
|
|
44
|
-
'transition-duration-5': theme.$transition-duration-5,
|
|
45
|
-
'transition-timing-function-overshoot': theme.$transition-timing-function-overshoot,
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
@function less-var($name, $fallback: null) {
|
|
49
|
-
@return legacyLessVar.get($__less-vars, $name, $fallback);
|
|
12
|
+
@function token-var($name, $fallback: null) {
|
|
13
|
+
$value: map.get(meta.module-variables('token'), $name);
|
|
14
|
+
|
|
15
|
+
@if $value == null {
|
|
16
|
+
@return $fallback;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@return $value;
|
|
50
20
|
}
|
|
51
21
|
|
|
52
22
|
.#{$badge-prefix-cls} {
|
|
@@ -159,7 +129,7 @@ $__less-vars: (
|
|
|
159
129
|
$color: string.unquote('badge-#{$color-name}-color-dot-bg');
|
|
160
130
|
|
|
161
131
|
&-color-#{$color-name} {
|
|
162
|
-
background-color:
|
|
132
|
+
background-color: token-var($color);
|
|
163
133
|
}
|
|
164
134
|
|
|
165
135
|
@include for($data, ($i + 1));
|