← Back
Editing: plugin-install-legacy.js
System.register(["./index-legacy104.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./index-legacy96.js?v=1765440387","./index-legacy482.js?v=1765440387","./index-legacy480.js?v=1765440387","./column-legacy.js?v=1765440387","./useStore-legacy5.js?v=1765440387","./useMethod-legacy5.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1765440387","./index-legacy131.js?v=1765440387","./index-legacy105.js?v=1765440387","./validator-legacy.js?v=1765440387","./index.vue_vue_type_style_index_0_scoped_b3c4124c_lang-legacy.js?v=1765440387","./useStore-legacy4.js?v=1765440387","./site-legacy.js?v=1765440387","./useController-legacy5.js?v=1765440387","./useController-legacy6.js?v=1765440387","./useStore-legacy14.js?v=1765440387","./form-item-legacy.js?v=1765440387"],(function(e,l){"use strict";var n,t,s,r,u,i,a,c,o,p,g,d,f,h,_,y,m,x,v,j;return{setters:[function(e){n=e._},function(e){t=e.a6,s=e.K,r=e.M,u=e.cu,i=e.a7},function(e){a=e.c,c=e.s,o=e.e,p=e.B,g=e.q,d=e.v,f=e.A,h=e.x},function(e){_=e.b},function(e){y=e.g},function(e){m=e.B},function(e){x=e.u},function(e){v=e.u},function(e){j=e.a2},null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var l={class:"p-[2rem]"};e("default",a({__name:"plugin-install",setup:function(e){var a=c(v()).localRow,b=c(_()),w=b.isRefreshPluginInstall,B=b.isRefreshPluginList,q=t({request:function(e){return y(e)},columns:[{label:"名称",prop:"name",minWidth:180,isCustom:!0,render:function(e){return o("span",{class:"flex items-center"},[o("img",{class:"w-[25px] h-[25px]",src:e.icons["1x"]?e.icons["1x"]:e.icons.default},null),o("span",{class:"ml-[5px]"},[e.name])])}},{label:"描述",width:200,prop:"short_description",showOverflowTooltip:!0},{label:"作者",prop:"author",render:function(e){return o("span",{innerHTML:e.author},null)}},{label:"WP",prop:"requires",width:50,render:function(e){return e.requires?e.requires:"--"}},{label:"PHP",prop:"requires_php",render:function(e){return e.requires_php?e.requires_php:"--"}},{label:"等级",prop:"rating",width:140,render:function(e){var l=e.rating?e.rating/20:0;return o("div",{class:"flex items-center"},[o(m,{modelValue:l,disabled:!0,"allow-half":!0,class:"!text-[2rem]"},null)])}},x((function(e){return[{title:e.installed?"已安装":"安装",render:function(e){var l=a.value.wp_version<e.requires||a.value.php_version<e.requires_php||e.installed;return e.installed?o("span",{class:"text-[#999]",style:"cursor:not-allowed"},[p("已安装")]):o("span",{class:"bt-link",style:l?"cursor:not-allowed; color: #999;":"",onClick:l?void 0:function(){s({loading:"安装中...",request:j({s_id:a.value.id,slug:e.slug}),success:function(e){e.status&&(w.value=!0,B.value=!0,r.success("安装成功"))}})}},[p("安装")])}}]}),{label:"操作",width:100,fixed:"right"})],extension:[u("search",{name:"local-setting-plugin",list:[]}),i(w)]}),C=q.BtTable,P=q.BtPage,R=(q.BtRecommendSearch,q.BtRefresh,q.BtColumn,q.BtBatch,q.BtTableCategory,q.BtErrorMask,q.tableRef,q.classList,q.refresh,q.BtSearch);return function(e,t){var s=n;return g(),d("div",l,[o(s,null,{"header-right":f((function(){return[o(h(R),{type:"local-setting-plugin",placeholder:"请输入插件名称",class:"!w-[270px] mr-[10px]"})]})),content:f((function(){return[o(h(C),{"max-height":500})]})),"footer-right":f((function(){return[o(h(P))]})),_:1})])}}}))}}}));
Save File
Cancel