"}});return(f,i)=>{const b=l("el-button"),h=l("el-scrollbar"),T=l("el-drawer");return m(),$("div",ge,[e(T,{modelValue:a.dialog.show,"onUpdate:modelValue":i[0]||(i[0]=n=>a.dialog.show=n),size:_.value,direction:"rtl",class:"vel_drawer_override"},{header:t(()=>[be]),default:t(()=>[e(h,null,{default:t(()=>[o("div",he,[o("div",{class:"page_left",style:N({width:_.value+"px",minWidth:_.value+"px"})},[o("div",we,[o("div",ye,[e(H,{articleInfo:s.value,preViewWidth:_.value},null,8,["articleInfo","preViewWidth"]),o("div",Ve,[e(b,{type:"primary",size:"large",onClick:f.onConfirm},{default:t(()=>[r("编辑 ")]),_:1},8,["onClick"])])])])],4)])]),_:1})]),_:1},8,["modelValue","size"])])}}},Te=A(xe,[["__scopeId","data-v-90cac6e7"]]);const Se={class:"page"},Ie={class:"article_title"},$e={class:"action_btn"},De={__name:"page-article-manager",setup(a){const d=v({articleNo:"",articleTitle:"",status:""}),_=v(!0),s=v([]);K(()=>{f()});const f=()=>{P.get("data/articles.json").then(n=>{s.value=n.data.data}).catch(n=>{console.error(n)}).finally(()=>{_.value=!1})},i=v({show:!1}),b=()=>{i.value.show=!0},h=v({show:!1}),T=()=>{h.value.show=!0};return(n,u)=>{const D=l("el-input"),g=l("el-form-item"),V=l("el-option"),S=l("el-select"),w=l("el-button"),U=l("el-form"),I=l("el-card"),W=l("el-row"),y=l("el-table-column"),p=l("el-text"),z=l("el-tag"),L=l("el-empty"),R=l("el-table"),q=l("el-pagination"),F=O("loading");return m(),$("div",Se,[e(I,{shadow:"never",class:"vel_card_override top"},{default:t(()=>[e(U,{inline:!0,model:d.value},{default:t(()=>[e(g,{label:"编号"},{default:t(()=>[e(D,{modelValue:d.value.articleNo,"onUpdate:modelValue":u[0]||(u[0]=c=>d.value.articleNo=c),placeholder:"编号",clearable:"",style:{width:"180px"}},null,8,["modelValue"])]),_:1}),e(g,{label:"标题"},{default:t(()=>[e(D,{modelValue:d.value.articleTitle,"onUpdate:modelValue":u[1]||(u[1]=c=>d.value.articleTitle=c),placeholder:"标题",clearable:"",style:{width:"180px"}},null,8,["modelValue"])]),_:1}),e(g,{label:"状态"},{default:t(()=>[e(S,{modelValue:d.value.status,"onUpdate:modelValue":u[2]||(u[2]=c=>d.value.status=c),size:"default",placeholder:"选择状态",clearable:""},{default:t(()=>[e(V,{label:"已上架",value:"0"}),e(V,{label:"待上架",value:"1"}),e(V,{label:"已下架",value:"2"})]),_:1},8,["modelValue"])]),_:1}),e(g,null,{default:t(()=>[e(w,{type:"primary",plain:"",onClick:u[3]||(u[3]=()=>{})},{default:t(()=>[r("搜索")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(W,{class:"top_btn_panel"},{default:t(()=>[e(w,{type:"primary",onClick:b},{default:t(()=>[r("添加文章")]),_:1})]),_:1}),Q((m(),x(I,{shadow:"never",class:"vel_card_override content"},{default:t(()=>[e(R,{class:"article_table",data:s.value},{empty:t(()=>[e(L,{description:"暂无数据"})]),default:t(()=>[e(y,{prop:"articleNo",label:"编号",sortable:"",width:"100"}),e(y,{label:"文章标题","min-width":"250"},{default:t(c=>[o("div",Ie,[e(p,null,{default:t(()=>[r(k(c.row.articleTitle),1)]),_:2},1024)])]),_:1}),e(y,{label:"时间"},{default:t(c=>[e(p,{type:"info"},{default:t(()=>[r(k(c.row.createTime),1)]),_:2},1024)]),_:1}),e(y,{label:"状态",sortable:"",width:"120"},{default:t(c=>[c.row.status==="0"?(m(),x(z,{key:0},{default:t(()=>[r("已上架")]),_:1})):c.row.status==="1"?(m(),x(z,{key:1,type:"warning"},{default:t(()=>[r("待上架")]),_:1})):c.row.status==="2"?(m(),x(z,{key:2,type:"info"},{default:t(()=>[r("已下架")]),_:1})):C("",!0)]),_:1}),e(y,{fixed:"right",label:"操作",width:"230"},{default:t(c=>[o("div",$e,[e(w,{type:"success",plain:""},{default:t(()=>[r("编辑")]),_:1}),e(w,{type:"primary",plain:"",onClick:T},{default:t(()=>[r("详情")]),_:1}),e(w,{type:"danger",plain:""},{default:t(()=>[r("删除")]),_:1})])]),_:1})]),_:1},8,["data"]),e(q,{background:"",layout:"prev, pager, next",total:1e3})]),_:1})),[[F,_.value]]),i.value.show?(m(),x(ve,{key:0,dialog:i.value,onOnConfirm:u[4]||(u[4]=()=>{})},null,8,["dialog"])):C("",!0),h.value.show?(m(),x(Te,{key:1,dialog:h.value},null,8,["dialog"])):C("",!0)])}}},nt=A(De,[["__scopeId","data-v-235bdff5"]]);export{nt as default};
diff --git a/docs/js/example/page-editor.709de2dc.js b/docs/js/example/page-editor.709de2dc.js
deleted file mode 100644
index 4ce13ed..0000000
--- a/docs/js/example/page-editor.709de2dc.js
+++ /dev/null
@@ -1 +0,0 @@
-import{V as r}from"../vel-editor/vel-editor.ddcf522d.js";import{_ as m}from"../vue-img-cutter/vue-img-cutter.3d5e4c17.js";import{r as i,ah as l,c as n,W as e,o as s}from"../@vue/@vue.5ea14220.js";import"../@wangeditor/@wangeditor.654f9dc1.js";import"../element-plus/element-plus.b000c8d0.js";import"../lodash-es/lodash-es.21c98b27.js";import"../@vueuse/@vueuse.71e72d96.js";import"../@element-plus/@element-plus.b73e6964.js";import"../@popperjs/@popperjs.c75af06c.js";import"../@ctrl/@ctrl.f8748455.js";import"../dayjs/dayjs.10495895.js";import"../@kangc/@kangc.f59435d2.js";import"../vue/vue.1c0a12e0.js";import"../async-validator/async-validator.dee29e8b.js";import"../memoize-one/memoize-one.297ddbcb.js";import"../escape-html/escape-html.66262ebd.js";import"../normalize-wheel-es/normalize-wheel-es.ed76fb12.js";import"../@floating-ui/@floating-ui.72671fae.js";const _={class:"page"},c={__name:"page-editor",setup(d){const t=i({val:""});return(u,o)=>{const p=l("el-input");return s(),n("div",_,[e(r,{content:t.value},null,8,["content"]),e(p,{modelValue:t.value.val,"onUpdate:modelValue":o[0]||(o[0]=a=>t.value.val=a),type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容...",style:{width:"600px","margin-top":"20px"}},null,8,["modelValue"])])}}},W=m(c,[["__scopeId","data-v-792024aa"]]);export{W as default};
diff --git a/docs/js/example/page-goods-manager.365076b6.js b/docs/js/example/page-goods-manager.365076b6.js
deleted file mode 100644
index fbb2a3c..0000000
--- a/docs/js/example/page-goods-manager.365076b6.js
+++ /dev/null
@@ -1 +0,0 @@
-import{r as c,ah as t,o as d,c as g,W as e,Q as l,a as o,U as a,F as E,a9 as G,P as y,V as b,u as q,T as L,i as J,L as ae,aa as se,n as ne,bi as ie,bg as de,ar as ue,R as re}from"../@vue/@vue.5ea14220.js";import{V as _e}from"../vel-sku-single/vel-sku-single.1f9e9ab5.js";import{R as pe,n as Q,S as ce,P as me,B as he}from"../@element-plus/@element-plus.b73e6964.js";import{V as fe}from"../vel-image-cutter-dialog/vel-image-cutter-dialog.a7432ebf.js";import{c as X}from"../CacheUtil/CacheUtil.6e96feae.js";import{V as ve}from"../vel-editor/vel-editor.ddcf522d.js";import{_ as H}from"../vue-img-cutter/vue-img-cutter.3d5e4c17.js";import{i as ge}from"../../assets/index-0401307f.js";import"../pinia/pinia.fb187a93.js";import"../@wangeditor/@wangeditor.654f9dc1.js";import"../element-plus/element-plus.b000c8d0.js";import"../lodash-es/lodash-es.21c98b27.js";import"../@vueuse/@vueuse.71e72d96.js";import"../@popperjs/@popperjs.c75af06c.js";import"../@ctrl/@ctrl.f8748455.js";import"../dayjs/dayjs.10495895.js";import"../@kangc/@kangc.f59435d2.js";import"../vue/vue.1c0a12e0.js";import"../async-validator/async-validator.dee29e8b.js";import"../memoize-one/memoize-one.297ddbcb.js";import"../escape-html/escape-html.66262ebd.js";import"../normalize-wheel-es/normalize-wheel-es.ed76fb12.js";import"../@floating-ui/@floating-ui.72671fae.js";import"../vue-router/vue-router.6ed6991e.js";import"../localforage/localforage.9e9e3b2b.js";import"../js-cookie/js-cookie.edb2da2a.js";import"../axios/axios.47b9d439.js";import"../echarts/echarts.3025caf6.js";import"../tslib/tslib.54e39b60.js";import"../zrender/zrender.7e5d4d80.js";import"../vue-echarts/vue-echarts.8b3ad32f.js";import"../resize-detector/resize-detector.a5205554.js";import"../nprogress/nprogress.d255c298.js";import"../highlight.js/highlight.js.1b3e8c39.js";const be={class:"preview_con_shop"},ye={class:"minapp_header"},we={class:"shop_carousel_list"},Ve={class:"shop_info_panel"},ke={class:"tit_panel"},xe={class:"tit_item price"},Ie={class:"price_real"},Ce={class:"tit_item tit"},Te={class:"share"},Ne={class:"share_con"},De={key:0,class:"tit_item desc"},Se={key:1,class:"tit_item tags"},ze={class:"sku_panel"},$e={style:{"padding-bottom":"10px"}},Ue={class:"sku_info"},Re={class:"sku_right"},qe={class:"choose_more_arrow"},We={class:"choose_time_panel"},Be={style:{"padding-bottom":"10px"}},Ee={class:"time_panel"},Ge={class:"choose_more_arrow"},Le={class:"detail_panel"},Pe=["innerHTML"],Fe={__name:"preview-shop",props:["shopInfo","preViewWidth"],setup(r){const N=(r.preViewWidth-40)*.7,w=c([{label:"天",value:"0",disabled:!1},{label:"月",value:"1",disabled:!0},{label:"小时",value:"2",disabled:!0}]);return(s,P)=>{const _=t("el-text"),W=t("el-image"),m=t("el-carousel-item"),p=t("el-carousel"),V=t("el-icon"),T=t("el-tag"),D=t("el-step"),S=t("el-steps"),z=t("el-tab-pane"),k=t("el-tabs"),B=t("el-scrollbar");return d(),g("div",be,[e(B,null,{default:l(()=>[o("div",ye,[o("span",null,[a("商品详情"),e(_,{type:"info"},{default:l(()=>[a("(预览)")]),_:1})])]),o("div",we,[e(p,{height:N+"px"},{default:l(()=>[(d(!0),g(E,null,G(r.shopInfo.thumbs,x=>(d(),y(m,{key:x.id},{default:l(()=>[e(W,{src:x.src,fit:"fill",style:{width:"100%"}},null,8,["src"])]),_:2},1024))),128))]),_:1},8,["height"])]),o("div",Ve,[o("div",ke,[o("div",xe,[o("span",Ie,[e(_,null,{default:l(()=>[a("¥")]),_:1}),e(_,{style:{"font-size":"22px"},tag:"b"},{default:l(()=>[a(b(r.shopInfo.skus[0].price),1)]),_:1}),e(_,null,{default:l(()=>[a("/"+b(w.value[0].label),1)]),_:1})]),e(_,{type:"info",tag:"del",size:"small"},{default:l(()=>[a("¥"+b(r.shopInfo.skus[0].delPrice)+"/"+b(w.value[0].label),1)]),_:1})]),o("div",Ce,[e(_,{class:"txt",tag:"b"},{default:l(()=>[a(b(r.shopInfo.shopName),1)]),_:1}),o("div",Te,[o("div",Ne,[e(V,null,{default:l(()=>[e(q(pe))]),_:1}),e(_,{size:"small"},{default:l(()=>[a("分享")]),_:1})])])]),r.shopInfo.shopDesc!==""?(d(),g("div",De,[e(_,{type:"info",size:"small"},{default:l(()=>[a(b(r.shopInfo.shopDesc),1)]),_:1})])):L("",!0),r.shopInfo.tags.length>0?(d(),g("div",Se,[(d(!0),g(E,null,G(r.shopInfo.tags,x=>(d(),y(T,{key:x,type:"danger",size:"small",effect:"plain"},{default:l(()=>[a(b(x),1)]),_:2},1024))),128))])):L("",!0)]),o("div",ze,[o("div",$e,[e(_,{tag:"b"},{default:l(()=>[a("规格")]),_:1})]),o("div",Ue,[e(_,{class:"sku_name",type:"info",size:"small"},{default:l(()=>[a(b(r.shopInfo.skus[0].name),1)]),_:1}),o("div",Re,[e(_,{class:"sku_num",type:"info"},{default:l(()=>[a("x1")]),_:1}),o("div",qe,[e(V,null,{default:l(()=>[e(q(Q))]),_:1})])])])]),o("div",We,[o("div",Be,[e(_,{tag:"b"},{default:l(()=>[a("租赁周期")]),_:1})]),o("div",Ee,[e(S,{direction:"vertical",active:1,space:40},{default:l(()=>[e(D,{status:"wait"},{description:l(()=>[a(" 开始时间 : 2023-11-26 ")]),_:1}),e(D,{status:"wait"},{description:l(()=>[a(" 结束时间 : 2023-11-26 ")]),_:1})]),_:1}),o("div",Ge,[e(V,null,{default:l(()=>[e(q(Q))]),_:1})])])]),o("div",Le,[e(k,{model:0},{default:l(()=>[e(z,{label:"商品详情",class:"goods_detail"},{default:l(()=>[o("div",{innerHTML:r.shopInfo.shopDetail.val},null,8,Pe)]),_:1}),e(z,{label:"租赁流程"},{default:l(()=>[a("Config")]),_:1})]),_:1})])])]),_:1})])}}},Me=H(Fe,[["__scopeId","data-v-beeb23a5"]]);const Ae=r=>(ie("data-v-fa703fa8"),r=r(),de(),r),Oe={class:"vel_cpt_panel_drawer_add_goods"},He=Ae(()=>o("h4",null,"添加商品",-1)),Ke={class:"dialog_con"},je={class:"page_left_con"},Qe={class:"preview"},Je={class:"preview_publish"},Xe={class:"page_right",style:{flex:"1"}},Ye={class:"page_right_con"},Ze={class:"add_goods_panel"},el={class:"shop_thumbs"},ll={class:"mask"},tl={__name:"goods-dialog-add",props:["dialog"],emits:["onConfirm"],setup(r,{emit:f}){const R=f,N=c(400),w=c(null),s=c({shopNo:"",shopName:"",shopDesc:"",tags:[],shopType:[],thumbs:[],unit:"0",skus:[{name:"",price:null,delPrice:null,count:null}],status:"1",shopDetail:{val:""}}),P=c([{label:"天",value:"0",disabled:!1},{label:"月",value:"1",disabled:!0},{label:"小时",value:"2",disabled:!0}]);J(()=>{W()});const _=c([]),W=()=>{X.getShopTypeExcludeDisabled().then(h=>{_.value.push(...h)}).catch(h=>{console.error(h)})},m=c(""),p=c(!1),V=c(null),T=h=>{s.value.tags.splice(s.value.tags.indexOf(h),1)},D=()=>{s.value.tags&&s.value.tags.push(m.value),p.value=!1,m.value=""},S=()=>{p.value=!0,ne(()=>{V.value&&V.value.focus()})},z=c({show:!1});let k=0;const B=h=>{k++,s.value.thumbs.push({id:k,src:h.dataURL}),w.value.validateField("thumbs")},x=()=>{z.value.show=!0},A=()=>{w.value.validateField("skus")},O=c({shopNo:[{required:!0,message:"编号不能为空!",trigger:"blur"}],shopName:[{required:!0,message:"商品名称不能为空!",trigger:"blur"},{min:8,max:40,message:"长度在 8 到 40 个字符",trigger:"blur"}],thumbs:[{required:!0,message:"商品图不能为空,请选择商品图!",trigger:"change"}],shopType:[{required:!0,message:"请选择商品分类",trigger:"change"}],unit:[{required:!0,message:"请选择价格单位",trigger:"change"}],skus:[{required:!0,validator:(h,i,U)=>{let I=!0;if(i.length===0)I=!1;else for(let v=0;v{try{await w.value.validate(),console.log("表单验证通过"),R("onConfirm",s.value)}catch{console.log("表单验证未通过")}};return(h,i)=>{const U=t("el-button"),I=t("el-input"),v=t("el-icon"),u=t("el-tooltip"),C=t("el-form-item"),Y=t("el-image"),Z=t("el-tag"),ee=t("el-cascader"),M=t("el-option"),K=t("el-select"),le=t("el-form"),j=t("el-scrollbar"),te=t("el-card"),oe=t("el-drawer");return d(),g("div",Oe,[e(oe,{modelValue:r.dialog.show,"onUpdate:modelValue":i[7]||(i[7]=n=>r.dialog.show=n),size:"80%",direction:"rtl",class:"vel_drawer_override"},{header:l(()=>[He]),default:l(()=>[e(j,null,{default:l(()=>[o("div",Ke,[o("div",{class:"page_left",style:ae({width:N.value+"px",minWidth:N.value+"px"})},[o("div",je,[o("div",Qe,[e(Me,{"pre-view-width":400,"shop-info":s.value},null,8,["shop-info"]),o("div",Je,[e(U,{type:"primary",size:"large",onClick:F},{default:l(()=>[a("保存 ")]),_:1})])])])],4),o("div",Xe,[o("div",Ye,[e(te,{shadow:"never",class:"vel_card_override"},{default:l(()=>[o("div",Ze,[e(j,null,{default:l(()=>[e(le,{model:s.value,ref_key:"formRef",ref:w,rules:O.value,"label-width":"120px"},{default:l(()=>[e(C,{label:"商品编号",prop:"shopNo",style:{"padding-top":"20px"},class:"shop_no"},{default:l(()=>[e(I,{modelValue:s.value.shopNo,"onUpdate:modelValue":i[0]||(i[0]=n=>s.value.shopNo=n),placeholder:"如:#123456",clearable:"",style:{width:"150px"}},null,8,["modelValue"]),e(u,{content:"商品编号为商品唯一标识,和其他商品不能重复!"},{default:l(()=>[e(v,{size:18,color:"#b1b3b8"},{default:l(()=>[e(q(ce))]),_:1})]),_:1})]),_:1}),e(C,{label:"商品名称",prop:"shopName"},{default:l(()=>[e(I,{modelValue:s.value.shopName,"onUpdate:modelValue":i[1]||(i[1]=n=>s.value.shopName=n),clearable:"",style:{width:"400px"}},null,8,["modelValue"])]),_:1}),e(C,{label:"促销信息"},{default:l(()=>[e(I,{modelValue:s.value.shopDesc,"onUpdate:modelValue":i[2]||(i[2]=n=>s.value.shopDesc=n),autosize:{minRows:2,maxRows:4},type:"textarea",maxlength:"100","show-word-limit":"",placeholder:"请输入简短的描述信息,100个字符以内!"},null,8,["modelValue"])]),_:1}),e(C,{label:"商品图",prop:"thumbs",class:"shop_images"},{default:l(()=>[o("div",el,[(d(!0),g(E,null,G(s.value.thumbs,n=>(d(),g("div",{class:"shop_img_list",key:n.id},[e(Y,{class:"shop_img",src:n.src,fit:"fill"},null,8,["src"]),o("span",ll,[e(v,null,{default:l(()=>[e(q(me))]),_:1})])]))),128)),s.value.thumbs.length<7?(d(),g("div",{key:0,class:"el-upload--picture-card",onClick:x},[e(v,null,{default:l(()=>[e(q(he))]),_:1})])):L("",!0)])]),_:1}),e(C,{class:"shop_tags",label:"商品标签"},{default:l(()=>[(d(!0),g(E,null,G(s.value.tags,n=>(d(),y(Z,{key:n,size:"large",closable:"","disable-transitions":!1,onClose:ul=>T(n)},{default:l(()=>[a(b(n),1)]),_:2},1032,["onClose"]))),128)),p.value?(d(),y(I,{key:0,modelValue:m.value,"onUpdate:modelValue":i[3]||(i[3]=n=>m.value=n),size:"default",ref_key:"tagInputRef",ref:V,onKeyup:se(D,["enter"]),onBlur:D,style:{width:"100px"}},null,8,["modelValue","onKeyup"])):(d(),y(U,{key:1,size:"default",onClick:S},{default:l(()=>[a(" + 添加标签 ")]),_:1}))]),_:1}),e(C,{label:"商品分类",prop:"shopType"},{default:l(()=>[e(ee,{props:{expandTrigger:"hover",value:"id",label:"name"},options:_.value,size:"default",modelValue:s.value.shopType,"onUpdate:modelValue":i[4]||(i[4]=n=>s.value.shopType=n),clearable:"",placeholder:"选择分类"},null,8,["options","modelValue"])]),_:1}),e(C,{label:"规格",prop:"skus",class:"sku_panel"},{default:l(()=>[e(_e,{skus:s.value.skus,onOnDelSkuRow:A},null,8,["skus"])]),_:1}),e(C,{label:"价格单位",prop:"unit"},{default:l(()=>[e(K,{modelValue:s.value.unit,"onUpdate:modelValue":i[5]||(i[5]=n=>s.value.unit=n),size:"default",clearable:"",placeholder:"选择单位"},{default:l(()=>[(d(!0),g(E,null,G(P.value,n=>(d(),y(M,{key:n.value,label:n.label,value:n.value,disabled:n.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(C,{label:"状态",prop:"status"},{default:l(()=>[e(K,{modelValue:s.value.status,"onUpdate:modelValue":i[6]||(i[6]=n=>s.value.status=n),clearable:"",size:"default",placeholder:"选择状态"},{default:l(()=>[e(M,{label:"已上架",value:"0"}),e(M,{label:"待上架",value:"1"}),e(M,{label:"已下架",value:"2"})]),_:1},8,["modelValue"])]),_:1}),e(C,{label:"商品描述"},{default:l(()=>[e(ve,{content:s.value.shopDetail,editor_width:""},null,8,["content"])]),_:1})]),_:1},8,["model","rules"])]),_:1})])]),_:1})])]),e(fe,{dialog:z.value,onOnConfirm:B,"cut-width":300,"cut-height":210},null,8,["dialog"])])]),_:1})]),_:1},8,["modelValue"])])}}},ol=H(tl,[["__scopeId","data-v-fa703fa8"]]);const al={class:"page"},sl={class:"shop_name"},nl={class:"shop_type"},il={class:"action_btn"},dl={__name:"page-goods-manager",setup(r){const f=c({shopNo:"",shopName:"",shopType:[],status:""}),R=c(!0),N=c([]),w=c([]);J(()=>{s(),P()});const s=()=>{X.getShopTypeExcludeDisabled().then(m=>{w.value.push(...m)}).catch(m=>{console.error(m)})},P=()=>{R.value=!0,ge.get("data/goods.json").then(m=>{N.value=m.data.data}).catch(m=>{console.error(m)}).finally(()=>{R.value=!1})},_=c({show:!1}),W=()=>{_.value.show=!0};return(m,p)=>{const V=t("el-input"),T=t("el-form-item"),D=t("el-cascader"),S=t("el-option"),z=t("el-select"),k=t("el-button"),B=t("el-form"),x=t("el-card"),A=t("el-row"),$=t("el-table-column"),O=t("el-image"),F=t("el-text"),h=t("el-tag"),i=t("el-empty"),U=t("el-table"),I=t("el-pagination"),v=ue("loading");return d(),g("div",al,[e(x,{shadow:"never",class:"vel_card_override top"},{default:l(()=>[e(B,{inline:!0,model:f.value},{default:l(()=>[e(T,{label:"编号"},{default:l(()=>[e(V,{modelValue:f.value.shopNo,"onUpdate:modelValue":p[0]||(p[0]=u=>f.value.shopNo=u),placeholder:"商品编号",clearable:"",style:{width:"180px"}},null,8,["modelValue"])]),_:1}),e(T,{label:"名称"},{default:l(()=>[e(V,{modelValue:f.value.shopName,"onUpdate:modelValue":p[1]||(p[1]=u=>f.value.shopName=u),placeholder:"商品名称",clearable:"",style:{width:"180px"}},null,8,["modelValue"])]),_:1}),e(T,{label:"分类"},{default:l(()=>[e(D,{props:{expandTrigger:"hover",value:"id",label:"name"},options:w.value,size:"default",modelValue:f.value.shopType,"onUpdate:modelValue":p[2]||(p[2]=u=>f.value.shopType=u),clearable:"",placeholder:"选择分类"},null,8,["options","modelValue"])]),_:1}),e(T,{label:"状态"},{default:l(()=>[e(z,{modelValue:f.value.status,"onUpdate:modelValue":p[3]||(p[3]=u=>f.value.status=u),size:"default",placeholder:"选择状态",clearable:""},{default:l(()=>[e(S,{label:"已上架",value:"0"}),e(S,{label:"待上架",value:"1"}),e(S,{label:"已下架",value:"2"})]),_:1},8,["modelValue"])]),_:1}),e(T,null,{default:l(()=>[e(k,{type:"primary",plain:"",onClick:p[4]||(p[4]=()=>{})},{default:l(()=>[a("搜索")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(A,{class:"top_btn_panel"},{default:l(()=>[e(k,{type:"primary",onClick:W},{default:l(()=>[a("添加商品")]),_:1})]),_:1}),re((d(),y(x,{shadow:"never",class:"vel_card_override content"},{default:l(()=>[e(U,{class:"shop_table",data:N.value},{empty:l(()=>[e(i,{description:"暂无数据"})]),default:l(()=>[e($,{prop:"shopNo",label:"编号",sortable:"",width:"100"}),e($,{prop:"thumb",label:"缩略图","min-width":"150"},{default:l(u=>[e(O,{class:"goods_thumb",src:u.row.thumb},null,8,["src"])]),_:1}),e($,{label:"商品名称","min-width":"250"},{default:l(u=>[o("div",sl,[e(F,null,{default:l(()=>[a(b(u.row.shopName),1)]),_:2},1024)])]),_:1}),e($,{label:"分类",width:"180"},{default:l(u=>[o("div",nl,[e(F,null,{default:l(()=>[a(b(u.row.shopTypeName),1)]),_:2},1024)])]),_:1}),e($,{label:"状态",sortable:"",width:"120"},{default:l(u=>[u.row.status==="0"?(d(),y(h,{key:0},{default:l(()=>[a("已上架")]),_:1})):u.row.status==="1"?(d(),y(h,{key:1,type:"warning"},{default:l(()=>[a("待上架")]),_:1})):u.row.status==="2"?(d(),y(h,{key:2,type:"info"},{default:l(()=>[a("已下架")]),_:1})):L("",!0)]),_:1}),e($,{fixed:"right",label:"操作",width:"230"},{default:l(u=>[o("div",il,[e(k,{type:"success",plain:""},{default:l(()=>[a("编辑")]),_:1}),e(k,{type:"primary",plain:""},{default:l(()=>[a("详情")]),_:1}),e(k,{type:"danger",plain:""},{default:l(()=>[a("删除")]),_:1})])]),_:1})]),_:1},8,["data"]),e(I,{background:"",layout:"prev, pager, next",total:1e3})]),_:1})),[[v,R.value]]),_.value.show?(d(),y(ol,{key:0,dialog:_.value,onOnConfirm:p[5]||(p[5]=()=>{})},null,8,["dialog"])):L("",!0)])}}},Al=H(dl,[["__scopeId","data-v-a9aa33fa"]]);export{Al as default};
diff --git a/docs/js/example/page-img-cutter.a13caebb.js b/docs/js/example/page-img-cutter.a13caebb.js
deleted file mode 100644
index e85c14e..0000000
--- a/docs/js/example/page-img-cutter.a13caebb.js
+++ /dev/null
@@ -1 +0,0 @@
-import{V as m}from"../vel-image-cutter-dialog/vel-image-cutter-dialog.a7432ebf.js";import{_ as h}from"../vue-img-cutter/vue-img-cutter.3d5e4c17.js";import{r,ah as o,c as f,a as c,W as t,Q as a,F as v,o as b,U as x,bi as w,bg as I}from"../@vue/@vue.5ea14220.js";const _=e=>(w("data-v-9842bc0b"),e=e(),I(),e),C={class:"page"},y=_(()=>c("p",null,"预览",-1)),V=_(()=>c("br",null,null,-1)),k={__name:"page-img-cutter",setup(e){const s=r(""),n=r({show:!1}),d=l=>{s.value=l.dataURL},i=()=>{n.value.show=!0};return(l,B)=>{const p=o("el-image"),u=o("el-button"),g=o("el-card");return b(),f(v,null,[c("div",C,[t(g,{shadow:"never",class:"vel_card_override"},{default:a(()=>[t(p,{src:s.value,style:{width:"300px",height:"150px","background-color":"#f0f2f5",display:"flex","justify-content":"center","align-items":"center"}},{error:a(()=>[y]),_:1},8,["src"]),V,t(u,{onClick:i},{default:a(()=>[x("选择图片")]),_:1})]),_:1})]),t(m,{dialog:n.value,onOnConfirm:d,"cut-width":300,"cut-height":150},null,8,["dialog"])],64)}}},U=h(k,[["__scopeId","data-v-9842bc0b"]]);export{U as default};
diff --git a/docs/js/example/page-index-manager.4f6a3cb8.js b/docs/js/example/page-index-manager.4f6a3cb8.js
deleted file mode 100644
index 4864e5b..0000000
--- a/docs/js/example/page-index-manager.4f6a3cb8.js
+++ /dev/null
@@ -1 +0,0 @@
-import{e as G}from"../vue-draggable-plus/vue-draggable-plus.6c5cba1e.js";import{i as U}from"../../assets/index-0401307f.js";import{_ as I}from"../vue-img-cutter/vue-img-cutter.3d5e4c17.js";import{r as C,ah as a,o as p,c as m,W as l,Q as s,a as o,F as z,a9 as S,P as y,u as t,U as i,bi as j,bg as F,L as d,V as B,i as H,f as J,ar as K,R as X,T as A}from"../@vue/@vue.5ea14220.js";import"../pinia/pinia.fb187a93.js";import"../vue-router/vue-router.6ed6991e.js";import"../localforage/localforage.9e9e3b2b.js";import"../@kangc/@kangc.f59435d2.js";import"../vue/vue.1c0a12e0.js";import"../js-cookie/js-cookie.edb2da2a.js";import"../axios/axios.47b9d439.js";import"../element-plus/element-plus.b000c8d0.js";import"../lodash-es/lodash-es.21c98b27.js";import"../@vueuse/@vueuse.71e72d96.js";import"../@element-plus/@element-plus.b73e6964.js";import"../@popperjs/@popperjs.c75af06c.js";import"../@ctrl/@ctrl.f8748455.js";import"../dayjs/dayjs.10495895.js";import"../async-validator/async-validator.dee29e8b.js";import"../memoize-one/memoize-one.297ddbcb.js";import"../escape-html/escape-html.66262ebd.js";import"../normalize-wheel-es/normalize-wheel-es.ed76fb12.js";import"../@floating-ui/@floating-ui.72671fae.js";import"../echarts/echarts.3025caf6.js";import"../tslib/tslib.54e39b60.js";import"../zrender/zrender.7e5d4d80.js";import"../vue-echarts/vue-echarts.8b3ad32f.js";import"../resize-detector/resize-detector.a5205554.js";import"../nprogress/nprogress.d255c298.js";import"../highlight.js/highlight.js.1b3e8c39.js";const Y=u=>(j("data-v-90ea0904"),u=u(),F(),u),Z={class:"vel_cpt_panel_drawer_choose_module"},ee=Y(()=>o("h4",null,"选择模块",-1)),te={class:"dialog_con"},le={class:"con_list"},oe={style:{flex:"auto"}},se={__name:"index-module-dialog-choose",props:["dialog"],emits:["onChoose"],setup(u,{emit:v}){const e=u,n=v,g=e.dialog,r=C([{type:1,chooseEd:!1},{type:2,chooseEd:!1},{type:3,chooseEd:!1},{type:4,chooseEd:!1},{type:5,chooseEd:!0},{type:6,chooseEd:!1},{type:7,chooseEd:!1},{type:8,chooseEd:!1},{type:9,chooseEd:!1}]),_=M=>{let $=r.value.find(k=>k.chooseEd);$.chooseEd=!1;let w=r.value.find(k=>k.type===M.type);w.chooseEd=!0},c=()=>{x();let M=r.value.find($=>$.chooseEd);n("onChoose",M)},x=()=>{g.show=!1};return(M,$)=>{const w=a("el-image"),k=a("el-card"),T=a("el-scrollbar"),D=a("el-button"),f=a("el-drawer");return p(),m("div",Z,[l(f,{modelValue:t(g).show,"onUpdate:modelValue":$[0]||($[0]=b=>t(g).show=b),direction:"rtl",class:"vel_drawer_override"},{header:s(()=>[ee]),default:s(()=>[o("div",te,[l(T,null,{default:s(()=>[o("div",le,[(p(!0),m(z,null,S(r.value,b=>(p(),y(k,{key:b.type,shadow:b.chooseEd?"always":"hover",class:"vel_card_thumb_override"},{default:s(()=>[l(w,{onClick:E=>_(b),class:"img_thumb",src:t(U).defaults.baseURL+"/res/imgs/index-module-thumb-"+b.type+".jpg"},null,8,["onClick","src"])]),_:2},1032,["shadow"]))),128))])]),_:1})])]),footer:s(()=>[o("div",oe,[l(D,{onClick:x},{default:s(()=>[i("取消")]),_:1}),l(D,{type:"primary",onClick:c},{default:s(()=>[i("确定")]),_:1})])]),_:1},8,["modelValue"])])}}},ne=I(se,[["__scopeId","data-v-90ea0904"]]);const _e={class:"vel_cpt_panel_dialog_add_module"},de={class:"dialog-footer"},ae="100px",ie={__name:"index-module-dialog-add",props:["dialog"],emits:["onConfirm"],setup(u,{emit:v}){const e=u,n=v,g=e.dialog,r={moduleNo:"",moduleTit:"",isShowTit:!1,moduleType:5,status:"0"},_=C({...r}),c=C({show:!1}),x=()=>{c.value.show=!0},M=D=>{_.value.moduleType=D.type},$=async()=>{try{await T.value.validate(),n("onConfirm",_.value),w()}catch{console.log("表单验证未通过")}},w=()=>{g.show=!1,_.value=r},k=C({moduleNo:[{required:!0,message:"编号不能为空!",trigger:"blur"}],moduleTit:[{required:!0,message:"模块名称不能为空!",trigger:"blur"},{min:2,max:4,message:"长度在 2 到 4 个字符",trigger:"blur"}],status:[{required:!0,message:"请选择状态",trigger:"change"}]}),T=C(null);return(D,f)=>{const b=a("el-input"),E=a("el-form-item"),N=a("el-checkbox"),L=a("el-option"),h=a("el-select"),O=a("el-image"),P=a("el-card"),R=a("el-button"),W=a("el-form"),Q=a("el-dialog");return p(),m("div",_e,[l(Q,{modelValue:t(g).show,"onUpdate:modelValue":f[4]||(f[4]=V=>t(g).show=V),title:"添加模块"},{footer:s(()=>[o("span",de,[l(R,{onClick:w},{default:s(()=>[i("取消")]),_:1}),l(R,{type:"primary",onClick:$},{default:s(()=>[i("确定")]),_:1})])]),default:s(()=>[l(W,{model:_.value,ref_key:"formRef",ref:T,rules:k.value,"label-width":ae},{default:s(()=>[l(E,{label:"编号",prop:"moduleNo"},{default:s(()=>[l(b,{modelValue:_.value.moduleNo,"onUpdate:modelValue":f[0]||(f[0]=V=>_.value.moduleNo=V),clearable:""},null,8,["modelValue"])]),_:1}),l(E,{label:"标题",prop:"moduleTit",class:"vel_from_item_tit"},{default:s(()=>[l(b,{modelValue:_.value.moduleTit,"onUpdate:modelValue":f[1]||(f[1]=V=>_.value.moduleTit=V),clearable:""},null,8,["modelValue"]),l(N,{modelValue:_.value.isShowTit,"onUpdate:modelValue":f[2]||(f[2]=V=>_.value.isShowTit=V),label:"显示标题",size:"large"},null,8,["modelValue"])]),_:1}),l(E,{label:"状态",prop:"status"},{default:s(()=>[l(h,{modelValue:_.value.status,"onUpdate:modelValue":f[3]||(f[3]=V=>_.value.status=V),size:"default",placeholder:"选择状态"},{default:s(()=>[l(L,{label:"正常",value:"0"}),l(L,{label:"停用",value:"1"})]),_:1},8,["modelValue"])]),_:1}),l(E,{label:"布局类型",class:"el_form_item_choose_module"},{default:s(()=>[l(P,{class:"vel_card_thumb_override"},{default:s(()=>[l(O,{src:t(U).defaults.baseURL+"/res/imgs/index-module-thumb-"+_.value.moduleType+".jpg",class:"img_thumb"},null,8,["src"])]),_:1}),l(R,{onClick:x},{default:s(()=>[i("选择模块类型")]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"]),l(ne,{dialog:c.value,onOnChoose:M},null,8,["dialog"])])}}},ce=I(ie,[["__scopeId","data-v-7bdaa504"]]);const pe={__name:"index-module-1",props:["width"],setup(u){const e=u.width,n=e/2;return(g,r)=>{const _=a("el-text"),c=a("el-image");return p(),m("div",{class:"vel_cpt_panel_index_module_1",style:d({width:t(e)+"px"})},[o("div",{class:"item_con",style:d({width:t(e)+"px",height:n+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 1")]),_:1})]),_:1})],4)],4)}}},ue=I(pe,[["__scopeId","data-v-6754fe28"]]);const re={__name:"index-module-2",props:["width"],setup(u){const e=u.width,n=e/4;return(g,r)=>{const _=a("el-avatar"),c=a("el-text");return p(),m("div",{class:"vel_cpt_panel_index_module_2",style:d({width:t(e)+"px"})},[(p(),m(z,null,S([1,2,3,4,5,6,7,8],x=>o("div",{class:"item_con",key:x,style:d({width:n+"px",height:n+"px"})},[l(_,{size:n-n*.4},null,8,["size"]),l(c,null,{default:s(()=>[i("推荐模块")]),_:1})],4)),64))],4)}}},he=I(re,[["__scopeId","data-v-b12a4ba0"]]);const me={class:"vel_cpt_panel_index_module_3"},ge={class:"panel_tit_con"},xe={__name:"index-module-3",props:["width"],setup(u){const e=u.width,n=e/2;return(g,r)=>{const _=a("el-text"),c=a("el-image");return p(),m("div",me,[o("div",{class:"panel_tit",style:d({paddingLeft:t(e)*.025+"px"})},[o("div",ge,[l(_,{tag:"b",size:"large"},{default:s(()=>[i("限时抢购")]),_:1})])],4),o("div",{class:"panel_con",style:d({width:t(e)+"px",height:n+"px"})},[o("div",{class:"item_con",style:d({width:t(e)-t(e)*.025*2+"px",height:n-t(e)*.025*2+"px"})},[(p(),m(z,null,S([1,2,3,4],x=>o("div",{class:"item",key:x,style:d({width:n-t(e)*.025*1.5+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 "+B(x),1)]),_:2},1024)]),_:2},1024)],4)),64))],4)],4)])}}},ve=I(xe,[["__scopeId","data-v-cb2204cc"]]);const fe={class:"vel_cpt_panel_index_module_4"},ye={class:"panel_tit_con"},we={__name:"index-module-4",props:["width"],setup(u){const e=u.width,n=e/2;return(g,r)=>{const _=a("el-text"),c=a("el-image");return p(),m("div",fe,[o("div",{class:"panel_tit",style:d({paddingLeft:t(e)*.025+"px"})},[o("div",ye,[l(_,{tag:"b",size:"large"},{default:s(()=>[i("限时抢购")]),_:1})])],4),o("div",{class:"panel_con",style:d({width:t(e)+"px",height:n+"px"})},[o("div",{class:"item_con",style:d({width:t(e)-t(e)*.025*2+"px",height:n-t(e)*.025*2+"px"})},[o("div",{class:"item",style:d({width:t(e)-t(e)*.025*2+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 1")]),_:1})]),_:1})],4),o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 2")]),_:1})]),_:1})],4),o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 3")]),_:1})]),_:1})],4)],4)],4)])}}},be=I(we,[["__scopeId","data-v-f27fe8a5"]]);const Ie={class:"vel_cpt_panel_index_module_5"},Me={class:"panel_tit_con"},$e={__name:"index-module-5",props:["width"],setup(u){const e=u.width,n=e/2;return(g,r)=>{const _=a("el-text"),c=a("el-image");return p(),m("div",Ie,[o("div",{class:"panel_tit",style:d({paddingLeft:t(e)*.025+"px"})},[o("div",Me,[l(_,{tag:"b",size:"large"},{default:s(()=>[i("限时抢购")]),_:1})])],4),o("div",{class:"panel_con",style:d({width:t(e)+"px",height:n+"px"})},[o("div",{class:"item_con",style:d({width:t(e)-t(e)*.025*2+"px",height:n-t(e)*.025*2+"px"})},[o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 1")]),_:1})]),_:1})],4),o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 2")]),_:1})]),_:1})],4),o("div",{class:"item",style:d({width:t(e)-t(e)*.025*2+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 3")]),_:1})]),_:1})],4)],4)],4)])}}},ke=I($e,[["__scopeId","data-v-4bb1f06e"]]);const Ve={class:"vel_cpt_panel_index_module_6"},Ce={class:"panel_tit_con"},De={__name:"index-module-6",props:["width"],setup(u){const e=u.width,n=e/2;return(g,r)=>{const _=a("el-text"),c=a("el-image");return p(),m("div",Ve,[o("div",{class:"panel_tit",style:d({paddingLeft:t(e)*.025+"px"})},[o("div",Ce,[l(_,{tag:"b",size:"large"},{default:s(()=>[i("限时抢购")]),_:1})])],4),o("div",{class:"panel_con",style:d({width:t(e)+"px",height:n+"px"})},[o("div",{class:"item_con",style:d({width:t(e)-t(e)*.025*2+"px",height:n-t(e)*.025*2+"px"})},[o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n-t(e)*.025*2+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 1")]),_:1})]),_:1})],4),o("div",{class:"item_con_right",style:d({width:n-t(e)*.025*1.5+"px",height:n-t(e)*.025*2+"px"})},[o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 2")]),_:1})]),_:1})],4),o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 3")]),_:1})]),_:1})],4)],4)],4)],4)])}}},Ee=I(De,[["__scopeId","data-v-c8539eae"]]);const Te={class:"vel_cpt_panel_index_module_7"},ze={class:"panel_tit_con"},Se={__name:"index-module-7",props:["width"],setup(u){const e=u.width,n=e/2;return(g,r)=>{const _=a("el-text"),c=a("el-image");return p(),m("div",Te,[o("div",{class:"panel_tit",style:d({paddingLeft:t(e)*.025+"px"})},[o("div",ze,[l(_,{tag:"b",size:"large"},{default:s(()=>[i("限时抢购")]),_:1})])],4),o("div",{class:"panel_con",style:d({width:t(e)+"px",height:n+"px"})},[o("div",{class:"item_con",style:d({width:t(e)-t(e)*.025*2+"px",height:n-t(e)*.025*2+"px"})},[o("div",{class:"item_con_left",style:d({width:n-t(e)*.025*1.5+"px",height:n-t(e)*.025*2+"px"})},[o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 1")]),_:1})]),_:1})],4),o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n/2-t(e)*.025*1.5+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 2")]),_:1})]),_:1})],4)],4),o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n-t(e)*.025*2+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 3")]),_:1})]),_:1})],4)],4)],4)])}}},Le=I(Se,[["__scopeId","data-v-2d89e197"]]);const Ue={class:"vel_cpt_panel_index_module_8"},Ne={class:"panel_tit_con"},Re={__name:"index-module-8",props:["width"],setup(u){const e=u.width,n=e/3;return(g,r)=>{const _=a("el-text"),c=a("el-image");return p(),m("div",Ue,[o("div",{class:"panel_tit",style:d({paddingLeft:t(e)*.025+"px"})},[o("div",Ne,[l(_,{tag:"b",size:"large"},{default:s(()=>[i("限时抢购")]),_:1})])],4),o("div",{class:"panel_con",style:d({width:t(e)+"px",height:n+"px"})},[o("div",{class:"item_con",style:d({width:t(e)-t(e)*.025*2+"px",height:n-t(e)*.025*2+"px"})},[o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n-t(e)*.025*2+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 1")]),_:1})]),_:1})],4),o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n-t(e)*.025*2+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 2")]),_:1})]),_:1})],4),o("div",{class:"item",style:d({width:n-t(e)*.025*1.5+"px",height:n-t(e)*.025*2+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 3")]),_:1})]),_:1})],4)],4)],4)])}}},Ae=I(Re,[["__scopeId","data-v-5b32170d"]]);const Be={class:"vel_cpt_panel_index_module_9"},je={class:"panel_tit_con"},Fe={__name:"index-module-9",props:["width"],setup(u){const e=u.width,n=e/3;return(g,r)=>{const _=a("el-text"),c=a("el-image");return p(),m("div",Be,[o("div",{class:"panel_tit",style:d({paddingLeft:t(e)*.025+"px"})},[o("div",je,[l(_,{tag:"b",size:"large"},{default:s(()=>[i("限时抢购")]),_:1})])],4),o("div",{class:"panel_con",style:d({width:t(e)+"px",height:n+"px"})},[o("div",{class:"item_con",style:d({width:t(e)-t(e)*.025*2+"px",height:n-t(e)*.025*2+"px"})},[o("div",{class:"item",style:d({width:t(e)-t(e)*.025*2+"px",height:n-t(e)*.025*2+"px"})},[l(c,null,{error:s(()=>[l(_,null,{default:s(()=>[i("图 1")]),_:1})]),_:1})],4)],4)],4)])}}},qe=I(Fe,[["__scopeId","data-v-c0c5a306"]]);const q=u=>(j("data-v-37c3b758"),u=u(),F(),u),Oe={class:"page"},Pe={class:"page_left"},We={class:"preview"},Qe={class:"preview_con"},Ge=q(()=>o("div",{class:"minapp_header"},[o("span",null,"首页")],-1)),He={class:"publish"},Je={class:"page_right"},Ke={class:"right_header"},Xe={class:"right_content"},Ye=q(()=>o("thead",null,[o("tr",null,[o("th"),o("th",null,"布局类型"),o("th",null,"编号"),o("th",null,"标题"),o("th",null,"状态"),o("th",null,"操作")])],-1)),Ze={class:"sort-target"},et={class:"cursor-move"},tt={class:"item_title"},lt={class:"module_item_action"},ot={class:"action_btn"},st={key:0,class:"no_content"},nt={__name:"page-index-manager",setup(u){const v=C({show:!1}),e=()=>{v.value.show=!0},n=x=>{console.log("添加首页模块:--> "+x)},g=C(!0),r=C([]),_=C(!0);H(()=>{c()});const c=()=>{U.get("/data/indexModule.json").then(async x=>{await new Promise(M=>setTimeout(M,1e3)),r.value=x.data.data}).catch(x=>{console.error(x)}).finally(()=>{g.value=!1})};return J(()=>r.value,x=>{_.value=!1}),(x,M)=>{const $=a("el-scrollbar"),w=a("el-button"),k=a("Switch"),T=a("el-icon"),D=a("el-image"),f=a("el-text"),b=a("el-tag"),E=a("el-empty"),N=a("el-card"),L=K("loading");return p(),m("div",Oe,[o("div",Pe,[o("div",We,[o("div",Qe,[l($,null,{default:s(()=>[Ge,(p(!0),m(z,null,S(r.value,h=>(p(),m(z,{key:h},[h.id===1?(p(),y(ue,{key:0,width:360})):h.id===2?(p(),y(he,{key:1,width:360})):h.id===3?(p(),y(ve,{key:2,width:360})):h.id===4?(p(),y(be,{key:3,width:360})):h.id===5?(p(),y(ke,{key:4,width:360})):h.id===6?(p(),y(Ee,{key:5,width:360})):h.id===7?(p(),y(Le,{key:6,width:360})):h.id===8?(p(),y(Ae,{key:7,width:360})):h.id===9?(p(),y(qe,{key:8,width:360})):A("",!0)],64))),128))]),_:1})])]),o("div",He,[l(w,{type:"primary",disabled:_.value,size:"large",style:{width:"100%"}},{default:s(()=>[i("立即发布 ")]),_:1},8,["disabled"])])]),o("div",Je,[X((p(),y(N,{shadow:"never",class:"vel_card_override"},{default:s(()=>[o("div",Ke,[l(w,{type:"primary",onClick:e},{default:s(()=>[i("添加模块")]),_:1})]),o("div",Xe,[l($,null,{default:s(()=>[l(t(G),{class:"right_content_panel",modelValue:r.value,"onUpdate:modelValue":M[0]||(M[0]=h=>r.value=h),target:".sort-target",ghostClass:"ghost",animation:"150"},{default:s(()=>[o("table",null,[Ye,o("tbody",Ze,[(p(!0),m(z,null,S(r.value,h=>(p(),m("tr",{key:h},[o("td",et,[l(T,null,{default:s(()=>[l(k)]),_:1})]),o("td",null,[l(D,{class:"module_item_img",src:t(U).defaults.baseURL+"/res/imgs/index-module-thumb-"+h.id+".jpg"},null,8,["src"])]),o("td",null,[l(f,null,{default:s(()=>[i(B(h.no),1)]),_:2},1024)]),o("td",null,[o("div",tt,[l(f,null,{default:s(()=>[i(B(h.title),1)]),_:2},1024)])]),o("td",null,[h.status===0?(p(),y(b,{key:0},{default:s(()=>[i("正常")]),_:1})):h.status===-1?(p(),y(b,{key:1,type:"info"},{default:s(()=>[i("停用")]),_:1})):A("",!0)]),o("td",lt,[o("div",ot,[l(w,{type:"success",plain:""},{default:s(()=>[i("编辑")]),_:1}),l(w,{type:"primary",plain:""},{default:s(()=>[i("数据")]),_:1}),l(w,{type:"danger",plain:""},{default:s(()=>[i("删除")]),_:1})])])]))),128))])])]),_:1},8,["modelValue"]),r.value.length===0?(p(),m("div",st,[l(E,{description:"暂无数据"})])):A("",!0)]),_:1})])]),_:1})),[[L,g.value]])]),l(ce,{dialog:v.value,onOnConfirm:n},null,8,["dialog"])])}}},Nt=I(nt,[["__scopeId","data-v-37c3b758"]]);export{Nt as default};
diff --git a/docs/js/example/page-markdown.436cc127.js b/docs/js/example/page-markdown.436cc127.js
deleted file mode 100644
index becfde0..0000000
--- a/docs/js/example/page-markdown.436cc127.js
+++ /dev/null
@@ -1,60 +0,0 @@
-import{_ as l}from"../vue-img-cutter/vue-img-cutter.3d5e4c17.js";import{r as a,i as p,ah as o,c as u,a as g,W as r,Q as h,o as v}from"../@vue/@vue.5ea14220.js";const _={class:"page"},s=`
@@ -14,7 +14,7 @@
\ No newline at end of file
diff --git a/src/components/common/_vel-cpt/vel-timeline.vue b/src/components/common/_usr-cpt/usr-timeline.vue
similarity index 63%
rename from src/components/common/_vel-cpt/vel-timeline.vue
rename to src/components/common/_usr-cpt/usr-timeline.vue
index 6a40bda..617b002 100644
--- a/src/components/common/_vel-cpt/vel-timeline.vue
+++ b/src/components/common/_usr-cpt/usr-timeline.vue
@@ -18,47 +18,47 @@ const props = defineProps(['timelines'])
-
-
-
+
+
+
{{item.data}}
{{item.time}}
-
+
-
-
{{item.title}}
-
{{item.desc}}
+
+
{{item.title}}
+
{{item.desc}}
\ No newline at end of file
diff --git a/src/components/common/article-dialog-add.vue b/src/components/common/article-dialog-add.vue
index f5575ef..e3f6331 100644
--- a/src/components/common/article-dialog-add.vue
+++ b/src/components/common/article-dialog-add.vue
@@ -2,7 +2,7 @@
import DateUtil from "@/utils/DateUtil.js";
import {ref} from "vue";
import PreviewArticle from "@/components/common/preview-article.vue";
-import VelEditor from "@/components/common/_vel-cpt/vel-editor.vue";
+import usrEditor from "@/components/common/_usr-cpt/usr-editor.vue";
const props = defineProps(['dialog'])
// 定义抛出事件
@@ -56,8 +56,8 @@ const onConfirm = async () => {
-
-
+
+
添加文章
@@ -77,7 +77,7 @@ const onConfirm = async () => {
-
+
{
-
+ :editor_height="450">
@@ -120,15 +120,15 @@ const onConfirm = async () => {
\ No newline at end of file
diff --git a/src/views/other/page-chart.vue b/src/views/other/page-chart.vue
index 4f9e646..699c2a7 100644
--- a/src/views/other/page-chart.vue
+++ b/src/views/other/page-chart.vue
@@ -1,6 +1,6 @@