From d1af859f5d564198d154ad0954b05405572ad0b9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 31 十二月 2020 15:58:57 +0800 Subject: [PATCH] 2020-12-31 --- src/templates/zshare/modalform/index.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/templates/zshare/modalform/index.jsx b/src/templates/zshare/modalform/index.jsx index 40d2475..31e444f 100644 --- a/src/templates/zshare/modalform/index.jsx +++ b/src/templates/zshare/modalform/index.jsx @@ -691,8 +691,9 @@ } } else if (values.type === 'funcvar') { // 鍑芥暟鍙橀噺涓哄彧璇诲厓绱� values.readonly = 'true' - } else if (values.type === 'number' && (values.min || values.min === 0) && (values.max || values.max === 0)) { // 鏁板�煎瀷楠岃瘉鏈�灏忔渶澶у�� - if (values.min > values.max) { + } else if (values.type === 'number') { // 鏁板�煎瀷楠岃瘉鏈�灏忔渶澶у�� + values.required = 'true' + if ((values.min || values.min === 0) && (values.max || values.max === 0) && values.min > values.max) { notification.warning({ top: 92, message: '鏈�灏忓�间笉鍙ぇ浜庢渶澶у�硷紒', -- Gitblit v1.8.0