qfw
This commit is contained in:
parent
45a0415848
commit
f3c181ba88
@ -130,7 +130,7 @@ const _sfc_main = defineComponent({
|
||||
const input = ref();
|
||||
watch(() => props.modelValue, () => {
|
||||
console.log(input);
|
||||
if (!input.hasFocus() && props.qfw) {
|
||||
if (!input.value.hasFocus() && props.qfw) {
|
||||
currentValue.value = formatMoney(props.modelValue.toString());
|
||||
return;
|
||||
}
|
||||
@ -246,7 +246,9 @@ const _sfc_main = defineComponent({
|
||||
onFocus,
|
||||
onBlur,
|
||||
onCompositionstart,
|
||||
onCompositionend
|
||||
onCompositionend,
|
||||
ref_key: "input",
|
||||
ref: input
|
||||
}, null, 40, _hoisted_5),
|
||||
__props.password && unref(hasContent) ? (openBlock(), createElementBlock("span", {
|
||||
key: 1,
|
||||
|
@ -11226,7 +11226,7 @@ const _sfc_main$1v = defineComponent({
|
||||
const input = ref();
|
||||
watch(() => props.modelValue, () => {
|
||||
console.log(input);
|
||||
if (!input.hasFocus() && props.qfw) {
|
||||
if (!input.value.hasFocus() && props.qfw) {
|
||||
currentValue.value = formatMoney(props.modelValue.toString());
|
||||
return;
|
||||
}
|
||||
@ -11342,7 +11342,9 @@ const _sfc_main$1v = defineComponent({
|
||||
onFocus,
|
||||
onBlur,
|
||||
onCompositionstart,
|
||||
onCompositionend
|
||||
onCompositionend,
|
||||
ref_key: "input",
|
||||
ref: input
|
||||
}, null, 40, _hoisted_5$p),
|
||||
__props.password && unref(hasContent) ? (openBlock(), createElementBlock("span", {
|
||||
key: 1,
|
||||
|
@ -101,7 +101,7 @@ watch(
|
||||
() => props.modelValue,
|
||||
() => {
|
||||
console.log(input)
|
||||
if(!input.hasFocus() && props.qfw){
|
||||
if(!input.value.hasFocus() && props.qfw){
|
||||
currentValue.value = formatMoney(props.modelValue.toString());
|
||||
return
|
||||
}
|
||||
@ -213,7 +213,7 @@ const showPassword = () => {
|
||||
<input :type="type" :name="name" :disabled="disabled" :placeholder="placeholder" :autofocus="autofocus"
|
||||
:autocomplete="autocomplete" :maxlength="maxlength" :max="max" :min="min" :readonly="readonly"
|
||||
:value="currentValue" @input="onInput" @change="onChange" @focus="onFocus" @blur="onBlur"
|
||||
@compositionstart="onCompositionstart" @compositionend="onCompositionend" />
|
||||
@compositionstart="onCompositionstart" @compositionend="onCompositionend" ref="input" />
|
||||
<span class="layui-input-password" @click="showPassword" v-if="password && hasContent">
|
||||
<password-icon v-if="isPassword"></password-icon>
|
||||
<un-password-icon v-else></un-password-icon>
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user