property-1e3b0eeb.js 1.7 KB

1
  1. import{_ as x}from"./ComponentContainerProperty-319aab40.js";import{d as h,r as u,x as j,o as r,j as n,w as t,i,a,c as A,F as D,A as P,C as U,D as k,G as z,H as C}from"./index-df709923.js";import{u as F}from"./util-dd5f5ba0.js";import{a as G}from"./index-5887794a.js";import"./el-card-91c2276d.js";import"./UploadImg-15376c0d.js";import"./index-54511734.js";import"./el-image-viewer-90ad41b7.js";import"./useMessage-89e9d1aa.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./index-4c40d0be.js";import"./color-6e929987.js";import"./Dialog-2f8bd685.js";import"./Qrcode-dc43e394.js";import"./el-text-282afb9f.js";import"./IFrame.vue_vue_type_script_setup_true_lang-0abb60a1.js";import"./vuedraggable.umd-81e2c8c5.js";import"./el-collapse-item-ab99f940.js";const H=h({name:"PromotionArticleProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(f,{emit:c}){const V=f,_=c,{formData:l}=F(V.modelValue,_),p=u([]),m=u(!1),s=async d=>{m.value=!0;const{list:o}=await G({title:d,pageSize:10});p.value=o,m.value=!1};return j(()=>{s()}),(d,o)=>{const v=U,y=k,b=z,g=C,w=x;return r(),n(w,{modelValue:a(l).style,"onUpdate:modelValue":o[1]||(o[1]=e=>a(l).style=e)},{default:t(()=>[i(g,{"label-width":"40px",model:a(l)},{default:t(()=>[i(b,{label:"\u6587\u7AE0",prop:"id"},{default:t(()=>[i(y,{modelValue:a(l).id,"onUpdate:modelValue":o[0]||(o[0]=e=>a(l).id=e),placeholder:"\u8BF7\u9009\u62E9\u6587\u7AE0",class:"w-full",filterable:"",remote:"","remote-method":s,loading:a(m)},{default:t(()=>[(r(!0),A(D,null,P(a(p),e=>(r(),n(v,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{H as default};