Compare commits

..

4 Commits

Author SHA1 Message Date
7e881d3247 自动格式化 2023-01-16 10:12:40 +08:00
33ed9a6237 fix head滚动条宽度 2023-01-16 10:12:10 +08:00
2658e52bf9 2023-01-11 16:01:44 +08:00
703a4aeeaf 空就是空 2023-01-11 15:58:59 +08:00
6 changed files with 22 additions and 5 deletions

View File

@ -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];

View File

@ -1000,6 +1000,8 @@ const _sfc_main = defineComponent({
nextTick(() => { nextTick(() => {
getScrollWidth(); getScrollWidth();
}); });
}, {
deep: true
}); });
onMounted(() => { onMounted(() => {
var _a, _b; var _a, _b;

View File

@ -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;

View File

@ -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;
} }

View File

@ -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