niucloud-admin/niucloud/public/admin/assets/edit-notice-74d423b5.js
2023-11-15 15:57:04 +08:00

2 lines
6.7 KiB
JavaScript

/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import{a as N,E as S}from"./el-form-item-1b16c9fc.js";import{_ as v}from"./index.vue_vue_type_script_setup_true_lang-3321e89e.js";import{_ as P}from"./index-2d04c504.js";/* empty css *//* empty css */import{v as C}from"./event-f85d77b0.js";import{t as s}from"./index-0ca94763.js";import{u as h}from"./diy-56ab8023.js";import{E as B,b as D}from"./index-ba04db70.js";import{E as I}from"./index-e27c3bb0.js";import{E as G}from"./index-680a3029.js";import{E as Y}from"./index-ded3923d.js";import{d as Q,r as b,e as r,f as c,M as x,u as e,g as a,y as o,x as n,A as p,n as k,H as f,v as K,B as _,h as X,F as O}from"./plugin-vue_export-helper-85a4d40b.js";const L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAABj1JREFUaEPtmmtsFFUUx/9nditIQaSICiEaRKOGGDU+IOIj6fZBKzQonZaKGCSAEVCJEUw0Jv2AjxCRKPGRRomGAN2dDUaqQLc75QPEBBNtJKKR2IBRgxBEQ6um7O4cM7Pbfc5s78zsLnRlP27uOff/23POvWfvvYSL6MPMhBp5PRiPgqQ9pAZeK7Q8KrRDp/5Yli/DWfoErC1O+vB651Co87BTn2Z2FwUwNy2fgMFznwLwZYiUaAmFlZ1lBcyN8rUY4r1g3JkDVm7AXPvYTdAi3WCeYRrFcgJmX+s9YO0LgKdYpmy5ALNPngcgCObKFCwNgngbGM8mvysHYK5pfgIaPgLgTYIRTsNDjYhJU8GxLjfAvGDVOPz711NgbQhV9CEpyvn0DCrpKs2+5g1gvAEgbV7qRwXmUbfyE/ta57sB5hp5IhghMN+bgNxCvcHnSw4cbyhatoD5uYx6JfoG8DaSuuuU/r0bYANW424As1OZQz2kKnUlBTZtKHQFRD2onL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XIy64RVGFrgCkVEanwM1y6eBi22H8y3Zaa49DqpgfRdwNSpSITjpSdvArN+O5L2EYt0QYENMcbTA3yWddmlHw5+jAdmrcx3GioKnFhv3s548SOY3gUHNsTopXD+9x1gXpQVhb2onCRb7e92gJ1CFwXYEBO/mNsK1lZn5e9hVFbMp65dZ7Lz2i6wE+iiAQ/DcLX8MsAbM8uNjqHCU0/7O0+kf+8E2C500YHjdd2yHMwdGVucSYPiFNgSmvAiqcFNGUub+BrsbqQBg5gfjHFp21ZGg+IG2ByaeqlXyXiSXJIIJ9O7pnUOOPY5GJPToM+DaKl+qe0WOLFlbQaz/vqOQbSSVEV/5piazl3c7FtzXdstiEb0x2I5DQrYc9zN08PkD1vfNgtRLUKq/1i2wpJGOCnIskGhQ2C+PymyWFct9uPk3sKyQUl3XU7ARr1ZNigJ6nIDNqCNBuW7d8BYk5M35Qicv0FBG6nBTvcFdAFX6XziMxsUisCLmymkHC9bYCPF6xbfh1i0CR7vHgp1fllIWN3XBdmWCg1hx99/11n26ChtcvsAAAAASUVORK5CYII=",T={class:"content-wrap"},M={class:"edit-attr-item-wrap"},R=a("h3",{class:"mb-[10px]"},"公告图标",-1),z={class:"px-[22px] pb-[20px]"},W={key:0,class:"flex items-center flex-wrap py-[8px] px-[10px] bg-[#f4f3f7] rounded"},j={key:1},q={class:"edit-attr-item-wrap"},J=a("h3",{class:"mb-[10px]"},"公告内容",-1),Z={class:"style-wrap"},H={class:"edit-attr-item-wrap"},$={class:"mb-[10px]"},ee=Q({__name:"edit-notice",setup(te,{expose:A}){const t=h();return t.editComponent.ignore=[],b(!1),b(t.editComponent.style),A({}),(y,l)=>{const m=B,u=D,F=P,V=I,d=N,U=v,g=S,w=G,E=Y;return r(),c(O,null,[x(a("div",T,[a("div",M,[R,a("div",z,[o(u,{modelValue:e(t).editComponent.iconType,"onUpdate:modelValue":l[0]||(l[0]=i=>e(t).editComponent.iconType=i),class:"mb-[18px]"},{default:n(()=>[o(m,{label:"system"},{default:n(()=>[p("系统图标")]),_:1}),o(m,{label:"custom"},{default:n(()=>[p("自定义图标")]),_:1})]),_:1},8,["modelValue"]),e(t).editComponent.iconType=="system"?(r(),c("div",W,[a("img",{src:L,class:k(["h-[28px] px-[10px] py-[5px] mr-[10px] rounded cursor-pointer",{"border-[1px] border-solid border-[var(--el-color-primary)]":e(t).editComponent.systemIcon=="style_01"}]),onClick:l[1]||(l[1]=i=>e(t).editComponent.systemIcon="style_01"),alt:""},null,2)])):f("",!0),e(t).editComponent.iconType=="custom"?(r(),c("div",j,[o(F,{modelValue:e(t).editComponent.imageUrl,"onUpdate:modelValue":l[2]||(l[2]=i=>e(t).editComponent.imageUrl=i),limit:1},null,8,["modelValue"])])):f("",!0)])]),a("div",q,[J,o(g,{"label-width":"80px",class:"px-[10px]"},{default:n(()=>[o(d,{label:e(s)("title")},{default:n(()=>[o(V,{modelValue:e(t).editComponent.list.text,"onUpdate:modelValue":l[3]||(l[3]=i=>e(t).editComponent.list.text=i),placeholder:e(s)("titlePlaceholder"),clearable:"","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(d,{label:"点击类型"},{default:n(()=>[o(u,{modelValue:e(t).editComponent.showType,"onUpdate:modelValue":l[4]||(l[4]=i=>e(t).editComponent.showType=i),class:"mb-[18px]"},{default:n(()=>[o(m,{label:"popup"},{default:n(()=>[p("弹出公告内容")]),_:1}),o(m,{label:"link"},{default:n(()=>[p("跳出链接")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(t).editComponent.showType=="link"?(r(),K(d,{key:0,label:e(s)("link"),class:"!mb-0"},{default:n(()=>[o(U,{modelValue:e(t).editComponent.list.link,"onUpdate:modelValue":l[5]||(l[5]=i=>e(t).editComponent.list.link=i)},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0)]),_:1})])],512),[[C,e(t).editTab=="content"]]),x(a("div",Z,[a("div",H,[a("h3",$,_(e(s)("titleStyle")),1),o(g,{"label-width":"80px",class:"px-[10px]"},{default:n(()=>[o(d,{label:e(s)("textFontSize")},{default:n(()=>[o(w,{modelValue:e(t).editComponent.fontSize,"onUpdate:modelValue":l[6]||(l[6]=i=>e(t).editComponent.fontSize=i),"show-input":"",size:"small",class:"ml-[10px] article-slider",min:12,max:20},null,8,["modelValue"])]),_:1},8,["label"]),o(d,{label:e(s)("textFontWeight")},{default:n(()=>[o(u,{modelValue:e(t).editComponent.fontWeight,"onUpdate:modelValue":l[7]||(l[7]=i=>e(t).editComponent.fontWeight=i)},{default:n(()=>[o(m,{label:"normal"},{default:n(()=>[p(_(e(s)("fontWeightNormal")),1)]),_:1}),o(m,{label:"bold"},{default:n(()=>[p(_(e(s)("fontWeightBold")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),o(d,{label:e(s)("textColor")},{default:n(()=>[o(E,{modelValue:e(t).editComponent.textColor,"onUpdate:modelValue":l[8]||(l[8]=i=>e(t).editComponent.textColor=i)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),X(y.$slots,"style")],512),[[C,e(t).editTab=="style"]])],64)}}});const Ve=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"}));export{Ve as _};