空就是空

This commit is contained in:
Theluyuan 2023-01-11 15:58:59 +08:00
parent 3f5a288b97
commit 703a4aeeaf
4 changed files with 10 additions and 1 deletions

View File

@ -103,6 +103,9 @@ const _sfc_main = defineComponent({
const isPassword = computed(() => type.value == "password");
const composing = ref(false);
const formatMoney = function(s) {
if (s == "") {
return "";
}
var noNegative = true;
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";
if (parseFloat(s) < 0) {

View File

@ -11227,6 +11227,9 @@ const _sfc_main$1v = defineComponent({
const isPassword = computed$1(() => type4.value == "password");
const composing = ref(false);
const formatMoney = function(s) {
if (s == "") {
return "";
}
var noNegative = true;
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";
if (parseFloat(s) < 0) {

View File

@ -64,6 +64,9 @@ const isPassword = computed(() => type.value == "password");
const composing = ref(false);
const formatMoney = function (s: string) {
if(s == ""){
return ""
}
var noNegative = true;
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";
if (parseFloat(s) < 0) {

File diff suppressed because one or more lines are too long