From 8d66ff34fae5b048a6b7923cc75d34f13a08be9d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 02 八月 2022 11:42:43 +0800 Subject: [PATCH] Merge branch 'develop' --- src/menu/components/table/edit-table/columns/editColumn/formconfig.jsx | 59 ++++++++++++++++++++++++++++++++++++++++------------------- 1 files changed, 40 insertions(+), 19 deletions(-) diff --git a/src/menu/components/table/edit-table/columns/editColumn/formconfig.jsx b/src/menu/components/table/edit-table/columns/editColumn/formconfig.jsx index 2f81f13..adbb88b 100644 --- a/src/menu/components/table/edit-table/columns/editColumn/formconfig.jsx +++ b/src/menu/components/table/edit-table/columns/editColumn/formconfig.jsx @@ -48,8 +48,16 @@ let editCols = [ { + field: '$sub', + label: '鎻愪氦' + }, + { field: '$next', label: '涓嬩竴琛�' + }, + { + field: '$noAct', + label: '鏃犲姩浣�' } ] columns.forEach(col => { @@ -115,7 +123,6 @@ label: Formdict['model.sort'], initVal: card.IsSort || 'false', required: true, - forbidden: card.isSub, options: [{ value: 'true', text: Formdict['model.true'] @@ -305,6 +312,20 @@ }, { type: 'radio', + key: 'dropdown', + label: '涓嬫媺瀹藉害', + initVal: card.dropdown || 'flex', + required: false, + options: [{ + value: 'flex', + text: '鑷�傚簲' + }, { + value: 'fixed', + text: '瀹氬' + }] + }, + { + type: 'radio', key: 'required', label: '蹇呭~', initVal: card.required || 'false', @@ -338,23 +359,23 @@ tooltip: '鍖呮嫭鏂囨湰鎴栨暟鍊煎洖杞︿簨浠躲�佷笅鎷夎彍鍗曢�変腑浜嬩欢銆佸紑鍏冲垏鎹簨浠躲��', options: editCols }, - { - type: 'radio', - key: 'footEnter', - label: '鏈鍥炶溅', - initVal: card.footEnter || 'false', - tooltip: '鏂板鍔熻兘浠呭湪琛ㄦ牸鍙柊澧炴椂鏈夋晥銆�', - options: [{ - value: 'sub', - text: '鎻愪氦' - }, { - value: 'add', - text: '鏂板' - }, { - value: 'false', - text: '鏃犲姩浣�' - }] - }, + // { + // type: 'radio', + // key: 'footEnter', + // label: '鏈鍥炶溅', + // initVal: card.footEnter || 'false', + // tooltip: '鏂板鍔熻兘浠呭湪琛ㄦ牸鍙柊澧炴椂鏈夋晥銆�', + // options: [{ + // value: 'sub', + // text: '鎻愪氦' + // }, { + // value: 'add', + // text: '鏂板' + // }, { + // value: 'false', + // text: '鏃犲姩浣�' + // }] + // }, { type: 'number', key: 'decimal', @@ -449,7 +470,7 @@ key: 'formula', label: '鍏紡', initVal: card.formula || '', - tooltip: '鎵ц鏃朵細浣跨敤鏌ヨ鍒扮殑鏁版嵁鏇挎崲鐩稿簲鐨勫瓧娈碉紝灞曠ず鑾峰緱鐨勭粨鏋溿�傚彲浣跨敤JS鐨勪竴浜涜娉曪紝濡傦細涓夊厓琛ㄨ揪寮� @field1@ > @field2@ ? 0 : 1锛汳ath瀵硅薄锛屽彇缁濆鍊� Math.abs(@field@)銆佸洓鑸嶄簲鍏� Math.round(@field@)绛�', + tooltip: '鎵ц鏃朵細浣跨敤鏌ヨ鍒扮殑鏁版嵁鏇挎崲鐩稿簲鐨勫瓧娈碉紝灞曠ず鑾峰緱鐨勭粨鏋滐紝鍦ㄤ笉浣跨敤瑙f瀽鏃舵崲琛岀鎴栫┖鏍间細鏇挎崲涓洪〉闈㈠厓绱犮�傚彲浣跨敤JS鐨勪竴浜涜娉曪紝濡傦細涓夊厓琛ㄨ揪寮� @field1@ > @field2@ ? 0 : 1锛汳ath瀵硅薄锛屽彇缁濆鍊� Math.abs(@field@)銆佸洓鑸嶄簲鍏� Math.round(@field@)绛�', placeholder: '渚嬪锛欯price@ * @number@', required: true }, -- Gitblit v1.8.0