Compare commits
4 Commits
3f5a288b97
...
7e881d3247
Author | SHA1 | Date | |
---|---|---|---|
7e881d3247 | |||
33ed9a6237 | |||
2658e52bf9 | |||
703a4aeeaf |
@ -103,10 +103,13 @@ const _sfc_main = defineComponent({
|
|||||||
const isPassword = computed(() => type.value == "password");
|
const isPassword = computed(() => type.value == "password");
|
||||||
const composing = ref(false);
|
const composing = ref(false);
|
||||||
const formatMoney = function(s) {
|
const formatMoney = function(s) {
|
||||||
|
if (s == "") {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
var noNegative = true;
|
var noNegative = true;
|
||||||
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";
|
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";
|
||||||
if (parseFloat(s) < 0) {
|
if (parseFloat(s) < 0) {
|
||||||
s = Math.abs(s) + "";
|
s = Math.abs(parseFloat(s)) + "";
|
||||||
noNegative = false;
|
noNegative = false;
|
||||||
}
|
}
|
||||||
var l = s.split(".")[0].split("").reverse(), r = s.split(".")[1];
|
var l = s.split(".")[0].split("").reverse(), r = s.split(".")[1];
|
||||||
|
@ -1000,6 +1000,8 @@ const _sfc_main = defineComponent({
|
|||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
getScrollWidth();
|
getScrollWidth();
|
||||||
});
|
});
|
||||||
|
}, {
|
||||||
|
deep: true
|
||||||
});
|
});
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
var _a, _b;
|
var _a, _b;
|
||||||
|
@ -11227,10 +11227,13 @@ const _sfc_main$1v = defineComponent({
|
|||||||
const isPassword = computed$1(() => type4.value == "password");
|
const isPassword = computed$1(() => type4.value == "password");
|
||||||
const composing = ref(false);
|
const composing = ref(false);
|
||||||
const formatMoney = function(s) {
|
const formatMoney = function(s) {
|
||||||
|
if (s == "") {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
var noNegative = true;
|
var noNegative = true;
|
||||||
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";
|
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";
|
||||||
if (parseFloat(s) < 0) {
|
if (parseFloat(s) < 0) {
|
||||||
s = Math.abs(s) + "";
|
s = Math.abs(parseFloat(s)) + "";
|
||||||
noNegative = false;
|
noNegative = false;
|
||||||
}
|
}
|
||||||
var l = s.split(".")[0].split("").reverse(), r = s.split(".")[1];
|
var l = s.split(".")[0].split("").reverse(), r = s.split(".")[1];
|
||||||
@ -19415,6 +19418,8 @@ const _sfc_main$D = defineComponent({
|
|||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
getScrollWidth();
|
getScrollWidth();
|
||||||
});
|
});
|
||||||
|
}, {
|
||||||
|
deep: true
|
||||||
});
|
});
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
var _a2, _b;
|
var _a2, _b;
|
||||||
|
@ -64,10 +64,13 @@ const isPassword = computed(() => type.value == "password");
|
|||||||
const composing = ref(false);
|
const composing = ref(false);
|
||||||
|
|
||||||
const formatMoney = function (s: string) {
|
const formatMoney = function (s: string) {
|
||||||
|
if (s == "") {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
var noNegative = true;
|
var noNegative = true;
|
||||||
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";
|
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";
|
||||||
if (parseFloat(s) < 0) {
|
if (parseFloat(s) < 0) {
|
||||||
s = Math.abs(s) + "";
|
s = Math.abs(parseFloat(s)) + "";
|
||||||
noNegative = false;
|
noNegative = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -434,6 +434,7 @@ const getScrollWidth = () => {
|
|||||||
} else {
|
} else {
|
||||||
scrollWidthCell.value = 0;
|
scrollWidthCell.value = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
tableBodyEmptyWidth.value = tableHeaderTable.value?.offsetWidth + "px";
|
tableBodyEmptyWidth.value = tableHeaderTable.value?.offsetWidth + "px";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -453,6 +454,9 @@ watch(
|
|||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
getScrollWidth();
|
getScrollWidth();
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
{
|
||||||
|
deep: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user