mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-28 01:53:53 +08:00
调整 input onfocus 判断
This commit is contained in:
@@ -190,10 +190,19 @@
|
|||||||
:placeholder="$t('modelConfigDialog.enterJsonExample')"
|
:placeholder="$t('modelConfigDialog.enterJsonExample')"
|
||||||
class="custom-input-bg"
|
class="custom-input-bg"
|
||||||
@change="(val) => handleJsonChange(field.prop, val)"
|
@change="(val) => handleJsonChange(field.prop, val)"
|
||||||
@focus="handleJsonInputFocus(field.prop, fieldJsonMap[field.prop])"
|
@focus="
|
||||||
@blur="handleJsonInputBlur(field.prop)"
|
isSensitiveField(field.prop)
|
||||||
|
? handleJsonInputFocus(field.prop, fieldJsonMap[field.prop])
|
||||||
|
: undefined
|
||||||
|
"
|
||||||
|
@blur="
|
||||||
|
isSensitiveField(field.prop)
|
||||||
|
? handleJsonInputBlur(field.prop)
|
||||||
|
: undefined
|
||||||
|
"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<el-input
|
<el-input
|
||||||
v-else
|
v-else
|
||||||
v-model="form.configJson[field.prop]"
|
v-model="form.configJson[field.prop]"
|
||||||
@@ -201,8 +210,14 @@
|
|||||||
:type="field.type"
|
:type="field.type"
|
||||||
class="custom-input-bg"
|
class="custom-input-bg"
|
||||||
:show-password="field.type === 'password'"
|
:show-password="field.type === 'password'"
|
||||||
@focus="handleInputFocus(field.prop, form.configJson[field.prop])"
|
@focus="
|
||||||
@blur="handleInputBlur(field.prop)"
|
isSensitiveField(field.prop)
|
||||||
|
? handleInputFocus(field.prop, form.configJson[field.prop])
|
||||||
|
: undefined
|
||||||
|
"
|
||||||
|
@blur="
|
||||||
|
isSensitiveField(field.prop) ? handleInputBlur(field.prop) : undefined
|
||||||
|
"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user