bkui-vue 2.0.1-beta.98 → 2.0.1-beta.99
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 +1 -1
- package/dist/index.esm.js +103 -103
- package/dist/index.umd.js +1 -1
- package/lib/index.js +1 -1
- package/lib/search-select/index.js +9 -8
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -1921,7 +1921,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1921
1921
|
return _context2.abrupt("return");
|
1922
1922
|
case 18:
|
1923
1923
|
if (!(!usingItem.value || ((_usingItem$value9 = usingItem.value) === null || _usingItem$value9 === void 0 ? void 0 : _usingItem$value9.type) === 'condition')) {
|
1924
|
-
_context2.next =
|
1924
|
+
_context2.next = 28;
|
1925
1925
|
break;
|
1926
1926
|
}
|
1927
1927
|
usingItem.value = new SelectedItem(item, type !== null && type !== void 0 ? type : (_usingItem$value10 = usingItem.value) === null || _usingItem$value10 === void 0 ? void 0 : _usingItem$value10.type);
|
@@ -1938,29 +1938,30 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1938
1938
|
setSelectedItem();
|
1939
1939
|
}
|
1940
1940
|
showPopover.value = isCondition || !!usingItem.value.children.length;
|
1941
|
-
setInputFocus(
|
1941
|
+
setInputFocus(props.valueBehavior === ValueBehavior.NEED_KEY && !!menuHoverId.value);
|
1942
|
+
typeof props.getMenuList === 'function' && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
|
1942
1943
|
return _context2.abrupt("return");
|
1943
|
-
case
|
1944
|
+
case 28:
|
1944
1945
|
if (usingItem.value) {
|
1945
1946
|
usingItem.value.addValue(item);
|
1946
1947
|
(0,external_vue_namespaceObject.nextTick)(deleteInputTextNode);
|
1947
1948
|
}
|
1948
|
-
_context2.next =
|
1949
|
+
_context2.next = 31;
|
1949
1950
|
return validateUsingItemValues(usingItem.value.values);
|
1950
|
-
case
|
1951
|
+
case 31:
|
1951
1952
|
if (_context2.sent) {
|
1952
|
-
_context2.next =
|
1953
|
+
_context2.next = 33;
|
1953
1954
|
break;
|
1954
1955
|
}
|
1955
1956
|
return _context2.abrupt("return");
|
1956
|
-
case
|
1957
|
+
case 33:
|
1957
1958
|
if (!usingItem.value.multiple) {
|
1958
1959
|
setSelectedItem();
|
1959
1960
|
}
|
1960
1961
|
if (props.valueBehavior === ValueBehavior.NEED_KEY && (_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.multiple) {
|
1961
1962
|
setInputFocus();
|
1962
1963
|
}
|
1963
|
-
case
|
1964
|
+
case 35:
|
1964
1965
|
case "end":
|
1965
1966
|
return _context2.stop();
|
1966
1967
|
}
|