From 31871ca836e6fcbea9b1c54e2ec15f49667bf093 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 23 十二月 2022 14:14:04 +0800 Subject: [PATCH] 2022-12-23 --- src/menu/components/table/base-table/columns/editColumn/formconfig.jsx | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/menu/components/table/base-table/columns/editColumn/formconfig.jsx b/src/menu/components/table/base-table/columns/editColumn/formconfig.jsx index fb7d992..29bf27a 100644 --- a/src/menu/components/table/base-table/columns/editColumn/formconfig.jsx +++ b/src/menu/components/table/base-table/columns/editColumn/formconfig.jsx @@ -213,14 +213,16 @@ }, { value: 'false', text: '鍚�' - }] + }], + forbid: card.isSub }, { type: 'number', key: 'fieldlength', label: '瀛楁闀垮害', initVal: card.fieldlength || 50, - required: true + required: true, + forbid: card.isSub }, { type: 'number', @@ -229,8 +231,8 @@ max: 18, decimal: 0, label: '灏忔暟浣�', - initVal: card.decimal || 0, - required: true + initVal: card.decimal === undefined ? 0 : card.decimal, + required: !card.isSub }, { type: 'select', @@ -326,6 +328,18 @@ }, { type: 'radio', + key: 'backgroundSize', + label: '鍥惧儚澶у皬', + initVal: card.backgroundSize || 'cover', + required: false, + options: [ + { value: 'cover', text: '瑕嗙洊' }, + { value: 'contain', text: '鍖呭惈' }, + { value: 'auto', text: '鑷�傚簲' }, + ] + }, + { + type: 'radio', key: 'scale', label: '鐐瑰嚮缂╂斁', initVal: card.scale || 'true', -- Gitblit v1.8.0