Commit e54cb6dc authored by 田翔's avatar 田翔

fix: 验证方法修改

parent 8af740e4
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "3.0.0", "version": "3.0.1",
"description": "3.0.0: 暴露方法", "description": "3.0.1: 验证方法修改",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -148,7 +148,7 @@ export const getVerify = (json) => { ...@@ -148,7 +148,7 @@ export const getVerify = (json) => {
let child = properties[v]?.properties let child = properties[v]?.properties
if (isObject(child)) { if (isObject(child)) {
for (let s in child) { for (let s in child) {
const { widget, sourceType, options } = child[s] const { widget, sourceType, options, dictionary, tableName, fieldName } = child[s]
if (['ComboBox', 'RadioButton', 'CheckBox'].includes(widget)) { if (['ComboBox', 'RadioButton', 'CheckBox'].includes(widget)) {
if (sourceType === '手动输入' && !options.length) { if (sourceType === '手动输入' && !options.length) {
return message.error(`字段【${s}】配置,选项值必填!`) return message.error(`字段【${s}】配置,选项值必填!`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment