bkui-vue 2.0.2-beta.55 → 2.0.2-beta.56
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 +2 -2
- package/dist/index.esm.js +7 -8
- package/dist/index.umd.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input/index.js +6 -8
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -7960,7 +7960,7 @@ const dC = {
|
|
7960
7960
|
}
|
7961
7961
|
function k(oe) {
|
7962
7962
|
return (B) => {
|
7963
|
-
if (
|
7963
|
+
if (e.stopPropagation && B.stopPropagation(), M.value && !e.overMaxLengthLimit) {
|
7964
7964
|
const X = N(B.target.value);
|
7965
7965
|
if (X.len >= T.value && (oe === je.KEYDOWN || oe === je.INPUT) && !i.value) {
|
7966
7966
|
const G = X.pos > 0 ? B.target.value.slice(0, X.pos) : B.target.value;
|
@@ -7970,23 +7970,22 @@ const dC = {
|
|
7970
7970
|
return;
|
7971
7971
|
}
|
7972
7972
|
}
|
7973
|
-
if (oe === je.KEYDOWN && (B.code === "Enter" || B.key === "Enter" || B.keyCode === 13) &&
|
7973
|
+
if (oe === je.KEYDOWN && (B.code === "Enter" || B.key === "Enter" || B.keyCode === 13) && t.emit(je.ENTER, C.value ? Z(B.target.value, 0) : B.target.value, B), !(i.value && [je.INPUT, je.CHANGE, je.KEYDOWN].some((X) => oe === X))) {
|
7974
7974
|
if (oe === je.INPUT)
|
7975
|
-
|
7975
|
+
t.emit(je.UPDATE, C.value ? (
|
7976
7976
|
// 这里不直接使用 handleNumber,是因为 handleNumber 里有 min 和 max 的判断
|
7977
7977
|
// https://github.com/TencentBlueKing/bkui-vue3/issues/2426
|
7978
7978
|
(() => {
|
7979
7979
|
const X = Number.isInteger(e.precision) ? e.precision : 0, G = B.target.value;
|
7980
|
-
return Number.isNaN(G) ? ie(e.min) ? e.min : 0 : (
|
7980
|
+
return G === "" || G === null || G === void 0 || Number.isNaN(G) ? ie(e.min) ? e.min : 0 : (+G).toFixed(X);
|
7981
7981
|
})()
|
7982
7982
|
) : B.target.value, B);
|
7983
7983
|
else if (oe === je.CHANGE && C.value && B.target.value !== "") {
|
7984
|
-
console.error("CHANGE", Z(B.target.value, 0), B.target.value);
|
7985
7984
|
const X = Z(B.target.value, 0);
|
7986
7985
|
t.emit(je.UPDATE, X, B), t.emit(oe, X, B);
|
7987
7986
|
return;
|
7988
7987
|
}
|
7989
|
-
|
7988
|
+
t.emit(oe, C.value ? Z(B.target.value, 0) : B.target.value, B);
|
7990
7989
|
}
|
7991
7990
|
};
|
7992
7991
|
}
|
@@ -8005,7 +8004,7 @@ const dC = {
|
|
8005
8004
|
if (Number.isNaN(me))
|
8006
8005
|
return ie(e.min) ? e.min : 0;
|
8007
8006
|
let ne = me + (X ? K : -1 * K);
|
8008
|
-
return
|
8007
|
+
return ie(e.max) && (ne = Math.min(ne, e.max)), ie(e.min) && (ne = Math.max(ne, e.min)), +ne.toFixed(le);
|
8009
8008
|
}
|
8010
8009
|
function Q(oe) {
|
8011
8010
|
if (e.disabled) return;
|
@@ -35505,7 +35504,7 @@ const Ok = (e, t) => {
|
|
35505
35504
|
}, Fk = {
|
35506
35505
|
createInstall: Gm,
|
35507
35506
|
install: Gm()
|
35508
|
-
}, Lk = "2.0.2-beta.
|
35507
|
+
}, Lk = "2.0.2-beta.56";
|
35509
35508
|
window.__bkui_vue_version__ = Lk;
|
35510
35509
|
export {
|
35511
35510
|
mp as $bkPopover,
|