mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-21 00:36:46 +08:00
名字重复提示
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
:maxlength="maxlength"
|
||||
:validate="validate"
|
||||
@blur="validateProName"
|
||||
@change="validateProName"
|
||||
@change="validateFalse"
|
||||
/>
|
||||
<div style="color: red; font-size: 10px" v-if="value && !validate">
|
||||
名称重复,请重新输入
|
||||
@@ -64,7 +64,9 @@ watch(
|
||||
watch(modelV, () => {
|
||||
emit("update:value", modelV.value);
|
||||
});
|
||||
|
||||
function validateFalse() {
|
||||
emit("update:validate", true);
|
||||
}
|
||||
function validateProName() {
|
||||
emit("update:finished", false);
|
||||
props.value &&
|
||||
|
||||
Reference in New Issue
Block a user