@douyinfe/semi-foundation 2.3.0 → 2.4.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/button/button.scss +6 -0
- package/button/variables.scss +9 -1
- package/input/textarea.scss +15 -8
- package/input/variables.scss +1 -0
- package/inputNumber/constants.ts +1 -0
- package/inputNumber/foundation.ts +15 -1
- package/lib/cjs/autoComplete/autoComplete.css +1 -0
- package/lib/cjs/button/button.css +6 -0
- package/lib/cjs/button/button.scss +6 -0
- package/lib/cjs/button/variables.scss +9 -1
- package/lib/cjs/datePicker/monthsGridFoundation.d.ts +1 -1
- package/lib/cjs/input/textarea.css +15 -9
- package/lib/cjs/input/textarea.scss +15 -8
- package/lib/cjs/input/variables.scss +1 -0
- package/lib/cjs/inputNumber/constants.d.ts +1 -0
- package/lib/cjs/inputNumber/constants.js +2 -1
- package/lib/cjs/inputNumber/foundation.d.ts +5 -0
- package/lib/cjs/inputNumber/foundation.js +19 -0
- package/lib/cjs/modal/modal.css +2 -0
- package/lib/cjs/modal/modal.scss +2 -0
- package/lib/cjs/modal/variables.scss +7 -4
- package/lib/cjs/scrollList/scrollList.css +1 -0
- package/lib/cjs/scrollList/scrollList.scss +1 -0
- package/lib/cjs/scrollList/variables.scss +13 -12
- package/lib/cjs/select/option.css +1 -0
- package/lib/cjs/select/option.scss +1 -0
- package/lib/cjs/select/select.css +4 -0
- package/lib/cjs/select/select.scss +4 -2
- package/lib/cjs/select/variables.scss +11 -1
- package/lib/cjs/table/table.css +3 -0
- package/lib/cjs/table/table.scss +4 -0
- package/lib/cjs/table/variables.scss +2 -2
- package/lib/cjs/tagInput/tagInput.css +1 -0
- package/lib/cjs/tagInput/tagInput.scss +3 -2
- package/lib/cjs/tagInput/variables.scss +8 -2
- package/lib/cjs/timePicker/foundation.d.ts +2 -1
- package/lib/cjs/timePicker/foundation.js +7 -1
- package/lib/cjs/tree/treeUtil.d.ts +1 -1
- package/lib/cjs/treeSelect/treeSelect.css +1 -0
- package/lib/cjs/treeSelect/treeSelect.scss +2 -1
- package/lib/cjs/treeSelect/variables.scss +3 -1
- package/lib/es/autoComplete/autoComplete.css +1 -0
- package/lib/es/button/button.css +6 -0
- package/lib/es/button/button.scss +6 -0
- package/lib/es/button/variables.scss +9 -1
- package/lib/es/datePicker/monthsGridFoundation.d.ts +1 -1
- package/lib/es/input/textarea.css +15 -9
- package/lib/es/input/textarea.scss +15 -8
- package/lib/es/input/variables.scss +1 -0
- package/lib/es/inputNumber/constants.d.ts +1 -0
- package/lib/es/inputNumber/constants.js +2 -1
- package/lib/es/inputNumber/foundation.d.ts +5 -0
- package/lib/es/inputNumber/foundation.js +18 -0
- package/lib/es/modal/modal.css +2 -0
- package/lib/es/modal/modal.scss +2 -0
- package/lib/es/modal/variables.scss +7 -4
- package/lib/es/scrollList/scrollList.css +1 -0
- package/lib/es/scrollList/scrollList.scss +1 -0
- package/lib/es/scrollList/variables.scss +13 -12
- package/lib/es/select/option.css +1 -0
- package/lib/es/select/option.scss +1 -0
- package/lib/es/select/select.css +4 -0
- package/lib/es/select/select.scss +4 -2
- package/lib/es/select/variables.scss +11 -1
- package/lib/es/table/table.css +3 -0
- package/lib/es/table/table.scss +4 -0
- package/lib/es/table/variables.scss +2 -2
- package/lib/es/tagInput/tagInput.css +1 -0
- package/lib/es/tagInput/tagInput.scss +3 -2
- package/lib/es/tagInput/variables.scss +8 -2
- package/lib/es/timePicker/foundation.d.ts +2 -1
- package/lib/es/timePicker/foundation.js +7 -1
- package/lib/es/tree/treeUtil.d.ts +1 -1
- package/lib/es/treeSelect/treeSelect.css +1 -0
- package/lib/es/treeSelect/treeSelect.scss +2 -1
- package/lib/es/treeSelect/variables.scss +3 -1
- package/modal/modal.scss +2 -0
- package/modal/variables.scss +7 -4
- package/package.json +3 -3
- package/scrollList/scrollList.scss +1 -0
- package/scrollList/variables.scss +13 -12
- package/select/option.scss +1 -0
- package/select/select.scss +4 -2
- package/select/variables.scss +11 -1
- package/table/table.scss +4 -0
- package/table/variables.scss +2 -2
- package/tagInput/tagInput.scss +3 -2
- package/tagInput/variables.scss +8 -2
- package/timePicker/foundation.ts +8 -3
- package/tree/treeUtil.ts +1 -1
- package/treeSelect/treeSelect.scss +2 -1
- package/treeSelect/variables.scss +3 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
// Color
|
|
2
|
-
$color-scrollList-bg: var(--semi-color-bg-3);
|
|
3
|
-
$color-scrollList-border: var(--semi-color-border);
|
|
4
|
-
$color-
|
|
5
|
-
$color-scrollList_item-
|
|
6
|
-
$color-
|
|
7
|
-
$color-
|
|
8
|
-
$color-scrollList_item-
|
|
9
|
-
$color-
|
|
10
|
-
$color-scrollList_selected_item-
|
|
11
|
-
$color-scrollList_selected_item-
|
|
12
|
-
$color-
|
|
2
|
+
$color-scrollList-bg: var(--semi-color-bg-3); // 滚动列表背景色
|
|
3
|
+
$color-scrollList-border: var(--semi-color-border); // 滚动列表描边颜色
|
|
4
|
+
$color-scrollList_header-title: var(--semi-color-text-0); // 滚动列表标题颜色
|
|
5
|
+
$color-scrollList_item-bg: transparent; // 滚动列表选项背景色
|
|
6
|
+
$color-scrollList_item-text: var(--semi-color-text-0); // 滚动列表选项文字颜色
|
|
7
|
+
$color-scrollList_disabled_item-text: var(--semi-color-disabled-text); // 滚动列表选项背景色 - 禁用
|
|
8
|
+
$color-scrollList_item-text-hover: var(--semi-color-fill-1); // 滚动列表选项文字颜色 - 悬浮
|
|
9
|
+
$color-scrollList_item-bg-active: var(--semi-color-fill-2); // 滚动列表选项文字颜色 - 选中
|
|
10
|
+
$color-scrollList_selected_item-bg: var(--semi-color-primary-light-default); // 滚动列表选中选项背景颜色
|
|
11
|
+
$color-scrollList_selected_item-text: var(--semi-color-text-0); // 滚动列表选中选项文字颜色
|
|
12
|
+
$color-scrollList_selected_item-icon: var(--semi-color-text-2); // 滚动列表选中选项图标颜色
|
|
13
|
+
$color-scrollList_footer-border: var(--semi-color-border); // 滚动列表底部描边颜色
|
|
13
14
|
|
|
14
15
|
// Width/Height
|
|
15
|
-
$height-scrollList: 300px;
|
|
16
|
+
$height-scrollList: 300px;
|
|
16
17
|
$height-scrollList_item: 36px;
|
|
17
18
|
$width-scrollList_item-border: $border-thickness-control;
|
|
18
19
|
$width-scrollList_item_sel_svg: 16px;
|
package/lib/es/select/option.css
CHANGED
|
@@ -13,6 +13,7 @@ $multiple: #{$module}-multiple;
|
|
|
13
13
|
padding-top: $spacing-select_option-paddingTop;
|
|
14
14
|
padding-bottom: $spacing-select_option-paddingBottom;
|
|
15
15
|
color: $color-select_option_main-text;
|
|
16
|
+
border-radius: $radius-select_option;
|
|
16
17
|
position: relative;
|
|
17
18
|
display: flex;
|
|
18
19
|
flex-wrap: nowrap;
|
package/lib/es/select/select.css
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
padding-top: 8px;
|
|
12
12
|
padding-bottom: 8px;
|
|
13
13
|
color: var(--semi-color-text-0);
|
|
14
|
+
border-radius: 0;
|
|
14
15
|
position: relative;
|
|
15
16
|
display: flex;
|
|
16
17
|
flex-wrap: nowrap;
|
|
@@ -90,9 +91,11 @@
|
|
|
90
91
|
}
|
|
91
92
|
.semi-select:hover {
|
|
92
93
|
background-color: var(--semi-color-fill-1);
|
|
94
|
+
border: 1px solid transparent;
|
|
93
95
|
}
|
|
94
96
|
.semi-select:active {
|
|
95
97
|
background-color: var(--semi-color-fill-2);
|
|
98
|
+
border: 1px solid var(--semi-color-focus-border);
|
|
96
99
|
}
|
|
97
100
|
.semi-select:focus {
|
|
98
101
|
border: 1px solid var(--semi-color-focus-border);
|
|
@@ -372,6 +375,7 @@
|
|
|
372
375
|
.semi-select-option-list {
|
|
373
376
|
overflow-x: hidden;
|
|
374
377
|
overflow-y: auto;
|
|
378
|
+
padding: 0 0 0 0;
|
|
375
379
|
}
|
|
376
380
|
.semi-select-option-list-chosen .semi-select-option-icon {
|
|
377
381
|
display: flex;
|
|
@@ -24,14 +24,16 @@ $multiple: #{$module}-multiple;
|
|
|
24
24
|
|
|
25
25
|
&:hover {
|
|
26
26
|
background-color: $color-select-bg-hover;
|
|
27
|
+
border: $width-select-border-hover solid $color-select-border-hover;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
&:active {
|
|
30
31
|
background-color: $color-select-bg-active;
|
|
32
|
+
border: $width-select-border-active solid $color-select-border-active;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
&:focus {
|
|
34
|
-
border: $
|
|
36
|
+
border: $width-select-border-focus solid $color-select-border-focus;
|
|
35
37
|
outline: 0;
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -383,7 +385,7 @@ $multiple: #{$module}-multiple;
|
|
|
383
385
|
.#{$module}-option-list {
|
|
384
386
|
overflow-x: hidden;
|
|
385
387
|
overflow-y: auto;
|
|
386
|
-
|
|
388
|
+
padding: $spacing-select_option_list-paddingTop $spacing-select_option_list-paddingRight $spacing-select_option_list-paddingBottom $spacing-select_option_list-paddingLeft;
|
|
387
389
|
&-chosen {
|
|
388
390
|
.#{$module}-option-icon {
|
|
389
391
|
display: flex;
|
|
@@ -3,6 +3,9 @@ $color-select-bg-default: var(--semi-color-fill-0); // 选择器输入框背景
|
|
|
3
3
|
$color-select-bg-hover: var(--semi-color-fill-1); // 选择器输入框背景色 - 悬停态
|
|
4
4
|
$color-select-bg-active: var(--semi-color-fill-2); // 选择器输入框背景色 - 按下态
|
|
5
5
|
$color-select-border-default: transparent; // 选择器输入框描边颜色
|
|
6
|
+
$color-select-border-hover: $color-select-border-default; // 选择器输入框描边颜色 - 悬浮
|
|
7
|
+
$color-select-border-active: var(--semi-color-focus-border); // 选择器输入框描边颜色 - 按下态
|
|
8
|
+
$color-select-border-focus: $color-select-border-active;// 选择器输入框描边颜色 - 悬停态
|
|
6
9
|
$color-select_warning-bg-default: var(--semi-color-warning-light-default); // 警示选择器输入框背景色 - 默认态
|
|
7
10
|
$color-select_warning-border-default: var(--semi-color-warning-light-default); // 警示选择器输入框描边颜色 - 默认态
|
|
8
11
|
$color-select_warning-bg-hover: var(--semi-color-warning-light-hover); // 警示选择器输入框背景色 - 悬停态
|
|
@@ -56,7 +59,9 @@ $width-select_arrow_empty: 12px; // 选择器输入框下拉箭头为空时(
|
|
|
56
59
|
$width-select_clear-icon: 32px; // 选择器输入框清空按钮宽度
|
|
57
60
|
$width-select_group_top-border: $border-thickness-control; // 选择器菜单分组标题描边宽度
|
|
58
61
|
$height-select_multiple_content_wrapper-minHeight: $height-select_default - 2; // 多项选择器标签组最小宽度
|
|
59
|
-
|
|
62
|
+
$width-select-border-hover: $width-select-border; // 选择器输入框描边宽度 - 悬浮
|
|
63
|
+
$width-select-border-focus: $width-select-border-hover; // 选择器输入框描边宽度 - 按下
|
|
64
|
+
$width-select-border-active: $width-select-border-focus; // 选择器输入框描边宽度 - 选中
|
|
60
65
|
// Spacing
|
|
61
66
|
$spacing-select_option_tick-marginRight: $spacing-tight; // 选择器菜单选中对勾右侧外边距
|
|
62
67
|
$spacing-select_prefix_suffix_text-marginX: $spacing-base-tight; // 选择器输入框前后缀文本水平内边距
|
|
@@ -86,9 +91,14 @@ $spacing-select_tag-marginRight: $spacing-extra-tight; // 多项选择器标签
|
|
|
86
91
|
$spacing-select_tag-marginBottom: $spacing-super-tight - 1; // 多项选择器标签底部外边距
|
|
87
92
|
$spacing-select_selection-marginLeft: $spacing-base-tight; // 选择器内容区左侧外边距
|
|
88
93
|
$spacing-select_insetLabel-marginRight: $spacing-base-tight; // 选择器内嵌标签右侧外边距
|
|
94
|
+
$spacing-select_option_list-paddingTop: 0; // 选择器内容区顶部内边距
|
|
95
|
+
$spacing-select_option_list-paddingRight: 0; // 选择器内容区右侧内边距
|
|
96
|
+
$spacing-select_option_list-paddingBottom: 0; // 选择器内容区底部内边距
|
|
97
|
+
$spacing-select_option_list-paddingLeft: 0; // 选择器内容区左侧内边距
|
|
89
98
|
|
|
90
99
|
// Radius
|
|
91
100
|
$radius-select: var(--semi-border-radius-small); // 选择器输入框圆角
|
|
101
|
+
$radius-select_option: 0; // 选择器待选项圆角
|
|
92
102
|
|
|
93
103
|
// Font
|
|
94
104
|
$font-select-fontWeight: $font-weight-regular; // 选择器文本字重
|
package/lib/es/table/table.css
CHANGED
package/lib/es/table/table.scss
CHANGED
|
@@ -79,8 +79,8 @@ $font-table_base-fontSize: 14px; // 表格默认文本字号
|
|
|
79
79
|
$border-table_base-borderStyle: solid; // 表格描边样式
|
|
80
80
|
$shadow-table_left: -3px 0 0 0 $color-table_shadow-bg-default; // 表格滚动阴影 - 左侧
|
|
81
81
|
$shadow-table_right: 3px 0 0 0 $color-table_shadow-bg-default; // 表格滚动阴影 - 右侧
|
|
82
|
-
$border-table:
|
|
83
|
-
$border-table_head-bottom:
|
|
82
|
+
$border-table: $width-table_base_border $border-table_base-borderStyle $color-table-border-default; // 表格默认描边
|
|
83
|
+
$border-table_head-bottom: $width-table_header_border $border-table_base-borderStyle $color-table_th-border-default; // 表头单元格描边 - 底部
|
|
84
84
|
$border-table_resizer: $width-table_resizer_border solid $color-table_resizer-bg-default; // 表格拉伸标识描边
|
|
85
85
|
|
|
86
86
|
$z-table-fixed: 101!default; // fixed列的zIndex值
|
|
@@ -4,7 +4,7 @@ $module: #{$prefix}-tagInput;
|
|
|
4
4
|
|
|
5
5
|
.#{$module} {
|
|
6
6
|
background-color: $color-tagInput_default-bg-default;
|
|
7
|
-
border: $
|
|
7
|
+
border: $width-tagInput-border-default $color-tagInput-border-default solid;
|
|
8
8
|
border-radius: $radius-tagInput;
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
font-weight: $font-weight-regular;
|
|
@@ -13,11 +13,12 @@ $module: #{$prefix}-tagInput;
|
|
|
13
13
|
|
|
14
14
|
&-hover {
|
|
15
15
|
background-color: $color-tagInput_default-bg-hover;
|
|
16
|
+
border: $width-tagInput-border-hover $color-tagInput-border-hover solid;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
&-focus {
|
|
19
20
|
background-color: $color-tagInput_default-bg-focus;
|
|
20
|
-
border: $
|
|
21
|
+
border: $width-tagInput-border-focus $color-tagInput-border-focus solid;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&-warning {
|
|
@@ -3,13 +3,16 @@ $color-tagInput-maxTagCount-default: var(--semi-color-text-0); // 标签输入
|
|
|
3
3
|
$color-tagInput-icon-hover: var(--semi-color-primary-hover); // 标签输入框图标颜色 - 悬浮
|
|
4
4
|
$color-tagInput_disabled-text-default: var(--semi-color-disabled-text); // 标签输入框禁用文字颜色
|
|
5
5
|
$color-tagInput_default-bg-focus: var(--semi-color-fill-0); // 标签输入框背景颜色 - 选中态
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
$color-tagInput-border-default: transparent; // 标签输入框描边颜色 - 默认
|
|
8
|
+
$color-tagInput-border-hover: transparent ; // 标签输入框描边颜色 - 悬浮
|
|
9
|
+
$color-tagInput-border-focus: var(--semi-color-focus-border); // 标签输入框描边颜色 - 选中态
|
|
7
10
|
$color-tagInput_prefix-default: var(--semi-color-text-2); // 标签输入框 prefix 颜色
|
|
8
11
|
$color-tagInput_suffix-default: var(--semi-color-text-1); // 标签输入框 suffix 颜色
|
|
9
12
|
|
|
10
13
|
$color-tagInput_default-bg-default: var(--semi-color-fill-0); // 标签输入框背景颜色 - 默认
|
|
11
14
|
$color-tagInput_default-bg-hover: var(--semi-color-fill-1); // 标签输入框背景颜色 - 悬浮
|
|
12
|
-
$color-textarea-border-default: transparent; // 标签输入框描边颜色 -
|
|
15
|
+
// $color-textarea-border-default: transparent; // 标签输入框描边颜色 - 默认,已废弃 deprecated-v2.4
|
|
13
16
|
|
|
14
17
|
$color-tagInput_warning-bg-default: var(--semi-color-warning-light-default); // 警告标签输入框背景颜色 - 默认
|
|
15
18
|
$color-tagInput_warning-border-default: var(--semi-color-warning-light-default); // 警告标签输入框描边颜色 - 默认
|
|
@@ -35,5 +38,8 @@ $height-tagInput-default: $height-control-default; // 默认尺寸标签输入
|
|
|
35
38
|
$height-tagInput-small: $height-control-small; // 小尺寸标签输入框高度
|
|
36
39
|
|
|
37
40
|
$width-tagInput-clear-medium: $width-icon-medium * 2; // 标签输入框清空按钮宽度
|
|
41
|
+
$width-tagInput-border-default: $border-thickness-control; // 标签输入框描边描边宽度 - 默认
|
|
42
|
+
$width-tagInput-border-hover: $width-tagInput-border-default; // 标签输入框描边描边宽度 - 悬浮
|
|
43
|
+
$width-tagInput-border-focus: $border-thickness-control-focus; // 标签输入框描边宽度 - 选中态
|
|
38
44
|
|
|
39
45
|
$radius-tagInput: var(--semi-border-radius-small); // 标签输入框圆角
|
|
@@ -6,7 +6,8 @@ export interface TimePickerAdapter<P = Record<string, any>, S = Record<string, a
|
|
|
6
6
|
setInputValue: (inputValue: string, cb?: () => void) => void;
|
|
7
7
|
unregisterClickOutSide: () => void;
|
|
8
8
|
notifyOpenChange: (open: boolean) => void;
|
|
9
|
-
notifyChange
|
|
9
|
+
notifyChange(value: Date | Date[], input: string | string[]): void;
|
|
10
|
+
notifyChange(input: string | string[], value: Date | Date[]): void;
|
|
10
11
|
notifyFocus: (e: any) => void;
|
|
11
12
|
notifyBlur: (e: any) => void;
|
|
12
13
|
isRangePicker: () => boolean;
|
|
@@ -418,7 +418,13 @@ class TimePickerFoundation extends BaseFoundation {
|
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
this.
|
|
421
|
+
const onChangeWithDateFirst = this.getProp('onChangeWithDateFirst');
|
|
422
|
+
|
|
423
|
+
if (onChangeWithDateFirst) {
|
|
424
|
+
this._adapter.notifyChange(_value, str);
|
|
425
|
+
} else {
|
|
426
|
+
this._adapter.notifyChange(str, _value);
|
|
427
|
+
}
|
|
422
428
|
}
|
|
423
429
|
|
|
424
430
|
_hasChanged() {
|
|
@@ -72,7 +72,7 @@ export declare function filterTreeData(info: any): {
|
|
|
72
72
|
};
|
|
73
73
|
export declare function getValueOrKey(data: any): any;
|
|
74
74
|
export declare function normalizeValue(value: any, withObject: boolean): any;
|
|
75
|
-
export declare function updateKeys(keySet: Set<string
|
|
75
|
+
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
76
76
|
export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
|
|
77
77
|
export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
|
|
78
78
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
@@ -18,6 +18,7 @@ $module: #{$prefix}-tree-select;
|
|
|
18
18
|
|
|
19
19
|
&:hover {
|
|
20
20
|
background-color: $color-treeSelect_default-bg-hover;
|
|
21
|
+
border: $width-treeSelect_hover-border solid $color-treeSelect_default-border-hover;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&-focus {
|
|
@@ -329,4 +330,4 @@ $module: #{$prefix}-tree-select;
|
|
|
329
330
|
}
|
|
330
331
|
}
|
|
331
332
|
|
|
332
|
-
@import './rtl.scss';
|
|
333
|
+
@import './rtl.scss';
|
|
@@ -6,6 +6,7 @@ $color-treeSelect_default-icon-hover: var(--semi-color-primary-hover); // 树选
|
|
|
6
6
|
$color-treeSelect_default-icon-active: var(--semi-color-primary-active); // 树选择器选择框清空按钮颜色 - 按下
|
|
7
7
|
$color-treeSelect_default-bg-hover: var(--semi-color-fill-1); // 树选择器选择框背景颜色 - 悬停
|
|
8
8
|
|
|
9
|
+
$color-treeSelect_default-border-hover: inherit; // 树选择器选择框描边颜色 - 悬浮
|
|
9
10
|
$color-treeSelect_default-border-focus: var(--semi-color-focus-border);// 树选择器选择框描边颜色 - 选中
|
|
10
11
|
|
|
11
12
|
$color-treeSelect_search-border-default: var(--semi-color-fill-0); // 树选择器菜单搜索框描边颜色 - 默认
|
|
@@ -46,7 +47,8 @@ $radius-treeSelect: var(--semi-border-radius-small); // 树选择器圆角
|
|
|
46
47
|
$width-treeSelect-border: 1px; // 树选择器描边宽度
|
|
47
48
|
$width-treeSelect_search_wrapper-border: 1px; // 树选择器搜索框描边宽度
|
|
48
49
|
|
|
49
|
-
$width-
|
|
50
|
+
$width-treeSelect_hover-border: $border-thickness-control-focus; // 树选择器选择框描边宽度 - 悬浮
|
|
51
|
+
$width-treeSelect_focus-border: $width-treeSelect_hover-border; // 树选择器选择框描边宽度 - 选中
|
|
50
52
|
|
|
51
53
|
$width-treeSelect_default: 80px; // 树选择器最小宽度
|
|
52
54
|
$height-treeSelect_default: $height-control-default; // 树选择器选择器高度 - 默认
|
package/modal/modal.scss
CHANGED
|
@@ -84,6 +84,7 @@ $module: #{$prefix}-modal;
|
|
|
84
84
|
padding: $spacing-modal_header-paddingY $spacing-modal_header-paddingX;
|
|
85
85
|
font-size: $font-modal_header-fontSize;
|
|
86
86
|
font-weight: $font-modal_header-fontWeight;
|
|
87
|
+
background-color: $color-modal_header-bg;
|
|
87
88
|
color: $color-modal_main-text;
|
|
88
89
|
border-bottom: $width-modal_header-border solid $color-modal_header-border;
|
|
89
90
|
}
|
|
@@ -112,6 +113,7 @@ $module: #{$prefix}-modal;
|
|
|
112
113
|
text-align: right;
|
|
113
114
|
border-radius: $radius-modal_footer;
|
|
114
115
|
border-top: $width-modal_footer-border solid $color-modal_footer-border;
|
|
116
|
+
background-color: $color-modal_footer-bg;
|
|
115
117
|
|
|
116
118
|
.#{$prefix}-button {
|
|
117
119
|
margin-left: $spacing-modal_footer_button-marginLeft;
|
package/modal/variables.scss
CHANGED
|
@@ -8,6 +8,8 @@ $color-modal_success-icon: var(--semi-color-success); // 模态框成功图标
|
|
|
8
8
|
$color-modal_danger-icon: var(--semi-color-danger); // 模态框危险图标颜色
|
|
9
9
|
$color-modal_warning-icon: var(--semi-color-warning); // 模态框警告图标颜色
|
|
10
10
|
$color-modal_content-border: var(--semi-color-border); // 模态框描边颜色
|
|
11
|
+
$color-modal_header-bg: transparent; // 模态框 header 背景填充色
|
|
12
|
+
$color-modal_footer-bg: transparent; // 模态框 footer 背景填充色
|
|
11
13
|
|
|
12
14
|
// Spacing
|
|
13
15
|
$spacing-modal-marginY: 80px; // 模态框距容器顶部外边距
|
|
@@ -62,8 +64,9 @@ $font-modal_header-fontSize: $font-size-regular; // 模态框 title 字号
|
|
|
62
64
|
$font-modal_header-fontWeight: $font-weight-bold; // 模态框 title 字重
|
|
63
65
|
|
|
64
66
|
//border
|
|
65
|
-
$color-modal_header-border:transparent;
|
|
66
|
-
$width-modal_header-border:0;
|
|
67
|
-
$color-modal_footer-border:transparent;
|
|
68
|
-
$width-modal_footer-border:0;
|
|
67
|
+
$color-modal_header-border:transparent; // 模态框 header 底部描边颜色
|
|
68
|
+
$width-modal_header-border:0; // 模态框 header 底部描边宽度
|
|
69
|
+
$color-modal_footer-border:transparent; // 模态框 footer 顶部描边颜色
|
|
70
|
+
$width-modal_footer-border:0; // 模态框 footer 顶部描边宽度
|
|
71
|
+
|
|
69
72
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@babel/runtime-corejs3": "^7.15.4",
|
|
11
|
-
"@douyinfe/semi-animation": "2.
|
|
11
|
+
"@douyinfe/semi-animation": "2.4.1",
|
|
12
12
|
"async-validator": "^3.5.0",
|
|
13
13
|
"classnames": "^2.2.6",
|
|
14
14
|
"date-fns": "^2.9.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"*.scss",
|
|
25
25
|
"*.css"
|
|
26
26
|
],
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "c69c466ecd14aeeda847473e97dad2ec313f09fa",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
30
30
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
@@ -24,6 +24,7 @@ $module: #{$prefix}-scrolllist;
|
|
|
24
24
|
&-title {
|
|
25
25
|
padding: $spacing-scrollList_header_title-paddingY $spacing-scrollList_header_title-paddingX;
|
|
26
26
|
font-weight: $font-scrollList_header_title-fontWeight;
|
|
27
|
+
color: $color-scrollList_header-title;
|
|
27
28
|
|
|
28
29
|
@include font-size-regular;
|
|
29
30
|
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
// Color
|
|
2
|
-
$color-scrollList-bg: var(--semi-color-bg-3);
|
|
3
|
-
$color-scrollList-border: var(--semi-color-border);
|
|
4
|
-
$color-
|
|
5
|
-
$color-scrollList_item-
|
|
6
|
-
$color-
|
|
7
|
-
$color-
|
|
8
|
-
$color-scrollList_item-
|
|
9
|
-
$color-
|
|
10
|
-
$color-scrollList_selected_item-
|
|
11
|
-
$color-scrollList_selected_item-
|
|
12
|
-
$color-
|
|
2
|
+
$color-scrollList-bg: var(--semi-color-bg-3); // 滚动列表背景色
|
|
3
|
+
$color-scrollList-border: var(--semi-color-border); // 滚动列表描边颜色
|
|
4
|
+
$color-scrollList_header-title: var(--semi-color-text-0); // 滚动列表标题颜色
|
|
5
|
+
$color-scrollList_item-bg: transparent; // 滚动列表选项背景色
|
|
6
|
+
$color-scrollList_item-text: var(--semi-color-text-0); // 滚动列表选项文字颜色
|
|
7
|
+
$color-scrollList_disabled_item-text: var(--semi-color-disabled-text); // 滚动列表选项背景色 - 禁用
|
|
8
|
+
$color-scrollList_item-text-hover: var(--semi-color-fill-1); // 滚动列表选项文字颜色 - 悬浮
|
|
9
|
+
$color-scrollList_item-bg-active: var(--semi-color-fill-2); // 滚动列表选项文字颜色 - 选中
|
|
10
|
+
$color-scrollList_selected_item-bg: var(--semi-color-primary-light-default); // 滚动列表选中选项背景颜色
|
|
11
|
+
$color-scrollList_selected_item-text: var(--semi-color-text-0); // 滚动列表选中选项文字颜色
|
|
12
|
+
$color-scrollList_selected_item-icon: var(--semi-color-text-2); // 滚动列表选中选项图标颜色
|
|
13
|
+
$color-scrollList_footer-border: var(--semi-color-border); // 滚动列表底部描边颜色
|
|
13
14
|
|
|
14
15
|
// Width/Height
|
|
15
|
-
$height-scrollList: 300px;
|
|
16
|
+
$height-scrollList: 300px;
|
|
16
17
|
$height-scrollList_item: 36px;
|
|
17
18
|
$width-scrollList_item-border: $border-thickness-control;
|
|
18
19
|
$width-scrollList_item_sel_svg: 16px;
|
package/select/option.scss
CHANGED
|
@@ -13,6 +13,7 @@ $multiple: #{$module}-multiple;
|
|
|
13
13
|
padding-top: $spacing-select_option-paddingTop;
|
|
14
14
|
padding-bottom: $spacing-select_option-paddingBottom;
|
|
15
15
|
color: $color-select_option_main-text;
|
|
16
|
+
border-radius: $radius-select_option;
|
|
16
17
|
position: relative;
|
|
17
18
|
display: flex;
|
|
18
19
|
flex-wrap: nowrap;
|
package/select/select.scss
CHANGED
|
@@ -24,14 +24,16 @@ $multiple: #{$module}-multiple;
|
|
|
24
24
|
|
|
25
25
|
&:hover {
|
|
26
26
|
background-color: $color-select-bg-hover;
|
|
27
|
+
border: $width-select-border-hover solid $color-select-border-hover;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
&:active {
|
|
30
31
|
background-color: $color-select-bg-active;
|
|
32
|
+
border: $width-select-border-active solid $color-select-border-active;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
&:focus {
|
|
34
|
-
border: $
|
|
36
|
+
border: $width-select-border-focus solid $color-select-border-focus;
|
|
35
37
|
outline: 0;
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -383,7 +385,7 @@ $multiple: #{$module}-multiple;
|
|
|
383
385
|
.#{$module}-option-list {
|
|
384
386
|
overflow-x: hidden;
|
|
385
387
|
overflow-y: auto;
|
|
386
|
-
|
|
388
|
+
padding: $spacing-select_option_list-paddingTop $spacing-select_option_list-paddingRight $spacing-select_option_list-paddingBottom $spacing-select_option_list-paddingLeft;
|
|
387
389
|
&-chosen {
|
|
388
390
|
.#{$module}-option-icon {
|
|
389
391
|
display: flex;
|
package/select/variables.scss
CHANGED
|
@@ -3,6 +3,9 @@ $color-select-bg-default: var(--semi-color-fill-0); // 选择器输入框背景
|
|
|
3
3
|
$color-select-bg-hover: var(--semi-color-fill-1); // 选择器输入框背景色 - 悬停态
|
|
4
4
|
$color-select-bg-active: var(--semi-color-fill-2); // 选择器输入框背景色 - 按下态
|
|
5
5
|
$color-select-border-default: transparent; // 选择器输入框描边颜色
|
|
6
|
+
$color-select-border-hover: $color-select-border-default; // 选择器输入框描边颜色 - 悬浮
|
|
7
|
+
$color-select-border-active: var(--semi-color-focus-border); // 选择器输入框描边颜色 - 按下态
|
|
8
|
+
$color-select-border-focus: $color-select-border-active;// 选择器输入框描边颜色 - 悬停态
|
|
6
9
|
$color-select_warning-bg-default: var(--semi-color-warning-light-default); // 警示选择器输入框背景色 - 默认态
|
|
7
10
|
$color-select_warning-border-default: var(--semi-color-warning-light-default); // 警示选择器输入框描边颜色 - 默认态
|
|
8
11
|
$color-select_warning-bg-hover: var(--semi-color-warning-light-hover); // 警示选择器输入框背景色 - 悬停态
|
|
@@ -56,7 +59,9 @@ $width-select_arrow_empty: 12px; // 选择器输入框下拉箭头为空时(
|
|
|
56
59
|
$width-select_clear-icon: 32px; // 选择器输入框清空按钮宽度
|
|
57
60
|
$width-select_group_top-border: $border-thickness-control; // 选择器菜单分组标题描边宽度
|
|
58
61
|
$height-select_multiple_content_wrapper-minHeight: $height-select_default - 2; // 多项选择器标签组最小宽度
|
|
59
|
-
|
|
62
|
+
$width-select-border-hover: $width-select-border; // 选择器输入框描边宽度 - 悬浮
|
|
63
|
+
$width-select-border-focus: $width-select-border-hover; // 选择器输入框描边宽度 - 按下
|
|
64
|
+
$width-select-border-active: $width-select-border-focus; // 选择器输入框描边宽度 - 选中
|
|
60
65
|
// Spacing
|
|
61
66
|
$spacing-select_option_tick-marginRight: $spacing-tight; // 选择器菜单选中对勾右侧外边距
|
|
62
67
|
$spacing-select_prefix_suffix_text-marginX: $spacing-base-tight; // 选择器输入框前后缀文本水平内边距
|
|
@@ -86,9 +91,14 @@ $spacing-select_tag-marginRight: $spacing-extra-tight; // 多项选择器标签
|
|
|
86
91
|
$spacing-select_tag-marginBottom: $spacing-super-tight - 1; // 多项选择器标签底部外边距
|
|
87
92
|
$spacing-select_selection-marginLeft: $spacing-base-tight; // 选择器内容区左侧外边距
|
|
88
93
|
$spacing-select_insetLabel-marginRight: $spacing-base-tight; // 选择器内嵌标签右侧外边距
|
|
94
|
+
$spacing-select_option_list-paddingTop: 0; // 选择器内容区顶部内边距
|
|
95
|
+
$spacing-select_option_list-paddingRight: 0; // 选择器内容区右侧内边距
|
|
96
|
+
$spacing-select_option_list-paddingBottom: 0; // 选择器内容区底部内边距
|
|
97
|
+
$spacing-select_option_list-paddingLeft: 0; // 选择器内容区左侧内边距
|
|
89
98
|
|
|
90
99
|
// Radius
|
|
91
100
|
$radius-select: var(--semi-border-radius-small); // 选择器输入框圆角
|
|
101
|
+
$radius-select_option: 0; // 选择器待选项圆角
|
|
92
102
|
|
|
93
103
|
// Font
|
|
94
104
|
$font-select-fontWeight: $font-weight-regular; // 选择器文本字重
|
package/table/table.scss
CHANGED
package/table/variables.scss
CHANGED
|
@@ -79,8 +79,8 @@ $font-table_base-fontSize: 14px; // 表格默认文本字号
|
|
|
79
79
|
$border-table_base-borderStyle: solid; // 表格描边样式
|
|
80
80
|
$shadow-table_left: -3px 0 0 0 $color-table_shadow-bg-default; // 表格滚动阴影 - 左侧
|
|
81
81
|
$shadow-table_right: 3px 0 0 0 $color-table_shadow-bg-default; // 表格滚动阴影 - 右侧
|
|
82
|
-
$border-table:
|
|
83
|
-
$border-table_head-bottom:
|
|
82
|
+
$border-table: $width-table_base_border $border-table_base-borderStyle $color-table-border-default; // 表格默认描边
|
|
83
|
+
$border-table_head-bottom: $width-table_header_border $border-table_base-borderStyle $color-table_th-border-default; // 表头单元格描边 - 底部
|
|
84
84
|
$border-table_resizer: $width-table_resizer_border solid $color-table_resizer-bg-default; // 表格拉伸标识描边
|
|
85
85
|
|
|
86
86
|
$z-table-fixed: 101!default; // fixed列的zIndex值
|
package/tagInput/tagInput.scss
CHANGED
|
@@ -4,7 +4,7 @@ $module: #{$prefix}-tagInput;
|
|
|
4
4
|
|
|
5
5
|
.#{$module} {
|
|
6
6
|
background-color: $color-tagInput_default-bg-default;
|
|
7
|
-
border: $
|
|
7
|
+
border: $width-tagInput-border-default $color-tagInput-border-default solid;
|
|
8
8
|
border-radius: $radius-tagInput;
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
font-weight: $font-weight-regular;
|
|
@@ -13,11 +13,12 @@ $module: #{$prefix}-tagInput;
|
|
|
13
13
|
|
|
14
14
|
&-hover {
|
|
15
15
|
background-color: $color-tagInput_default-bg-hover;
|
|
16
|
+
border: $width-tagInput-border-hover $color-tagInput-border-hover solid;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
&-focus {
|
|
19
20
|
background-color: $color-tagInput_default-bg-focus;
|
|
20
|
-
border: $
|
|
21
|
+
border: $width-tagInput-border-focus $color-tagInput-border-focus solid;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&-warning {
|
package/tagInput/variables.scss
CHANGED
|
@@ -3,13 +3,16 @@ $color-tagInput-maxTagCount-default: var(--semi-color-text-0); // 标签输入
|
|
|
3
3
|
$color-tagInput-icon-hover: var(--semi-color-primary-hover); // 标签输入框图标颜色 - 悬浮
|
|
4
4
|
$color-tagInput_disabled-text-default: var(--semi-color-disabled-text); // 标签输入框禁用文字颜色
|
|
5
5
|
$color-tagInput_default-bg-focus: var(--semi-color-fill-0); // 标签输入框背景颜色 - 选中态
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
$color-tagInput-border-default: transparent; // 标签输入框描边颜色 - 默认
|
|
8
|
+
$color-tagInput-border-hover: transparent ; // 标签输入框描边颜色 - 悬浮
|
|
9
|
+
$color-tagInput-border-focus: var(--semi-color-focus-border); // 标签输入框描边颜色 - 选中态
|
|
7
10
|
$color-tagInput_prefix-default: var(--semi-color-text-2); // 标签输入框 prefix 颜色
|
|
8
11
|
$color-tagInput_suffix-default: var(--semi-color-text-1); // 标签输入框 suffix 颜色
|
|
9
12
|
|
|
10
13
|
$color-tagInput_default-bg-default: var(--semi-color-fill-0); // 标签输入框背景颜色 - 默认
|
|
11
14
|
$color-tagInput_default-bg-hover: var(--semi-color-fill-1); // 标签输入框背景颜色 - 悬浮
|
|
12
|
-
$color-textarea-border-default: transparent; // 标签输入框描边颜色 -
|
|
15
|
+
// $color-textarea-border-default: transparent; // 标签输入框描边颜色 - 默认,已废弃 deprecated-v2.4
|
|
13
16
|
|
|
14
17
|
$color-tagInput_warning-bg-default: var(--semi-color-warning-light-default); // 警告标签输入框背景颜色 - 默认
|
|
15
18
|
$color-tagInput_warning-border-default: var(--semi-color-warning-light-default); // 警告标签输入框描边颜色 - 默认
|
|
@@ -35,5 +38,8 @@ $height-tagInput-default: $height-control-default; // 默认尺寸标签输入
|
|
|
35
38
|
$height-tagInput-small: $height-control-small; // 小尺寸标签输入框高度
|
|
36
39
|
|
|
37
40
|
$width-tagInput-clear-medium: $width-icon-medium * 2; // 标签输入框清空按钮宽度
|
|
41
|
+
$width-tagInput-border-default: $border-thickness-control; // 标签输入框描边描边宽度 - 默认
|
|
42
|
+
$width-tagInput-border-hover: $width-tagInput-border-default; // 标签输入框描边描边宽度 - 悬浮
|
|
43
|
+
$width-tagInput-border-focus: $border-thickness-control-focus; // 标签输入框描边宽度 - 选中态
|
|
38
44
|
|
|
39
45
|
$radius-tagInput: var(--semi-border-radius-small); // 标签输入框圆角
|
package/timePicker/foundation.ts
CHANGED
|
@@ -37,7 +37,8 @@ export interface TimePickerAdapter<P = Record<string, any>, S = Record<string, a
|
|
|
37
37
|
setInputValue: (inputValue: string, cb?: () => void) => void;
|
|
38
38
|
unregisterClickOutSide: () => void;
|
|
39
39
|
notifyOpenChange: (open: boolean) => void;
|
|
40
|
-
notifyChange
|
|
40
|
+
notifyChange(value: Date | Date[], input: string | string[]): void;
|
|
41
|
+
notifyChange(input: string | string[], value: Date | Date[]): void;
|
|
41
42
|
notifyFocus: (e: any) => void;
|
|
42
43
|
notifyBlur: (e: any) => void;
|
|
43
44
|
isRangePicker: () => boolean;
|
|
@@ -413,8 +414,12 @@ class TimePickerFoundation<P = Record<string, any>, S = Record<string, any>> ext
|
|
|
413
414
|
str = format(_value, formatToken);
|
|
414
415
|
}
|
|
415
416
|
}
|
|
416
|
-
|
|
417
|
-
|
|
417
|
+
const onChangeWithDateFirst = this.getProp('onChangeWithDateFirst');
|
|
418
|
+
if (onChangeWithDateFirst) {
|
|
419
|
+
this._adapter.notifyChange(_value, str);
|
|
420
|
+
} else {
|
|
421
|
+
this._adapter.notifyChange(str, _value);
|
|
422
|
+
}
|
|
418
423
|
}
|
|
419
424
|
|
|
420
425
|
_hasChanged(dates: Date[] = [], oldDates: Date[] = []) {
|
package/tree/treeUtil.ts
CHANGED
|
@@ -601,7 +601,7 @@ export function normalizeValue(value: any, withObject: boolean) {
|
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
|
|
604
|
-
export function updateKeys(keySet: Set<string
|
|
604
|
+
export function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities) {
|
|
605
605
|
const keyArr = [...keySet];
|
|
606
606
|
return keyArr.filter(key => key in keyEntities);
|
|
607
607
|
}
|
|
@@ -18,6 +18,7 @@ $module: #{$prefix}-tree-select;
|
|
|
18
18
|
|
|
19
19
|
&:hover {
|
|
20
20
|
background-color: $color-treeSelect_default-bg-hover;
|
|
21
|
+
border: $width-treeSelect_hover-border solid $color-treeSelect_default-border-hover;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&-focus {
|
|
@@ -329,4 +330,4 @@ $module: #{$prefix}-tree-select;
|
|
|
329
330
|
}
|
|
330
331
|
}
|
|
331
332
|
|
|
332
|
-
@import './rtl.scss';
|
|
333
|
+
@import './rtl.scss';
|