From 1d395e6d750fe91082c99a15e355ab2841ed65c6 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 04 一月 2024 17:49:21 +0800 Subject: [PATCH] 2024-01-04 --- src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx | 135 +++++++++++++++++++++++---------------------- 1 files changed, 69 insertions(+), 66 deletions(-) diff --git a/src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx index b54089c..748ad3f 100644 --- a/src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx @@ -20,24 +20,24 @@ return [ { type: 'text', - key: 'title', + field: 'title', label: '鏍囬', - initVal: card.title, + initval: card.title, required: false }, { type: 'text', - key: 'name', + field: 'name', label: '缁勪欢鍚嶇О', - initVal: card.name, + initval: card.name, tooltip: '鐢ㄤ簬缁勪欢闂寸殑鍖哄垎銆�', required: true }, { type: 'number', - key: 'width', + field: 'width', label: '瀹藉害', - initVal: card.width, + initval: card.width, tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��', min: 1, max: 24, @@ -46,43 +46,42 @@ }, { type: 'styleInput', - key: 'height', + field: 'height', label: '鍥捐〃楂樺害', - initVal: card.height, + initval: card.height, tooltip: '鍥捐〃缁樺浘鍖哄煙鐨勯珮搴︼紝涓嶅寘鎷爣棰樺強鍐呭杈硅窛銆�', required: true, options: ['px', 'vh', 'vw'] }, { type: 'radio', - key: 'permission', + field: 'permission', label: '鏉冮檺楠岃瘉', - initVal: card.permission || 'false', + initval: card.permission || 'false', required: false, options: [ - {value: 'true', text: '鍚敤'}, - {value: 'false', text: '绂佺敤'}, + {value: 'true', label: '鍚敤'}, + {value: 'false', label: '绂佺敤'}, ], forbid: !appType || ispop || isprint }, { type: 'radio', - key: 'cacheLocal', + field: 'cacheLocal', label: '鏈湴缂撳瓨', - initVal: card.cacheLocal || 'true', + initval: card.cacheLocal || 'true', required: false, options: [ - {value: 'true', text: '缁ф壙鑿滃崟'}, - {value: 'false', text: '绂佺敤'}, + {value: 'true', label: '缁ф壙鑿滃崟'}, + {value: 'false', label: '绂佺敤'}, ], forbid: ispop || isprint }, { - type: 'select', - key: 'blacklist', + type: 'multiselect', + field: 'blacklist', label: '榛戝悕鍗�', - initVal: card.blacklist || [], - multi: true, + initval: card.blacklist || [], required: false, options: roleList, forbid: !!appType || isprint @@ -101,24 +100,24 @@ return [ { type: 'text', - key: 'label', + field: 'label', label: '鎸囨爣鍚嶇О', - initVal: card.label || '', + initval: card.label || '', required: false }, { type: 'select', - key: 'valueField', + field: 'valueField', label: '鏄剧ず鍊�', - initVal: card.valueField || '', + initval: card.valueField || '', required: true, options: yfields }, { type: 'number', - key: 'maxValue', + field: 'maxValue', label: '鏈�澶у��', - initVal: card.maxValue || 100, + initval: card.maxValue || 100, tooltip: '浠〃鐩樻渶澶у埢搴﹀��', min: 0, max: 999999, @@ -127,9 +126,9 @@ }, { type: 'number', - key: 'tickInterval', + field: 'tickInterval', label: '闂撮殧', - initVal: card.tickInterval || 10, + initval: card.tickInterval || 10, tooltip: '浠〃鐩樺埢搴﹂棿闅斿�笺��', min: 0, max: 999999, @@ -138,56 +137,58 @@ }, { type: 'radio', - key: 'percent', + field: 'percent', label: '鐧惧垎鐜�', - initVal: card.percent || 'true', + initval: card.percent || 'true', required: false, options: [{ value: 'true', - text: '浣跨敤' + label: '浣跨敤' }, { value: 'false', - text: '涓嶄娇鐢�' + label: '涓嶄娇鐢�' }] // }, { // type: 'radio', - // key: 'download', + // field: 'download', // label: '瀵煎嚭鍥剧墖', - // initVal: card.download || 'forbid', + // initval: card.download || 'forbid', // required: false, // forbid: appType === 'mob', // options: [{ // value: 'forbid', - // text: '绂佺敤' + // label: '绂佺敤' // }, { // value: 'enable', - // text: '鍚敤' + // label: '鍚敤' // }] }, // { // type: 'radio', - // key: 'empty', + // field: 'empty', // label: '绌哄�奸殣钘�', - // initVal: card.empty || 'show', + // initval: card.empty || 'show', // tooltip: '褰撴煡璇㈡暟鎹负绌烘椂锛岄殣钘忚缁勪欢銆�', // required: false, // options: [ - // {value: 'show', text: '鍚�'}, - // {value: 'hidden', text: '鏄�'}, + // {value: 'show', label: '鍚�'}, + // {value: 'hidden', label: '鏄�'}, // ], // }, { type: 'color', - key: 'tickColor', + field: 'tickColor', label: '鍒诲害绾�', - initVal: card.tickColor || '#CBCBCB', + initval: card.tickColor || '', + allowClear: true, required: false }, { type: 'color', - key: 'labelColor', + field: 'labelColor', label: '鎸囨爣棰滆壊', - initVal: card.labelColor || '#545454', + initval: card.labelColor || '', + allowClear: true, required: false } ] @@ -206,25 +207,25 @@ return [ { type: 'select', - key: 'labelField', + field: 'labelField', label: '鎸囨爣', - initVal: card.labelField || '', + initval: card.labelField || '', required: true, options: xfields }, { type: 'select', - key: 'valueField', + field: 'valueField', label: '鍊�', - initVal: card.valueField || '', + initval: card.valueField || '', required: true, options: yfields }, { type: 'number', - key: 'maxValue', + field: 'maxValue', label: '鏈�澶у��', - initVal: card.maxValue || 100, + initval: card.maxValue || 100, min: 0, max: 999999, decimal: 1, @@ -232,9 +233,9 @@ }, { type: 'number', - key: 'radius', + field: 'radius', label: '澶栫幆', - initVal: card.radius || 75, + initval: card.radius || 75, tooltip: '鍥惧舰鎵�鍗犲尯鍩熺殑鐧惧垎鐜囥��', min: 30, max: 100, @@ -243,9 +244,9 @@ }, { type: 'number', - key: 'fontSize', + field: 'fontSize', label: '瀛椾綋澶у皬', - initVal: card.fontSize || 28, + initval: card.fontSize || 28, min: 12, max: 300, decimal: 0, @@ -253,44 +254,46 @@ }, { type: 'radio', - key: 'percent', + field: 'percent', label: '鐧惧垎鐜�', - initVal: card.percent || 'true', + initval: card.percent || 'true', required: false, options: [{ value: 'true', - text: '浣跨敤' + label: '浣跨敤' }, { value: 'false', - text: '涓嶄娇鐢�' + label: '涓嶄娇鐢�' }] // }, { // type: 'radio', - // key: 'download', + // field: 'download', // label: '瀵煎嚭鍥剧墖', - // initVal: card.download || 'forbid', + // initval: card.download || 'forbid', // required: false, // forbid: appType === 'mob', // options: [{ // value: 'forbid', - // text: '绂佺敤' + // label: '绂佺敤' // }, { // value: 'enable', - // text: '鍚敤' + // label: '鍚敤' // }] }, { type: 'color', - key: 'backColor', + field: 'backColor', label: '鑳屾櫙鑹�', - initVal: card.backColor || '#ebedf0', + initval: card.backColor || '', + allowClear: true, required: false }, { type: 'color', - key: 'labelColor', + field: 'labelColor', label: '瀛椾綋棰滆壊', - initVal: card.labelColor || '#8c8c8c', + initval: card.labelColor || '', + allowClear: true, required: false } ] -- Gitblit v1.8.0