@aloudata/aloudata-design 1.10.14 → 2.0.0-beta.10
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/Avatar/component/Avatar/index.js +9 -7
- package/dist/Avatar/style/index.less +8 -1
- package/dist/Button/index.d.ts +3 -4
- package/dist/Button/index.js +7 -20
- package/dist/Button/style/size.less +21 -8
- package/dist/Button/style/type.less +61 -33
- package/dist/Button/style/variables.less +236 -48
- package/dist/Checkbox/index.js +10 -4
- package/dist/Checkbox/style/index.less +117 -108
- package/dist/Checkbox/type.d.ts +11 -0
- package/dist/ColorPicker/style/index.less +1 -2
- package/dist/DataPreviewTable/constant.d.ts +1 -1
- package/dist/DataPreviewTable/constant.js +1 -1
- package/dist/DataPreviewTable/style/index.less +11 -11
- package/dist/Dropdown/index.d.ts +1 -2
- package/dist/Dropdown/style/index.less +71 -107
- package/dist/Empty/image/Search.js +2 -2
- package/dist/Empty/image/SearchSmall.js +2 -2
- package/dist/Empty/index.js +2 -1
- package/dist/Empty/style/index.less +2 -1
- package/dist/Form/style/index.less +27 -6
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleLine.d.ts +11 -0
- package/dist/Icon/components/AlertTriangleLine.js +35 -0
- package/dist/Icon/components/ArrowDownFill.d.ts +11 -0
- package/dist/Icon/components/ArrowDownFill.js +35 -0
- package/dist/Icon/components/AttentionCircleFill.d.ts +11 -0
- package/dist/Icon/components/AttentionCircleFill.js +35 -0
- package/dist/Icon/components/AttentionTriangleFill.d.ts +11 -0
- package/dist/Icon/components/AttentionTriangleFill.js +35 -0
- package/dist/Icon/components/AttentionTriangleLightLine.d.ts +11 -0
- package/dist/Icon/components/AttentionTriangleLightLine.js +35 -0
- package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleFill.d.ts +11 -0
- package/dist/Icon/components/CheckCircleFill.js +35 -0
- package/dist/Icon/components/CheckCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CheckCircleLightLine.js +38 -0
- package/dist/Icon/components/CheckLightLine.d.ts +11 -0
- package/dist/Icon/components/CheckLightLine.js +35 -0
- package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
- package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
- package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
- package/dist/Icon/components/CircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CircleLightLine.js +38 -0
- package/dist/Icon/components/CloseCircleFill.d.ts +11 -0
- package/dist/Icon/components/CloseCircleFill.js +35 -0
- package/dist/Icon/components/CloseCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CloseCircleLightLine.js +35 -0
- package/dist/Icon/components/CloseLLine.d.ts +1 -1
- package/dist/Icon/components/CloseLightLine.d.ts +11 -0
- package/dist/Icon/components/CloseLightLine.js +35 -0
- package/dist/Icon/components/CloseMLine.d.ts +1 -1
- package/dist/Icon/components/DragLine.d.ts +1 -1
- package/dist/Icon/components/Ellipsis.d.ts +11 -0
- package/dist/Icon/components/Ellipsis.js +35 -0
- package/dist/Icon/components/EyeOffLine.d.ts +1 -1
- package/dist/Icon/components/EyeOnLine.d.ts +1 -1
- package/dist/Icon/components/FoldDownFill.d.ts +1 -1
- package/dist/Icon/components/FoldUpFill.d.ts +1 -1
- package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
- package/dist/Icon/components/InformationCircleFill.d.ts +11 -0
- package/dist/Icon/components/InformationCircleFill.js +35 -0
- package/dist/Icon/components/InformationCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/InformationCircleLightLine.js +38 -0
- package/dist/Icon/components/Loading2Line.d.ts +1 -1
- package/dist/Icon/components/LoadingDuotone.d.ts +11 -0
- package/dist/Icon/components/LoadingDuotone.js +39 -0
- package/dist/Icon/components/LoadingLine.d.ts +1 -1
- package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
- package/dist/Icon/components/SearchLine.d.ts +1 -1
- package/dist/Icon/components/TriangleLightLine.d.ts +11 -0
- package/dist/Icon/components/TriangleLightLine.js +35 -0
- package/dist/Icon/components/User.d.ts +11 -0
- package/dist/Icon/components/User.js +41 -0
- package/dist/Icon/components/UserGroup.d.ts +11 -0
- package/dist/Icon/components/UserGroup.js +39 -0
- package/dist/Icon/index.d.ts +19 -3
- package/dist/Icon/index.js +19 -2
- package/dist/Icon/svg/Close-Circle-light-line.svg +5 -0
- package/dist/Icon/svg/Loading-duotone.svg +6 -0
- package/dist/Icon/svg/alert-triangle-duotone.svg +3 -1
- package/dist/Icon/svg/alert-triangle-line.svg +5 -0
- package/dist/Icon/svg/arrow-down-fill.svg +5 -0
- package/dist/Icon/svg/attention-circle-fill.svg +5 -0
- package/dist/Icon/svg/attention-triangle-fill.svg +5 -0
- package/dist/Icon/svg/attention-triangle-light-line.svg +5 -0
- package/dist/Icon/svg/cancel-circle-duotone.svg +7 -3
- package/dist/Icon/svg/check-circle-duotone.svg +6 -2
- package/dist/Icon/svg/check-circle-fill.svg +5 -0
- package/dist/Icon/svg/check-circle-light-line.svg +8 -0
- package/dist/Icon/svg/check-light-line.svg +5 -0
- package/dist/Icon/svg/chevron-down-line.svg +6 -4
- package/dist/Icon/svg/chevron-left-line.svg +6 -4
- package/dist/Icon/svg/chevron-right-line.svg +6 -4
- package/dist/Icon/svg/circle-light-line.svg +9 -0
- package/dist/Icon/svg/close-L-line.svg +11 -9
- package/dist/Icon/svg/close-circle-fill.svg +5 -0
- package/dist/Icon/svg/close-light-line.svg +5 -0
- package/dist/Icon/svg/close-m-line.svg +6 -4
- package/dist/Icon/svg/drag-line.svg +6 -4
- package/dist/Icon/svg/ellipsis.svg +5 -0
- package/dist/Icon/svg/eye-off-line.svg +6 -4
- package/dist/Icon/svg/eye-on-line.svg +14 -8
- package/dist/Icon/svg/fold-down-fill.svg +7 -6
- package/dist/Icon/svg/fold-up-fill.svg +7 -6
- package/dist/Icon/svg/info-circle-duotone.svg +4 -2
- package/dist/Icon/svg/info-circle-line.svg +3 -1
- package/dist/Icon/svg/information-circle-fill.svg +5 -0
- package/dist/Icon/svg/information-circle-light-line.svg +9 -0
- package/dist/Icon/svg/loading-2-line.svg +4 -2
- package/dist/Icon/svg/loading-line.svg +6 -4
- package/dist/Icon/svg/more-vertical-line.svg +6 -4
- package/dist/Icon/svg/search-line.svg +6 -4
- package/dist/Icon/svg/triangle-light-line.svg +5 -0
- package/dist/Icon/svg/user.svg +4 -0
- package/dist/Icon/svg/userGroup.svg +7 -0
- package/dist/IconButton/index.d.ts +2 -2
- package/dist/IconButton/index.js +8 -19
- package/dist/IconButton/style/index.less +49 -25
- package/dist/Input/components/Input/index.js +18 -2
- package/dist/Input/components/Password/index.d.ts +0 -5
- package/dist/Input/components/Password/index.js +10 -10
- package/dist/Input/components/TextArea/index.js +15 -2
- package/dist/Input/index.d.ts +2 -5
- package/dist/Input/index.js +1 -3
- package/dist/Input/style/index.less +4 -565
- package/dist/Input/style/reset.less +22 -0
- package/dist/Input/style/size.less +82 -0
- package/dist/Input/style/status.less +105 -0
- package/dist/InputNumber/style/index.less +12 -9
- package/dist/MemberPicker/components/MultipleOption.js +4 -3
- package/dist/MemberPicker/components/NickLabel.d.ts +2 -0
- package/dist/MemberPicker/components/NickLabel.js +8 -2
- package/dist/MemberPicker/components/Panel.js +2 -2
- package/dist/MemberPicker/components/SelectedMemberTags.js +4 -1
- package/dist/MemberPicker/components/SingleOption.js +1 -0
- package/dist/MemberPicker/index.js +2 -0
- package/dist/MemberPicker/interface.d.ts +1 -0
- package/dist/MemberPicker/style/index.less +38 -30
- package/dist/Menu/index.js +6 -9
- package/dist/Menu/style/index.less +71 -133
- package/dist/Modal/index.d.ts +1 -1
- package/dist/Modal/index.js +32 -43
- package/dist/Modal/style/index.less +3 -191
- package/dist/Modal/style/modal.less +132 -0
- package/dist/Modal/style/modalConfirm.less +100 -0
- package/dist/Navigator/style/index.less +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +11 -3
- package/dist/Pagination/style/index.less +11 -4
- package/dist/Pagination/types.d.ts +1 -0
- package/dist/Popconfirm/index.js +8 -7
- package/dist/Popconfirm/style/index.less +58 -12
- package/dist/Popover/style/index.less +29 -29
- package/dist/Radio/components/Group/index.js +3 -5
- package/dist/Radio/components/Radio/index.js +2 -1
- package/dist/Radio/interface/radioGroup.d.ts +1 -1
- package/dist/Radio/style/index.less +69 -56
- package/dist/ScrollArea/index.d.ts +1 -0
- package/dist/ScrollArea/index.js +5 -2
- package/dist/ScrollArea/style/index.less +5 -0
- package/dist/Select/components/{MultipleOption.d.ts → Option.d.ts} +2 -2
- package/dist/Select/components/{MultipleOption.js → Option.js} +14 -11
- package/dist/Select/components/SingleOption.d.ts +2 -2
- package/dist/Select/components/SingleOption.js +3 -1
- package/dist/Select/index.d.ts +5 -0
- package/dist/Select/index.js +28 -40
- package/dist/Select/style/index.less +109 -77
- package/dist/Select/style/layout.less +43 -0
- package/dist/Select/style/option.less +42 -3
- package/dist/Select/style/selectDropdown.less +16 -0
- package/dist/Select/style/size.less +316 -84
- package/dist/Select/style/status.less +69 -21
- package/dist/Select/style/variables.less +13 -17
- package/dist/Skeleton/style/index.less +84 -4
- package/dist/Spin/CustomIcon/index.d.ts +3 -0
- package/dist/Spin/CustomIcon/index.js +20 -15
- package/dist/Spin/CustomIcon/index.less +32 -105
- package/dist/Spin/index.d.ts +2 -0
- package/dist/Spin/index.js +10 -5
- package/dist/Spin/style/index.less +17 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/style/index.less +130 -56
- package/dist/Table/components/Pagination/index.js +3 -1
- package/dist/Table/index.js +18 -3
- package/dist/Table/style/index.less +24 -10
- package/dist/Table/types.d.ts +1 -0
- package/dist/Tabs/index.d.ts +7 -2
- package/dist/Tabs/index.js +9 -6
- package/dist/Tabs/style/index.less +29 -18
- package/dist/TextLink/index.d.ts +44 -0
- package/dist/TextLink/index.js +26 -0
- package/dist/TextLink/style/index.d.ts +2 -0
- package/dist/TextLink/style/index.js +2 -0
- package/dist/TextLink/style/index.less +14 -0
- package/dist/TextLink/style/size.less +37 -0
- package/dist/TextLink/style/type.less +44 -0
- package/dist/Tree/DirectoryTree.js +0 -12
- package/dist/Tree/Tree.js +2 -2
- package/dist/Tree/demo/directoryTree/index.d.ts +3 -0
- package/dist/Tree/demo/directoryTree/index.js +44 -0
- package/dist/Tree/style/index.less +31 -12
- package/dist/Tree/style/mixin.less +3 -5
- package/dist/Tree/style/reset.less +15 -0
- package/dist/Tree/style/var.less +1 -1
- package/dist/ald.min.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.less +1 -0
- package/dist/message/index.js +15 -14
- package/dist/message/style/color.less +22 -41
- package/dist/message/style/index.less +15 -16
- package/dist/notification/demo/footer.d.ts +3 -0
- package/dist/notification/demo/footer.js +44 -0
- package/dist/notification/demo/index.js +1 -0
- package/dist/notification/index.js +84 -55
- package/dist/notification/style/index.less +53 -9
- package/dist/style/index.less +1 -0
- package/dist/style/themes/default/default.less +1 -1
- package/dist/style/themes/default/index.less +4 -4
- package/dist/style/themes/default/scrollBar.less +1 -1
- package/dist/style/var/default.css +1334 -0
- package/package.json +4 -3
- package/dist/Icon/components/Icon.d.ts +0 -32
- package/dist/Icon/components/Icon.js +0 -25
- package/dist/Input/components/Group/index.d.ts +0 -18
- package/dist/Input/components/Group/index.js +0 -19
- package/dist/Menu/style/dropdown.less +0 -61
- package/dist/Select/style/multiple.less +0 -55
- package/dist/Select/style/single.less +0 -44
|
@@ -18,53 +18,129 @@
|
|
|
18
18
|
&.ald-select-small {
|
|
19
19
|
height: @select-height-small;
|
|
20
20
|
font-size: @select-font-size-small;
|
|
21
|
-
// line-height: @select-line-height-small;
|
|
22
21
|
border-radius: @select-border-radius-small;
|
|
23
22
|
.compact(@select-border-radius-small);
|
|
24
23
|
|
|
25
24
|
.ald-select-prefix {
|
|
26
|
-
margin-left: @select-padding-
|
|
25
|
+
margin-left: @select-padding-horizontal-small;
|
|
27
26
|
}
|
|
28
27
|
|
|
29
|
-
.ant-select
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@select-padding-left-small + var(--ald-select-prefix-width)
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
.ant-select-selection-item {
|
|
28
|
+
.ant-select {
|
|
29
|
+
.ant-select-selector {
|
|
30
|
+
height: @selector-height-small;
|
|
36
31
|
line-height: @selector-height-small;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
padding-left: calc(
|
|
33
|
+
@select-padding-horizontal-small + var(--ald-select-prefix-width)
|
|
34
|
+
);
|
|
35
|
+
padding-right: @select-padding-horizontal-small;
|
|
40
36
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
.ant-select-selection-item {
|
|
38
|
+
line-height: inherit;
|
|
39
|
+
font-size: @select-font-size-small;
|
|
40
|
+
height: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ald-select-multiple-tag-default {
|
|
44
|
+
line-height: inherit;
|
|
45
|
+
font-size: @select-font-size-small;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ant-select-selection-search .ant-select-selection-search-input {
|
|
49
|
+
height: @selector-height-small;
|
|
50
|
+
line-height: inherit;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ant-select-selection-placeholder {
|
|
54
|
+
font-size: @select-font-size-small;
|
|
55
|
+
line-height: inherit;
|
|
56
|
+
left: calc(
|
|
57
|
+
@select-padding-horizontal-small + var(--ald-select-prefix-width)
|
|
58
|
+
);
|
|
59
|
+
}
|
|
44
60
|
}
|
|
45
61
|
|
|
46
|
-
|
|
47
|
-
|
|
62
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
63
|
+
.ant-select-selector {
|
|
64
|
+
padding-right: calc(
|
|
65
|
+
@select-padding-horizontal-small + @select-icon-use-width-small
|
|
66
|
+
);
|
|
67
|
+
}
|
|
48
68
|
}
|
|
49
69
|
|
|
50
|
-
.ant-select-
|
|
51
|
-
|
|
52
|
-
font-size: @select-font-size-small;
|
|
53
|
-
left: calc(@select-padding-left-small + var(--ald-select-prefix-width));
|
|
70
|
+
.ant-select-arrow {
|
|
71
|
+
right: @select-padding-horizontal-small;
|
|
54
72
|
}
|
|
55
73
|
|
|
56
|
-
.ant-select-
|
|
57
|
-
|
|
74
|
+
.ant-select-clear {
|
|
75
|
+
right: @select-padding-horizontal-small;
|
|
76
|
+
|
|
77
|
+
&::before {
|
|
78
|
+
left: -@selector-gap-small;
|
|
79
|
+
}
|
|
58
80
|
}
|
|
59
81
|
}
|
|
60
82
|
|
|
61
83
|
.ald-select-prefix-select {
|
|
84
|
+
// 单选值容器
|
|
62
85
|
.ant-select-selection-item {
|
|
63
|
-
margin-left: @selector-
|
|
86
|
+
margin-left: @selector-gap-small;
|
|
87
|
+
}
|
|
88
|
+
// 多选值容器
|
|
89
|
+
.ant-select-selection-overflow {
|
|
90
|
+
margin-left: @selector-gap-small;
|
|
64
91
|
}
|
|
65
92
|
|
|
66
93
|
.ant-select-selection-placeholder {
|
|
67
|
-
margin-left: @selector-
|
|
94
|
+
margin-left: @selector-gap-small;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.ald-select-has-value {
|
|
99
|
+
.ant-select {
|
|
100
|
+
&.ant-select-allow-clear:not(.ant-select-show-arrow),
|
|
101
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
102
|
+
.ant-select-selector {
|
|
103
|
+
padding-right: calc(
|
|
104
|
+
@select-padding-horizontal-small + @select-icon-use-width-small
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ant-select-arrow {
|
|
109
|
+
right: @select-padding-horizontal-small;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ant-select-clear {
|
|
113
|
+
right: @select-padding-horizontal-small;
|
|
114
|
+
|
|
115
|
+
&::before {
|
|
116
|
+
left: -@selector-gap-small;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&.ant-select-show-arrow.ant-select-allow-clear {
|
|
122
|
+
.ant-select-selector {
|
|
123
|
+
padding-right: calc(
|
|
124
|
+
@select-padding-horizontal-small + @selector-gap-small +
|
|
125
|
+
@select-icon-use-width-small + @select-icon-use-width-small
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ant-select-arrow {
|
|
130
|
+
right: calc(
|
|
131
|
+
@select-padding-horizontal-small + @select-icon-use-width-small +
|
|
132
|
+
@selector-gap-small
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ant-select-clear {
|
|
137
|
+
right: @select-padding-horizontal-small;
|
|
138
|
+
|
|
139
|
+
&::before {
|
|
140
|
+
left: -@selector-gap-small;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
68
144
|
}
|
|
69
145
|
}
|
|
70
146
|
}
|
|
@@ -72,55 +148,129 @@
|
|
|
72
148
|
&.ald-select-middle {
|
|
73
149
|
height: @select-height-middle;
|
|
74
150
|
font-size: @select-font-size-middle;
|
|
75
|
-
// line-height: @select-line-height-middle;
|
|
76
151
|
border-radius: @select-border-radius-middle;
|
|
77
152
|
.compact(@select-border-radius-middle);
|
|
78
153
|
|
|
79
154
|
.ald-select-prefix {
|
|
80
|
-
margin-left: @select-padding-
|
|
155
|
+
margin-left: @select-padding-horizontal-middle;
|
|
81
156
|
}
|
|
82
157
|
|
|
83
|
-
.ant-select
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
@select-padding-left-middle + var(--ald-select-prefix-width)
|
|
87
|
-
);
|
|
88
|
-
|
|
89
|
-
.ant-select-selection-item {
|
|
158
|
+
.ant-select {
|
|
159
|
+
.ant-select-selector {
|
|
160
|
+
height: @selector-height-middle;
|
|
90
161
|
line-height: @selector-height-middle;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
162
|
+
padding-left: calc(
|
|
163
|
+
@select-padding-horizontal-middle + var(--ald-select-prefix-width)
|
|
164
|
+
);
|
|
165
|
+
padding-right: @select-padding-horizontal-middle;
|
|
94
166
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
167
|
+
.ant-select-selection-item {
|
|
168
|
+
font-size: @select-font-size-middle;
|
|
169
|
+
line-height: inherit;
|
|
170
|
+
height: 100%;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.ald-select-multiple-tag-default {
|
|
174
|
+
font-size: @select-font-size-middle;
|
|
175
|
+
line-height: inherit;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.ant-select-selection-search .ant-select-selection-search-input {
|
|
179
|
+
height: @selector-height-middle;
|
|
180
|
+
line-height: inherit;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.ant-select-selection-placeholder {
|
|
184
|
+
font-size: @select-font-size-middle;
|
|
185
|
+
line-height: inherit;
|
|
186
|
+
left: calc(
|
|
187
|
+
@select-padding-horizontal-middle + var(--ald-select-prefix-width)
|
|
188
|
+
);
|
|
189
|
+
}
|
|
98
190
|
}
|
|
99
191
|
|
|
100
|
-
|
|
101
|
-
|
|
192
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
193
|
+
.ant-select-selector {
|
|
194
|
+
padding-right: calc(
|
|
195
|
+
@select-padding-horizontal-middle + @select-icon-use-width-middle
|
|
196
|
+
);
|
|
197
|
+
}
|
|
102
198
|
}
|
|
103
199
|
|
|
104
|
-
.ant-select-
|
|
105
|
-
|
|
106
|
-
font-size: @select-font-size-middle;
|
|
107
|
-
left: calc(
|
|
108
|
-
@select-padding-left-middle + var(--ald-select-prefix-width)
|
|
109
|
-
);
|
|
200
|
+
.ant-select-arrow {
|
|
201
|
+
right: @select-padding-horizontal-middle;
|
|
110
202
|
}
|
|
111
203
|
|
|
112
|
-
.ant-select-
|
|
113
|
-
|
|
204
|
+
.ant-select-clear {
|
|
205
|
+
right: @select-padding-horizontal-middle;
|
|
206
|
+
|
|
207
|
+
&::before {
|
|
208
|
+
left: -@selector-gap-middle;
|
|
209
|
+
}
|
|
114
210
|
}
|
|
115
211
|
}
|
|
116
212
|
|
|
117
213
|
.ald-select-prefix-select {
|
|
214
|
+
// 单选值容器
|
|
118
215
|
.ant-select-selection-item {
|
|
119
|
-
margin-left: @selector-
|
|
216
|
+
margin-left: @selector-gap-middle;
|
|
217
|
+
}
|
|
218
|
+
// 多选值容器
|
|
219
|
+
.ant-select-selection-overflow {
|
|
220
|
+
margin-left: @selector-gap-middle;
|
|
120
221
|
}
|
|
121
222
|
|
|
122
223
|
.ant-select-selection-placeholder {
|
|
123
|
-
margin-left: @selector-
|
|
224
|
+
margin-left: @selector-gap-middle;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&.ald-select-has-value {
|
|
229
|
+
.ant-select {
|
|
230
|
+
&.ant-select-allow-clear:not(.ant-select-show-arrow),
|
|
231
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
232
|
+
.ant-select-selector {
|
|
233
|
+
padding-right: calc(
|
|
234
|
+
@select-padding-horizontal-middle + @select-icon-use-width-middle
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.ant-select-arrow {
|
|
239
|
+
right: @select-padding-horizontal-middle;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.ant-select-clear {
|
|
243
|
+
right: @select-padding-horizontal-middle;
|
|
244
|
+
|
|
245
|
+
&::before {
|
|
246
|
+
left: -@selector-gap-middle;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&.ant-select-show-arrow.ant-select-allow-clear {
|
|
252
|
+
.ant-select-selector {
|
|
253
|
+
padding-right: calc(
|
|
254
|
+
@select-padding-horizontal-middle + @selector-gap-middle +
|
|
255
|
+
@select-icon-use-width-middle + @select-icon-use-width-middle
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.ant-select-arrow {
|
|
260
|
+
right: calc(
|
|
261
|
+
@select-padding-horizontal-middle + @select-icon-use-width-middle +
|
|
262
|
+
@selector-gap-middle
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ant-select-clear {
|
|
267
|
+
right: @select-padding-horizontal-middle;
|
|
268
|
+
|
|
269
|
+
&::before {
|
|
270
|
+
left: -@selector-gap-middle;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
124
274
|
}
|
|
125
275
|
}
|
|
126
276
|
}
|
|
@@ -128,53 +278,137 @@
|
|
|
128
278
|
&.ald-select-large {
|
|
129
279
|
height: @select-height-large;
|
|
130
280
|
font-size: @select-font-size-large;
|
|
131
|
-
// line-height: @select-line-height-large;
|
|
132
281
|
border-radius: @select-border-radius-large;
|
|
133
282
|
.compact(@select-border-radius-large);
|
|
134
283
|
|
|
135
284
|
.ald-select-prefix {
|
|
136
|
-
margin-left: @select-padding-
|
|
285
|
+
margin-left: @select-padding-horizontal-large;
|
|
137
286
|
}
|
|
138
287
|
|
|
139
|
-
.ant-select
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
@select-padding-left-large + var(--ald-select-prefix-width)
|
|
143
|
-
);
|
|
144
|
-
|
|
145
|
-
.ant-select-selection-item {
|
|
288
|
+
.ant-select {
|
|
289
|
+
.ant-select-selector {
|
|
290
|
+
height: @selector-height-large;
|
|
146
291
|
line-height: @selector-height-large;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
292
|
+
padding-left: calc(
|
|
293
|
+
@select-padding-horizontal-large + var(--ald-select-prefix-width)
|
|
294
|
+
);
|
|
295
|
+
padding-right: @select-padding-horizontal-large;
|
|
150
296
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
297
|
+
.ant-select-selection-item {
|
|
298
|
+
font-size: @select-font-size-large;
|
|
299
|
+
line-height: inherit;
|
|
300
|
+
height: 100%;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.ald-select-multiple-tag-default {
|
|
304
|
+
font-size: @select-font-size-large;
|
|
305
|
+
line-height: inherit;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.ant-select-selection-search .ant-select-selection-search-input {
|
|
309
|
+
height: @selector-height-large;
|
|
310
|
+
line-height: inherit;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.ant-select-selection-placeholder {
|
|
314
|
+
font-size: @select-font-size-large;
|
|
315
|
+
line-height: inherit;
|
|
316
|
+
left: calc(
|
|
317
|
+
@select-padding-horizontal-large + var(--ald-select-prefix-width)
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
322
|
+
.ant-select-selector {
|
|
323
|
+
padding-right: calc(
|
|
324
|
+
@select-padding-horizontal-large + @select-icon-use-width-large
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.ant-select-arrow {
|
|
330
|
+
right: @select-padding-horizontal-large;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.ant-select-clear {
|
|
334
|
+
right: @select-padding-horizontal-large;
|
|
335
|
+
|
|
336
|
+
&::before {
|
|
337
|
+
left: -@selector-gap-large;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
154
340
|
}
|
|
341
|
+
}
|
|
155
342
|
|
|
156
|
-
|
|
157
|
-
|
|
343
|
+
.ald-select-prefix-select {
|
|
344
|
+
// 单选值容器
|
|
345
|
+
.ant-select-selection-item {
|
|
346
|
+
margin-left: @selector-gap-large;
|
|
347
|
+
}
|
|
348
|
+
// 多选值容器
|
|
349
|
+
.ant-select-selection-overflow {
|
|
350
|
+
margin-left: @selector-gap-large;
|
|
158
351
|
}
|
|
159
352
|
|
|
160
353
|
.ant-select-selection-placeholder {
|
|
161
|
-
|
|
162
|
-
font-size: @select-font-size-large;
|
|
163
|
-
left: calc(@select-padding-left-large + var(--ald-select-prefix-width));
|
|
354
|
+
margin-left: @selector-gap-large;
|
|
164
355
|
}
|
|
356
|
+
}
|
|
165
357
|
|
|
166
|
-
|
|
167
|
-
|
|
358
|
+
&.ald-select-has-value {
|
|
359
|
+
.ant-select {
|
|
360
|
+
&.ant-select-allow-clear:not(.ant-select-show-arrow),
|
|
361
|
+
&.ant-select-show-arrow:not(.ant-select-allow-clear) {
|
|
362
|
+
.ant-select-selector {
|
|
363
|
+
padding-right: calc(
|
|
364
|
+
@select-padding-horizontal-large + @select-icon-use-width-large
|
|
365
|
+
);
|
|
366
|
+
}
|
|
168
367
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
368
|
+
.ant-select-arrow {
|
|
369
|
+
right: @select-padding-horizontal-large;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.ant-select-clear {
|
|
373
|
+
right: @select-padding-horizontal-large;
|
|
374
|
+
|
|
375
|
+
&::before {
|
|
376
|
+
left: -@selector-gap-large;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
&.ant-select-show-arrow.ant-select-allow-clear {
|
|
382
|
+
.ant-select-selector {
|
|
383
|
+
padding-right: calc(
|
|
384
|
+
@select-padding-horizontal-large + @selector-gap-large +
|
|
385
|
+
@select-icon-use-width-large + @select-icon-use-width-large
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.ant-select-arrow {
|
|
390
|
+
right: calc(
|
|
391
|
+
@select-padding-horizontal-large + @select-icon-use-width-large +
|
|
392
|
+
@selector-gap-large
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.ant-select-clear {
|
|
397
|
+
right: @select-padding-horizontal-large;
|
|
398
|
+
|
|
399
|
+
&::before {
|
|
400
|
+
left: -@selector-gap-large;
|
|
401
|
+
}
|
|
172
402
|
}
|
|
173
403
|
}
|
|
174
404
|
}
|
|
175
405
|
}
|
|
176
406
|
}
|
|
177
407
|
|
|
408
|
+
.ant-select-selector {
|
|
409
|
+
border: none !important;
|
|
410
|
+
}
|
|
411
|
+
|
|
178
412
|
.ant-select-clear {
|
|
179
413
|
width: 16px;
|
|
180
414
|
height: 16px;
|
|
@@ -182,13 +416,11 @@
|
|
|
182
416
|
margin-top: 0;
|
|
183
417
|
}
|
|
184
418
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
419
|
+
&.ald-select-primary {
|
|
420
|
+
font-weight: 500;
|
|
421
|
+
}
|
|
189
422
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
423
|
+
&.ald-select-secondary {
|
|
424
|
+
font-weight: 400;
|
|
193
425
|
}
|
|
194
426
|
}
|
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
.select-color(@borderColor, @bgColor,@textColor) {
|
|
2
|
+
border-color: @borderColor;
|
|
3
|
+
background-color: @bgColor;
|
|
4
|
+
color: @textColor;
|
|
5
|
+
|
|
6
|
+
.ant-select-selection-placeholder {
|
|
7
|
+
color: var(--alias-colors-text-subtlest, #9ca3af);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ald-select.ald-select-primary {
|
|
12
|
+
.select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-subtle, #F9FAFB),var(--alias-colors-text-default, #1f2937));
|
|
13
|
+
|
|
14
|
+
&.ald-select-fitted {
|
|
15
|
+
.select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-subtle, #F9FAFB),var(--alias-colors-text-default, #1f2937));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
.select-color(var(--alias-colors-border-accent-gray-subtle-hover, #9ca3af),var(--alias-colors-bg-skeleton-subtler, #FFF),var(--alias-colors-text-default, #1f2937));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:active {
|
|
23
|
+
.select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-strong, #F3F4F6),var(--alias-colors-text-default, #1f2937));
|
|
24
|
+
}
|
|
25
|
+
|
|
16
26
|
&.ald-select-disabled {
|
|
17
|
-
border-
|
|
18
|
-
|
|
19
|
-
box-shadow: none;
|
|
27
|
+
.select-color(var(--alias-colors-border-disabled, rgba(0, 0, 0, 0.1)),var(--alias-colors-bg-transp, rgba(0, 0, 0, 0)),var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25)));
|
|
28
|
+
|
|
20
29
|
cursor: default;
|
|
21
30
|
|
|
22
31
|
.ant-select .ant-select-selector {
|
|
@@ -25,11 +34,50 @@
|
|
|
25
34
|
.ant-select-selection-search input {
|
|
26
35
|
cursor: default;
|
|
27
36
|
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.ald-select-status-error {
|
|
41
|
+
.select-color(var(--alias-colors-border-danger, #DC2626),var(--alias-colors-bg-skeleton-subtle, #F9FAFB),var(--alias-colors-text-default, #1f2937));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ald-select {
|
|
46
|
+
&.ald-select-secondary {
|
|
47
|
+
.select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-subtler, #FFF),var(--alias-colors-text-default, #1f2937));
|
|
48
|
+
|
|
49
|
+
&.ald-select-fitted {
|
|
50
|
+
.select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-subtler, #FFF),var(--alias-colors-text-default, #1f2937));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
.select-color(var(--alias-colors-border-accent-gray-subtle-hover, #9ca3af),var(--alias-colors-bg-skeleton-subtler, #FFF),var(--alias-colors-text-default, #1f2937));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:active {
|
|
58
|
+
.select-color(var(--alias-colors-border-accent-gray-subtle-default, #D1D5DB),var(--alias-colors-bg-skeleton-subtler, #FFF),var(--alias-colors-text-default, #1f2937));
|
|
59
|
+
}
|
|
28
60
|
|
|
29
|
-
|
|
30
|
-
.
|
|
31
|
-
|
|
61
|
+
&.ald-select-disabled {
|
|
62
|
+
.select-color(var(--alias-colors-border-disabled, rgba(0, 0, 0, 0.1)),var(--alias-colors-bg-transp, rgba(0, 0, 0, 0)),var(--alias-colors-text-disabled, rgba(0, 0, 0, 0.25)));
|
|
63
|
+
|
|
64
|
+
cursor: default;
|
|
65
|
+
|
|
66
|
+
.ant-select {
|
|
67
|
+
cursor: default;
|
|
68
|
+
|
|
69
|
+
.ant-select-selector {
|
|
70
|
+
cursor: default;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ant-select-selection-search input {
|
|
74
|
+
cursor: default;
|
|
75
|
+
}
|
|
32
76
|
}
|
|
33
77
|
}
|
|
34
78
|
}
|
|
79
|
+
|
|
80
|
+
&.ald-select-status-error {
|
|
81
|
+
.select-color(var(--alias-colors-border-danger, #DC2626),var(--alias-colors-bg-skeleton-subtle, #F9FAFB),var(--alias-colors-text-default, #1f2937));
|
|
82
|
+
}
|
|
35
83
|
}
|
|
@@ -1,35 +1,31 @@
|
|
|
1
|
-
/* stylelint-disable property-no-unknown */
|
|
2
1
|
@import '../../style/index.less';
|
|
3
2
|
@import './option.less';
|
|
4
3
|
// large size
|
|
5
4
|
@select-height-large: 36px;
|
|
6
|
-
@select-border-radius-large:
|
|
5
|
+
@select-border-radius-large: 8px;
|
|
7
6
|
@select-font-size-large: 16px;
|
|
8
7
|
@select-line-height-large: 24px;
|
|
9
|
-
@select-padding-
|
|
8
|
+
@select-padding-horizontal-large: var(--alias-padding-150-minus-1, 12px);
|
|
10
9
|
@selector-height-large: 34px;
|
|
11
|
-
@selector-
|
|
12
|
-
|
|
13
|
-
// @select-padding-horizontal-large: 11px;
|
|
10
|
+
@selector-gap-large: 8px;
|
|
11
|
+
@select-icon-use-width-large: 24px; //16+8
|
|
14
12
|
|
|
15
13
|
// medium size
|
|
16
14
|
@select-height-middle: 32px;
|
|
17
|
-
@select-border-radius-middle:
|
|
18
|
-
@select-font-size-middle:
|
|
15
|
+
@select-border-radius-middle: 6px;
|
|
16
|
+
@select-font-size-middle: 14px;
|
|
19
17
|
@select-line-height-middle: 20px;
|
|
20
|
-
@select-padding-
|
|
18
|
+
@select-padding-horizontal-middle: var(--alias-padding-150-minus-1, 12px);
|
|
21
19
|
@selector-height-middle: 30px;
|
|
22
|
-
@selector-
|
|
23
|
-
|
|
24
|
-
// @select-padding-horizontal-middle: 11px;
|
|
20
|
+
@selector-gap-middle: 6px;
|
|
21
|
+
@select-icon-use-width-middle: 22px; //16+6
|
|
25
22
|
|
|
26
23
|
// small size
|
|
27
24
|
@select-height-small: 28px;
|
|
28
|
-
@select-border-radius-small:
|
|
25
|
+
@select-border-radius-small: 4px;
|
|
29
26
|
@select-font-size-small: 12px;
|
|
30
27
|
@select-line-height-small: 16px;
|
|
31
|
-
@select-padding-
|
|
28
|
+
@select-padding-horizontal-small: var(--alias-padding-150-minus-1, 12px);
|
|
32
29
|
@selector-height-small: 26px;
|
|
33
|
-
@selector-
|
|
34
|
-
|
|
35
|
-
// @select-padding-horizontal-small: 7px;
|
|
30
|
+
@selector-gap-small: 4px;
|
|
31
|
+
@select-icon-use-width-small: 20px; //16+4
|