From d59f518f466274b2caeb2e01c10c92deafe7c93b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 09 二月 2022 11:48:29 +0800 Subject: [PATCH] 2022-02-09 --- src/mob/components/tabs/antv-tabs/options.jsx | 58 +++++++++++++++++++++++++++++++++------------------------- 1 files changed, 33 insertions(+), 25 deletions(-) diff --git a/src/mob/components/tabs/antv-tabs/options.jsx b/src/mob/components/tabs/antv-tabs/options.jsx index 37bc0c5..1b32739 100644 --- a/src/mob/components/tabs/antv-tabs/options.jsx +++ b/src/mob/components/tabs/antv-tabs/options.jsx @@ -34,17 +34,25 @@ allowClear: true, span: 22 }, + // { + // type: 'radio', + // field: 'hasSearch', + // label: '鎼滅储', + // initval: tab.hasSearch || 'false', + // required: false, + // options: [ + // {value: 'false', label: '鏃�'}, + // {value: 'icon', label: '鏈�'}, + // ], + // forbid: appType !== 'mob' || setting.display !== 'inline-block', + // span: 22 + // }, { - type: 'radio', - field: 'hasSearch', - label: '鎼滅储', - initval: tab.hasSearch || 'false', + type: 'color', + field: 'backgroundColor', + label: '鑳屾櫙鑹�', + initval: tab.backgroundColor || 'transparent', required: false, - options: [ - {value: 'false', label: '鏃�'}, - {value: 'icon', label: '鏈�'}, - ], - forbid: appType !== 'mob' || setting.position !== 'top' || setting.display !== 'inline-block', span: 22 }, { @@ -86,22 +94,22 @@ precision: 0, required: true }, - { - type: 'select', - field: 'position', - label: '鏍囩浣嶇疆', - initval: setting.position || 'top', - required: true, - options: [ - {value: 'top', label: 'top'}, - {value: 'bottom', label: 'bottom'}, - {value: 'left', label: 'left'}, - {value: 'right', label: 'right'}, - ], - controlFields: [ - {field: 'display', values: ['top', 'bottom']}, - ] - }, + // { + // type: 'select', + // field: 'position', + // label: '鏍囩浣嶇疆', + // initval: setting.position || 'top', + // required: true, + // options: [ + // {value: 'top', label: 'top'}, + // {value: 'bottom', label: 'bottom'}, + // {value: 'left', label: 'left'}, + // {value: 'right', label: 'right'}, + // ], + // controlFields: [ + // {field: 'display', values: ['top', 'bottom']}, + // ] + // }, { type: 'radio', field: 'display', -- Gitblit v1.8.0