@douyinfe/semi-foundation 2.85.0 → 2.86.0
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/variables.scss +1 -1
- package/codeHighlight/codeHighlight.scss +2 -2
- package/jsonViewer/foundation.ts +6 -2
- package/lib/cjs/button/variables.scss +1 -1
- package/lib/cjs/codeHighlight/codeHighlight.css +2 -2
- package/lib/cjs/codeHighlight/codeHighlight.scss +2 -2
- package/lib/cjs/jsonViewer/foundation.js +4 -1
- package/lib/cjs/tagInput/tagInput.css +3 -0
- package/lib/cjs/tagInput/tagInput.scss +3 -0
- package/lib/cjs/tagInput/variables.scss +1 -0
- package/lib/cjs/treeSelect/treeSelect.css +0 -5
- package/lib/cjs/treeSelect/treeSelect.scss +5 -5
- package/lib/es/button/variables.scss +1 -1
- package/lib/es/codeHighlight/codeHighlight.css +2 -2
- package/lib/es/codeHighlight/codeHighlight.scss +2 -2
- package/lib/es/jsonViewer/foundation.js +4 -1
- package/lib/es/tagInput/tagInput.css +3 -0
- package/lib/es/tagInput/tagInput.scss +3 -0
- package/lib/es/tagInput/variables.scss +1 -0
- package/lib/es/treeSelect/treeSelect.css +0 -5
- package/lib/es/treeSelect/treeSelect.scss +5 -5
- package/package.json +4 -4
- package/tagInput/tagInput.scss +3 -0
- package/tagInput/variables.scss +1 -0
- package/treeSelect/treeSelect.scss +5 -5
package/button/variables.scss
CHANGED
|
@@ -76,7 +76,7 @@ $color-button_tertiary-text-hover: rgba(var(--semi-white), 1); // 第三按钮
|
|
|
76
76
|
$color-button_tertiary-bg-active: var(--semi-color-tertiary-active); // 第三按钮背景颜色 - 按下
|
|
77
77
|
$color-button_tertiary-border-active: var(--semi-color-tertiary-active); // 第三按钮描边颜色 - 按下
|
|
78
78
|
$color-button_tertiary-text-active: rgba(var(--semi-white), 1); // 第三按钮文字颜色 - 按下
|
|
79
|
-
$color-button_tertiary_outline-border-default: var(--semi-color-border); // 边框模式下
|
|
79
|
+
$color-button_tertiary_outline-border-default: var(--semi-color-border); // 边框模式下 tertiary 边框颜色
|
|
80
80
|
$color-button_tertiary_solid-text-default: var(--semi-color-text-1); // 浅色第三按钮文字颜色
|
|
81
81
|
|
|
82
82
|
// disabled
|
|
@@ -33,8 +33,8 @@ $module: #{$prefix}-codeHighlight;
|
|
|
33
33
|
|
|
34
34
|
pre[class*="language-"]::selection,
|
|
35
35
|
code[class*="language-"]::selection,
|
|
36
|
-
pre[class*="language-"]
|
|
37
|
-
code[class*="language-"]
|
|
36
|
+
pre[class*="language-"]::-moz-selection,
|
|
37
|
+
code[class*="language-"]::-moz-selection {
|
|
38
38
|
text-shadow: none;
|
|
39
39
|
background: #b3d4fc;
|
|
40
40
|
}
|
package/jsonViewer/foundation.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JsonViewer, JsonViewerOptions, CustomRenderRule } from '@douyinfe/semi-json-viewer-core';
|
|
2
2
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
3
|
-
|
|
3
|
+
import { cssClasses } from './constants';
|
|
4
4
|
export type { JsonViewerOptions, CustomRenderRule };
|
|
5
|
+
|
|
5
6
|
export interface JsonViewerAdapter<P = Record<string, any>, S = Record<string, any>> extends DefaultAdapter<P, S> {
|
|
6
7
|
getEditorRef: () => HTMLElement;
|
|
7
8
|
getSearchRef: () => HTMLInputElement;
|
|
@@ -22,7 +23,10 @@ class JsonViewerFoundation extends BaseFoundation<JsonViewerAdapter> {
|
|
|
22
23
|
init() {
|
|
23
24
|
const props = this.getProps();
|
|
24
25
|
const editorRef = this._adapter.getEditorRef();
|
|
25
|
-
this.jsonViewer = new JsonViewer(editorRef, props.value,
|
|
26
|
+
this.jsonViewer = new JsonViewer(editorRef, props.value, {
|
|
27
|
+
prefixCls: cssClasses.PREFIX,
|
|
28
|
+
...props.options
|
|
29
|
+
});
|
|
26
30
|
this.jsonViewer.emitter.on('customRender', (e) => {
|
|
27
31
|
this._adapter.notifyCustomRender(e.customRenderMap);
|
|
28
32
|
});
|
|
@@ -76,7 +76,7 @@ $color-button_tertiary-text-hover: rgba(var(--semi-white), 1); // 第三按钮
|
|
|
76
76
|
$color-button_tertiary-bg-active: var(--semi-color-tertiary-active); // 第三按钮背景颜色 - 按下
|
|
77
77
|
$color-button_tertiary-border-active: var(--semi-color-tertiary-active); // 第三按钮描边颜色 - 按下
|
|
78
78
|
$color-button_tertiary-text-active: rgba(var(--semi-white), 1); // 第三按钮文字颜色 - 按下
|
|
79
|
-
$color-button_tertiary_outline-border-default: var(--semi-color-border); // 边框模式下
|
|
79
|
+
$color-button_tertiary_outline-border-default: var(--semi-color-border); // 边框模式下 tertiary 边框颜色
|
|
80
80
|
$color-button_tertiary_solid-text-default: var(--semi-color-text-1); // 浅色第三按钮文字颜色
|
|
81
81
|
|
|
82
82
|
// disabled
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
}
|
|
29
29
|
.semi-codeHighlight-defaultTheme pre[class*=language-]::selection,
|
|
30
30
|
.semi-codeHighlight-defaultTheme code[class*=language-]::selection,
|
|
31
|
-
.semi-codeHighlight-defaultTheme pre[class*=language-]
|
|
32
|
-
.semi-codeHighlight-defaultTheme code[class*=language-]
|
|
31
|
+
.semi-codeHighlight-defaultTheme pre[class*=language-]::-moz-selection,
|
|
32
|
+
.semi-codeHighlight-defaultTheme code[class*=language-]::-moz-selection {
|
|
33
33
|
text-shadow: none;
|
|
34
34
|
background: #b3d4fc;
|
|
35
35
|
}
|
|
@@ -33,8 +33,8 @@ $module: #{$prefix}-codeHighlight;
|
|
|
33
33
|
|
|
34
34
|
pre[class*="language-"]::selection,
|
|
35
35
|
code[class*="language-"]::selection,
|
|
36
|
-
pre[class*="language-"]
|
|
37
|
-
code[class*="language-"]
|
|
36
|
+
pre[class*="language-"]::-moz-selection,
|
|
37
|
+
code[class*="language-"]::-moz-selection {
|
|
38
38
|
text-shadow: none;
|
|
39
39
|
background: #b3d4fc;
|
|
40
40
|
}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _semiJsonViewerCore = require("@douyinfe/semi-json-viewer-core");
|
|
8
8
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
9
|
+
var _constants = require("./constants");
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
11
|
class JsonViewerFoundation extends _foundation.default {
|
|
11
12
|
constructor(adapter) {
|
|
@@ -15,7 +16,9 @@ class JsonViewerFoundation extends _foundation.default {
|
|
|
15
16
|
init() {
|
|
16
17
|
const props = this.getProps();
|
|
17
18
|
const editorRef = this._adapter.getEditorRef();
|
|
18
|
-
this.jsonViewer = new _semiJsonViewerCore.JsonViewer(editorRef, props.value,
|
|
19
|
+
this.jsonViewer = new _semiJsonViewerCore.JsonViewer(editorRef, props.value, Object.assign({
|
|
20
|
+
prefixCls: _constants.cssClasses.PREFIX
|
|
21
|
+
}, props.options));
|
|
19
22
|
this.jsonViewer.emitter.on('customRender', e => {
|
|
20
23
|
this._adapter.notifyCustomRender(e.customRenderMap);
|
|
21
24
|
});
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
.semi-tagInput-sortable-item {
|
|
34
34
|
position: relative;
|
|
35
|
+
max-width: 100%;
|
|
35
36
|
}
|
|
36
37
|
.semi-tagInput-sortable-item-over {
|
|
37
38
|
overflow: visible;
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
border-color: var(--semi-color-danger);
|
|
83
84
|
}
|
|
84
85
|
.semi-tagInput-disabled {
|
|
86
|
+
background-color: var(--semi-color-disabled-fill);
|
|
85
87
|
cursor: not-allowed;
|
|
86
88
|
}
|
|
87
89
|
.semi-tagInput-disabled .semi-tagInput-clearBtn,
|
|
@@ -114,6 +116,7 @@
|
|
|
114
116
|
.semi-tagInput-wrapper-tag {
|
|
115
117
|
margin-right: 4px;
|
|
116
118
|
white-space: pre;
|
|
119
|
+
max-width: 100%;
|
|
117
120
|
}
|
|
118
121
|
.semi-tagInput-wrapper-tag-size-small {
|
|
119
122
|
margin-top: 1px;
|
|
@@ -44,6 +44,7 @@ $module: #{$prefix}-tagInput;
|
|
|
44
44
|
|
|
45
45
|
&-sortable-item {
|
|
46
46
|
position: relative;
|
|
47
|
+
max-width: 100%;
|
|
47
48
|
&-over {
|
|
48
49
|
overflow: visible;
|
|
49
50
|
&::before {
|
|
@@ -104,6 +105,7 @@ $module: #{$prefix}-tagInput;
|
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
&-disabled {
|
|
108
|
+
background-color: $color-tagInput_disabled-bg;
|
|
107
109
|
cursor: not-allowed;
|
|
108
110
|
|
|
109
111
|
.#{$module}-clearBtn,
|
|
@@ -139,6 +141,7 @@ $module: #{$prefix}-tagInput;
|
|
|
139
141
|
&-tag {
|
|
140
142
|
margin-right: $spacing-extra-tight;
|
|
141
143
|
white-space: pre;
|
|
144
|
+
max-width: 100%;
|
|
142
145
|
|
|
143
146
|
&-size {
|
|
144
147
|
&-small {
|
|
@@ -2,6 +2,7 @@ $color-tagInput-icon-default: var(--semi-color-text-2); // 标签输入框图标
|
|
|
2
2
|
$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
|
+
$color-tagInput_disabled-bg: var(--semi-color-disabled-fill); // 标签输入框禁用背景色
|
|
5
6
|
$color-tagInput_default-bg-focus: var(--semi-color-fill-0); // 标签输入框背景颜色 - 选中态
|
|
6
7
|
|
|
7
8
|
$color-tagInput-border-default: transparent; // 标签输入框描边颜色 - 默认
|
|
@@ -19,11 +19,6 @@
|
|
|
19
19
|
background-color: var(--semi-color-fill-1);
|
|
20
20
|
border: 1px solid transparent;
|
|
21
21
|
}
|
|
22
|
-
.semi-tree-select:focus {
|
|
23
|
-
border: 1px solid var(--semi-color-focus-border);
|
|
24
|
-
background-color: var(--semi-color-fill-0);
|
|
25
|
-
outline: 0;
|
|
26
|
-
}
|
|
27
22
|
.semi-tree-select:active {
|
|
28
23
|
background-color: var(--semi-color-fill-2);
|
|
29
24
|
}
|
|
@@ -22,11 +22,11 @@ $module: #{$prefix}-tree-select;
|
|
|
22
22
|
border: $width-treeSelect_hover-border solid $color-treeSelect_default-border-hover;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
&:focus {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
25
|
+
// &:focus {
|
|
26
|
+
// border: $width-treeSelect_focus-border solid $color-treeSelect_default-border-focus;
|
|
27
|
+
// background-color: $color-treeSelect_default-bg-focus;
|
|
28
|
+
// outline: 0;
|
|
29
|
+
// }
|
|
30
30
|
|
|
31
31
|
&:active{
|
|
32
32
|
background-color: $color-treeSelect_default-bg-active;
|
|
@@ -76,7 +76,7 @@ $color-button_tertiary-text-hover: rgba(var(--semi-white), 1); // 第三按钮
|
|
|
76
76
|
$color-button_tertiary-bg-active: var(--semi-color-tertiary-active); // 第三按钮背景颜色 - 按下
|
|
77
77
|
$color-button_tertiary-border-active: var(--semi-color-tertiary-active); // 第三按钮描边颜色 - 按下
|
|
78
78
|
$color-button_tertiary-text-active: rgba(var(--semi-white), 1); // 第三按钮文字颜色 - 按下
|
|
79
|
-
$color-button_tertiary_outline-border-default: var(--semi-color-border); // 边框模式下
|
|
79
|
+
$color-button_tertiary_outline-border-default: var(--semi-color-border); // 边框模式下 tertiary 边框颜色
|
|
80
80
|
$color-button_tertiary_solid-text-default: var(--semi-color-text-1); // 浅色第三按钮文字颜色
|
|
81
81
|
|
|
82
82
|
// disabled
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
}
|
|
29
29
|
.semi-codeHighlight-defaultTheme pre[class*=language-]::selection,
|
|
30
30
|
.semi-codeHighlight-defaultTheme code[class*=language-]::selection,
|
|
31
|
-
.semi-codeHighlight-defaultTheme pre[class*=language-]
|
|
32
|
-
.semi-codeHighlight-defaultTheme code[class*=language-]
|
|
31
|
+
.semi-codeHighlight-defaultTheme pre[class*=language-]::-moz-selection,
|
|
32
|
+
.semi-codeHighlight-defaultTheme code[class*=language-]::-moz-selection {
|
|
33
33
|
text-shadow: none;
|
|
34
34
|
background: #b3d4fc;
|
|
35
35
|
}
|
|
@@ -33,8 +33,8 @@ $module: #{$prefix}-codeHighlight;
|
|
|
33
33
|
|
|
34
34
|
pre[class*="language-"]::selection,
|
|
35
35
|
code[class*="language-"]::selection,
|
|
36
|
-
pre[class*="language-"]
|
|
37
|
-
code[class*="language-"]
|
|
36
|
+
pre[class*="language-"]::-moz-selection,
|
|
37
|
+
code[class*="language-"]::-moz-selection {
|
|
38
38
|
text-shadow: none;
|
|
39
39
|
background: #b3d4fc;
|
|
40
40
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JsonViewer } from '@douyinfe/semi-json-viewer-core';
|
|
2
2
|
import BaseFoundation from '../base/foundation';
|
|
3
|
+
import { cssClasses } from './constants';
|
|
3
4
|
class JsonViewerFoundation extends BaseFoundation {
|
|
4
5
|
constructor(adapter) {
|
|
5
6
|
super(Object.assign(Object.assign({}, JsonViewerFoundation), adapter));
|
|
@@ -8,7 +9,9 @@ class JsonViewerFoundation extends BaseFoundation {
|
|
|
8
9
|
init() {
|
|
9
10
|
const props = this.getProps();
|
|
10
11
|
const editorRef = this._adapter.getEditorRef();
|
|
11
|
-
this.jsonViewer = new JsonViewer(editorRef, props.value,
|
|
12
|
+
this.jsonViewer = new JsonViewer(editorRef, props.value, Object.assign({
|
|
13
|
+
prefixCls: cssClasses.PREFIX
|
|
14
|
+
}, props.options));
|
|
12
15
|
this.jsonViewer.emitter.on('customRender', e => {
|
|
13
16
|
this._adapter.notifyCustomRender(e.customRenderMap);
|
|
14
17
|
});
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
.semi-tagInput-sortable-item {
|
|
34
34
|
position: relative;
|
|
35
|
+
max-width: 100%;
|
|
35
36
|
}
|
|
36
37
|
.semi-tagInput-sortable-item-over {
|
|
37
38
|
overflow: visible;
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
border-color: var(--semi-color-danger);
|
|
83
84
|
}
|
|
84
85
|
.semi-tagInput-disabled {
|
|
86
|
+
background-color: var(--semi-color-disabled-fill);
|
|
85
87
|
cursor: not-allowed;
|
|
86
88
|
}
|
|
87
89
|
.semi-tagInput-disabled .semi-tagInput-clearBtn,
|
|
@@ -114,6 +116,7 @@
|
|
|
114
116
|
.semi-tagInput-wrapper-tag {
|
|
115
117
|
margin-right: 4px;
|
|
116
118
|
white-space: pre;
|
|
119
|
+
max-width: 100%;
|
|
117
120
|
}
|
|
118
121
|
.semi-tagInput-wrapper-tag-size-small {
|
|
119
122
|
margin-top: 1px;
|
|
@@ -44,6 +44,7 @@ $module: #{$prefix}-tagInput;
|
|
|
44
44
|
|
|
45
45
|
&-sortable-item {
|
|
46
46
|
position: relative;
|
|
47
|
+
max-width: 100%;
|
|
47
48
|
&-over {
|
|
48
49
|
overflow: visible;
|
|
49
50
|
&::before {
|
|
@@ -104,6 +105,7 @@ $module: #{$prefix}-tagInput;
|
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
&-disabled {
|
|
108
|
+
background-color: $color-tagInput_disabled-bg;
|
|
107
109
|
cursor: not-allowed;
|
|
108
110
|
|
|
109
111
|
.#{$module}-clearBtn,
|
|
@@ -139,6 +141,7 @@ $module: #{$prefix}-tagInput;
|
|
|
139
141
|
&-tag {
|
|
140
142
|
margin-right: $spacing-extra-tight;
|
|
141
143
|
white-space: pre;
|
|
144
|
+
max-width: 100%;
|
|
142
145
|
|
|
143
146
|
&-size {
|
|
144
147
|
&-small {
|
|
@@ -2,6 +2,7 @@ $color-tagInput-icon-default: var(--semi-color-text-2); // 标签输入框图标
|
|
|
2
2
|
$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
|
+
$color-tagInput_disabled-bg: var(--semi-color-disabled-fill); // 标签输入框禁用背景色
|
|
5
6
|
$color-tagInput_default-bg-focus: var(--semi-color-fill-0); // 标签输入框背景颜色 - 选中态
|
|
6
7
|
|
|
7
8
|
$color-tagInput-border-default: transparent; // 标签输入框描边颜色 - 默认
|
|
@@ -19,11 +19,6 @@
|
|
|
19
19
|
background-color: var(--semi-color-fill-1);
|
|
20
20
|
border: 1px solid transparent;
|
|
21
21
|
}
|
|
22
|
-
.semi-tree-select:focus {
|
|
23
|
-
border: 1px solid var(--semi-color-focus-border);
|
|
24
|
-
background-color: var(--semi-color-fill-0);
|
|
25
|
-
outline: 0;
|
|
26
|
-
}
|
|
27
22
|
.semi-tree-select:active {
|
|
28
23
|
background-color: var(--semi-color-fill-2);
|
|
29
24
|
}
|
|
@@ -22,11 +22,11 @@ $module: #{$prefix}-tree-select;
|
|
|
22
22
|
border: $width-treeSelect_hover-border solid $color-treeSelect_default-border-hover;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
&:focus {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
25
|
+
// &:focus {
|
|
26
|
+
// border: $width-treeSelect_focus-border solid $color-treeSelect_default-border-focus;
|
|
27
|
+
// background-color: $color-treeSelect_default-bg-focus;
|
|
28
|
+
// outline: 0;
|
|
29
|
+
// }
|
|
30
30
|
|
|
31
31
|
&:active{
|
|
32
32
|
background-color: $color-treeSelect_default-bg-active;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.86.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.
|
|
11
|
-
"@douyinfe/semi-json-viewer-core": "2.
|
|
10
|
+
"@douyinfe/semi-animation": "2.86.0",
|
|
11
|
+
"@douyinfe/semi-json-viewer-core": "2.86.0",
|
|
12
12
|
"@mdx-js/mdx": "^3.0.1",
|
|
13
13
|
"async-validator": "^3.5.0",
|
|
14
14
|
"classnames": "^2.2.6",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"*.scss",
|
|
30
30
|
"*.css"
|
|
31
31
|
],
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "772a43ea321ffc267e322f9c14d1b65eec9ea834",
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
35
35
|
"@babel/preset-env": "^7.15.8",
|
package/tagInput/tagInput.scss
CHANGED
|
@@ -44,6 +44,7 @@ $module: #{$prefix}-tagInput;
|
|
|
44
44
|
|
|
45
45
|
&-sortable-item {
|
|
46
46
|
position: relative;
|
|
47
|
+
max-width: 100%;
|
|
47
48
|
&-over {
|
|
48
49
|
overflow: visible;
|
|
49
50
|
&::before {
|
|
@@ -104,6 +105,7 @@ $module: #{$prefix}-tagInput;
|
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
&-disabled {
|
|
108
|
+
background-color: $color-tagInput_disabled-bg;
|
|
107
109
|
cursor: not-allowed;
|
|
108
110
|
|
|
109
111
|
.#{$module}-clearBtn,
|
|
@@ -139,6 +141,7 @@ $module: #{$prefix}-tagInput;
|
|
|
139
141
|
&-tag {
|
|
140
142
|
margin-right: $spacing-extra-tight;
|
|
141
143
|
white-space: pre;
|
|
144
|
+
max-width: 100%;
|
|
142
145
|
|
|
143
146
|
&-size {
|
|
144
147
|
&-small {
|
package/tagInput/variables.scss
CHANGED
|
@@ -2,6 +2,7 @@ $color-tagInput-icon-default: var(--semi-color-text-2); // 标签输入框图标
|
|
|
2
2
|
$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
|
+
$color-tagInput_disabled-bg: var(--semi-color-disabled-fill); // 标签输入框禁用背景色
|
|
5
6
|
$color-tagInput_default-bg-focus: var(--semi-color-fill-0); // 标签输入框背景颜色 - 选中态
|
|
6
7
|
|
|
7
8
|
$color-tagInput-border-default: transparent; // 标签输入框描边颜色 - 默认
|
|
@@ -22,11 +22,11 @@ $module: #{$prefix}-tree-select;
|
|
|
22
22
|
border: $width-treeSelect_hover-border solid $color-treeSelect_default-border-hover;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
&:focus {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
25
|
+
// &:focus {
|
|
26
|
+
// border: $width-treeSelect_focus-border solid $color-treeSelect_default-border-focus;
|
|
27
|
+
// background-color: $color-treeSelect_default-bg-focus;
|
|
28
|
+
// outline: 0;
|
|
29
|
+
// }
|
|
30
30
|
|
|
31
31
|
&:active{
|
|
32
32
|
background-color: $color-treeSelect_default-bg-active;
|