🐛(form): textarea 与 select 组件验证失败后边框无变化的问题
This commit is contained in:
parent
6a3fa5116e
commit
437cb2d388
@ -100,7 +100,7 @@
|
|||||||
.layui-input-block,
|
.layui-input-block,
|
||||||
.layui-input-inline {
|
.layui-input-inline {
|
||||||
.layui-form-danger {
|
.layui-form-danger {
|
||||||
&, .layui-input {
|
&, .layui-textarea, .layui-tag-input {
|
||||||
border-color: #ff5722 !important;
|
border-color: #ff5722 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ const inputChange = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const isNumber = function (num: any) {
|
const isNumber = function (num: any) {
|
||||||
return !isNaN(num)
|
return !isNaN(num);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ export default {
|
|||||||
<lay-input v-model="validateModel.password" type="password">></lay-input>
|
<lay-input v-model="validateModel.password" type="password">></lay-input>
|
||||||
</lay-form-item>
|
</lay-form-item>
|
||||||
<lay-form-item label="爱好" prop="hobby">
|
<lay-form-item label="爱好" prop="hobby">
|
||||||
<lay-select v-model="validateModel.hobby" multiple>
|
<lay-select v-model="validateModel.hobbys" multiple>
|
||||||
<lay-select-option value="1" label="学习"></lay-select-option>
|
<lay-select-option value="1" label="学习"></lay-select-option>
|
||||||
<lay-select-option value="2" label="编码"></lay-select-option>
|
<lay-select-option value="2" label="编码"></lay-select-option>
|
||||||
<lay-select-option value="3" label="运动"></lay-select-option>
|
<lay-select-option value="3" label="运动"></lay-select-option>
|
||||||
@ -191,7 +191,8 @@ export default {
|
|||||||
const validateModel = reactive({
|
const validateModel = reactive({
|
||||||
username: "",
|
username: "",
|
||||||
password: "",
|
password: "",
|
||||||
specialty: "1"
|
specialty: "1",
|
||||||
|
hobbys: []
|
||||||
})
|
})
|
||||||
|
|
||||||
const layFormRef = ref(null);
|
const layFormRef = ref(null);
|
||||||
|
@ -30,6 +30,10 @@
|
|||||||
<li>[修复] button 组件 disabled 属性无效。</li>
|
<li>[修复] button 组件 disabled 属性无效。</li>
|
||||||
<li>[修复] button-group 组件, 个别类型无法正常显示分割线。</li>
|
<li>[修复] button-group 组件, 个别类型无法正常显示分割线。</li>
|
||||||
<li>[修复] select 组件禁用后 仍能清空的问题。</li>
|
<li>[修复] select 组件禁用后 仍能清空的问题。</li>
|
||||||
|
<li>[修复] input-number 组件无法手动输入负数的问题。</li>
|
||||||
|
<li>[修复] input-number 组件清空内容,输入框失去焦点后数字复显的问题。</li>
|
||||||
|
<li>[修复] input-number 组件设置步长点击增加,直接拼接字符串的问题。</li>
|
||||||
|
<li>[修复] textarea 和 select 验证失败后边框颜色没有变成红色。</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user