mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-05 20:48:11 +00:00
2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
import{d as b,k as l,h as v,c as C,J as d,a9 as _,u as a,a as n,t as w,e as s,w as r,b as y,F as x,z as S,G as V,H as U}from"./index-ad4e42d5.js";/* empty css */import B from"./index-d2fee28a.js";import k from"./index-3cd61bba.js";import{u as F}from"./diy-b66a38e4.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:p}){const e=F();e.editComponent.ignore=[],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 p({}),(t,o)=>{const g=k,m=V,h=B,f=U;return v(),C(x,null,[d(n("div",T,[n("div",A,[n("h3",D,w(a(l)("hotAreaSet")),1),s(f,{"label-width":"80px",class:"px-[10px]"},{default:r(()=>[n("div",E,[n("div",H,[s(m,{label:a(l)("hotAreaBackground")},{default:r(()=>[s(g,{modelValue:a(e).editComponent.imageUrl,"onUpdate:modelValue":o[0]||(o[0]=i=>a(e).editComponent.imageUrl=i),limit:1,onChange:c},null,8,["modelValue"])]),_:1},8,["label"]),s(m,{label:a(l)("hotAreaSet")},{default:r(()=>[s(h,{modelValue:a(e).editComponent,"onUpdate:modelValue":o[1]||(o[1]=i=>a(e).editComponent=i)},null,8,["modelValue"])]),_:1},8,["label"])])],512)]),_:1})])],512),[[_,a(e).editTab=="content"]]),d(n("div",I,[y(t.$slots,"style")],512),[[_,a(e).editTab=="style"]])],64)}}}),P=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"}));export{P as _};
|