diff --git a/package/component/src/component/form/index.less b/package/component/src/component/form/index.less index cb60eb08..16d1a00a 100644 --- a/package/component/src/component/form/index.less +++ b/package/component/src/component/form/index.less @@ -100,7 +100,7 @@ .layui-input-block, .layui-input-inline { .layui-form-danger { - &, .layui-input { + &, .layui-textarea, .layui-tag-input { border-color: #ff5722 !important; } } diff --git a/package/component/src/component/inputNumber/index.vue b/package/component/src/component/inputNumber/index.vue index 0d790bff..ebd76955 100644 --- a/package/component/src/component/inputNumber/index.vue +++ b/package/component/src/component/inputNumber/index.vue @@ -113,7 +113,7 @@ const inputChange = function () { }; const isNumber = function (num: any) { - return !isNaN(num) + return !isNaN(num); }; diff --git a/package/document-component/src/document/zh-CN/components/form.md b/package/document-component/src/document/zh-CN/components/form.md index a84de027..aeaa8dd3 100644 --- a/package/document-component/src/document/zh-CN/components/form.md +++ b/package/document-component/src/document/zh-CN/components/form.md @@ -159,7 +159,7 @@ export default { > - + @@ -191,7 +191,8 @@ export default { const validateModel = reactive({ username: "", password: "", - specialty: "1" + specialty: "1", + hobbys: [] }) const layFormRef = ref(null); diff --git a/package/document-component/src/document/zh-CN/guide/changelog.md b/package/document-component/src/document/zh-CN/guide/changelog.md index c42481e4..360b0e34 100644 --- a/package/document-component/src/document/zh-CN/guide/changelog.md +++ b/package/document-component/src/document/zh-CN/guide/changelog.md @@ -30,6 +30,10 @@
  • [修复] button 组件 disabled 属性无效。
  • [修复] button-group 组件, 个别类型无法正常显示分割线。
  • [修复] select 组件禁用后 仍能清空的问题。
  • +
  • [修复] input-number 组件无法手动输入负数的问题。
  • +
  • [修复] input-number 组件清空内容,输入框失去焦点后数字复显的问题。
  • +
  • [修复] input-number 组件设置步长点击增加,直接拼接字符串的问题。
  • +
  • [修复] textarea 和 select 验证失败后边框颜色没有变成红色。