bkui-vue 2.0.2-beta.36 → 2.0.2-beta.38
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 +16 -16
- package/dist/index.esm.js +1483 -1483
- package/dist/index.umd.js +5 -5
- package/lib/form/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/search-select/index.js +6 -3
- package/package.json +1 -1
package/lib/form/index.js
CHANGED
@@ -2221,7 +2221,7 @@ var isValid = function isValid(value) {
|
|
2221
2221
|
});
|
2222
2222
|
}
|
2223
2223
|
// 同步验证失败
|
2224
|
-
if (result
|
2224
|
+
if (Boolean(result) === false || typeof result === 'string') {
|
2225
2225
|
var errorMessage = typeof result === 'string' ? result : getRuleMessage(rule);
|
2226
2226
|
if (showError) {
|
2227
2227
|
state.isError = true;
|
package/lib/index.js
CHANGED
@@ -2957,6 +2957,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
2957
2957
|
debounceSetMenuList();
|
2958
2958
|
}
|
2959
2959
|
function handleInputChange(event) {
|
2960
|
+
console.log('handleInputChange', event, isComposition.value);
|
2960
2961
|
if (isComposition.value) return;
|
2961
2962
|
clearInputBr();
|
2962
2963
|
var text = event.target.innerText;
|
@@ -3337,7 +3338,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3337
3338
|
}
|
3338
3339
|
loading.value = true;
|
3339
3340
|
_context5.next = 5;
|
3340
|
-
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value)["catch"](function () {
|
3341
|
+
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim())["catch"](function () {
|
3341
3342
|
return [];
|
3342
3343
|
});
|
3343
3344
|
case 5:
|
@@ -3394,7 +3395,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3394
3395
|
try {
|
3395
3396
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
3396
3397
|
_child = _step3.value;
|
3397
|
-
if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
|
3398
|
+
if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim())) {
|
3398
3399
|
_filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
|
3399
3400
|
realId: item.id,
|
3400
3401
|
id: (0,shared_namespaceObject.random)(10),
|
@@ -3428,7 +3429,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3428
3429
|
list = props.conditions;
|
3429
3430
|
} else if (!((_usingItem$value$valu = usingItem.value.values) !== null && _usingItem$value$valu !== void 0 && _usingItem$value$valu.length) || usingItem.value.multiple || props.mode === SearchInputMode.EDIT) {
|
3430
3431
|
list = usingItem.value.children.filter(function (item) {
|
3431
|
-
return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
|
3432
|
+
return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim());
|
3432
3433
|
});
|
3433
3434
|
}
|
3434
3435
|
case 10:
|
@@ -3673,10 +3674,12 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
3673
3674
|
function handleCompositionEnd(event) {
|
3674
3675
|
isComposition.value = false;
|
3675
3676
|
keyword.value = event.data;
|
3677
|
+
console.log('handleCompositionEnd', keyword.value);
|
3676
3678
|
handleInputChange(event);
|
3677
3679
|
}
|
3678
3680
|
function handleCompositionStart() {
|
3679
3681
|
isComposition.value = true;
|
3682
|
+
console.log('handleCompositionStart');
|
3680
3683
|
}
|
3681
3684
|
// expose
|
3682
3685
|
expose({
|