bkui-vue 2.0.1-beta.6 → 2.0.1-beta.7
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/index.cjs.js +33 -33
- package/dist/index.esm.js +5360 -5363
- package/dist/index.umd.js +33 -33
- package/lib/date-picker/index.js +18 -17
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +27 -0
- package/lib/styles/index.d.ts +0 -1
- package/package.json +1 -1
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/rate/star.variable.css +0 -156
package/lib/date-picker/index.js
CHANGED
@@ -5208,10 +5208,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5208
5208
|
return panel.value === 'RangeTimePickerPanel' ? props.allowCrossDay : false;
|
5209
5209
|
});
|
5210
5210
|
var inputRef = (0,external_vue_namespaceObject.ref)(null);
|
5211
|
-
|
5212
|
-
|
5213
|
-
|
5214
|
-
};
|
5211
|
+
// const inputFocus = () => {
|
5212
|
+
// inputRef?.value?.focus();
|
5213
|
+
// };
|
5215
5214
|
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
5216
5215
|
proxy = _getCurrentInstance.proxy;
|
5217
5216
|
var pickerDropdownRef = (0,external_vue_namespaceObject.ref)(null);
|
@@ -5279,12 +5278,14 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5279
5278
|
state.visible = props.open;
|
5280
5279
|
}
|
5281
5280
|
// this.$on('focus-input', () => this.focus())
|
5282
|
-
|
5283
|
-
|
5284
|
-
|
5285
|
-
|
5286
|
-
|
5287
|
-
|
5281
|
+
// provide(datePickerKey, {
|
5282
|
+
// props,
|
5283
|
+
// focus: () => inputFocus(),
|
5284
|
+
// });
|
5285
|
+
});
|
5286
|
+
(0,external_vue_namespaceObject.provide)(timePickerKey, {
|
5287
|
+
panelDate: state.focusedDate,
|
5288
|
+
parentName: proxy.$options.name
|
5288
5289
|
});
|
5289
5290
|
var pickerPanelRef = (0,external_vue_namespaceObject.ref)(null);
|
5290
5291
|
var handleClose = function handleClose(e) {
|
@@ -5312,9 +5313,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5312
5313
|
state.disableClickOutSide = false;
|
5313
5314
|
};
|
5314
5315
|
var handleIconClick = function handleIconClick() {
|
5315
|
-
var _inputRef$
|
5316
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5317
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5316
|
+
var _inputRef$value, _inputRef$value2;
|
5317
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
5318
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.click();
|
5318
5319
|
};
|
5319
5320
|
var handleInputMouseenter = function handleInputMouseenter() {
|
5320
5321
|
if (props.readonly || props.disabled) {
|
@@ -5340,8 +5341,8 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5340
5341
|
emit('change', publicStringValue.value, type);
|
5341
5342
|
// this.dispatch('bk-form-item', 'form-change');
|
5342
5343
|
if (props.type.indexOf('time') < 0) {
|
5343
|
-
var _inputRef$
|
5344
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5344
|
+
var _inputRef$value3;
|
5345
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 || _inputRef$value3.blur();
|
5345
5346
|
}
|
5346
5347
|
});
|
5347
5348
|
};
|
@@ -5491,14 +5492,14 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5491
5492
|
}
|
5492
5493
|
};
|
5493
5494
|
var onPickSuccess = function onPickSuccess() {
|
5494
|
-
var _inputRef$
|
5495
|
+
var _inputRef$value4;
|
5495
5496
|
state.visible = false;
|
5496
5497
|
// 点击 shortcuts 会关闭弹层时,如果不在 nextTick 里触发 pick-success,那么会导致触发 pick-success 的时候,
|
5497
5498
|
// v-model 的值还是之前的值
|
5498
5499
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
5499
5500
|
emit('pick-success');
|
5500
5501
|
});
|
5501
|
-
inputRef === null || inputRef === void 0 || (_inputRef$
|
5502
|
+
inputRef === null || inputRef === void 0 || (_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 || _inputRef$value4.blur();
|
5502
5503
|
reset();
|
5503
5504
|
};
|
5504
5505
|
var onPick = function onPick(_dates) {
|
package/lib/rate/rate.css
CHANGED
@@ -8,3 +8,30 @@
|
|
8
8
|
display: flex;
|
9
9
|
overflow: hidden;
|
10
10
|
}
|
11
|
+
.bk-rate-stars {
|
12
|
+
padding: 0;
|
13
|
+
margin: 0;
|
14
|
+
}
|
15
|
+
.bk-rate-stars .bk-is-edit {
|
16
|
+
cursor: pointer;
|
17
|
+
}
|
18
|
+
.bk-rate-stars:after {
|
19
|
+
display: table;
|
20
|
+
clear: both;
|
21
|
+
content: '';
|
22
|
+
}
|
23
|
+
.bk-rate-stars .bk-rate-star {
|
24
|
+
float: left;
|
25
|
+
margin-right: 3px;
|
26
|
+
enable-background: new 0 0 64 64;
|
27
|
+
fill: #c5c7d1;
|
28
|
+
}
|
29
|
+
.bk-rate-stars .bk-rate-star.bk-is-select {
|
30
|
+
fill: #ffb848;
|
31
|
+
}
|
32
|
+
.bk-rate-stars .bk-rate-star.bk-is-hover {
|
33
|
+
transform: scale(1.2);
|
34
|
+
}
|
35
|
+
.bk-rate-stars .bk-rate-star:last-child {
|
36
|
+
margin-right: 0;
|
37
|
+
}
|
package/lib/rate/rate.less
CHANGED
@@ -11,3 +11,36 @@
|
|
11
11
|
overflow: hidden;
|
12
12
|
}
|
13
13
|
}
|
14
|
+
|
15
|
+
.@{bk-prefix}-rate-stars {
|
16
|
+
padding: 0;
|
17
|
+
margin: 0;
|
18
|
+
|
19
|
+
.@{bk-prefix}-is-edit {
|
20
|
+
cursor: pointer;
|
21
|
+
}
|
22
|
+
|
23
|
+
&:after {
|
24
|
+
display: table;
|
25
|
+
clear: both;
|
26
|
+
content: '';
|
27
|
+
}
|
28
|
+
|
29
|
+
.@{bk-prefix}-rate-star {
|
30
|
+
float: left;
|
31
|
+
margin-right: 3px;
|
32
|
+
enable-background: new 0 0 64 64;
|
33
|
+
fill: #c5c7d1;
|
34
|
+
|
35
|
+
&.@{bk-prefix}-is-select {
|
36
|
+
fill: #ffb848;
|
37
|
+
}
|
38
|
+
&.@{bk-prefix}-is-hover {
|
39
|
+
transform: scale(1.2);
|
40
|
+
}
|
41
|
+
|
42
|
+
&:last-child {
|
43
|
+
margin-right: 0;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -137,3 +137,30 @@
|
|
137
137
|
display: flex;
|
138
138
|
overflow: hidden;
|
139
139
|
}
|
140
|
+
.bk-rate-stars {
|
141
|
+
padding: 0;
|
142
|
+
margin: 0;
|
143
|
+
}
|
144
|
+
.bk-rate-stars .bk-is-edit {
|
145
|
+
cursor: pointer;
|
146
|
+
}
|
147
|
+
.bk-rate-stars:after {
|
148
|
+
display: table;
|
149
|
+
clear: both;
|
150
|
+
content: '';
|
151
|
+
}
|
152
|
+
.bk-rate-stars .bk-rate-star {
|
153
|
+
float: left;
|
154
|
+
margin-right: 3px;
|
155
|
+
enable-background: new 0 0 64 64;
|
156
|
+
fill: #c5c7d1;
|
157
|
+
}
|
158
|
+
.bk-rate-stars .bk-rate-star.bk-is-select {
|
159
|
+
fill: #ffb848;
|
160
|
+
}
|
161
|
+
.bk-rate-stars .bk-rate-star.bk-is-hover {
|
162
|
+
transform: scale(1.2);
|
163
|
+
}
|
164
|
+
.bk-rate-stars .bk-rate-star:last-child {
|
165
|
+
margin-right: 0;
|
166
|
+
}
|
package/lib/styles/index.d.ts
CHANGED
@@ -20,7 +20,6 @@ import '../modal/modal.less';
|
|
20
20
|
import '../progress/progress.less';
|
21
21
|
import '../radio/radio.less';
|
22
22
|
import '../rate/rate.less';
|
23
|
-
import '../rate/star.less';
|
24
23
|
import '../swiper/swiper.less';
|
25
24
|
import '../select/select.less';
|
26
25
|
import '../sideslider/sideslider.less';
|
package/package.json
CHANGED
package/lib/rate/star.css
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
.bk-rate-stars {
|
2
|
-
padding: 0;
|
3
|
-
margin: 0;
|
4
|
-
}
|
5
|
-
.bk-rate-stars .bk-is-edit {
|
6
|
-
cursor: pointer;
|
7
|
-
}
|
8
|
-
.bk-rate-stars:after {
|
9
|
-
display: table;
|
10
|
-
clear: both;
|
11
|
-
content: '';
|
12
|
-
}
|
13
|
-
.bk-rate-stars .bk-rate-star {
|
14
|
-
float: left;
|
15
|
-
margin-right: 3px;
|
16
|
-
enable-background: new 0 0 64 64;
|
17
|
-
fill: #c5c7d1;
|
18
|
-
}
|
19
|
-
.bk-rate-stars .bk-rate-star.bk-is-select {
|
20
|
-
fill: #ffb848;
|
21
|
-
}
|
22
|
-
.bk-rate-stars .bk-rate-star.bk-is-hover {
|
23
|
-
transform: scale(1.2);
|
24
|
-
}
|
25
|
-
.bk-rate-stars .bk-rate-star:last-child {
|
26
|
-
margin-right: 0;
|
27
|
-
}
|
package/lib/rate/star.less
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
@import '../styles/themes/themes.less';
|
2
|
-
|
3
|
-
.@{bk-prefix}-rate-stars {
|
4
|
-
padding: 0;
|
5
|
-
margin: 0;
|
6
|
-
|
7
|
-
.@{bk-prefix}-is-edit {
|
8
|
-
cursor: pointer;
|
9
|
-
}
|
10
|
-
|
11
|
-
&:after {
|
12
|
-
display: table;
|
13
|
-
clear: both;
|
14
|
-
content: '';
|
15
|
-
}
|
16
|
-
|
17
|
-
.@{bk-prefix}-rate-star {
|
18
|
-
float: left;
|
19
|
-
margin-right: 3px;
|
20
|
-
enable-background: new 0 0 64 64;
|
21
|
-
fill: #c5c7d1;
|
22
|
-
|
23
|
-
&.@{bk-prefix}-is-select {
|
24
|
-
fill: #ffb848;
|
25
|
-
}
|
26
|
-
&.@{bk-prefix}-is-hover {
|
27
|
-
transform: scale(1.2);
|
28
|
-
}
|
29
|
-
|
30
|
-
&:last-child {
|
31
|
-
margin-right: 0;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
}
|
@@ -1,156 +0,0 @@
|
|
1
|
-
:root {
|
2
|
-
--bk-prefix: bk;
|
3
|
-
--popover-max-height: 216px;
|
4
|
-
--primary-color: #3a84ff;
|
5
|
-
--success-color: #2dcb56;
|
6
|
-
--warning-color: #ff9c01;
|
7
|
-
--danger-color: #ea3636;
|
8
|
-
--default-color: #63656e;
|
9
|
-
--gray-color: #979ba5;
|
10
|
-
--light-gray: #c4c6cc;
|
11
|
-
--white-color: white;
|
12
|
-
--whitesmoke-color: #fafbfd;
|
13
|
-
--disable-color: #dcdee5;
|
14
|
-
--disable-bg-color: #f9fafd;
|
15
|
-
--border-color: #dcdee5;
|
16
|
-
--font-size-base: 12px;
|
17
|
-
--font-size-medium: 14px;
|
18
|
-
--font-size-large: 16px;
|
19
|
-
--line-height-base: 16px;
|
20
|
-
--line-height-medium: 16px;
|
21
|
-
--line-height-large: 18px;
|
22
|
-
--component-size-small: 26px;
|
23
|
-
--component-size-base: 32px;
|
24
|
-
--component-size-large: 40px;
|
25
|
-
--component-size-small-padding: 0 12px;
|
26
|
-
--component-size-base-padding: 0 14px;
|
27
|
-
--component-size-large-padding: 0 16px;
|
28
|
-
--border-width-base: 1px;
|
29
|
-
--border-style-base: solid;
|
30
|
-
--border-radius-base: 2px;
|
31
|
-
--border-style-color: var(--light-gray);
|
32
|
-
--input-disabled-bg: #fafbfd;
|
33
|
-
--input-disabled-border: var(--disable-color);
|
34
|
-
--input-height-base: var(--component-size-base);
|
35
|
-
--input-color: var(--default-color);
|
36
|
-
--input-bg: white;
|
37
|
-
--input-border-color: var(--light-gray);
|
38
|
-
--input-broder-radius: 3px;
|
39
|
-
--input-shadow-color: #a3c5fd;
|
40
|
-
--input-horizontal-padding: 8px;
|
41
|
-
--input-block-color: #f5f7fa;
|
42
|
-
--input-block-hover-color: #eaebf0;
|
43
|
-
--input-icon-size: var(--font-size-medium);
|
44
|
-
--input-maxlength-color: #979ba5;
|
45
|
-
--button-primary-hover-color: #5594fa;
|
46
|
-
--button-danger-hover-color: #ff5656;
|
47
|
-
--button-success-hover-color: #45e35f;
|
48
|
-
--button-warning-hover-color: #ffb848;
|
49
|
-
--button-default-hover-border-color: #979ba5;
|
50
|
-
--button-primary-active-color: #2c77f4;
|
51
|
-
--button-danger-active-color: #db2626;
|
52
|
-
--button-success-active-color: #1ab943;
|
53
|
-
--button-warning-active-color: #eb9000;
|
54
|
-
--button-selected-bg-color: #e1ecff;
|
55
|
-
--button-disabled-selected-bg-color: #f0f1f5;
|
56
|
-
--radio-font-color: #63656e;
|
57
|
-
--radio-active-color: #3a84ff;
|
58
|
-
--radio-hover-border-color: #979ba5;
|
59
|
-
--radio-disabled-border: #dcdee5;
|
60
|
-
--radio-disabled-font-color: #c4c6cc;
|
61
|
-
--radio-disabled-checked-bg: #a3c5fd;
|
62
|
-
--radio-button-checked-bg: #e1ecff;
|
63
|
-
--radio-button-disabled-checked-bg: #fafbfd;
|
64
|
-
--checkbox-disabled-checked-bg: #a3c5fd;
|
65
|
-
--fixed-navbar-background: #fff;
|
66
|
-
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
67
|
-
--switch-default-color: #fff;
|
68
|
-
--switch-grey-color: #c4c6cc;
|
69
|
-
--breadcrumb-black-color: #979ba5;
|
70
|
-
--breadcrumb-primary-hover-color: #0082ff;
|
71
|
-
--breadcrumb-fn-main-color: #63656e;
|
72
|
-
--link-default-hover-color: #979ba5;
|
73
|
-
--link-primary-hover-color: #699df4;
|
74
|
-
--link-success-hover-color: #45e35f;
|
75
|
-
--link-warning-hover-color: #ffb848;
|
76
|
-
--link-danger-hover-color: #ff5656;
|
77
|
-
--link-default-disabled-color: #dcdee5;
|
78
|
-
--link-primary-disabled-color: #a3c5fd;
|
79
|
-
--link-success-disabled-color: #94f5a4;
|
80
|
-
--link-warning-disabled-color: #ffd695;
|
81
|
-
--link-danger-disabled-color: #fd9c9c;
|
82
|
-
--message-color: var(--default-color);
|
83
|
-
--message-primary-bg-color: #f0f8ff;
|
84
|
-
--message-primary-border-color: #e1ecff;
|
85
|
-
--message-primary-shadow-color: #e1e8f4;
|
86
|
-
--message-warning-bg-color: #fff4e2;
|
87
|
-
--message-warning-border-color: #ffe8c3;
|
88
|
-
--message-warning-shadow-color: #ede6db;
|
89
|
-
--message-success-bg-color: #f2fff4;
|
90
|
-
--message-success-border-color: #dcffe2;
|
91
|
-
--message-success-shadow-color: #cef0d7;
|
92
|
-
--message-danger-bg-color: #ffeded;
|
93
|
-
--message-danger-border-color: #ffdddd;
|
94
|
-
--message-danger-shadow-color: #f6dada;
|
95
|
-
--slider-default-bg: #dcdee5;
|
96
|
-
--slider-disable-bar-bg: #979ba5;
|
97
|
-
--menu-bg-color: #182132;
|
98
|
-
--submenu-bg-color: #151d2c;
|
99
|
-
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
100
|
-
--menu-color: #96a2b9;
|
101
|
-
--menu-group-color: var(--default-color);
|
102
|
-
--menu-width: 260px;
|
103
|
-
--menu-collapse-width: 60px;
|
104
|
-
--menu-active-color: white;
|
105
|
-
--nav-header-bg-color: #182132;
|
106
|
-
--nav-bg-color: #182132;
|
107
|
-
--date-picker-disabled-bg: #fafbfd;
|
108
|
-
--date-picker-dropdown-mb: 4px;
|
109
|
-
--date-picker-dropdown-bg: #fff;
|
110
|
-
--table-bg-color: var(--white-color);
|
111
|
-
--table-border-color: #dcdee5;
|
112
|
-
--table-head-bg-color: #fafbfd;
|
113
|
-
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #63656E;
|
115
|
-
--table-row-hover-bg-color: #f5f7fa;
|
116
|
-
--table-row-active-bg-color: #f0f1f5;
|
117
|
-
--cascader-panel-border-color: #dcdee5;
|
118
|
-
--cascader-panel-hover: #f5f7fa;
|
119
|
-
--cascader-panel-active: #e1ecff;
|
120
|
-
--cascader-panel-disabled-bg: #fff;
|
121
|
-
--search-select-focus-border-color: var(--primary-color);
|
122
|
-
--search-select-focus-color: #3c96ff;
|
123
|
-
--search-select-font-color: var(--default-color);
|
124
|
-
--search-select-placeholder-color: var(--light-gray);
|
125
|
-
--search-select-message-color: var(--danger-color);
|
126
|
-
--search-select-menu-border-color: var(--disable-color);
|
127
|
-
--select-active-color: #e1ecff;
|
128
|
-
--select-hover-color: #f5f7fa;
|
129
|
-
}
|
130
|
-
.bk-rate-stars {
|
131
|
-
padding: 0;
|
132
|
-
margin: 0;
|
133
|
-
}
|
134
|
-
.bk-rate-stars .bk-is-edit {
|
135
|
-
cursor: pointer;
|
136
|
-
}
|
137
|
-
.bk-rate-stars:after {
|
138
|
-
display: table;
|
139
|
-
clear: both;
|
140
|
-
content: '';
|
141
|
-
}
|
142
|
-
.bk-rate-stars .bk-rate-star {
|
143
|
-
float: left;
|
144
|
-
margin-right: 3px;
|
145
|
-
enable-background: new 0 0 64 64;
|
146
|
-
fill: #c5c7d1;
|
147
|
-
}
|
148
|
-
.bk-rate-stars .bk-rate-star.bk-is-select {
|
149
|
-
fill: #ffb848;
|
150
|
-
}
|
151
|
-
.bk-rate-stars .bk-rate-star.bk-is-hover {
|
152
|
-
transform: scale(1.2);
|
153
|
-
}
|
154
|
-
.bk-rate-stars .bk-rate-star:last-child {
|
155
|
-
margin-right: 0;
|
156
|
-
}
|