From 5b75a82df7876f7c2c3e1f9da48752e2b2008ff8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 20 三月 2023 15:41:41 +0800 Subject: [PATCH] 2023-03-20 --- src/menu/components/share/actioncomponent/formconfig.jsx | 30 +++++++++++++++++++++++++++--- 1 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index c1f4bd9..98b7ea2 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -9,13 +9,13 @@ * @param {*} usefulFields 瀛樺偍杩囩▼鍙敤鐨勫紑濮嬪瓧娈� * @param {*} type 鎸夐挳绫诲瀷锛岀敤浜庡尯鍒嗗彲閫夌殑鎵撳紑鏂瑰紡 */ -export function getActionForm (card, functip, config, usefulFields, modules = [], anchors = []) { +export function getActionForm (card, functip, config, usefulFields, modules = [], anchors = [], side) { let appType = sessionStorage.getItem('appType') let viewType = sessionStorage.getItem('editMenuType') // 寮圭獥 popview let printTemps = sessionStorage.getItem('printTemps') printTemps = printTemps ? JSON.parse(printTemps) : [] let setting = config.setting || {} - let columns = config.columns || [] + let columns = side === 'sub' && config.subColumns ? config.subColumns : (config.columns || []) let appMenus = [] let menulist = [] let type = '' @@ -266,6 +266,9 @@ }, { value: 'radio', text: '鍕鹃�夋' + }, { + value: 'counter', + text: '璁℃暟鍣�' }, ...formTypes] }, @@ -1026,7 +1029,7 @@ { type: 'radio', key: 'size', - label: '寮�鍏冲昂瀵�', + label: '灏哄', initVal: card.size || 'default', options: [{ value: 'large', @@ -1061,6 +1064,27 @@ required: false }, { + type: 'number', + key: 'min', + label: '鏈�灏忓��', + initVal: card.min, + required: false + }, + { + type: 'number', + key: 'max', + label: '鏈�澶у��', + initVal: card.max, + required: false + }, + { + type: 'number', + key: 'decimal', + label: '灏忔暟浣�', + initVal: card.decimal || 0, + required: true + }, + { type: 'text', key: 'closeVal', label: '鍏抽棴鍊�', -- Gitblit v1.8.0