mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-15 20:12:49 +00:00
2 lines
3.1 KiB
JavaScript
2 lines
3.1 KiB
JavaScript
import{d as x,w as V,e as S,f as y,Q as _,u as l,g as i,B as p,y as o,x as r,F as E}from"./base-06478700.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import{_ as v}from"./index-7eaa3a3d.js";/* empty css *//* empty css */import{a as B,E as U}from"./el-form-item-314d006d.js";/* empty css */import{v as b}from"./event-10eba222.js";import{t as a}from"./index-81ed253c.js";import{u as C}from"./diy-81c73356.js";import{d as k}from"./common-92a35870.js";import{E as T}from"./index-b68e8463.js";import{E as F}from"./index-f84999b2.js";import{E as N}from"./index-b12abbd4.js";import{E as z}from"./index-be5bff6d.js";const D={class:"content-wrap"},I={class:"edit-attr-item-wrap"},P={class:"mb-[10px]"},j={class:"text-sm text-gray-400"},O={class:"style-wrap"},H={class:"edit-attr-item-wrap"},M={class:"mb-[10px]"},Q={class:"edit-attr-item-wrap"},W={class:"mb-[10px]"},q=x({__name:"edit-page",setup(A,{expose:c}){const e=C();return V(()=>e.global.bgUrl,(g,t)=>{let m=new Image;m.src=k(e.global.bgUrl),m.onload=async()=>{e.global.imgWidth=m.width,e.global.imgHeight=m.height}}),c({}),(g,t)=>{const m=T,n=B,u=F,d=U,h=N,f=v,w=z;return S(),y(E,null,[_(i("div",D,[i("div",I,[i("h3",P,p(l(a)("pageContent")),1),o(d,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[o(n,{label:l(a)("pageName")},{default:r(()=>[o(m,{modelValue:l(e).global.title,"onUpdate:modelValue":t[0]||(t[0]=s=>l(e).global.title=s),placeholder:l(a)("pageNamePlaceholder"),clearable:"",maxlength:"12","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(n,{label:l(a)("tabbar"),class:"display-block"},{default:r(()=>[o(u,{modelValue:l(e).global.bottomTabBarSwitch,"onUpdate:modelValue":t[1]||(t[1]=s=>l(e).global.bottomTabBarSwitch=s)},null,8,["modelValue"]),i("div",j,p(l(a)("tabbarSwitchTips")),1)]),_:1},8,["label"])]),_:1})])],512),[[b,l(e).editTab=="content"]]),_(i("div",O,[i("div",H,[i("h3",M,p(l(a)("pageStyle")),1),o(d,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[o(n,{label:l(a)("pageBgColor")},{default:r(()=>[o(h,{modelValue:l(e).global.pageBgColor,"onUpdate:modelValue":t[2]||(t[2]=s=>l(e).global.pageBgColor=s),"show-alpha":"",predefine:l(e).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),o(n,{label:l(a)("bgUrl")},{default:r(()=>[o(f,{modelValue:l(e).global.bgUrl,"onUpdate:modelValue":t[3]||(t[3]=s=>l(e).global.bgUrl=s),limit:1},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),i("div",Q,[i("h3",W,p(l(a)("marginSet")),1),o(d,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[o(n,{label:l(a)("marginBoth")},{default:r(()=>[o(w,{modelValue:l(e).global.template.margin.both,"onUpdate:modelValue":t[4]||(t[4]=s=>l(e).global.template.margin.both=s),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})])],512),[[b,l(e).editTab=="style"]])],64)}}}),nl=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"}));export{nl as _};
|