bkui-vue 0.0.1-beta.142 → 0.0.1-beta.145

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.
Files changed (43) hide show
  1. package/dist/index.cjs.js +30 -30
  2. package/dist/index.esm.js +1420 -1223
  3. package/dist/index.umd.js +27 -27
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/button/button.css +0 -1
  7. package/lib/button/button.less +0 -1
  8. package/lib/button/button.variable.css +0 -1
  9. package/lib/button/index.js +1 -1
  10. package/lib/collapse/collapse-panel.d.ts +64 -0
  11. package/lib/collapse/collapse.css +10 -10
  12. package/lib/collapse/collapse.d.ts +0 -40
  13. package/lib/collapse/collapse.less +44 -46
  14. package/lib/collapse/collapse.variable.css +10 -10
  15. package/lib/collapse/index.d.ts +68 -1
  16. package/lib/collapse/index.js +1 -1
  17. package/lib/collapse/props.d.ts +114 -0
  18. package/lib/color-picker/color-picker.css +275 -0
  19. package/lib/color-picker/color-picker.d.ts +128 -0
  20. package/lib/color-picker/color-picker.less +325 -0
  21. package/lib/color-picker/color-picker.variable.css +388 -0
  22. package/lib/color-picker/index.d.ts +231 -0
  23. package/lib/color-picker/index.js +1 -0
  24. package/lib/color-picker/utils.d.ts +37 -0
  25. package/lib/components.d.ts +1 -0
  26. package/lib/components.js +1 -1
  27. package/lib/dialog/dialog.d.ts +1 -1
  28. package/lib/dialog/index.d.ts +4 -4
  29. package/lib/dialog/index.js +1 -1
  30. package/lib/dialog/props.d.ts +132 -0
  31. package/lib/info-box/index.d.ts +23 -0
  32. package/lib/info-box/index.js +1 -0
  33. package/lib/input/index.js +1 -1
  34. package/lib/modal/index.d.ts +4 -4
  35. package/lib/modal/modal.d.ts +1 -1
  36. package/lib/sideslider/index.d.ts +4 -4
  37. package/lib/sideslider/sideslider.d.ts +1 -1
  38. package/lib/styles/index.d.ts +1 -0
  39. package/lib/tab/index.d.ts +1 -1
  40. package/lib/tab/tab-panel.d.ts +1 -1
  41. package/lib/table/table.css +0 -1
  42. package/lib/table/table.variable.css +0 -1
  43. package/package.json +2 -1
