From 5b166dd93003adb0749002d74109a519f746e204 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 03 八月 2024 16:49:15 +0800 Subject: [PATCH] 2024-08-03 --- src/mob/components/navbar/normal-navbar/options.jsx | 26 +++++++++++++++++--------- 1 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/mob/components/navbar/normal-navbar/options.jsx b/src/mob/components/navbar/normal-navbar/options.jsx index d8eadc8..ee01650 100644 --- a/src/mob/components/navbar/normal-navbar/options.jsx +++ b/src/mob/components/navbar/normal-navbar/options.jsx @@ -30,14 +30,12 @@ ] }, { - type: 'number', + type: 'styleInput', field: 'height', label: '楂樺害', initval: wrap.height || 50, - min: 30, - max: 200, - precision: 0, - required: true + required: true, + options: ['px'] }, { type: 'radio', @@ -52,7 +50,6 @@ ], controlFields: [ {field: 'position', values: ['tab']}, - {field: 'selectStyle', values: ['tab']}, ] }, { @@ -65,14 +62,17 @@ {value: 'bottom', label: '搴曢儴'}, {value: 'left', label: '宸︿晶'}, {value: 'right', label: '鍙充晶'}, + ], + controlFields: [ + {field: 'marginTop', values: ['left', 'right']}, ] }, { type: 'radio', - field: 'selectStyle', + field: 'menuStyle', label: '鑿滃崟鏍峰紡', - initval: wrap.selectStyle || 'default', - tooltip: '鍏蜂綋鏍峰紡璇峰湪绯荤粺杩愯鐜鏌ョ湅銆�', + initval: wrap.menuStyle || 'default', + tooltip: '浣跨敤APP涓師鐢熻彍鍗曟爮鏃舵棤鏁堛��', required: false, options: [ {value: 'default', label: '榛樿'}, @@ -80,6 +80,14 @@ ] }, { + type: 'styleInput', + field: 'marginTop', + label: '椤堕儴缂╄繘', + initval: wrap.marginTop || '', + required: false, + options: ['px', 'vh'] + }, + { type: 'radio', field: 'permission', label: '鏉冮檺楠岃瘉', -- Gitblit v1.8.0