@douyinfe/semi-foundation 2.30.0-alpha.0 → 2.30.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/datePicker/monthsGridFoundation.ts +9 -3
- package/lib/cjs/anchor/constants.js +1 -1
- package/lib/cjs/anchor/foundation.js +3 -3
- package/lib/cjs/autoComplete/constants.js +3 -3
- package/lib/cjs/avatar/constants.js +1 -1
- package/lib/cjs/backtop/constants.js +1 -1
- package/lib/cjs/badge/constants.js +1 -1
- package/lib/cjs/banner/constants.js +1 -1
- package/lib/cjs/breadcrumb/constants.js +1 -1
- package/lib/cjs/button/constants.js +1 -1
- package/lib/cjs/calendar/constants.js +1 -1
- package/lib/cjs/card/constants.js +1 -1
- package/lib/cjs/carousel/constants.js +9 -9
- package/lib/cjs/cascader/constants.js +2 -2
- package/lib/cjs/cascader/foundation.js +1 -1
- package/lib/cjs/cascader/util.js +2 -2
- package/lib/cjs/checkbox/constants.js +13 -13
- package/lib/cjs/collapse/constants.js +1 -1
- package/lib/cjs/collapsible/constants.js +1 -1
- package/lib/cjs/datePicker/_utils/getInsetInputFormatToken.js +1 -1
- package/lib/cjs/datePicker/_utils/getMonthTable.js +4 -4
- package/lib/cjs/datePicker/_utils/getMonthsInYear.js +1 -1
- package/lib/cjs/datePicker/constants.js +27 -27
- package/lib/cjs/datePicker/foundation.js +3 -3
- package/lib/cjs/datePicker/inputFoundation.js +2 -2
- package/lib/cjs/datePicker/monthsGridFoundation.js +15 -4
- package/lib/cjs/descriptions/constants.js +1 -1
- package/lib/cjs/divider/constants.js +1 -1
- package/lib/cjs/dropdown/constants.js +3 -3
- package/lib/cjs/dropdown/menuFoundation.js +1 -1
- package/lib/cjs/empty/constants.js +1 -1
- package/lib/cjs/form/constants.js +1 -1
- package/lib/cjs/form/foundation.js +1 -1
- package/lib/cjs/form/utils.js +1 -1
- package/lib/cjs/grid/constants.js +1 -1
- package/lib/cjs/highlight/constants.js +1 -1
- package/lib/cjs/icons/constants.js +1 -1
- package/lib/cjs/image/constants.js +1 -1
- package/lib/cjs/input/constants.js +1 -1
- package/lib/cjs/input/textareaFoundation.js +1 -1
- package/lib/cjs/layout/constants.js +1 -1
- package/lib/cjs/list/constants.js +1 -1
- package/lib/cjs/modal/constants.js +1 -1
- package/lib/cjs/navigation/constants.js +1 -1
- package/lib/cjs/notification/constants.js +3 -3
- package/lib/cjs/pagination/constants.js +1 -1
- package/lib/cjs/popconfirm/constants.js +2 -2
- package/lib/cjs/popconfirm/popconfirmFoundation.d.ts +4 -0
- package/lib/cjs/popconfirm/popconfirmFoundation.js +21 -1
- package/lib/cjs/popover/constants.js +2 -2
- package/lib/cjs/progress/constants.js +1 -1
- package/lib/cjs/progress/generates.js +14 -14
- package/lib/cjs/radio/constants.js +13 -13
- package/lib/cjs/rating/constants.js +1 -1
- package/lib/cjs/scrollList/constants.js +2 -2
- package/lib/cjs/select/constants.js +3 -3
- package/lib/cjs/select/foundation.js +2 -1
- package/lib/cjs/select/select.css +1 -0
- package/lib/cjs/select/select.scss +1 -0
- package/lib/cjs/select/variables.scss +1 -0
- package/lib/cjs/sideSheet/constants.js +2 -2
- package/lib/cjs/skeleton/constants.js +1 -1
- package/lib/cjs/slider/constants.js +7 -7
- package/lib/cjs/space/constants.js +1 -1
- package/lib/cjs/spin/constants.js +1 -1
- package/lib/cjs/steps/bacisSteps.scss +238 -286
- package/lib/cjs/steps/constants.js +2 -2
- package/lib/cjs/steps/fillSteps.scss +142 -148
- package/lib/cjs/steps/navSteps.scss +40 -60
- package/lib/cjs/steps/steps.css +14 -377
- package/lib/cjs/switch/constants.js +13 -13
- package/lib/cjs/table/constants.js +7 -7
- package/lib/cjs/table/utils.js +2 -2
- package/lib/cjs/tabs/constants.js +21 -21
- package/lib/cjs/tag/constants.js +1 -1
- package/lib/cjs/tag/tag.css +9 -2
- package/lib/cjs/tag/tag.scss +13 -4
- package/lib/cjs/tagInput/constants.js +1 -1
- package/lib/cjs/timePicker/ComboxFoundation.js +2 -2
- package/lib/cjs/timePicker/constants.js +3 -3
- package/lib/cjs/timePicker/utils/index.js +3 -3
- package/lib/cjs/timeline/constants.js +2 -2
- package/lib/cjs/toast/constants.js +3 -3
- package/lib/cjs/tooltip/constants.js +1 -1
- package/lib/cjs/tooltip/foundation.d.ts +1 -1
- package/lib/cjs/tooltip/foundation.js +15 -12
- package/lib/cjs/transfer/constants.js +1 -1
- package/lib/cjs/tree/constants.js +2 -2
- package/lib/cjs/tree/treeUtil.d.ts +1 -1
- package/lib/cjs/tree/treeUtil.js +1 -1
- package/lib/cjs/treeSelect/constants.js +3 -3
- package/lib/cjs/treeSelect/foundation.d.ts +5 -2
- package/lib/cjs/treeSelect/foundation.js +42 -17
- package/lib/cjs/treeSelect/treeSelect.css +5 -1
- package/lib/cjs/treeSelect/treeSelect.scss +6 -0
- package/lib/cjs/treeSelect/variables.scss +1 -1
- package/lib/cjs/typography/constants.js +1 -1
- package/lib/cjs/typography/formatNumeral.js +6 -11
- package/lib/cjs/upload/constants.d.ts +1 -1
- package/lib/cjs/upload/constants.js +2 -2
- package/lib/cjs/upload/foundation.js +1 -1
- package/lib/cjs/upload/utils.js +4 -4
- package/lib/cjs/utils/getMotionObjFromProps.js +2 -2
- package/lib/cjs/utils/touchPolyfill.js +1 -1
- package/lib/cjs/utils/uuid.js +2 -2
- package/lib/cjs/utils/warning.js +1 -1
- package/lib/es/anchor/constants.js +1 -1
- package/lib/es/anchor/foundation.js +3 -3
- package/lib/es/autoComplete/constants.js +3 -3
- package/lib/es/avatar/constants.js +1 -1
- package/lib/es/backtop/constants.js +1 -1
- package/lib/es/badge/constants.js +1 -1
- package/lib/es/banner/constants.js +1 -1
- package/lib/es/breadcrumb/constants.js +1 -1
- package/lib/es/button/constants.js +1 -1
- package/lib/es/calendar/constants.js +1 -1
- package/lib/es/card/constants.js +1 -1
- package/lib/es/carousel/constants.js +9 -9
- package/lib/es/cascader/constants.js +2 -2
- package/lib/es/cascader/foundation.js +1 -1
- package/lib/es/cascader/util.js +2 -2
- package/lib/es/checkbox/constants.js +13 -13
- package/lib/es/collapse/constants.js +1 -1
- package/lib/es/collapsible/constants.js +1 -1
- package/lib/es/datePicker/_utils/getInsetInputFormatToken.js +1 -1
- package/lib/es/datePicker/_utils/getMonthTable.js +4 -4
- package/lib/es/datePicker/_utils/getMonthsInYear.js +1 -1
- package/lib/es/datePicker/constants.js +27 -27
- package/lib/es/datePicker/foundation.js +3 -3
- package/lib/es/datePicker/inputFoundation.js +2 -2
- package/lib/es/datePicker/monthsGridFoundation.js +15 -4
- package/lib/es/descriptions/constants.js +1 -1
- package/lib/es/divider/constants.js +1 -1
- package/lib/es/dropdown/constants.js +3 -3
- package/lib/es/dropdown/menuFoundation.js +1 -1
- package/lib/es/empty/constants.js +1 -1
- package/lib/es/form/constants.js +1 -1
- package/lib/es/form/foundation.js +1 -1
- package/lib/es/form/utils.js +1 -1
- package/lib/es/grid/constants.js +1 -1
- package/lib/es/highlight/constants.js +1 -1
- package/lib/es/icons/constants.js +1 -1
- package/lib/es/image/constants.js +1 -1
- package/lib/es/input/constants.js +1 -1
- package/lib/es/input/textareaFoundation.js +1 -1
- package/lib/es/layout/constants.js +1 -1
- package/lib/es/list/constants.js +1 -1
- package/lib/es/modal/constants.js +1 -1
- package/lib/es/navigation/constants.js +1 -1
- package/lib/es/notification/constants.js +3 -3
- package/lib/es/pagination/constants.js +1 -1
- package/lib/es/popconfirm/constants.js +2 -2
- package/lib/es/popconfirm/popconfirmFoundation.d.ts +4 -0
- package/lib/es/popconfirm/popconfirmFoundation.js +20 -1
- package/lib/es/popover/constants.js +2 -2
- package/lib/es/progress/constants.js +1 -1
- package/lib/es/progress/generates.js +14 -14
- package/lib/es/radio/constants.js +13 -13
- package/lib/es/rating/constants.js +1 -1
- package/lib/es/scrollList/constants.js +2 -2
- package/lib/es/select/constants.js +3 -3
- package/lib/es/select/foundation.js +2 -1
- package/lib/es/select/select.css +1 -0
- package/lib/es/select/select.scss +1 -0
- package/lib/es/select/variables.scss +1 -0
- package/lib/es/sideSheet/constants.js +2 -2
- package/lib/es/skeleton/constants.js +1 -1
- package/lib/es/slider/constants.js +7 -7
- package/lib/es/space/constants.js +1 -1
- package/lib/es/spin/constants.js +1 -1
- package/lib/es/steps/bacisSteps.scss +238 -286
- package/lib/es/steps/constants.js +2 -2
- package/lib/es/steps/fillSteps.scss +142 -148
- package/lib/es/steps/navSteps.scss +40 -60
- package/lib/es/steps/steps.css +14 -377
- package/lib/es/switch/constants.js +13 -13
- package/lib/es/table/constants.js +7 -7
- package/lib/es/table/utils.js +2 -2
- package/lib/es/tabs/constants.js +21 -21
- package/lib/es/tag/constants.js +1 -1
- package/lib/es/tag/tag.css +9 -2
- package/lib/es/tag/tag.scss +13 -4
- package/lib/es/tagInput/constants.js +1 -1
- package/lib/es/timePicker/ComboxFoundation.js +2 -2
- package/lib/es/timePicker/constants.js +3 -3
- package/lib/es/timePicker/utils/index.js +3 -3
- package/lib/es/timeline/constants.js +2 -2
- package/lib/es/toast/constants.js +3 -3
- package/lib/es/tooltip/constants.js +1 -1
- package/lib/es/tooltip/foundation.d.ts +1 -1
- package/lib/es/tooltip/foundation.js +15 -12
- package/lib/es/transfer/constants.js +1 -1
- package/lib/es/tree/constants.js +2 -2
- package/lib/es/tree/treeUtil.d.ts +1 -1
- package/lib/es/tree/treeUtil.js +1 -1
- package/lib/es/treeSelect/constants.js +3 -3
- package/lib/es/treeSelect/foundation.d.ts +5 -2
- package/lib/es/treeSelect/foundation.js +42 -17
- package/lib/es/treeSelect/treeSelect.css +5 -1
- package/lib/es/treeSelect/treeSelect.scss +6 -0
- package/lib/es/treeSelect/variables.scss +1 -1
- package/lib/es/typography/constants.js +1 -1
- package/lib/es/typography/formatNumeral.js +6 -11
- package/lib/es/upload/constants.d.ts +1 -1
- package/lib/es/upload/constants.js +2 -2
- package/lib/es/upload/foundation.js +1 -1
- package/lib/es/upload/utils.js +4 -4
- package/lib/es/utils/getMotionObjFromProps.js +2 -2
- package/lib/es/utils/touchPolyfill.js +1 -1
- package/lib/es/utils/uuid.js +2 -2
- package/lib/es/utils/warning.js +1 -1
- package/package.json +3 -3
- package/popconfirm/popconfirmFoundation.ts +20 -1
- package/select/select.scss +1 -0
- package/select/variables.scss +1 -0
- package/steps/bacisSteps.scss +238 -286
- package/steps/fillSteps.scss +142 -148
- package/steps/navSteps.scss +40 -60
- package/tag/tag.scss +13 -4
- package/tooltip/foundation.ts +8 -5
- package/treeSelect/foundation.ts +39 -15
- package/treeSelect/treeSelect.scss +6 -0
- package/treeSelect/variables.scss +1 -1
- package/typography/formatNumeral.ts +2 -5
|
@@ -7,6 +7,9 @@ export interface PopconfirmAdapter<P = Record<string, any>, S = Record<string, a
|
|
|
7
7
|
notifyCancel: (e: any) => Promise<any> | void;
|
|
8
8
|
notifyVisibleChange: (visible: boolean) => void;
|
|
9
9
|
notifyClickOutSide: (e: any) => void;
|
|
10
|
+
focusCancelButton: () => void;
|
|
11
|
+
focusOkButton: () => void;
|
|
12
|
+
focusPrevFocusElement: () => void;
|
|
10
13
|
}
|
|
11
14
|
export default class PopConfirmFoundation<P = Record<string, any>, S = Record<string, any>> extends BaseFoundation<PopconfirmAdapter<P, S>, P, S> {
|
|
12
15
|
init(): void;
|
|
@@ -15,4 +18,5 @@ export default class PopConfirmFoundation<P = Record<string, any>, S = Record<st
|
|
|
15
18
|
handleConfirm(e: any): void;
|
|
16
19
|
handleClickOutSide(e: any): void;
|
|
17
20
|
handleVisibleChange(visible: boolean): void;
|
|
21
|
+
handleFocusOperateButton(): void;
|
|
18
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import _get from "lodash/get";
|
|
2
2
|
import BaseFoundation from '../base/foundation';
|
|
3
3
|
import isPromise from '../utils/isPromise';
|
|
4
4
|
export default class PopConfirmFoundation extends BaseFoundation {
|
|
@@ -51,7 +51,26 @@ export default class PopConfirmFoundation extends BaseFoundation {
|
|
|
51
51
|
this._adapter.setVisible(visible);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
if (visible) {
|
|
55
|
+
this.handleFocusOperateButton();
|
|
56
|
+
} else {
|
|
57
|
+
this._adapter.focusPrevFocusElement();
|
|
58
|
+
}
|
|
59
|
+
|
|
54
60
|
this._adapter.notifyVisibleChange(visible);
|
|
55
61
|
}
|
|
56
62
|
|
|
63
|
+
handleFocusOperateButton() {
|
|
64
|
+
const {
|
|
65
|
+
cancelButtonProps,
|
|
66
|
+
okButtonProps
|
|
67
|
+
} = this._adapter.getProps();
|
|
68
|
+
|
|
69
|
+
if (_get(cancelButtonProps, 'autoFocus') && !_get(cancelButtonProps, 'disabled')) {
|
|
70
|
+
this._adapter.focusCancelButton();
|
|
71
|
+
} else if (_get(okButtonProps, 'autoFocus') && !_get(okButtonProps, 'disabled')) {
|
|
72
|
+
this._adapter.focusOkButton();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
57
76
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { numbers as tooltipNumbers } from '../tooltip/constants';
|
|
2
2
|
import { BASE_CLASS_PREFIX } from '../base/constants';
|
|
3
3
|
const cssClasses = {
|
|
4
|
-
PREFIX:
|
|
5
|
-
ARROW:
|
|
4
|
+
PREFIX: `${BASE_CLASS_PREFIX}-popover`,
|
|
5
|
+
ARROW: `${BASE_CLASS_PREFIX}-popover-icon-arrow`
|
|
6
6
|
};
|
|
7
7
|
const strings = {
|
|
8
8
|
POSITION_SET: ['top', 'topLeft', 'topRight', 'left', 'leftTop', 'leftBottom', 'right', 'rightTop', 'rightBottom', 'bottom', 'bottomLeft', 'bottomRight', 'leftTopOver', 'rightTopOver'],
|
|
@@ -54,10 +54,10 @@ function generateGradients(g, index) {
|
|
|
54
54
|
} = g;
|
|
55
55
|
const sA = startColor.split('');
|
|
56
56
|
const eA = endColor.split('');
|
|
57
|
-
const rC = [parseInt(
|
|
58
|
-
const gC = [parseInt(
|
|
59
|
-
const bC = [parseInt(
|
|
60
|
-
const aC = [parseInt(
|
|
57
|
+
const rC = [parseInt(`${sA[1]}${sA[2]}`, 16), parseInt(`${eA[1]}${eA[2]}`, 16)];
|
|
58
|
+
const gC = [parseInt(`${sA[3]}${sA[4]}`, 16), parseInt(`${eA[3]}${eA[4]}`, 16)];
|
|
59
|
+
const bC = [parseInt(`${sA[5]}${sA[6]}`, 16), parseInt(`${eA[5]}${eA[6]}`, 16)];
|
|
60
|
+
const aC = [parseInt(`${sA[7]}${sA[8]}`, 16), parseInt(`${eA[7]}${eA[8]}`, 16)];
|
|
61
61
|
const rStep = (rC[0] - rC[1]) / (size + 1);
|
|
62
62
|
const gStep = (gC[0] - gC[1]) / (size + 1);
|
|
63
63
|
const bStep = (bC[0] - bC[1]) / (size + 1);
|
|
@@ -67,14 +67,14 @@ function generateGradients(g, index) {
|
|
|
67
67
|
const rS = Math.round(rC[0] - rStep * (i + 1)).toString(16);
|
|
68
68
|
const gS = Math.round(gC[0] - gStep * (i + 1)).toString(16);
|
|
69
69
|
const bS = Math.round(bC[0] - bStep * (i + 1)).toString(16);
|
|
70
|
-
const h =
|
|
70
|
+
const h = `${padTwo(rS)}${padTwo(gS)}${padTwo(bS)}`;
|
|
71
71
|
const t = Math.floor(aStep * (i + 1) + aC[1]).toString(16);
|
|
72
|
-
return toHex.Hex(
|
|
72
|
+
return toHex.Hex(`#${h}`, t);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
function padTwo(s) {
|
|
76
76
|
if (s.length === 1) {
|
|
77
|
-
return
|
|
77
|
+
return `0${s}`;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
if (s.length === 0) {
|
|
@@ -122,10 +122,10 @@ function formatToHex(color) {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
if (SEMI_DESIGN_TOKENS.SEQUENCE.indexOf(color) !== -1) {
|
|
125
|
-
return toHex.SemiDesignToken(
|
|
125
|
+
return toHex.SemiDesignToken(`${color}-5`);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
return toHex.SemiDesignToken(
|
|
128
|
+
return toHex.SemiDesignToken(`${color}`);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
return undefined;
|
|
@@ -134,14 +134,14 @@ function formatToHex(color) {
|
|
|
134
134
|
const toHex = {
|
|
135
135
|
Hex(color, transparency) {
|
|
136
136
|
color = color.replace('#', '');
|
|
137
|
-
if (color.length === 8) return
|
|
138
|
-
if (color.length === 6) return
|
|
137
|
+
if (color.length === 8) return `#${color}`;
|
|
138
|
+
if (color.length === 6) return `#${color}${transparency || 'ff'}`;
|
|
139
139
|
|
|
140
140
|
if (color.length === 3) {
|
|
141
141
|
color = color.split('').map(c => c + c).join('');
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
return
|
|
144
|
+
return `#${color}${transparency || 'ff'}`;
|
|
145
145
|
},
|
|
146
146
|
|
|
147
147
|
SemiDesignToken(color) {
|
|
@@ -150,9 +150,9 @@ const toHex = {
|
|
|
150
150
|
return undefined;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
const variable = getComputedStyle(document.body).getPropertyValue(
|
|
153
|
+
const variable = getComputedStyle(document.body).getPropertyValue(`--semi-${color}`);
|
|
154
154
|
if (variable === '') return undefined;
|
|
155
|
-
const rgba =
|
|
155
|
+
const rgba = `rgba(${variable}, 1)`;
|
|
156
156
|
return toHex.RgbA(rgba);
|
|
157
157
|
},
|
|
158
158
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { BASE_CLASS_PREFIX } from '../base/constants';
|
|
2
2
|
const radioClasses = {
|
|
3
|
-
PREFIX:
|
|
4
|
-
INNER:
|
|
5
|
-
TEXT:
|
|
6
|
-
INPUT:
|
|
7
|
-
CHECKED:
|
|
8
|
-
DISABLED:
|
|
9
|
-
BUTTON:
|
|
3
|
+
PREFIX: `${BASE_CLASS_PREFIX}-radio`,
|
|
4
|
+
INNER: `${BASE_CLASS_PREFIX}-radio-inner`,
|
|
5
|
+
TEXT: `${BASE_CLASS_PREFIX}-radio-text`,
|
|
6
|
+
INPUT: `${BASE_CLASS_PREFIX}-radio-input`,
|
|
7
|
+
CHECKED: `${BASE_CLASS_PREFIX}-radio-checked`,
|
|
8
|
+
DISABLED: `${BASE_CLASS_PREFIX}-radio-disabled`,
|
|
9
|
+
BUTTON: `${BASE_CLASS_PREFIX}-radio-button`
|
|
10
10
|
};
|
|
11
11
|
const radioGroupClasses = {
|
|
12
|
-
PREFIX:
|
|
13
|
-
INNER:
|
|
14
|
-
TEXT:
|
|
15
|
-
INPUT:
|
|
16
|
-
CHECKED:
|
|
17
|
-
DISABLED:
|
|
12
|
+
PREFIX: `${BASE_CLASS_PREFIX}-radioGroup`,
|
|
13
|
+
INNER: `${BASE_CLASS_PREFIX}-radioGroup-inner`,
|
|
14
|
+
TEXT: `${BASE_CLASS_PREFIX}-radioGroup-text`,
|
|
15
|
+
INPUT: `${BASE_CLASS_PREFIX}-radioGroup-input`,
|
|
16
|
+
CHECKED: `${BASE_CLASS_PREFIX}-radioGroup-checked`,
|
|
17
|
+
DISABLED: `${BASE_CLASS_PREFIX}-radioGroup-disabled`
|
|
18
18
|
};
|
|
19
19
|
const strings = {
|
|
20
20
|
DIRECTION_SET: ['horizontal', 'vertical'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BASE_CLASS_PREFIX } from '../base/constants';
|
|
2
2
|
const cssClasses = {
|
|
3
|
-
PREFIX:
|
|
4
|
-
SELECTED:
|
|
3
|
+
PREFIX: `${BASE_CLASS_PREFIX}-scrolllist`,
|
|
4
|
+
SELECTED: `${BASE_CLASS_PREFIX}-scrolllist-item-selected`
|
|
5
5
|
};
|
|
6
6
|
const strings = {
|
|
7
7
|
MODE: ['normal', 'wheel']
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VALIDATE_STATUS, BASE_CLASS_PREFIX } from '../base/constants';
|
|
2
2
|
import { strings as tooltipStrings } from '../tooltip/constants';
|
|
3
3
|
const cssClasses = {
|
|
4
|
-
PREFIX:
|
|
5
|
-
PREFIX_OPTION:
|
|
6
|
-
PREFIX_GROUP:
|
|
4
|
+
PREFIX: `${BASE_CLASS_PREFIX}-select`,
|
|
5
|
+
PREFIX_OPTION: `${BASE_CLASS_PREFIX}-select-option`,
|
|
6
|
+
PREFIX_GROUP: `${BASE_CLASS_PREFIX}-select-group`
|
|
7
7
|
};
|
|
8
8
|
const strings = {
|
|
9
9
|
SIZE_SET: ['small', 'large', 'default'],
|
|
@@ -1345,7 +1345,8 @@ export default class SelectFoundation extends BaseFoundation {
|
|
|
1345
1345
|
const isMultiple = this._isMultiple();
|
|
1346
1346
|
|
|
1347
1347
|
if (!isMultiple) {
|
|
1348
|
-
console.warn(
|
|
1348
|
+
console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select.
|
|
1349
|
+
Please note that this is not a legal way to use it`);
|
|
1349
1350
|
return;
|
|
1350
1351
|
}
|
|
1351
1352
|
|
package/lib/es/select/select.css
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
$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
|
+
$color-select-bg-focus: var(--semi-color-fill-0); // 选择器输入框背景色 - 聚焦态
|
|
5
6
|
$color-select-border-default: transparent; // 选择器输入框描边颜色
|
|
6
7
|
$color-select-border-hover: $color-select-border-default; // 选择器输入框描边颜色 - 悬浮
|
|
7
8
|
$color-select-border-active: var(--semi-color-focus-border); // 选择器输入框描边颜色 - 按下态
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BASE_CLASS_PREFIX } from '../base/constants';
|
|
2
2
|
const cssClasses = {
|
|
3
|
-
PREFIX:
|
|
4
|
-
DIALOG:
|
|
3
|
+
PREFIX: `${BASE_CLASS_PREFIX}-sidesheet`,
|
|
4
|
+
DIALOG: `${BASE_CLASS_PREFIX}-modal`
|
|
5
5
|
};
|
|
6
6
|
const strings = {
|
|
7
7
|
PLACEMENT: ['top', 'right', 'bottom', 'left'],
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BASE_CLASS_PREFIX } from '../base/constants';
|
|
2
2
|
const cssClasses = {
|
|
3
|
-
PREFIX:
|
|
4
|
-
DISABLED:
|
|
5
|
-
VERTICAL:
|
|
6
|
-
TRACK:
|
|
7
|
-
DOTS:
|
|
8
|
-
MARKS:
|
|
9
|
-
HANDLE:
|
|
3
|
+
PREFIX: `${BASE_CLASS_PREFIX}-slider`,
|
|
4
|
+
DISABLED: `${BASE_CLASS_PREFIX}-slider-disabled`,
|
|
5
|
+
VERTICAL: `${BASE_CLASS_PREFIX}-slider-vertical`,
|
|
6
|
+
TRACK: `${BASE_CLASS_PREFIX}-slider-track`,
|
|
7
|
+
DOTS: `${BASE_CLASS_PREFIX}-slider-dots`,
|
|
8
|
+
MARKS: `${BASE_CLASS_PREFIX}-slider-marks`,
|
|
9
|
+
HANDLE: `${BASE_CLASS_PREFIX}-slider-handle`
|
|
10
10
|
};
|
|
11
11
|
const strings = {
|
|
12
12
|
SIZE: ['small', 'large', 'default'],
|
package/lib/es/spin/constants.js
CHANGED