From 366f7646db3e8dec85d6b85b8d4d9930c0298ed9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 24 八月 2023 18:05:30 +0800 Subject: [PATCH] 2023-08-24 --- src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx | 6 +++--- src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx | 8 +++++--- src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx | 6 +++--- src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx | 6 +++--- src/menu/components/chart/chart-custom/chartcompile/formconfig.jsx | 6 +++--- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx index 5e70c1b..445726a 100644 --- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx @@ -41,6 +41,8 @@ } } + console.log(card) + return [ { type: 'text', @@ -93,11 +95,11 @@ type: 'radio', key: 'cacheLocal', label: '鏈湴缂撳瓨', - initval: card.cacheLocal || 'true', + initVal: card.cacheLocal || 'true', required: false, options: [ - {value: 'true', label: '缁ф壙鑿滃崟'}, - {value: 'false', label: '绂佺敤'}, + {value: 'true', text: '缁ф壙鑿滃崟'}, + {value: 'false', text: '绂佺敤'}, ], forbid: sessionStorage.getItem('editMenuType') === 'popview' }, diff --git a/src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx index 06fe5ff..1840ac9 100644 --- a/src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx @@ -67,11 +67,11 @@ type: 'radio', key: 'cacheLocal', label: '鏈湴缂撳瓨', - initval: card.cacheLocal || 'true', + initVal: card.cacheLocal || 'true', required: false, options: [ - {value: 'true', label: '缁ф壙鑿滃崟'}, - {value: 'false', label: '绂佺敤'}, + {value: 'true', text: '缁ф壙鑿滃崟'}, + {value: 'false', text: '绂佺敤'}, ], forbid: sessionStorage.getItem('editMenuType') === 'popview' }, diff --git a/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx index 81114ce..f97f30f 100644 --- a/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx @@ -125,11 +125,11 @@ type: 'radio', key: 'cacheLocal', label: '鏈湴缂撳瓨', - initval: card.cacheLocal || 'true', + initVal: card.cacheLocal || 'true', required: false, options: [ - {value: 'true', label: '缁ф壙鑿滃崟'}, - {value: 'false', label: '绂佺敤'}, + {value: 'true', text: '缁ф壙鑿滃崟'}, + {value: 'false', text: '绂佺敤'}, ], forbid: sessionStorage.getItem('editMenuType') === 'popview' }, diff --git a/src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx index 31e2470..8957140 100644 --- a/src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx @@ -67,11 +67,11 @@ type: 'radio', key: 'cacheLocal', label: '鏈湴缂撳瓨', - initval: card.cacheLocal || 'true', + initVal: card.cacheLocal || 'true', required: false, options: [ - {value: 'true', label: '缁ф壙鑿滃崟'}, - {value: 'false', label: '绂佺敤'}, + {value: 'true', text: '缁ф壙鑿滃崟'}, + {value: 'false', text: '绂佺敤'}, ], forbid: sessionStorage.getItem('editMenuType') === 'popview' }, diff --git a/src/menu/components/chart/chart-custom/chartcompile/formconfig.jsx b/src/menu/components/chart/chart-custom/chartcompile/formconfig.jsx index 5856250..9089580 100644 --- a/src/menu/components/chart/chart-custom/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/chart-custom/chartcompile/formconfig.jsx @@ -78,11 +78,11 @@ type: 'radio', key: 'cacheLocal', label: '鏈湴缂撳瓨', - initval: card.cacheLocal || 'true', + initVal: card.cacheLocal || 'true', required: false, options: [ - {value: 'true', label: '缁ф壙鑿滃崟'}, - {value: 'false', label: '绂佺敤'}, + {value: 'true', text: '缁ф壙鑿滃崟'}, + {value: 'false', text: '绂佺敤'}, ], forbid: sessionStorage.getItem('editMenuType') === 'popview' }, -- Gitblit v1.8.0