2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
var f=(p,n,s)=>new Promise((c,o)=>{var i=e=>{try{l(s.next(e))}catch(a){o(a)}},m=e=>{try{l(s.throw(e))}catch(a){o(a)}},l=e=>e.done?c(e.value):Promise.resolve(e.value).then(i,m);l((s=s.apply(p,n)).next())});import{m as b,b9 as v,v as g,ab as V,b2 as _,bJ as u,j as d,u as t,ce as y}from"../jse/index-index-CMeVxoEG.js";import{g as w}from"./index-NxhEU1JV.js";import{_ as x}from"./component-container-property.vue_vue_type_script_setup_true_lang-98wrZt8I.js";import{bY as A,c9 as P,bT as S}from"./bootstrap-CRjSNGHY.js";import"./index-BqNZEIdl.js";/* empty css */import"./vuedraggable.umd-C80eNCNV.js";import"./index-Bh-Hd8Ie.js";import"./index-CflXhIdF.js";/* empty css *//* empty css */const I=b({name:"PromotionArticleProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(p,{emit:n}){const o=y(p,"modelValue",n),i=v([]),m=v(!1),l=e=>f(null,null,function*(){m.value=!0;const{list:a}=yield w({title:e,pageNo:1,pageSize:10});i.value=a,m.value=!1});return g(()=>{l()}),(e,a)=>(_(),V(x,{modelValue:t(o).style,"onUpdate:modelValue":a[1]||(a[1]=r=>t(o).style=r)},{default:u(()=>[d(t(A),{"label-col":{span:6},"wrapper-col":{span:18},model:t(o)},{default:u(()=>[d(t(P),{label:"文章",name:"id"},{default:u(()=>[d(t(S),{value:t(o).id,"onUpdate:value":a[0]||(a[0]=r=>t(o).id=r),placeholder:"请选择文章",class:"w-full","show-search":!0,loading:m.value,options:i.value.map(r=>({label:r.title,value:r.id})),onSearch:l},null,8,["value","loading","options"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]))}});export{I as default};
|