1 |
- import{_ as j}from"./ComponentContainerProperty-319aab40.js";import{d as G,o as i,j as n,w as l,i as e,a as m,m as u,l as H,c as P,F as X,_ as Y,d3 as q,aR as A,ah as I,G as L,ag as M,cX as R,cY as S,H as T}from"./index-df709923.js";import{_ as B}from"./index.vue_vue_type_script_setup_true_lang-63307283.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang-cdf24bdb.js";import{_ as K}from"./UploadFile-b5592e67.js";import{_ as N}from"./UploadImg-15376c0d.js";import{E as O}from"./el-card-91c2276d.js";import{E as Q}from"./el-text-282afb9f.js";import{u as W}from"./util-dd5f5ba0.js";import"./index-4c40d0be.js";import"./color-6e929987.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./vuedraggable.umd-81e2c8c5.js";import"./Dialog-2f8bd685.js";import"./AppLinkSelectDialog.vue_vue_type_script_setup_true_lang-f31fc800.js";import"./ProductCategorySelect.vue_vue_type_script_setup_true_lang-de66c010.js";import"./el-tree-select-880d8b15.js";import"./tree-fd3a041e.js";import"./category-d6126e80.js";import"./SpuTableSelectOne.vue_vue_type_script_setup_true_lang-d7ce15c6.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-e908c5dd.js";import"./index.vue_vue_type_script_setup_true_lang-6fb625ff.js";import"./index-c8bd5ba7.js";import"./el-image-29d644a2.js";import"./el-image-viewer-90ad41b7.js";import"./spu-bd0a0feb.js";import"./UploadFile.vue_vue_type_style_index_0_scoped_a9e67aa2_lang-2736ca2c.js";import"./useMessage-89e9d1aa.js";import"./index-54511734.js";import"./Qrcode-dc43e394.js";import"./IFrame.vue_vue_type_script_setup_true_lang-0abb60a1.js";import"./el-collapse-item-ab99f940.js";const Z=G({name:"CarouselProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(y,{emit:U}){const h=y,x=U,{formData:t}=W(h.modelValue,x);return($,o)=>{const f=Y,V=q,_=A,s=I,d=L,r=M,w=R,g=S,v=Q,c=O,b=N,k=K,z=J,D=B,E=T,F=j;return i(),n(F,{modelValue:m(t).style,"onUpdate:modelValue":o[5]||(o[5]=a=>m(t).style=a)},{default:l(()=>[e(E,{"label-width":"80px",model:m(t)},{default:l(()=>[e(c,{header:"\u6837\u5F0F\u8BBE\u7F6E",class:"property-group",shadow:"never"},{default:l(()=>[e(d,{label:"\u6837\u5F0F",prop:"type"},{default:l(()=>[e(s,{modelValue:m(t).type,"onUpdate:modelValue":o[0]||(o[0]=a=>m(t).type=a)},{default:l(()=>[e(_,{class:"item",content:"\u9ED8\u8BA4",placement:"bottom"},{default:l(()=>[e(V,{label:"default"},{default:l(()=>[e(f,{icon:"system-uicons:carousel"})]),_:1})]),_:1}),e(_,{class:"item",content:"\u5361\u7247",placement:"bottom"},{default:l(()=>[e(V,{label:"card"},{default:l(()=>[e(f,{icon:"ic:round-view-carousel"})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u6307\u793A\u5668",prop:"indicator"},{default:l(()=>[e(s,{modelValue:m(t).indicator,"onUpdate:modelValue":o[1]||(o[1]=a=>m(t).indicator=a)},{default:l(()=>[e(r,{label:"dot"},{default:l(()=>o[6]||(o[6]=[u("\u5C0F\u5706\u70B9")])),_:1}),e(r,{label:"number"},{default:l(()=>o[7]||(o[7]=[u("\u6570\u5B57")])),_:1})]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u662F\u5426\u8F6E\u64AD",prop:"autoplay"},{default:l(()=>[e(w,{modelValue:m(t).autoplay,"onUpdate:modelValue":o[2]||(o[2]=a=>m(t).autoplay=a)},null,8,["modelValue"])]),_:1}),m(t).autoplay?(i(),n(d,{key:0,label:"\u64AD\u653E\u95F4\u9694",prop:"interval"},{default:l(()=>[e(g,{modelValue:m(t).interval,"onUpdate:modelValue":o[3]||(o[3]=a=>m(t).interval=a),max:10,min:.5,step:.5,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"]),e(v,{type:"info"},{default:l(()=>o[8]||(o[8]=[u("\u5355\u4F4D\uFF1A\u79D2")])),_:1})]),_:1})):H("",!0)]),_:1}),e(c,{header:"\u5185\u5BB9\u8BBE\u7F6E",class:"property-group",shadow:"never"},{default:l(()=>[e(D,{modelValue:m(t).items,"onUpdate:modelValue":o[4]||(o[4]=a=>m(t).items=a),"empty-item":{type:"img"}},{default:l(({element:a})=>[e(d,{label:"\u7C7B\u578B",prop:"type",class:"m-b-8px!","label-width":"40px"},{default:l(()=>[e(s,{modelValue:a.type,"onUpdate:modelValue":p=>a.type=p},{default:l(()=>[e(r,{label:"img"},{default:l(()=>o[9]||(o[9]=[u("\u56FE\u7247")])),_:1}),e(r,{label:"video"},{default:l(()=>o[10]||(o[10]=[u("\u89C6\u9891")])),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),a.type==="img"?(i(),n(d,{key:0,label:"\u56FE\u7247",class:"m-b-8px!","label-width":"40px"},{default:l(()=>[e(b,{modelValue:a.imgUrl,"onUpdate:modelValue":p=>a.imgUrl=p,draggable:"false",height:"80px",width:"100%",class:"min-w-80px"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)):(i(),P(X,{key:1},[e(d,{label:"\u5C01\u9762",class:"m-b-8px!","label-width":"40px"},{default:l(()=>[e(b,{modelValue:a.imgUrl,"onUpdate:modelValue":p=>a.imgUrl=p,draggable:"false",height:"80px",width:"100%",class:"min-w-80px"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e(d,{label:"\u89C6\u9891",class:"m-b-8px!","label-width":"40px"},{default:l(()=>[e(k,{modelValue:a.videoUrl,"onUpdate:modelValue":p=>a.videoUrl=p,"file-type":["mp4"],limit:1,"file-size":100,class:"min-w-80px"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)),e(d,{label:"\u94FE\u63A5",class:"m-b-8px!","label-width":"40px"},{default:l(()=>[e(z,{modelValue:a.url,"onUpdate:modelValue":p=>a.url=p},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{Z as default};
|