2 lines
4.6 KiB
JavaScript
2 lines
4.6 KiB
JavaScript
import{m as k,ce as T,ab as d,b2 as i,bJ as o,j as a,ac as U,u as e,ai as p,ae as m}from"../jse/index-index-z6BnWIKe.js";import{c9 as s,cc as n,c2 as u,ax as f,bW as _,au as v,cd as b,bY as M}from"./bootstrap-CvlyDbJT.js";import O from"./index-C5TR0U8U.js";import"./vuedraggable.umd-CZxCWFnx.js";import"./index-Bx4aXtob.js";/* empty css *//* empty css */import{_ as y}from"./cell-property.vue_vue_type_script_setup_true_lang-D81t_-AA.js";/* empty css */import"./index-A6JZhRhq.js";import"./app-nav-bar-mp-CBXnuDRf.js";import"./index.vue_vue_type_script_setup_true_lang-CIaU8HvB.js";import"./select-dialog.vue_vue_type_script_setup_true_lang-CzAYbbLp.js";import"./select.vue_vue_type_script_setup_true_lang-DJIoWImA.js";import"./index-Dcr5pmwz.js";import"./use-modal-Dxm1_G6d.js";import"./x-BDlOqFPI.js";import"./index.vue_vue_type_script_setup_true_lang-DFWu0uyM.js";const I={class:"flex items-center"},N={class:"flex items-center justify-between"},B={class:"flex items-center justify-between"},X=k({name:"NavigationBarProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(g,{emit:w}){const V=g,C=w,x={name:[{required:!0,message:"请输入页面名称",trigger:"blur"}]},t=T(V,"modelValue",C);return t.value._local||(t.value._local={previewMp:!0,previewOther:!1}),($,l)=>(i(),d(e(M),{"label-col":{span:6},"wrapper-col":{span:18},model:e(t),rules:x},{default:o(()=>[a(e(s),{label:"样式",name:"styleType"},{default:o(()=>[a(e(n),{value:e(t).styleType,"onUpdate:value":l[0]||(l[0]=r=>e(t).styleType=r)},{default:o(()=>[a(e(u),{value:"normal"},{default:o(()=>[...l[11]||(l[11]=[p("标准",-1)])]),_:1}),a(e(f),{title:"沉侵式头部仅支持微信小程序、APP,建议页面第一个组件为图片展示类组件",placement:"top"},{default:o(()=>[a(e(u),{value:"inner"},{default:o(()=>[...l[12]||(l[12]=[p("沉浸式",-1)])]),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e(t).styleType==="inner"?(i(),d(e(s),{key:0,label:"常驻显示",name:"alwaysShow"},{default:o(()=>[a(e(n),{value:e(t).alwaysShow,"onUpdate:value":l[1]||(l[1]=r=>e(t).alwaysShow=r)},{default:o(()=>[a(e(u),{value:!1},{default:o(()=>[...l[13]||(l[13]=[p("关闭",-1)])]),_:1}),a(e(f),{title:"常驻显示关闭后,头部小组件将在页面滑动时淡入",placement:"top"},{default:o(()=>[a(e(u),{value:!0},{default:o(()=>[...l[14]||(l[14]=[p("开启",-1)])]),_:1})]),_:1})]),_:1},8,["value"])]),_:1})):U("",!0),a(e(s),{label:"背景类型",name:"bgType"},{default:o(()=>[a(e(n),{value:e(t).bgType,"onUpdate:value":l[2]||(l[2]=r=>e(t).bgType=r)},{default:o(()=>[a(e(u),{value:"color"},{default:o(()=>[...l[15]||(l[15]=[p("纯色",-1)])]),_:1}),a(e(u),{value:"img"},{default:o(()=>[...l[16]||(l[16]=[p("图片",-1)])]),_:1})]),_:1},8,["value"])]),_:1}),e(t).bgType==="color"?(i(),d(e(s),{key:1,label:"背景颜色",name:"bgColor"},{default:o(()=>[a(e(O),{modelValue:e(t).bgColor,"onUpdate:modelValue":l[3]||(l[3]=r=>e(t).bgColor=r)},null,8,["modelValue"])]),_:1})):(i(),d(e(s),{key:2,label:"背景图片",name:"bgImg"},{default:o(()=>[m("div",I,[a(_,{modelValue:e(t).bgImg,"onUpdate:modelValue":l[4]||(l[4]=r=>e(t).bgImg=r),limit:1,width:"56px",height:"56px","show-description":!1},null,8,["modelValue"]),l[17]||(l[17]=m("span",{class:"mb-2 ml-2 text-xs text-gray-400"},"建议宽度:750",-1))])]),_:1})),a(e(v),{class:"property-group",bordered:!1},{title:o(()=>[m("div",N,[l[19]||(l[19]=m("span",null,"内容(小程序)",-1)),a(e(s),{name:"_local.previewMp",class:"mb-0"},{default:o(()=>[a(e(b),{checked:e(t)._local.previewMp,"onUpdate:checked":l[5]||(l[5]=r=>e(t)._local.previewMp=r),onChange:l[6]||(l[6]=r=>e(t)._local.previewOther=!e(t)._local.previewMp)},{default:o(()=>[...l[18]||(l[18]=[p(" 预览 ",-1)])]),_:1},8,["checked"])]),_:1})])]),default:o(()=>[a(y,{modelValue:e(t).mpCells,"onUpdate:modelValue":l[7]||(l[7]=r=>e(t).mpCells=r),"is-mp":""},null,8,["modelValue"])]),_:1}),a(e(v),{class:"property-group",bordered:!1},{title:o(()=>[m("div",B,[l[21]||(l[21]=m("span",null,"内容(非小程序)",-1)),a(e(s),{name:"_local.previewOther",class:"mb-0"},{default:o(()=>[a(e(b),{checked:e(t)._local.previewOther,"onUpdate:checked":l[8]||(l[8]=r=>e(t)._local.previewOther=r),onChange:l[9]||(l[9]=r=>e(t)._local.previewMp=!e(t)._local.previewOther)},{default:o(()=>[...l[20]||(l[20]=[p(" 预览 ",-1)])]),_:1},8,["checked"])]),_:1})])]),default:o(()=>[a(y,{modelValue:e(t).otherCells,"onUpdate:modelValue":l[10]||(l[10]=r=>e(t).otherCells=r),"is-mp":!1},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]))}});export{X as default};
|