From aa8a9f0845ed197adbfdf152376121e172bee574 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 01 六月 2023 10:44:05 +0800 Subject: [PATCH] 2023-06-01 --- src/menu/components/chart/antv-X6/chartcompile/formconfig.jsx | 138 ++------------------------------------------- 1 files changed, 7 insertions(+), 131 deletions(-) diff --git a/src/menu/components/chart/antv-X6/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-X6/chartcompile/formconfig.jsx index 9eed12a..1f0a073 100644 --- a/src/menu/components/chart/antv-X6/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-X6/chartcompile/formconfig.jsx @@ -203,130 +203,18 @@ type: 'select', field: 'subtype', label: '绫诲瀷', - initval: card.subtype || 'mindmap', + initval: card.subtype || 'xflow', required: true, options: [{ - value: 'mindmap', - label: '鎬濈淮瀵煎浘' + value: 'xflow', + label: '娴佺▼鍥�' }, { value: 'indentTree', - label: '缂╄繘鏂囦欢鏍�' + label: '娉抽亾鍥�' }, { value: 'kapmap', - label: '鐭ヨ瘑鍥捐氨鏍�' - }], - controlFields: [ - {field: 'dirField', values: ['mindmap']}, - {field: 'nodeColor', values: ['mindmap']}, - // {field: 'collapsed', values: ['indentTree', 'kapmap']}, - ] - }, - { - type: 'radio', - field: 'rootType', - label: '鏍硅妭鐐瑰彇鍊�', - initval: card.rootType || 'fixed', - tooltip: '閫夋嫨涓婄骇鏃讹紝璇峰~鍐欐牴鑺傜偣鐨勬枃鏈拰鍊肩殑瀛楁鍚�', - required: true, - options: [{ - value: 'fixed', - label: '鍥哄畾鍊�' - }, { - value: 'supvalue', - label: '涓婄骇缁勪欢' - }, { - value: 'line', - label: '琛�' - }], - controlFields: [ - {field: 'rootLabel', values: ['fixed', 'supvalue']}, - {field: 'rootValue', values: ['fixed', 'supvalue']}, - {field: 'mark', values: ['line']}, - ] - }, - { - type: 'text', - field: 'rootValue', - label: '鏍硅妭鐐瑰��', - initval: card.rootValue || '', - required: true - }, - { - type: 'text', - field: 'rootLabel', - label: '鏍硅妭鐐规枃鏈�', - initval: card.rootLabel || '', - required: true - }, - { - type: 'select', - field: 'valueField', - label: '鍊煎瓧娈�', - initval: card.valueField || '', - required: true, - options: columns - }, - { - type: 'select', - field: 'labelField', - label: '鏂囨湰瀛楁', - initval: card.labelField || '', - required: true, - options: columns - }, - { - type: 'select', - field: 'parentField', - label: '涓婄骇瀛楁', - initval: card.parentField || '', - required: true, - options: columns - }, - { - type: 'text', - field: 'mark', - label: '椤剁骇鏍囪瘑', - initval: card.mark || '', - tooltip: '涓婄骇瀛楁鍊间笌椤剁骇鏍囪瘑鐩稿悓鏃讹紝瑙嗕负鏍硅妭鐐广��', - required: true - }, - { - type: 'select', - field: 'dirField', - label: '鏂瑰悜鎺у埗', - initval: card.dirField || '', - required: false, - options: columns, - controlFields: [ - {field: 'dirSign', notNull: true}, - {field: 'leftColor', notNull: true}, - ] - }, - { - type: 'text', - field: 'dirSign', - label: '宸﹀悜鏍囪', - initval: card.dirSign || '', - tooltip: '褰撹妭鐐瑰�间笌鏍囪鐩稿悓鏃惰妭鐐逛俊鎭綅浜庤妭鐐瑰乏渚э紝澶氫釜鍊艰鐢ㄩ�楀彿鍒嗛殧銆�', - required: false - }, - { - type: 'color', - field: 'nodeColor', - label: '鑺傜偣棰滆壊', - initval: card.nodeColor || '#1890ff', - tooltip: '鍙充晶鑺傜偣鐨勬爣璁伴鑹层��', - colorType: 'hex', - required: false - }, - { - type: 'color', - field: 'leftColor', - label: '宸﹁妭鐐归鑹�', - initval: card.leftColor || '#26C281', - tooltip: '宸︿晶鑺傜偣鐨勬爣璁伴鑹层��', - colorType: 'hex', - required: false + label: '缁勭粐缁撴瀯鍥�' + }] }, { type: 'radio', @@ -339,18 +227,6 @@ {value: 'show', label: '鍚�'}, {value: 'hidden', label: '鏄�'}, ], - }, - { - type: 'radio', - field: 'collapsed', - label: '鑺傜偣鍚堝苟', - initval: card.collapsed || 'false', - tooltip: '涓�绾ц妭鐐规槸鍚﹀悎骞躲��', - required: false, - options: [ - {value: 'false', label: '鍚�'}, - {value: 'true', label: '鏄�'}, - ], - }, + } ] } -- Gitblit v1.8.0