Files
monibuca/plugin/console/web/assets/index-3ba1fd9d.js
2024-10-07 14:14:00 +08:00

2 lines
1.4 KiB
JavaScript

import{m as _,l as V}from"./vendor-ec30964e.js";import{T as y,B as g}from"./TableAction-45c049b5.js";import{g as h}from"./index-cc631905.js";import{_ as C}from"./index-c14b60e2.js";const v=[{title:"名称",render(n){return n.enable===!1?Vue.h("div",[Vue.h("text",n.name),Vue.h(naive.NTag,{type:"primary"},"禁用")]):Vue.h("text",n.name)},width:100},{title:"版本",key:"version",width:200}];const k=Vue.defineComponent({setup(n){const a=_(),c=V(),{params:o}=c,i=naive.useMessage(),s=Vue.ref(),u=Vue.ref([]),r=Vue.reactive({width:220,title:"操作",key:"action",render(e){return Vue.h(y,{style:"button",actions:[{label:"配置",type:"primary",icon:"ic:outline-delete-outline",onClick:l.bind(null,e)}],select:t=>{i.info(`您点击了,${t} 按钮`)}})}});function l(e){const t=e.name;a.push({name:"instance_config",params:o,query:{name:t}})}async function d(){u.value=(await h(o.id)).plugins}d();function m(e){console.log(e)}return(e,t)=>{const f=Vue.resolveComponent("n-card");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(f,{bordered:!1,class:"proCard"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(g),{title:"插件列表",columns:Vue.unref(v),dataSource:u.value,"row-key":p=>p.id,pagination:!1,ref_key:"actionRef",ref:s,actionColumn:Vue.unref(r),"onUpdate:checkedRowKeys":m,"scroll-x":1090},null,8,["columns","dataSource","row-key","actionColumn"])]),_:1})])}}}),F=C(k,[["__scopeId","data-v-541c4362"]]);export{F as default};