qfw
This commit is contained in:
parent
db74c76a3a
commit
8e4f8dd45f
@ -141,8 +141,9 @@ const _sfc_main = defineComponent({
|
||||
}
|
||||
if (props.qfw) {
|
||||
try {
|
||||
console.log("\u6DFB\u52A0\uFF0C", new Number(props.modelValue).toLocaleString());
|
||||
currentValue.value = new Number(props.modelValue).toLocaleString();
|
||||
let reg = /\d{1,3}(?=(\d{3})+$)/g;
|
||||
console.log("\u6DFB\u52A0\uFF0C", new String(props.modelValue).replace(reg, "$&,"));
|
||||
currentValue.value = new String(props.modelValue).replace(reg, "$&,");
|
||||
} catch {
|
||||
currentValue.value = "\u8F93\u5165\u9519\u8BEF";
|
||||
}
|
||||
|
@ -11237,8 +11237,9 @@ const _sfc_main$1v = defineComponent({
|
||||
}
|
||||
if (props.qfw) {
|
||||
try {
|
||||
console.log("\u6DFB\u52A0\uFF0C", new Number(props.modelValue).toLocaleString());
|
||||
currentValue.value = new Number(props.modelValue).toLocaleString();
|
||||
let reg = /\d{1,3}(?=(\d{3})+$)/g;
|
||||
console.log("\u6DFB\u52A0\uFF0C", new String(props.modelValue).replace(reg, "$&,"));
|
||||
currentValue.value = new String(props.modelValue).replace(reg, "$&,");
|
||||
} catch {
|
||||
currentValue.value = "\u8F93\u5165\u9519\u8BEF";
|
||||
}
|
||||
|
@ -115,8 +115,10 @@ const onBlur = (event: Event) => {
|
||||
}
|
||||
if(props.qfw){
|
||||
try{
|
||||
console.log("添加,", new Number(props.modelValue).toLocaleString())
|
||||
currentValue.value = new Number(props.modelValue).toLocaleString()
|
||||
let reg = /\d{1,3}(?=(\d{3})+$)/g;
|
||||
// new String(props.modelValue).replace(reg, '$&,');
|
||||
console.log("添加,", new String(props.modelValue).replace(reg, '$&,'))
|
||||
currentValue.value = new String(props.modelValue).replace(reg, '$&,');
|
||||
}catch{
|
||||
currentValue.value = "输入错误"
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user