bkui-vue 2.0.2-beta.62 → 2.0.2-beta.63
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/cli.css +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.esm.js +1012 -1012
- package/dist/index.umd.js +8 -8
- package/dist/style.variable.css +1 -1
- package/lib/index.js +1 -1
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +6 -0
- package/lib/input/input.less +7 -0
- package/lib/input/input.variable.css +6 -0
- package/lib/search-select/index.js +4 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/input/index.js
CHANGED
@@ -1518,7 +1518,7 @@ function calculateNodeStyling(targetElement) {
|
|
1518
1518
|
};
|
1519
1519
|
}
|
1520
1520
|
function calcTextareaHeight(targetElement) {
|
1521
|
-
var _hiddenTextarea$paren;
|
1521
|
+
var _targetElement$value, _hiddenTextarea$paren;
|
1522
1522
|
var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
1523
1523
|
var maxRows = arguments.length > 2 ? arguments[2] : undefined;
|
1524
1524
|
if (!hiddenTextarea) {
|
@@ -1531,7 +1531,7 @@ function calcTextareaHeight(targetElement) {
|
|
1531
1531
|
boxSizing = _calculateNodeStyling.boxSizing,
|
1532
1532
|
contextStyle = _calculateNodeStyling.contextStyle;
|
1533
1533
|
hiddenTextarea.setAttribute('style', "".concat(contextStyle, ";").concat(HIDDEN_STYLE));
|
1534
|
-
hiddenTextarea.value =
|
1534
|
+
hiddenTextarea.value = (_targetElement$value = targetElement.value) !== null && _targetElement$value !== void 0 ? _targetElement$value : '';
|
1535
1535
|
var height = hiddenTextarea.scrollHeight;
|
1536
1536
|
var result = {};
|
1537
1537
|
if (boxSizing === 'border-box') {
|
package/lib/input/input.css
CHANGED
@@ -84,6 +84,7 @@
|
|
84
84
|
box-sizing: border-box;
|
85
85
|
transition: all 0.3s;
|
86
86
|
flex-direction: column;
|
87
|
+
position: relative;
|
87
88
|
}
|
88
89
|
.bk-textarea ::placeholder {
|
89
90
|
font-size: 12px;
|
@@ -178,6 +179,11 @@
|
|
178
179
|
.bk-textarea:hover:not(.is-disabled) .show-clear-only-hover {
|
179
180
|
display: flex;
|
180
181
|
}
|
182
|
+
.bk-textarea--clear-icon {
|
183
|
+
position: absolute;
|
184
|
+
top: 5px;
|
185
|
+
right: 10px;
|
186
|
+
}
|
181
187
|
.bk-input {
|
182
188
|
display: inline-flex;
|
183
189
|
align-items: stretch;
|
package/lib/input/input.less
CHANGED
@@ -59,6 +59,7 @@
|
|
59
59
|
box-sizing: border-box;
|
60
60
|
transition: all .3s;
|
61
61
|
flex-direction: column;
|
62
|
+
position: relative;
|
62
63
|
.placeholder();
|
63
64
|
|
64
65
|
&.resizable {
|
@@ -138,6 +139,12 @@
|
|
138
139
|
display: flex;
|
139
140
|
}
|
140
141
|
}
|
142
|
+
|
143
|
+
&--clear-icon {
|
144
|
+
position: absolute;
|
145
|
+
top: 5px;
|
146
|
+
right: 10px;
|
147
|
+
}
|
141
148
|
}
|
142
149
|
|
143
150
|
.@{bk-prefix}-input {
|
@@ -215,6 +215,7 @@
|
|
215
215
|
box-sizing: border-box;
|
216
216
|
transition: all 0.3s;
|
217
217
|
flex-direction: column;
|
218
|
+
position: relative;
|
218
219
|
}
|
219
220
|
.bk-textarea ::placeholder {
|
220
221
|
font-size: 12px;
|
@@ -309,6 +310,11 @@
|
|
309
310
|
.bk-textarea:hover:not(.is-disabled) .show-clear-only-hover {
|
310
311
|
display: flex;
|
311
312
|
}
|
313
|
+
.bk-textarea--clear-icon {
|
314
|
+
position: absolute;
|
315
|
+
top: 5px;
|
316
|
+
right: 10px;
|
317
|
+
}
|
312
318
|
.bk-input {
|
313
319
|
display: inline-flex;
|
314
320
|
align-items: stretch;
|
@@ -3326,7 +3326,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3326
3326
|
function _setMenuList() {
|
3327
3327
|
_setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
|
3328
3328
|
var _props$data, _usingItem$value$sear, _usingItem$value$valu;
|
3329
|
-
var list, _usingItem$value14,
|
3329
|
+
var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
3330
3330
|
return regenerator_default().wrap(function _callee5$(_context5) {
|
3331
3331
|
while (1) switch (_context5.prev = _context5.next) {
|
3332
3332
|
case 0:
|
@@ -3337,7 +3337,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3337
3337
|
}
|
3338
3338
|
loading.value = true;
|
3339
3339
|
_context5.next = 5;
|
3340
|
-
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim()
|
3340
|
+
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim())["catch"](function () {
|
3341
3341
|
return [];
|
3342
3342
|
});
|
3343
3343
|
case 5:
|
@@ -3433,6 +3433,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3433
3433
|
}
|
3434
3434
|
case 10:
|
3435
3435
|
menuList.value = list;
|
3436
|
+
console.log('list', list);
|
3436
3437
|
if (props.valueBehavior === ValueBehavior.NEED_KEY) {
|
3437
3438
|
hoverItem = list.find(function (item) {
|
3438
3439
|
return !item.disabled;
|
@@ -3443,7 +3444,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3443
3444
|
menuHoverId.value = hoverItem.id;
|
3444
3445
|
}
|
3445
3446
|
}
|
3446
|
-
case
|
3447
|
+
case 13:
|
3447
3448
|
case "end":
|
3448
3449
|
return _context5.stop();
|
3449
3450
|
}
|