@@ -0,0 +1,275 @@
1
+ .bk-color-picker {
2
+ position: relative;
3
+ display: inline-flex;
4
+ height: 32px;
5
+ color: #63656e;
6
+ cursor: pointer;
7
+ border: 1px solid #dcdee5;
8
+ border-radius: 2px;
9
+ outline: none;
10
+ transition: border 0.2s, box-shadow 0.2s;
11
+ align-content: center;
12
+ }
13
+ .bk-color-picker.bk-color-picker-show-value {
14
+ width: 150px;
15
+ }
16
+ .bk-color-picker.bk-color-picker-large {
17
+ height: 36px;
18
+ }
19
+ .bk-color-picker.bk-color-picker-large.bk-color-picker-show-value {
20
+ width: 170px;
21
+ }
22
+ .bk-color-picker.bk-color-picker-large.bk-color-picker-show-value .bk-color-picker-text {
23
+ width: calc(100% - 62px);
24
+ font-size: 16px;
25
+ }
26
+ .bk-color-picker.bk-color-picker-large .bk-color-picker-color .bk-color-picker-color-square {
27
+ width: 22px;
28
+ height: 22px;
29
+ font-size: 22px;
30
+ }
31
+ .bk-color-picker.bk-color-picker-small {
32
+ height: 28px;
33
+ }
34
+ .bk-color-picker.bk-color-picker-small.bk-color-picker-show-value {
35
+ width: 132px;
36
+ }
37
+ .bk-color-picker.bk-color-picker-small.bk-color-picker-show-value .bk-color-picker-text {
38
+ width: calc(100% - 56px);
39
+ font-size: 12px;
40
+ }
41
+ .bk-color-picker.bk-color-picker-small .bk-color-picker-color .bk-color-picker-color-square {
42
+ width: 16px;
43
+ height: 16px;
44
+ font-size: 16px;
45
+ }
46
+ .bk-color-picker:hover,
47
+ .bk-color-picker:focus {
48
+ border-color: #3a84ff;
49
+ transition: border 0.2s;
50
+ }
51
+ .bk-color-picker.bk-color-picker-show-dropdown {
52
+ border-color: #3a84ff;
53
+ box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.2);
54
+ transition: border 0.2s, box-shadow 0.2s;
55
+ }
56
+ .bk-color-picker.bk-color-picker-show-dropdown .icon-angle-down {
57
+ transform: rotate(-180deg);
58
+ transition: transform 0.3s;
59
+ }
60
+ .bk-color-picker.bk-color-picker-disabled {
61
+ cursor: not-allowed;
62
+ background-color: #e1ecff;
63
+ border-color: #699df4;
64
+ }
65
+ .bk-color-picker.bk-color-picker-disabled .bk-color-picker-text {
66
+ color: #3a84ff;
67
+ }
68
+ .bk-color-picker.bk-color-picker-disabled .bk-color-picker-icon .icon-angle-down {
69
+ color: #3a84ff;
70
+ }
71
+ .bk-color-picker .bk-color-picker-color {
72
+ display: flex;
73
+ margin-left: 6px;
74
+ align-items: center;
75
+ }
76
+ .bk-color-picker .bk-color-picker-color .bk-color-picker-color-square {
77
+ width: 18px;
78
+ height: 18px;
79
+ font-size: 18px;
80
+ color: #3a84ff;
81
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
82
+ }
83
+ .bk-color-picker .bk-color-picker-text {
84
+ display: flex;
85
+ width: calc(100% - 58px);
86
+ margin-left: 6px;
87
+ font-size: 14px;
88
+ line-height: 20px;
89
+ color: #63656e;
90
+ align-items: center;
91
+ }
92
+ .bk-color-picker .bk-color-picker-text span {
93
+ overflow: hidden;
94
+ text-overflow: ellipsis;
95
+ white-space: nowrap;
96
+ }
97
+ .bk-color-picker .bk-color-picker-icon {
98
+ display: flex;
99
+ justify-content: center;
100
+ align-items: center;
101
+ width: 20px;
102
+ margin-right: 5px;
103
+ transform: rotate(180deg);
104
+ }
105
+ .bk-color-picker .bk-color-picker-icon .icon-angle-down {
106
+ position: absolute;
107
+ right: 4px;
108
+ display: flex;
109
+ align-items: center;
110
+ font-size: 20px;
111
+ color: #979ba5;
112
+ transition: transform 0.3s;
113
+ }
114
+ /*下拉面板*/
115
+ .bk-color-picker-dropdown {
116
+ width: 272px;
117
+ }
118
+ .bk-color-picker-saturation {
119
+ position: relative;
120
+ height: 180px;
121
+ margin: 0 6px 6px;
122
+ }
123
+ .bk-color-picker-saturation .bk-color-picker-saturation-white {
124
+ background: linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0));
125
+ }
126
+ .bk-color-picker-saturation .bk-color-picker-saturation-black {
127
+ background: linear-gradient(0deg, #000, transparent);
128
+ }
129
+ .bk-color-picker-saturation .bk-color-picker-saturation-white,
130
+ .bk-color-picker-saturation .bk-color-picker-saturation-black {
131
+ position: absolute;
132
+ top: 0;
133
+ left: 0;
134
+ width: 100%;
135
+ height: 100%;
136
+ cursor: pointer;
137
+ }
138
+ .bk-color-picker-hue {
139
+ position: relative;
140
+ height: 10px;
141
+ margin: 0 6px 6px;
142
+ cursor: pointer;
143
+ background: linear-gradient(90deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red);
144
+ }
145
+ .bk-color-picker-hue .bk-color-picker-hue-pointer {
146
+ position: absolute;
147
+ top: 0;
148
+ }
149
+ .bk-color-picker-hue .bk-color-picker-hue-pointer .bk-color-picker-hue-rectangle {
150
+ width: 4px;
151
+ height: 8px;
152
+ margin-top: 1px;
153
+ cursor: pointer;
154
+ background: #fff;
155
+ border-radius: 1px;
156
+ transform: translateX(-2px);
157
+ box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
158
+ }
159
+ .bk-color-picker-input {
160
+ display: flex;
161
+ margin: 0 6px 1px;
162
+ font-size: 12px;
163
+ color: #63656e;
164
+ justify-content: space-between;
165
+ }
166
+ .bk-color-picker-input .bk-color-picker-input-hex .bk-color-picker-input-part .bk-color-picker-input-value {
167
+ width: 70px;
168
+ }
169
+ .bk-color-picker-input .bk-color-picker-input-rgba {
170
+ display: flex;
171
+ width: 160px;
172
+ justify-content: space-between;
173
+ }
174
+ .bk-color-picker-input .bk-color-picker-input-part {
175
+ display: flex;
176
+ flex-flow: column;
177
+ }
178
+ .bk-color-picker-input .bk-color-picker-input-part .bk-color-picker-input-value {
179
+ width: 32px;
180
+ height: 22px;
181
+ padding: 0 4px;
182
+ line-height: 16px;
183
+ border: 1px solid #c4c6cc;
184
+ border-radius: 2px;
185
+ outline: none;
186
+ transition: border 0.2s;
187
+ }
188
+ .bk-color-picker-input .bk-color-picker-input-part .bk-color-picker-input-value:focus {
189
+ border-color: #3a84ff;
190
+ transition: border 0.2s;
191
+ }
192
+ .bk-color-picker-input .bk-color-picker-input-part .bk-color-picker-input-value.error {
193
+ border-color: #3a84ff;
194
+ }
195
+ .bk-color-picker-input .bk-color-picker-input-part .bk-color-picker-input-value::-webkit-outer-spin-button,
196
+ .bk-color-picker-input .bk-color-picker-input-part .bk-color-picker-input-value::-webkit-inner-spin-button {
197
+ margin: 0;
198
+ appearance: none;
199
+ }
200
+ .bk-color-picker-input .bk-color-picker-input-part .bk-color-picker-input-text {
201
+ height: 18px;
202
+ line-height: 18px;
203
+ text-align: center;
204
+ }
205
+ .bk-color-picker-recommend-container {
206
+ padding: 6px;
207
+ border-top: 1px solid #f0f1f5;
208
+ }
209
+ .bk-color-picker-recommend-container .bk-color-picker-recommend {
210
+ display: flex;
211
+ flex-wrap: wrap;
212
+ }
213
+ .bk-color-picker-recommend-container .bk-color-picker-recommend .bk-color-picker-recommend-color {
214
+ width: 20px;
215
+ height: 20px;
216
+ margin: 3px;
217
+ cursor: pointer;
218
+ border-radius: 3px;
219
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
220
+ }
221
+ .bk-color-picker-recommend-container .bk-color-picker-recommend .bk-color-picker-recommend-color.bk-color-picker-recommend-selected-color {
222
+ box-shadow: 0 0 3px 2px #3a84ff;
223
+ }
224
+ .bk-color-picker-saturation,
225
+ .bk-color-picker-hue,
226
+ .bk-color-picker-recommend {
227
+ outline: none;
228
+ transition: box-shadow 0.2s;
229
+ }
230
+ .bk-color-picker-saturation:focus,
231
+ .bk-color-picker-hue:focus,
232
+ .bk-color-picker-recommend:focus {
233
+ box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.5);
234
+ transition: box-shadow 0.2s;
235
+ }
236
+ /*饱和度和预设值共用样式*/
237
+ .bk-color-picker-pointer {
238
+ position: absolute;
239
+ top: 50%;
240
+ left: 50%;
241
+ width: 4px;
242
+ height: 4px;
243
+ cursor: pointer;
244
+ }
245
+ .bk-color-picker-pointer .bk-color-picker-circle {
246
+ position: absolute;
247
+ top: 0;
248
+ left: 0;
249
+ width: 4px;
250
+ height: 4px;
251
+ cursor: pointer;
252
+ border-radius: 50%;
253
+ transform: translate(-2px, -2px);
254
+ box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, 0.3), 0 0 1px 2px rgba(0, 0, 0, 0.4);
255
+ }
256
+ .bk-color-picker-empty {
257
+ position: relative;
258
+ }
259
+ .bk-color-picker-empty::after {
260
+ position: absolute;
261
+ top: 1px;
262
+ left: calc(50% - 1px);
263
+ width: 2px;
264
+ height: calc(100% - 2px);
265
+ background: #ea3536;
266
+ border-radius: 1px;
267
+ content: '';
268
+ transform: rotate(45deg);
269
+ }
270
+ .bk-color-dropdown-container {
271
+ padding: 0px;
272
+ cursor: default;
273
+ transform-origin: center top;
274
+ will-change: top, left;
275
+ }
@@ -0,0 +1,128 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ declare const colorPickerProps: {
3
+ modelValue: import("vue-types").VueTypeValidableDef<string> & {
4
+ default: string;
5
+ } & {
6
+ default: string;
7
+ };
8
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
9
+ default: boolean;
10
+ } & {
11
+ default: boolean;
12
+ };
13
+ readonly: import("vue-types").VueTypeValidableDef<boolean> & {
14
+ default: boolean;
15
+ } & {
16
+ default: boolean;
17
+ };
18
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
19
+ default: boolean;
20
+ } & {
21
+ default: boolean;
22
+ };
23
+ size: import("vue-types").VueTypeDef<string> & {
24
+ default: string;
25
+ };
26
+ showValue: import("vue-types").VueTypeValidableDef<boolean> & {
27
+ default: boolean;
28
+ } & {
29
+ default: boolean;
30
+ };
31
+ recommend: import("vue-types").VueTypeDef<boolean | unknown[]> & {
32
+ default: boolean | (() => unknown[]);
33
+ };
34
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
35
+ default: string;
36
+ } & {
37
+ default: string;
38
+ };
39
+ };
40
+ export declare type ColorPickerPropTypes = ExtractPropTypes<typeof colorPickerProps>;
41
+ declare const _default: import("vue").DefineComponent<{
42
+ modelValue: import("vue-types").VueTypeValidableDef<string> & {
43
+ default: string;
44
+ } & {
45
+ default: string;
46
+ };
47
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
48
+ default: boolean;
49
+ } & {
50
+ default: boolean;
51
+ };
52
+ readonly: import("vue-types").VueTypeValidableDef<boolean> & {
53
+ default: boolean;
54
+ } & {
55
+ default: boolean;
56
+ };
57
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
58
+ default: boolean;
59
+ } & {
60
+ default: boolean;
61
+ };
62
+ size: import("vue-types").VueTypeDef<string> & {
63
+ default: string;
64
+ };
65
+ showValue: import("vue-types").VueTypeValidableDef<boolean> & {
66
+ default: boolean;
67
+ } & {
68
+ default: boolean;
69
+ };
70
+ recommend: import("vue-types").VueTypeDef<boolean | unknown[]> & {
71
+ default: boolean | (() => unknown[]);
72
+ };
73
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
74
+ default: string;
75
+ } & {
76
+ default: string;
77
+ };
78
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
79
+ modelValue: import("vue-types").VueTypeValidableDef<string> & {
80
+ default: string;
81
+ } & {
82
+ default: string;
83
+ };
84
+ disabled: import("vue-types").VueTypeValidableDef<boolean> & {
85
+ default: boolean;
86
+ } & {
87
+ default: boolean;
88
+ };
89
+ readonly: import("vue-types").VueTypeValidableDef<boolean> & {
90
+ default: boolean;
91
+ } & {
92
+ default: boolean;
93
+ };
94
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
95
+ default: boolean;
96
+ } & {
97
+ default: boolean;
98
+ };
99
+ size: import("vue-types").VueTypeDef<string> & {
100
+ default: string;
101
+ };
102
+ showValue: import("vue-types").VueTypeValidableDef<boolean> & {
103
+ default: boolean;
104
+ } & {
105
+ default: boolean;
106
+ };
107
+ recommend: import("vue-types").VueTypeDef<boolean | unknown[]> & {
108
+ default: boolean | (() => unknown[]);
109
+ };
110
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
111
+ default: string;
112
+ } & {
113
+ default: string;
114
+ };
115
+ }>> & {
116
+ onChange?: (...args: any[]) => any;
117
+ "onUpdate:modelValue"?: (...args: any[]) => any;
118
+ }, {
119
+ disabled: boolean;
120
+ extCls: string;
121
+ size: string;
122
+ readonly: boolean;
123
+ modelValue: string;
124
+ transfer: boolean;
125
+ recommend: boolean | unknown[];
126
+ showValue: boolean;
127
+ }>;
128
+ export default _default;
@@ -0,0 +1,325 @@
1
+ @import '../styles/themes/themes.less';
2
+
3
+ .bk-color-picker {
4
+ position: relative;
5
+ display: inline-flex;
6
+ height: 32px;
7
+ color: #63656e;
8
+ cursor: pointer;
9
+ border: 1px solid #dcdee5;
10
+ border-radius: 2px;
11
+ outline: none;
12
+ transition: border .2s, box-shadow .2s;
13
+ align-content: center;
14
+
15
+ &.bk-color-picker-show-value {
16
+ width: 150px;
17
+ }
18
+
19
+ &.bk-color-picker-large {
20
+ height: 36px;
21
+
22
+ &.bk-color-picker-show-value {
23
+ width: 170px;
24
+
25
+ .bk-color-picker-text {
26
+ width: calc(100% - 62px);
27
+ font-size: 16px;
28
+ }
29
+ }
30
+
31
+ .bk-color-picker-color .bk-color-picker-color-square {
32
+ width: 22px;
33
+ height: 22px;
34
+ font-size: 22px;
35
+ }
36
+ }
37
+
38
+ &.bk-color-picker-small {
39
+ height: 28px;
40
+
41
+ &.bk-color-picker-show-value {
42
+ width: 132px;
43
+
44
+ .bk-color-picker-text {
45
+ width: calc(100% - 56px);
46
+ font-size: 12px;
47
+ }
48
+ }
49
+
50
+ .bk-color-picker-color .bk-color-picker-color-square {
51
+ width: 16px;
52
+ height: 16px;
53
+ font-size: 16px;
54
+ }
55
+ }
56
+
57
+ &:hover,
58
+ &:focus {
59
+ border-color: #3a84ff;
60
+ transition: border .2s;
61
+ }
62
+
63
+ &.bk-color-picker-show-dropdown {
64
+ border-color: #3a84ff;
65
+ box-shadow: 0 0 0 2px rgba(45, 140, 240, .2);
66
+ transition: border .2s, box-shadow .2s;
67
+
68
+ .icon-angle-down {
69
+ transform: rotate(-180deg);
70
+ transition: transform .3s;
71
+ }
72
+ }
73
+
74
+ &.bk-color-picker-disabled {
75
+ cursor: not-allowed;
76
+ background-color: #e1ecff;
77
+ border-color: #699df4;
78
+
79
+ .bk-color-picker-text {
80
+ color: #3a84ff;
81
+ }
82
+
83
+ .bk-color-picker-icon .icon-angle-down {
84
+ color: #3a84ff;
85
+ }
86
+ }
87
+
88
+ .bk-color-picker-color {
89
+ display: flex;
90
+ margin-left: 6px;
91
+ align-items: center;
92
+
93
+ .bk-color-picker-color-square {
94
+ width: 18px;
95
+ height: 18px;
96
+ font-size: 18px;
97
+ color: #3a84ff;
98
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
99
+ }
100
+ }
101
+
102
+ .bk-color-picker-text {
103
+ display: flex;
104
+ width: calc(100% - 58px);
105
+ margin-left: 6px;
106
+ font-size: 14px;
107
+ line-height: 20px;
108
+ color: #63656e;
109
+ align-items: center;
110
+
111
+ span {
112
+ overflow: hidden;
113
+ text-overflow: ellipsis;
114
+ white-space: nowrap;
115
+ }
116
+ }
117
+
118
+ .bk-color-picker-icon {
119
+ display: flex;
120
+ justify-content: center;
121
+ align-items: center;
122
+ width: 20px;
123
+ margin-right: 5px;
124
+ transform: rotate(180deg);
125
+
126
+
127
+ .icon-angle-down {
128
+ position: absolute;
129
+ right: 4px;
130
+ display: flex;
131
+ align-items: center;
132
+ font-size: 20px;
133
+ color: #979ba5;
134
+ transition: transform .3s;
135
+ }
136
+ }
137
+ }
138
+
139
+ /*下拉面板*/
140
+ .bk-color-picker-dropdown {
141
+ width: 272px;
142
+ }
143
+
144
+ .bk-color-picker-saturation {
145
+ position: relative;
146
+ height: 180px;
147
+ margin: 0 6px 6px;
148
+
149
+ .bk-color-picker-saturation-white {
150
+ background: linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0));
151
+ }
152
+
153
+ .bk-color-picker-saturation-black {
154
+ background: linear-gradient(0deg, #000, transparent);
155
+ }
156
+
157
+ .bk-color-picker-saturation-white,
158
+ .bk-color-picker-saturation-black {
159
+ position: absolute;
160
+ top: 0;
161
+ left: 0;
162
+ width: 100%;
163
+ height: 100%;
164
+ cursor: pointer;
165
+ }
166
+ }
167
+
168
+ .bk-color-picker-hue {
169
+ position: relative;
170
+ height: 10px;
171
+ margin: 0 6px 6px;
172
+ cursor: pointer;
173
+ background: linear-gradient(90deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red);
174
+
175
+ .bk-color-picker-hue-pointer {
176
+ position: absolute;
177
+ top: 0;
178
+
179
+ .bk-color-picker-hue-rectangle {
180
+ width: 4px;
181
+ height: 8px;
182
+ margin-top: 1px;
183
+ cursor: pointer;
184
+ background: #fff;
185
+ border-radius: 1px;
186
+ transform: translateX(-2px);
187
+ box-shadow: 0 0 2px rgba(0, 0, 0, .6);
188
+ }
189
+ }
190
+ }
191
+
192
+ .bk-color-picker-input {
193
+ display: flex;
194
+ margin: 0 6px 1px;
195
+ font-size: 12px;
196
+ color: #63656e;
197
+ justify-content: space-between;
198
+
199
+ .bk-color-picker-input-hex .bk-color-picker-input-part .bk-color-picker-input-value {
200
+ width: 70px;
201
+ }
202
+
203
+ .bk-color-picker-input-rgba {
204
+ display: flex;
205
+ width: 160px;
206
+ justify-content: space-between;
207
+ }
208
+
209
+ .bk-color-picker-input-part {
210
+ display: flex;
211
+ flex-flow: column;
212
+
213
+ .bk-color-picker-input-value {
214
+ width: 32px;
215
+ height: 22px;
216
+ padding: 0 4px;
217
+ line-height: 16px;
218
+ border: 1px solid #c4c6cc;
219
+ border-radius: 2px;
220
+ outline: none;
221
+ transition: border .2s;
222
+
223
+ &:focus {
224
+ border-color: #3a84ff;;
225
+ transition: border .2s;
226
+ }
227
+
228
+ &.error {
229
+ border-color: #3a84ff;
230
+ }
231
+
232
+ &::-webkit-outer-spin-button,
233
+ &::-webkit-inner-spin-button {
234
+ margin: 0;
235
+ appearance: none;
236
+ }
237
+ }
238
+
239
+ .bk-color-picker-input-text {
240
+ height: 18px;
241
+ line-height: 18px;
242
+ text-align: center;
243
+ }
244
+ }
245
+ }
246
+
247
+ .bk-color-picker-recommend-container {
248
+ padding: 6px;
249
+ border-top: 1px solid #f0f1f5;
250
+
251
+ .bk-color-picker-recommend {
252
+ display: flex;
253
+ flex-wrap: wrap;
254
+
255
+ .bk-color-picker-recommend-color {
256
+ width: 20px;
257
+ height: 20px;
258
+ margin: 3px;
259
+ cursor: pointer;
260
+ border-radius: 3px;
261
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
262
+
263
+ &.bk-color-picker-recommend-selected-color {
264
+ box-shadow: 0 0 3px 2px #3a84ff;;
265
+ }
266
+ }
267
+ }
268
+ }
269
+
270
+ .bk-color-picker-saturation,
271
+ .bk-color-picker-hue,
272
+ .bk-color-picker-recommend {
273
+ outline: none;
274
+ transition: box-shadow .2s;
275
+
276
+ &:focus {
277
+ box-shadow: 0 0 0 2px rgba(45, 140, 240, .5);
278
+ transition: box-shadow .2s;
279
+ }
280
+ }
281
+
282
+ /*饱和度和预设值共用样式*/
283
+ .bk-color-picker-pointer {
284
+ position: absolute;
285
+ top: 50%;
286
+ left: 50%;
287
+ width: 4px;
288
+ height: 4px;
289
+ cursor: pointer;
290
+
291
+ .bk-color-picker-circle {
292
+ position: absolute;
293
+ top: 0;
294
+ left: 0;
295
+ width: 4px;
296
+ height: 4px;
297
+ cursor: pointer;
298
+ border-radius: 50%;
299
+ transform: translate(-2px, -2px);
300
+ box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0, 0, 0, .3), 0 0 1px 2px rgba(0, 0, 0, .4);
301
+ }
302
+ }
303
+
304
+ .bk-color-picker-empty {
305
+ position: relative;
306
+
307
+ &::after {
308
+ position: absolute;
309
+ top: 1px;
310
+ left: calc(50% - 1px);
311
+ width: 2px;
312
+ height: calc(100% - 2px);
313
+ background: #ea3536;
314
+ border-radius: 1px;
315
+ content: '';
316
+ transform: rotate(45deg);
317
+ }
318
+ }
319
+
320
+ .bk-color-dropdown-container {
321
+ padding: 0px;
322
+ cursor: default;
323
+ transform-origin: center top;
324
+ will-change: top, left;
325
+ }