bkui-vue 2.0.2-beta.54 → 2.0.2-beta.55
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 +8 -7
- package/dist/index.umd.js +2 -2
- package/lib/index.js +1 -1
- package/lib/input/index.js +10 -2
- 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 (e.stopPropagation && B.stopPropagation(), M.value && !e.overMaxLengthLimit) {
|
7963
|
+
if (console.error("eventNameeventName", oe), 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,22 +7970,23 @@ const dC = {
|
|
7970
7970
|
return;
|
7971
7971
|
}
|
7972
7972
|
}
|
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))) {
|
7973
|
+
if (oe === je.KEYDOWN && (B.code === "Enter" || B.key === "Enter" || B.keyCode === 13) && (console.error("KEYDOWN Enter", Z(B.target.value, 0), B.target.value), 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
|
-
t.emit(je.UPDATE, C.value ? (
|
7975
|
+
console.error("INPUT", B.target.value), 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) ?
|
7980
|
+
return Number.isNaN(G) ? ie(e.min) ? e.min : 0 : (console.error("valvalvalval", G), (+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);
|
7984
7985
|
const X = Z(B.target.value, 0);
|
7985
7986
|
t.emit(je.UPDATE, X, B), t.emit(oe, X, B);
|
7986
7987
|
return;
|
7987
7988
|
}
|
7988
|
-
t.emit(oe, C.value ? Z(B.target.value, 0) : B.target.value, B);
|
7989
|
+
console.error("e.target.value", B.target.value), t.emit(oe, C.value ? Z(B.target.value, 0) : B.target.value, B);
|
7989
7990
|
}
|
7990
7991
|
};
|
7991
7992
|
}
|
@@ -8004,7 +8005,7 @@ const dC = {
|
|
8004
8005
|
if (Number.isNaN(me))
|
8005
8006
|
return ie(e.min) ? e.min : 0;
|
8006
8007
|
let ne = me + (X ? K : -1 * K);
|
8007
|
-
return ie(e.max) && (ne = Math.min(ne, e.max)), ie(e.min) && (ne = Math.max(ne, e.min)), +ne.toFixed(le);
|
8008
|
+
return console.error("newVal", ne), ie(e.max) && (ne = Math.min(ne, e.max)), ie(e.min) && (ne = Math.max(ne, e.min)), +ne.toFixed(le);
|
8008
8009
|
}
|
8009
8010
|
function Q(oe) {
|
8010
8011
|
if (e.disabled) return;
|
@@ -35504,7 +35505,7 @@ const Ok = (e, t) => {
|
|
35504
35505
|
}, Fk = {
|
35505
35506
|
createInstall: Gm,
|
35506
35507
|
install: Gm()
|
35507
|
-
}, Lk = "2.0.2-beta.
|
35508
|
+
}, Lk = "2.0.2-beta.55";
|
35508
35509
|
window.__bkui_vue_version__ = Lk;
|
35509
35510
|
export {
|
35510
35511
|
mp as $bkPopover,
|