@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
package/es/cascader/index.d.ts
CHANGED
|
@@ -350,11 +350,11 @@ declare const Cascader: {
|
|
|
350
350
|
popupVisible: boolean;
|
|
351
351
|
defaultPopupVisible: boolean;
|
|
352
352
|
show: boolean;
|
|
353
|
+
separator: string;
|
|
354
|
+
multiple: boolean;
|
|
353
355
|
allowClear: boolean;
|
|
354
356
|
valueKey: string;
|
|
355
357
|
inputValue: string;
|
|
356
|
-
multiple: boolean;
|
|
357
|
-
separator: string;
|
|
358
358
|
defaultShow: boolean;
|
|
359
359
|
expandTrigger: "hover" | "click";
|
|
360
360
|
defaultInputValue: string;
|
|
@@ -1074,8 +1074,8 @@ declare const Cascader: {
|
|
|
1074
1074
|
disabled: boolean;
|
|
1075
1075
|
loading: boolean;
|
|
1076
1076
|
showArrow: boolean;
|
|
1077
|
-
allowClear: boolean;
|
|
1078
1077
|
multiple: boolean;
|
|
1078
|
+
allowClear: boolean;
|
|
1079
1079
|
bordered: boolean;
|
|
1080
1080
|
maxTagCount: number | "responsive";
|
|
1081
1081
|
retainInputValue: boolean;
|
|
@@ -1499,11 +1499,11 @@ declare const Cascader: {
|
|
|
1499
1499
|
popupVisible: boolean;
|
|
1500
1500
|
defaultPopupVisible: boolean;
|
|
1501
1501
|
show: boolean;
|
|
1502
|
+
separator: string;
|
|
1503
|
+
multiple: boolean;
|
|
1502
1504
|
allowClear: boolean;
|
|
1503
1505
|
valueKey: string;
|
|
1504
1506
|
inputValue: string;
|
|
1505
|
-
multiple: boolean;
|
|
1506
|
-
separator: string;
|
|
1507
1507
|
defaultShow: boolean;
|
|
1508
1508
|
expandTrigger: "hover" | "click";
|
|
1509
1509
|
defaultInputValue: string;
|
|
@@ -1870,11 +1870,11 @@ declare const Cascader: {
|
|
|
1870
1870
|
popupVisible: boolean;
|
|
1871
1871
|
defaultPopupVisible: boolean;
|
|
1872
1872
|
show: boolean;
|
|
1873
|
+
separator: string;
|
|
1874
|
+
multiple: boolean;
|
|
1873
1875
|
allowClear: boolean;
|
|
1874
1876
|
valueKey: string;
|
|
1875
1877
|
inputValue: string;
|
|
1876
|
-
multiple: boolean;
|
|
1877
|
-
separator: string;
|
|
1878
1878
|
defaultShow: boolean;
|
|
1879
1879
|
expandTrigger: "hover" | "click";
|
|
1880
1880
|
defaultInputValue: string;
|
|
@@ -2594,8 +2594,8 @@ declare const Cascader: {
|
|
|
2594
2594
|
disabled: boolean;
|
|
2595
2595
|
loading: boolean;
|
|
2596
2596
|
showArrow: boolean;
|
|
2597
|
-
allowClear: boolean;
|
|
2598
2597
|
multiple: boolean;
|
|
2598
|
+
allowClear: boolean;
|
|
2599
2599
|
bordered: boolean;
|
|
2600
2600
|
maxTagCount: number | "responsive";
|
|
2601
2601
|
retainInputValue: boolean;
|
|
@@ -2932,8 +2932,8 @@ declare const Cascader: {
|
|
|
2932
2932
|
}>, {
|
|
2933
2933
|
defaultValue: import("./interface").CascaderModelValue;
|
|
2934
2934
|
options: import("./interface").CascaderOption[];
|
|
2935
|
-
valueKey: string;
|
|
2936
2935
|
multiple: boolean;
|
|
2936
|
+
valueKey: string;
|
|
2937
2937
|
expandTrigger: string;
|
|
2938
2938
|
checkStrictly: boolean;
|
|
2939
2939
|
pathMode: boolean;
|
|
@@ -2992,6 +2992,6 @@ declare const Cascader: {
|
|
|
2992
2992
|
};
|
|
2993
2993
|
export type CascaderInstance = InstanceType<typeof _Cascader>;
|
|
2994
2994
|
export type CascaderPanelInstance = InstanceType<typeof _CascaderPanel>;
|
|
2995
|
-
export type {
|
|
2995
|
+
export type { CascaderChangeHandler, CascaderFallback, CascaderFieldNames, CascaderFormatLabel, CascaderLoadMore, CascaderModelValue, CascaderOption, CascaderOptionValue, CascaderPathValue, CascaderSearchHandler, CascaderSingleValue, } from './interface';
|
|
2996
2996
|
export { _CascaderPanel as CascaderPanel };
|
|
2997
2997
|
export default Cascader;
|
|
@@ -4,6 +4,11 @@ export type CascaderOptionValue = BaseType | Record<string, unknown>;
|
|
|
4
4
|
export type CascaderPathValue = CascaderOptionValue[];
|
|
5
5
|
export type CascaderSingleValue = CascaderOptionValue | CascaderPathValue;
|
|
6
6
|
export type CascaderModelValue = CascaderSingleValue | CascaderSingleValue[] | undefined;
|
|
7
|
+
export type CascaderFallback = (value: CascaderSingleValue) => string;
|
|
8
|
+
export type CascaderFormatLabel = (options: CascaderOption[]) => string;
|
|
9
|
+
export type CascaderLoadMore = (option: CascaderOption, done: (children?: CascaderOption[]) => void) => void;
|
|
10
|
+
export type CascaderChangeHandler = (value: CascaderModelValue) => void;
|
|
11
|
+
export type CascaderSearchHandler = (value: string) => void;
|
|
7
12
|
export interface CascaderOption {
|
|
8
13
|
value?: CascaderOptionValue;
|
|
9
14
|
label?: string;
|
|
@@ -3,104 +3,22 @@
|
|
|
3
3
|
@use '@style/theme/index.scss' as global;
|
|
4
4
|
@use 'sass:string';
|
|
5
5
|
@use 'sass:map';
|
|
6
|
-
@use '
|
|
6
|
+
@use 'sass:meta';
|
|
7
|
+
@use '@components/color-picker/style/token.scss' as token;
|
|
7
8
|
@use '@components/color-picker/style/token.scss' as *;
|
|
8
9
|
|
|
9
10
|
$color-picker-prefix-cls: string.unquote('#{theme.$prefix}-color-picker');
|
|
10
11
|
|
|
11
|
-
$
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'color-input-size-mini-padding': $color-input-size-mini-padding,
|
|
22
|
-
'color-input-size-small-padding': $color-input-size-small-padding,
|
|
23
|
-
'color-input-size-medium-padding': $color-input-size-medium-padding,
|
|
24
|
-
'color-input-size-large-padding': $color-input-size-large-padding,
|
|
25
|
-
'color-palette-handle-border-size': $color-palette-handle-border-size,
|
|
26
|
-
'color-palette-handle-size': $color-palette-handle-size,
|
|
27
|
-
'color-palette-height': $color-palette-height,
|
|
28
|
-
'color-panel-alpha-input-width': $color-panel-alpha-input-width,
|
|
29
|
-
'color-panel-bg-color': $color-panel-bg-color,
|
|
30
|
-
'color-panel-block-border-radius': $color-panel-block-border-radius,
|
|
31
|
-
'color-panel-block-margin': $color-panel-block-margin,
|
|
32
|
-
'color-panel-block-size': $color-panel-block-size,
|
|
33
|
-
'color-panel-border-color': $color-panel-border-color,
|
|
34
|
-
'color-panel-border-radius': $color-panel-border-radius,
|
|
35
|
-
'color-panel-box-shadow': $color-panel-box-shadow,
|
|
36
|
-
'color-panel-empty-font-size': $color-panel-empty-font-size,
|
|
37
|
-
'color-panel-format-select-width': $color-panel-format-select-width,
|
|
38
|
-
'color-panel-input-group-margin-left': $color-panel-input-group-margin-left,
|
|
39
|
-
'color-panel-input-margin-top': $color-panel-input-margin-top,
|
|
40
|
-
'color-panel-padding': $color-panel-padding,
|
|
41
|
-
'color-panel-preview-size': $color-panel-preview-size,
|
|
42
|
-
'color-panel-section-title-font-size': $color-panel-section-title-font-size,
|
|
43
|
-
'color-panel-width': $color-panel-width,
|
|
44
|
-
'color-preview-border-color': $color-preview-border-color,
|
|
45
|
-
'color-preview-border-size': $color-preview-border-size,
|
|
46
|
-
'color-preview-size-mini': $color-preview-size-mini,
|
|
47
|
-
'color-preview-size-small': $color-preview-size-small,
|
|
48
|
-
'color-preview-size-medium': $color-preview-size-medium,
|
|
49
|
-
'color-preview-size-large': $color-preview-size-large,
|
|
50
|
-
'color-value-font-color': $color-value-font-color,
|
|
51
|
-
'color-value-font-color_disabled': $color-value-font-color_disabled,
|
|
52
|
-
'color-value-font-size': $color-value-font-size,
|
|
53
|
-
'color-value-margin-left': $color-value-margin-left,
|
|
54
|
-
'color-value-size-mini-font-size': $color-value-size-mini-font-size,
|
|
55
|
-
'color-value-size-small-font-size': $color-value-size-small-font-size,
|
|
56
|
-
'color-value-size-medium-font-size': $color-value-size-medium-font-size,
|
|
57
|
-
'color-value-size-large-font-size': $color-value-size-large-font-size,
|
|
58
|
-
'font-size-body-1': global.$font-size-body-1,
|
|
59
|
-
'font-weight-400': global.$font-weight-400,
|
|
60
|
-
'input-color-addon-border': inputToken.$input-color-addon-border,
|
|
61
|
-
'input-color-addon-border_default': inputToken.$input-color-addon-border_default,
|
|
62
|
-
'input-color-bg': inputToken.$input-color-bg,
|
|
63
|
-
'input-color-bg_disabled': inputToken.$input-color-bg_disabled,
|
|
64
|
-
'input-color-bg_error': inputToken.$input-color-bg_error,
|
|
65
|
-
'input-color-bg_error_focus': inputToken.$input-color-bg_error_focus,
|
|
66
|
-
'input-color-bg_error_hover': inputToken.$input-color-bg_error_hover,
|
|
67
|
-
'input-color-bg_focus': inputToken.$input-color-bg_focus,
|
|
68
|
-
'input-color-bg_hover': inputToken.$input-color-bg_hover,
|
|
69
|
-
'input-color-border': inputToken.$input-color-border,
|
|
70
|
-
'input-color-border_disabled': inputToken.$input-color-border_disabled,
|
|
71
|
-
'input-color-border_error': inputToken.$input-color-border_error,
|
|
72
|
-
'input-color-border_error_focus': inputToken.$input-color-border_error_focus,
|
|
73
|
-
'input-color-border_error_hover': inputToken.$input-color-border_error_hover,
|
|
74
|
-
'input-color-border_focus': inputToken.$input-color-border_focus,
|
|
75
|
-
'input-color-border_hover': inputToken.$input-color-border_hover,
|
|
76
|
-
'input-color-icon-clear-bg_hover': inputToken.$input-color-icon-clear-bg_hover,
|
|
77
|
-
'input-color-shadow_error_focus': inputToken.$input-color-shadow_error_focus,
|
|
78
|
-
'input-color-shadow_focus': inputToken.$input-color-shadow_focus,
|
|
79
|
-
'input-color-text': inputToken.$input-color-text,
|
|
80
|
-
'input-color-text_disabled': inputToken.$input-color-text_disabled,
|
|
81
|
-
'input-feedback-icon-color_error': inputToken.$input-feedback-icon-color_error,
|
|
82
|
-
'input-feedback-icon-color_success': inputToken.$input-feedback-icon-color_success,
|
|
83
|
-
'input-feedback-icon-color_validating': inputToken.$input-feedback-icon-color_validating,
|
|
84
|
-
'input-feedback-icon-color_warning': inputToken.$input-feedback-icon-color_warning,
|
|
85
|
-
'input-group-border-radius_compact': inputToken.$input-group-border-radius_compact,
|
|
86
|
-
'input-size-mini-height': inputToken.$input-size-mini-height,
|
|
87
|
-
'input-size-small-height': inputToken.$input-size-small-height,
|
|
88
|
-
'input-size-medium-height': inputToken.$input-size-medium-height,
|
|
89
|
-
'input-size-large-height': inputToken.$input-size-large-height,
|
|
90
|
-
'input-size-shadow_error_focus': inputToken.$input-size-shadow_error_focus,
|
|
91
|
-
'input-size-shadow_focus': inputToken.$input-size-shadow_focus,
|
|
92
|
-
'prefix': theme.$prefix,
|
|
93
|
-
'size-3': global.$size-3,
|
|
94
|
-
'size-mini': global.$size-mini,
|
|
95
|
-
'spacing-2': global.$spacing-2,
|
|
96
|
-
'spacing-3': global.$spacing-3,
|
|
97
|
-
'spacing-4': global.$spacing-4,
|
|
98
|
-
'spacing-6': global.$spacing-6,
|
|
99
|
-
'spacing-none': global.$spacing-none,
|
|
100
|
-
);
|
|
101
|
-
|
|
102
|
-
@function less-var($name, $fallback: null) {
|
|
103
|
-
@return legacyLessVar.get($__less-vars, $name, $fallback);
|
|
12
|
+
$token-vars: map.merge(meta.module-variables('inputToken'), meta.module-variables('token'));
|
|
13
|
+
|
|
14
|
+
@function token-var($name, $fallback: null) {
|
|
15
|
+
$value: map.get($token-vars, $name);
|
|
16
|
+
|
|
17
|
+
@if $value == null {
|
|
18
|
+
@return $fallback;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@return $value;
|
|
104
22
|
}
|
|
105
23
|
|
|
106
24
|
.#{$color-picker-prefix-cls} {
|
|
@@ -131,16 +49,16 @@ $__less-vars: (
|
|
|
131
49
|
}
|
|
132
50
|
|
|
133
51
|
@mixin size-mixin($size) {
|
|
134
|
-
height:
|
|
135
|
-
padding:
|
|
52
|
+
height: token-var('input-size-#{$size}-height');
|
|
53
|
+
padding: token-var('color-input-size-#{$size}-padding');
|
|
136
54
|
|
|
137
55
|
.#{$color-picker-prefix-cls}-preview {
|
|
138
|
-
width:
|
|
139
|
-
height:
|
|
56
|
+
width: token-var('color-preview-size-#{$size}');
|
|
57
|
+
height: token-var('color-preview-size-#{$size}');
|
|
140
58
|
}
|
|
141
59
|
|
|
142
60
|
.#{$color-picker-prefix-cls}-value {
|
|
143
|
-
font-size:
|
|
61
|
+
font-size: token-var('color-value-size-#{$size}-font-size');
|
|
144
62
|
}
|
|
145
63
|
}
|
|
146
64
|
|
|
@@ -90,8 +90,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
90
90
|
prefixCls: string;
|
|
91
91
|
updateAtScroll: boolean;
|
|
92
92
|
scrollToClose: boolean;
|
|
93
|
-
allowClear: boolean;
|
|
94
93
|
rtl: boolean;
|
|
94
|
+
allowClear: boolean;
|
|
95
95
|
global: boolean;
|
|
96
96
|
exchangeTime: boolean;
|
|
97
97
|
}, {}, {
|
|
@@ -47,8 +47,8 @@ declare const ConfigProvider: {
|
|
|
47
47
|
prefixCls: string;
|
|
48
48
|
updateAtScroll: boolean;
|
|
49
49
|
scrollToClose: boolean;
|
|
50
|
-
allowClear: boolean;
|
|
51
50
|
rtl: boolean;
|
|
51
|
+
allowClear: boolean;
|
|
52
52
|
global: boolean;
|
|
53
53
|
exchangeTime: boolean;
|
|
54
54
|
}, true, {}, {}, {
|
|
@@ -150,8 +150,8 @@ declare const ConfigProvider: {
|
|
|
150
150
|
prefixCls: string;
|
|
151
151
|
updateAtScroll: boolean;
|
|
152
152
|
scrollToClose: boolean;
|
|
153
|
-
allowClear: boolean;
|
|
154
153
|
rtl: boolean;
|
|
154
|
+
allowClear: boolean;
|
|
155
155
|
global: boolean;
|
|
156
156
|
exchangeTime: boolean;
|
|
157
157
|
}>;
|
|
@@ -203,8 +203,8 @@ declare const ConfigProvider: {
|
|
|
203
203
|
prefixCls: string;
|
|
204
204
|
updateAtScroll: boolean;
|
|
205
205
|
scrollToClose: boolean;
|
|
206
|
-
allowClear: boolean;
|
|
207
206
|
rtl: boolean;
|
|
207
|
+
allowClear: boolean;
|
|
208
208
|
global: boolean;
|
|
209
209
|
exchangeTime: boolean;
|
|
210
210
|
}, {}, string, {}, {
|
|
@@ -258,4 +258,5 @@ declare const ConfigProvider: {
|
|
|
258
258
|
install: (app: App, options?: SDOptions) => void;
|
|
259
259
|
};
|
|
260
260
|
export type ConfigProviderInstance = InstanceType<typeof _ConfigProvider>;
|
|
261
|
+
export type { SDThemeConfig, SDThemeMeta, SDThemeMode, ThemeTokenMap, ThemeTokenValue, } from './theme';
|
|
261
262
|
export default ConfigProvider;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
2
|
import type { SDOptions } from '../_utils/types';
|
|
3
|
+
import type { CalendarValue } from './interface';
|
|
3
4
|
import _DatePicker from './pickers/date-picker';
|
|
4
5
|
import _MonthPicker from './pickers/month-picker';
|
|
5
6
|
import _QuarterPicker from './pickers/quarter-picker';
|
|
6
7
|
import _WeekPicker from './pickers/week-picker';
|
|
7
8
|
import _YearPicker from './pickers/year-picker';
|
|
8
9
|
import _RangePicker from './range-picker.vue';
|
|
9
|
-
export type { ShortcutType } from './interface';
|
|
10
|
+
export type { CalendarValue, DatePickerProps, DisabledDate, DisabledTime, DisabledTimeProps, FormatFunc, MonthPickerProps, PickerProps, QuarterPickerProps, RangeDisabledDate, RangeDisabledTime, RangePickerProps, ShortcutType, ValueFormat, WeekPickerProps, YearPickerProps, } from './interface';
|
|
11
|
+
export type DatePickerChangeHandler = (value: CalendarValue | undefined, date: Date | undefined, dateString: string | undefined) => void;
|
|
12
|
+
export type DatePickerSelectHandler = DatePickerChangeHandler;
|
|
13
|
+
export type DatePickerOkHandler = DatePickerChangeHandler;
|
|
14
|
+
export type RangePickerChangeHandler = (value: (CalendarValue | undefined)[] | undefined, date: (Date | undefined)[] | undefined, dateString: (string | undefined)[] | undefined) => void;
|
|
15
|
+
export type RangePickerSelectHandler = (value: (CalendarValue | undefined)[], date: (Date | undefined)[], dateString: (string | undefined)[]) => void;
|
|
16
|
+
export type RangePickerOkHandler = (value: CalendarValue[], date: Date[], dateString: string[]) => void;
|
|
10
17
|
declare const DatePicker: {
|
|
11
18
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
12
19
|
modelValue: {
|
|
@@ -412,7 +419,7 @@ declare const DatePicker: {
|
|
|
412
419
|
position?: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | undefined;
|
|
413
420
|
popupVisible?: boolean | undefined;
|
|
414
421
|
defaultPopupVisible?: boolean | undefined;
|
|
415
|
-
modelValue?: (import("
|
|
422
|
+
modelValue?: (import("..").TimeValue | import("..").TimeValue[]) | undefined;
|
|
416
423
|
placeholder?: string | string[] | undefined;
|
|
417
424
|
allowClear?: boolean | undefined;
|
|
418
425
|
triggerProps?: Record<string, unknown> | undefined;
|
|
@@ -567,16 +574,16 @@ declare const DatePicker: {
|
|
|
567
574
|
shortcutsPosition: "bottom" | "left" | "right";
|
|
568
575
|
}>;
|
|
569
576
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
570
|
-
change: (value: (
|
|
571
|
-
'update:modelValue': (value: (
|
|
572
|
-
select: (value: (
|
|
577
|
+
change: (value: (CalendarValue | undefined)[] | undefined, date: (Date | undefined)[] | undefined, dateString: (string | undefined)[] | undefined) => true;
|
|
578
|
+
'update:modelValue': (value: (CalendarValue | undefined)[] | undefined) => true;
|
|
579
|
+
select: (value: (CalendarValue | undefined)[], date: (Date | undefined)[], dateString: (string | undefined)[]) => true;
|
|
573
580
|
'popup-visible-change': (visible: boolean) => true;
|
|
574
581
|
'update:popupVisible': (visible: boolean) => true;
|
|
575
|
-
ok: (value:
|
|
582
|
+
ok: (value: CalendarValue[], date: Date[], dateString: string[]) => true;
|
|
576
583
|
clear: () => true;
|
|
577
584
|
'select-shortcut': (shortcut: import("./interface").ShortcutType) => true;
|
|
578
|
-
'picker-value-change': (value:
|
|
579
|
-
'update:pickerValue': (value:
|
|
585
|
+
'picker-value-change': (value: CalendarValue[], date: Date[], dateString: string[]) => true;
|
|
586
|
+
'update:pickerValue': (value: CalendarValue[]) => true;
|
|
580
587
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
581
588
|
mode: {
|
|
582
589
|
type: import("vue").PropType<"date" | "year" | "quarter" | "month" | "week">;
|
|
@@ -693,16 +700,16 @@ declare const DatePicker: {
|
|
|
693
700
|
default: boolean;
|
|
694
701
|
};
|
|
695
702
|
}>> & Readonly<{
|
|
696
|
-
onChange?: ((value: (
|
|
703
|
+
onChange?: ((value: (CalendarValue | undefined)[] | undefined, date: (Date | undefined)[] | undefined, dateString: (string | undefined)[] | undefined) => any) | undefined;
|
|
697
704
|
onClear?: (() => any) | undefined;
|
|
698
|
-
onSelect?: ((value: (
|
|
699
|
-
onOk?: ((value:
|
|
705
|
+
onSelect?: ((value: (CalendarValue | undefined)[], date: (Date | undefined)[], dateString: (string | undefined)[]) => any) | undefined;
|
|
706
|
+
onOk?: ((value: CalendarValue[], date: Date[], dateString: string[]) => any) | undefined;
|
|
700
707
|
"onUpdate:popupVisible"?: ((visible: boolean) => any) | undefined;
|
|
701
|
-
"onUpdate:modelValue"?: ((value: (
|
|
708
|
+
"onUpdate:modelValue"?: ((value: (CalendarValue | undefined)[] | undefined) => any) | undefined;
|
|
702
709
|
"onPopup-visible-change"?: ((visible: boolean) => any) | undefined;
|
|
703
710
|
"onSelect-shortcut"?: ((shortcut: import("./interface").ShortcutType) => any) | undefined;
|
|
704
|
-
"onPicker-value-change"?: ((value:
|
|
705
|
-
"onUpdate:pickerValue"?: ((value:
|
|
711
|
+
"onPicker-value-change"?: ((value: CalendarValue[], date: Date[], dateString: string[]) => any) | undefined;
|
|
712
|
+
"onUpdate:pickerValue"?: ((value: CalendarValue[]) => any) | undefined;
|
|
706
713
|
}>, {
|
|
707
714
|
error: boolean;
|
|
708
715
|
readonly: boolean;
|
|
@@ -80,7 +80,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
80
80
|
rows: import("vue").ComputedRef<Cell[][]>;
|
|
81
81
|
weekList: import("vue").ComputedRef<number[]>;
|
|
82
82
|
mergedIsSameTime: import("vue").ComputedRef<IsSameTime>;
|
|
83
|
-
disabledTimeProps: import("vue").ComputedRef<import("
|
|
83
|
+
disabledTimeProps: import("vue").ComputedRef<import("../..").DisabledTimeProps>;
|
|
84
84
|
mergedTimePanelProps: import("vue").ComputedRef<Partial<PanelProps>>;
|
|
85
85
|
onCellClick: (cellData: Cell) => void;
|
|
86
86
|
onCellMouseEnter: (cellData: Cell) => void;
|
|
@@ -82,10 +82,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
82
82
|
default: number;
|
|
83
83
|
};
|
|
84
84
|
disabledDate: {
|
|
85
|
-
type: PropType<import("
|
|
85
|
+
type: PropType<import("../..").DisabledDate>;
|
|
86
86
|
};
|
|
87
87
|
disabledTime: {
|
|
88
|
-
type: PropType<import("
|
|
88
|
+
type: PropType<import("../..").DisabledTime>;
|
|
89
89
|
};
|
|
90
90
|
isSameTime: {
|
|
91
91
|
type: PropType<IsSameTime>;
|
|
@@ -122,7 +122,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
122
122
|
rows: import("vue").ComputedRef<import("../../interface").Cell[][]>;
|
|
123
123
|
weekList: import("vue").ComputedRef<number[]>;
|
|
124
124
|
mergedIsSameTime: import("vue").ComputedRef<IsSameTime>;
|
|
125
|
-
disabledTimeProps: import("vue").ComputedRef<import("
|
|
125
|
+
disabledTimeProps: import("vue").ComputedRef<import("../..").DisabledTimeProps>;
|
|
126
126
|
mergedTimePanelProps: import("vue").ComputedRef<Partial<import("../../../time-picker/interface").PanelProps>>;
|
|
127
127
|
onCellClick: (cellData: import("../../interface").Cell) => void;
|
|
128
128
|
onCellMouseEnter: (cellData: import("../../interface").Cell) => void;
|
|
@@ -165,10 +165,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
165
165
|
default: number;
|
|
166
166
|
};
|
|
167
167
|
disabledDate: {
|
|
168
|
-
type: PropType<import("
|
|
168
|
+
type: PropType<import("../..").DisabledDate>;
|
|
169
169
|
};
|
|
170
170
|
disabledTime: {
|
|
171
|
-
type: PropType<import("
|
|
171
|
+
type: PropType<import("../..").DisabledTime>;
|
|
172
172
|
};
|
|
173
173
|
isSameTime: {
|
|
174
174
|
type: PropType<IsSameTime>;
|
|
@@ -802,7 +802,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
802
802
|
type: PropType<Dayjs>;
|
|
803
803
|
};
|
|
804
804
|
disabledDate: {
|
|
805
|
-
type: PropType<import("
|
|
805
|
+
type: PropType<import("../..").DisabledDate>;
|
|
806
806
|
};
|
|
807
807
|
isSameTime: {
|
|
808
808
|
type: PropType<IsSameTime>;
|
|
@@ -839,7 +839,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
839
839
|
type: PropType<Dayjs>;
|
|
840
840
|
};
|
|
841
841
|
disabledDate: {
|
|
842
|
-
type: PropType<import("
|
|
842
|
+
type: PropType<import("../..").DisabledDate>;
|
|
843
843
|
};
|
|
844
844
|
isSameTime: {
|
|
845
845
|
type: PropType<IsSameTime>;
|
|
@@ -142,7 +142,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
142
142
|
position?: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | undefined;
|
|
143
143
|
popupVisible?: boolean | undefined;
|
|
144
144
|
defaultPopupVisible?: boolean | undefined;
|
|
145
|
-
modelValue?: (import("../
|
|
145
|
+
modelValue?: (import("../index.js").TimeValue | import("../index.js").TimeValue[]) | undefined;
|
|
146
146
|
placeholder?: string | string[] | undefined;
|
|
147
147
|
allowClear?: boolean | undefined;
|
|
148
148
|
triggerProps?: Record<string, unknown> | undefined;
|
|
@@ -159,7 +159,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
159
159
|
position?: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | undefined;
|
|
160
160
|
popupVisible?: boolean | undefined;
|
|
161
161
|
defaultPopupVisible?: boolean | undefined;
|
|
162
|
-
modelValue?: (import("../
|
|
162
|
+
modelValue?: (import("../index.js").TimeValue | import("../index.js").TimeValue[]) | undefined;
|
|
163
163
|
placeholder?: string | string[] | undefined;
|
|
164
164
|
allowClear?: boolean | undefined;
|
|
165
165
|
triggerProps?: Record<string, unknown> | undefined;
|
|
@@ -81,9 +81,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
81
81
|
}>> & Readonly<{}>, {
|
|
82
82
|
data: DescData[];
|
|
83
83
|
tableLayout: "fixed" | "auto";
|
|
84
|
-
bordered: boolean;
|
|
85
84
|
column: number | ResponsiveValue;
|
|
86
85
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
86
|
+
bordered: boolean;
|
|
87
87
|
align: "left" | "right" | "center" | {
|
|
88
88
|
label?: TextAlign;
|
|
89
89
|
value?: TextAlign;
|
|
@@ -44,9 +44,9 @@ declare const Descriptions: {
|
|
|
44
44
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
45
45
|
data: import("./interface").DescData[];
|
|
46
46
|
tableLayout: "fixed" | "auto";
|
|
47
|
-
bordered: boolean;
|
|
48
47
|
column: number | import("..").ResponsiveValue;
|
|
49
48
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
49
|
+
bordered: boolean;
|
|
50
50
|
align: "left" | "right" | "center" | {
|
|
51
51
|
label?: import("../_utils/constant").TextAlign;
|
|
52
52
|
value?: import("../_utils/constant").TextAlign;
|
|
@@ -99,9 +99,9 @@ declare const Descriptions: {
|
|
|
99
99
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
100
100
|
data: import("./interface").DescData[];
|
|
101
101
|
tableLayout: "fixed" | "auto";
|
|
102
|
-
bordered: boolean;
|
|
103
102
|
column: number | import("..").ResponsiveValue;
|
|
104
103
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
104
|
+
bordered: boolean;
|
|
105
105
|
align: "left" | "right" | "center" | {
|
|
106
106
|
label?: import("../_utils/constant").TextAlign;
|
|
107
107
|
value?: import("../_utils/constant").TextAlign;
|
|
@@ -151,9 +151,9 @@ declare const Descriptions: {
|
|
|
151
151
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
152
152
|
data: import("./interface").DescData[];
|
|
153
153
|
tableLayout: "fixed" | "auto";
|
|
154
|
-
bordered: boolean;
|
|
155
154
|
column: number | import("..").ResponsiveValue;
|
|
156
155
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
156
|
+
bordered: boolean;
|
|
157
157
|
align: "left" | "right" | "center" | {
|
|
158
158
|
label?: import("../_utils/constant").TextAlign;
|
|
159
159
|
value?: import("../_utils/constant").TextAlign;
|
|
@@ -180,6 +180,6 @@ declare const Descriptions: {
|
|
|
180
180
|
};
|
|
181
181
|
export type DescriptionsInstance = InstanceType<typeof _Descriptions>;
|
|
182
182
|
export type DescriptionsItemInstance = InstanceType<typeof _DescriptionsItem>;
|
|
183
|
-
export type { DescData } from './interface';
|
|
183
|
+
export type { DescData, DescLayout } from './interface';
|
|
184
184
|
export { _DescriptionsItem as DescriptionsItem };
|
|
185
185
|
export default Descriptions;
|
|
@@ -1,83 +1,38 @@
|
|
|
1
1
|
@use '@style/theme/index.scss' as theme;
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use 'sass:string';
|
|
3
4
|
@use 'sass:map';
|
|
4
|
-
@use '@style/
|
|
5
|
+
@use '@components/descriptions/style/token.scss' as token;
|
|
5
6
|
@use '@components/descriptions/style/token.scss' as *;
|
|
6
7
|
|
|
7
8
|
$descriptions-prefix-cls: string.unquote('#{theme.$prefix}-descriptions');
|
|
8
9
|
|
|
9
|
-
$
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
'descriptions-border-item-size-small-padding-vertical':
|
|
18
|
-
$descriptions-border-item-size-small-padding-vertical,
|
|
19
|
-
'descriptions-border-item-size-medium-padding-horizontal':
|
|
20
|
-
$descriptions-border-item-size-medium-padding-horizontal,
|
|
21
|
-
'descriptions-border-item-size-medium-padding-vertical':
|
|
22
|
-
$descriptions-border-item-size-medium-padding-vertical,
|
|
23
|
-
'descriptions-border-item-size-default-padding-horizontal':
|
|
24
|
-
$descriptions-border-item-size-default-padding-horizontal,
|
|
25
|
-
'descriptions-border-item-size-default-padding-vertical':
|
|
26
|
-
$descriptions-border-item-size-default-padding-vertical,
|
|
27
|
-
'descriptions-border-item-size-large-padding-horizontal':
|
|
28
|
-
$descriptions-border-item-size-large-padding-horizontal,
|
|
29
|
-
'descriptions-border-item-size-large-padding-vertical':
|
|
30
|
-
$descriptions-border-item-size-large-padding-vertical,
|
|
31
|
-
'descriptions-border-radius': $descriptions-border-radius,
|
|
32
|
-
'descriptions-border-style': $descriptions-border-style,
|
|
33
|
-
'descriptions-border-width': $descriptions-border-width,
|
|
34
|
-
'descriptions-color-border': $descriptions-color-border,
|
|
35
|
-
'descriptions-color-text-label': $descriptions-color-text-label,
|
|
36
|
-
'descriptions-color-text-value': $descriptions-color-text-value,
|
|
37
|
-
'descriptions-color-title': $descriptions-color-title,
|
|
38
|
-
'descriptions-font-size-title': $descriptions-font-size-title,
|
|
39
|
-
'descriptions-font-weight-text-label': $descriptions-font-weight-text-label,
|
|
40
|
-
'descriptions-font-weight-text-value': $descriptions-font-weight-text-value,
|
|
41
|
-
'descriptions-font-weight-title': $descriptions-font-weight-title,
|
|
42
|
-
'descriptions-item-size-mini-spacing-bottom': $descriptions-item-size-mini-spacing-bottom,
|
|
43
|
-
'descriptions-item-size-small-spacing-bottom': $descriptions-item-size-small-spacing-bottom,
|
|
44
|
-
'descriptions-item-size-medium-spacing-bottom': $descriptions-item-size-medium-spacing-bottom,
|
|
45
|
-
'descriptions-item-size-default-spacing-bottom': $descriptions-item-size-default-spacing-bottom,
|
|
46
|
-
'descriptions-item-size-large-spacing-bottom': $descriptions-item-size-large-spacing-bottom,
|
|
47
|
-
'descriptions-size-mini-font-size-text': $descriptions-size-mini-font-size-text,
|
|
48
|
-
'descriptions-size-mini-title-margin-bottom': $descriptions-size-mini-title-margin-bottom,
|
|
49
|
-
'descriptions-size-small-font-size-text': $descriptions-size-small-font-size-text,
|
|
50
|
-
'descriptions-size-small-title-margin-bottom': $descriptions-size-small-title-margin-bottom,
|
|
51
|
-
'descriptions-size-medium-font-size-text': $descriptions-size-medium-font-size-text,
|
|
52
|
-
'descriptions-size-medium-title-margin-bottom': $descriptions-size-medium-title-margin-bottom,
|
|
53
|
-
'descriptions-size-default-font-size-text': $descriptions-size-default-font-size-text,
|
|
54
|
-
'descriptions-size-default-title-margin-bottom': $descriptions-size-default-title-margin-bottom,
|
|
55
|
-
'descriptions-size-large-font-size-text': $descriptions-size-large-font-size-text,
|
|
56
|
-
'descriptions-size-large-title-margin-bottom': $descriptions-size-large-title-margin-bottom,
|
|
57
|
-
'line-height-base': theme.$line-height-base,
|
|
58
|
-
'prefix': theme.$prefix,
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
@function less-var($name, $fallback: null) {
|
|
62
|
-
@return legacyLessVar.get($__less-vars, $name, $fallback);
|
|
10
|
+
@function token-var($name, $fallback: null) {
|
|
11
|
+
$value: map.get(meta.module-variables('token'), $name);
|
|
12
|
+
|
|
13
|
+
@if $value == null {
|
|
14
|
+
@return $fallback;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@return $value;
|
|
63
18
|
}
|
|
64
19
|
|
|
65
20
|
@mixin descriptions-size($size) {
|
|
66
21
|
&-size-#{$size} &-title {
|
|
67
|
-
margin-bottom:
|
|
22
|
+
margin-bottom: token-var('descriptions-size-#{$size}-title-margin-bottom');
|
|
68
23
|
}
|
|
69
24
|
|
|
70
25
|
&-size-#{$size} &-item-label-block,
|
|
71
26
|
&-size-#{$size} &-item-value-block {
|
|
72
|
-
padding-right:
|
|
73
|
-
padding-bottom:
|
|
74
|
-
font-size:
|
|
27
|
+
padding-right: token-var('descriptions-border-item-size-#{$size}-padding-horizontal');
|
|
28
|
+
padding-bottom: token-var('descriptions-item-size-#{$size}-spacing-bottom');
|
|
29
|
+
font-size: token-var('descriptions-size-#{$size}-font-size-text');
|
|
75
30
|
}
|
|
76
31
|
|
|
77
32
|
&-size-#{$size}#{&}-border &-item-label-block,
|
|
78
33
|
&-size-#{$size}#{&}-border &-item-value-block {
|
|
79
|
-
padding:
|
|
80
|
-
|
|
34
|
+
padding: token-var('descriptions-border-item-size-#{$size}-padding-vertical')
|
|
35
|
+
token-var('descriptions-border-item-size-#{$size}-padding-horizontal');
|
|
81
36
|
}
|
|
82
37
|
|
|
83
38
|
&-size-#{$size}#{&}-border#{&}-layout-inline-vertical &-item {
|
|
@@ -85,8 +40,8 @@ $__less-vars: (
|
|
|
85
40
|
'descriptions-border-item-size-#{$size}-padding-vertical'
|
|
86
41
|
);
|
|
87
42
|
|
|
88
|
-
padding:
|
|
89
|
-
|
|
43
|
+
padding: token-var($_descriptions-padding-vertical) + 5px
|
|
44
|
+
token-var('descriptions-border-item-size-#{$size}-padding-horizontal');
|
|
90
45
|
}
|
|
91
46
|
}
|
|
92
47
|
|