From f7a481d960e5b62661c466cad2bb01b6e827188f Mon Sep 17 00:00:00 2001 From: likunming Date: Wed, 6 Mar 2024 11:46:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E4=BC=98=E5=8C=96=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- io.sc.platform.core.frontend/package.json | 2 +- .../src/platform/components/form/WForm.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/io.sc.platform.core.frontend/package.json b/io.sc.platform.core.frontend/package.json index 439d4e0e..367ff85b 100644 --- a/io.sc.platform.core.frontend/package.json +++ b/io.sc.platform.core.frontend/package.json @@ -1,6 +1,6 @@ { "name": "platform-core", - "version": "8.1.134", + "version": "8.1.135", "description": "前端核心包,用于快速构建前端的脚手架", "//main": "库的主文件", "main": "dist/platform-core.js", diff --git a/io.sc.platform.core.frontend/src/platform/components/form/WForm.vue b/io.sc.platform.core.frontend/src/platform/components/form/WForm.vue index c13a7764..24b49758 100644 --- a/io.sc.platform.core.frontend/src/platform/components/form/WForm.vue +++ b/io.sc.platform.core.frontend/src/platform/components/form/WForm.vue @@ -97,12 +97,14 @@ const defaultValueHandler = (field) => { return field.defaultValue; } else if (field.type === 'checkbox' || field.type === 'w-checkbox') { return false; - } else if (field.type === 'option-group' || field.type === 'w-option-group') { + } else if (field.type === 'option-group' || field.type === 'optionGroup' || field.type === 'w-option-group') { if (field.optionType === 'radio') { return undefined; } else { return []; } + } else if (field.type === 'select' || (field.type === 'w-select' && field.multiple)) { + return []; } return undefined; };