quick-admin-vue3-core
Version:
以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板
2 lines (1 loc) • 4.65 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./StaticComponent.vue_vue_type_script_setup_true_lang-Cxd943Rv.cjs"),x=require("./ModelComponent.vue_vue_type_script_setup_true_lang-D2OJM0zZ.cjs"),f=require("./index-BC11nvhb.cjs"),m=require("./platform-Dl0zaSyI.cjs");;/* empty css */const N={class:"q-page-view"},V=e.defineComponent({name:"DemoCenterCompsPopup",__name:"index",setup(v){const{openPopup:n,closePopup:a}=f.usePopup(),i=f.useOpenGlobalPopup(),l=e.reactive({name:"张三"});function p(u){n({title:"关闭确认",onConfirm(){a(),u()},footer:"confirm"},"确认关闭吗?")}return(u,t)=>{const o=e.resolveComponent("el-button"),d=e.resolveComponent("BaseSection");return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(d,{title:"打开弹窗基础用法(默认为dialog)"},{default:e.withCtx(()=>[e.createVNode(o,{onClick:t[0]||(t[0]=r=>e.unref(n)({title:"温馨提示",beforeClose:p,footer:"confirm"},s._sfc_main)),type:"primary",plain:""},{default:e.withCtx(()=>t[14]||(t[14]=[e.createTextVNode(" 打开二次确认关闭弹窗(点击弹窗右上角x) ")])),_:1}),e.createVNode(o,{type:"primary",plain:"",onClick:t[1]||(t[1]=r=>{e.unref(n)("打开表单弹窗",[x._sfc_main,{data:e.unref(l),onConfirm(C){Object.assign(e.unref(l),C)}}])})},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode("打开表单弹窗")])),_:1})]),_:1}),e.createVNode(d,{title:"打开对话框(dialog)"},{default:e.withCtx(()=>[e.createVNode(o,{onClick:t[2]||(t[2]=r=>e.unref(n)("弹窗","常规弹窗")),type:"warning"},{default:e.withCtx(()=>t[16]||(t[16]=[e.createTextVNode("打开常规弹窗")])),_:1}),e.createVNode(o,{onClick:t[3]||(t[3]=r=>e.unref(n)(["div",{},"弹窗标题(自定义渲染)"],"弹窗内容")),type:"warning"},{default:e.withCtx(()=>t[17]||(t[17]=[e.createTextVNode("打开弹窗(自定义header)")])),_:1}),e.createVNode(o,{onClick:t[4]||(t[4]=r=>{e.unref(n)({title:"弹窗",onConfirm(){e.unref(m.ElMessage).info("点击了确认按钮")},footer:"confirm"},"弹窗内容")}),type:"warning"},{default:e.withCtx(()=>t[18]||(t[18]=[e.createTextVNode("打开弹窗(自定义footer,传'confirm')")])),_:1}),e.createVNode(o,{onClick:t[5]||(t[5]=r=>{e.unref(n)({title:"弹窗",footer:["div",{style:"padding:16px 0;text-align:center;background:lightgray;"},"弹窗footer(自定义渲染)"]},"弹窗内容","dialog")}),type:"warning"},{default:e.withCtx(()=>t[19]||(t[19]=[e.createTextVNode("打开弹窗(自定义footer,传渲染元素)")])),_:1})]),_:1}),e.createVNode(d,{title:"打开抽屉(drawer)"},{default:e.withCtx(()=>[e.createVNode(o,{onClick:t[6]||(t[6]=r=>e.unref(n)("抽屉","常规抽屉","drawer")),type:"info"},{default:e.withCtx(()=>t[20]||(t[20]=[e.createTextVNode("打开常规抽屉")])),_:1}),e.createVNode(o,{onClick:t[7]||(t[7]=r=>e.unref(n)(["div",{},"抽屉标题(自定义渲染)"],"抽屉内容","drawer")),type:"info"},{default:e.withCtx(()=>t[21]||(t[21]=[e.createTextVNode("打开抽屉(自定义header)")])),_:1}),e.createVNode(o,{onClick:t[8]||(t[8]=r=>e.unref(n)({title:"抽屉",footer:"alert"},"抽屉内容","drawer")),type:"info"},{default:e.withCtx(()=>t[22]||(t[22]=[e.createTextVNode("打开抽屉(自定义footer,传'alert')")])),_:1}),e.createVNode(o,{onClick:t[9]||(t[9]=r=>{e.unref(n)({title:"抽屉",footer:["div",{style:"text-align:center;background:lightgray;"},"抽屉footer(自定义渲染)"]},"抽屉内容","drawer")}),type:"info"},{default:e.withCtx(()=>t[23]||(t[23]=[e.createTextVNode("打开抽屉(自定义footer,传渲染元素)")])),_:1})]),_:1}),e.createVNode(d,{title:"打开全局通用弹窗"},{default:e.withCtx(()=>[e.createVNode(o,{onClick:t[10]||(t[10]=r=>e.unref(i)("ChooseMedia","all")),type:"primary"},{default:e.withCtx(()=>t[24]||(t[24]=[e.createTextVNode("打开常用弹窗(ChooseMedia)所有媒体")])),_:1}),e.createVNode(o,{onClick:t[11]||(t[11]=r=>e.unref(i)("ChooseMedia","image")),type:"primary"},{default:e.withCtx(()=>t[25]||(t[25]=[e.createTextVNode("打开常用弹窗(ChooseMedia)图片")])),_:1}),e.createVNode(o,{onClick:t[12]||(t[12]=r=>e.unref(i)("ChooseMedia","audio")),type:"primary"},{default:e.withCtx(()=>t[26]||(t[26]=[e.createTextVNode("打开常用弹窗(ChooseMedia)音频")])),_:1}),e.createVNode(o,{onClick:t[13]||(t[13]=r=>e.unref(i)("ChooseMedia","video")),type:"primary"},{default:e.withCtx(()=>t[27]||(t[27]=[e.createTextVNode("打开常用弹窗(ChooseMedia)视频")])),_:1})]),_:1})])}}});exports.default=V;