mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-04 04:08:13 +00:00
2 lines
1.8 KiB
JavaScript
2 lines
1.8 KiB
JavaScript
import{d as b,k as l,h as v,c as C,J as d,a9 as p,u as n,a,t as w,e as s,w as r,b as y,F as x,z as S,G as U,H as V}from"./index-785a2eda.js";/* empty css */import B from"./index-0f19b597.js";import"./el-form-item-4ed993c7.js";import k from"./index-a6662b0c.js";import{u as F}from"./diy-9f040720.js";const T={class:"content-wrap"},A={class:"edit-attr-item-wrap"},D={class:"mb-[10px]"},E={ref:"imageBoxRef"},H={class:"item-wrap p-[10px] pb-0 relative border border-dashed border-gray-300 mb-[16px]"},I={class:"style-wrap"},j=b({__name:"edit-hot-area",setup(z,{expose:_}){const e=F();e.editComponent.ignore=["componentBgUrl"],e.editComponent.verify=t=>{const o={code:!0,message:""};return e.value[t].imageUrl===""&&(o.code=!1,o.message=l("imageUrlTip")),o};const c=t=>{u()},u=()=>{const t=new Image;t.src=S(e.editComponent.imageUrl),t.onload=async()=>{e.editComponent.imgWidth=t.width,e.editComponent.imgHeight=t.height}};return _({}),(t,o)=>{const g=k,m=U,h=B,f=V;return v(),C(x,null,[d(a("div",T,[a("div",A,[a("h3",D,w(n(l)("hotAreaSet")),1),s(f,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[a("div",E,[a("div",H,[s(m,{label:n(l)("hotAreaBackground")},{default:r(()=>[s(g,{modelValue:n(e).editComponent.imageUrl,"onUpdate:modelValue":o[0]||(o[0]=i=>n(e).editComponent.imageUrl=i),limit:1,onChange:c},null,8,["modelValue"])]),_:1},8,["label"]),s(m,{label:n(l)("hotAreaSet")},{default:r(()=>[s(h,{modelValue:n(e).editComponent,"onUpdate:modelValue":o[1]||(o[1]=i=>n(e).editComponent=i)},null,8,["modelValue"])]),_:1},8,["label"])])],512)]),_:1})])],512),[[p,n(e).editTab=="content"]]),d(a("div",I,[y(t.$slots,"style")],512),[[p,n(e).editTab=="style"]])],64)}}}),R=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));export{R as _};
|