← Back
Editing: index-legacy368.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){r(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function r(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,n||"default");if("object"!=t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,u=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),i=new G(r||[]);return u(o,"_invoke",{value:P(t,n,i)}),o}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var v="suspendedStart",d="suspendedYield",y="executing",m="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,c,(function(){return this}));var k=Object.getPrototypeOf,j=k&&k(k(N([])));j&&j!==r&&o.call(j,c)&&(x=j);var O=_.prototype=b.prototype=Object.create(x);function C(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function E(e,n){function r(a,u,i,c){var s=h(e[a],e,u);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):n.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(s.arg)}var a;u(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,a){r(t,e,n,a)}))}return a=a?a.then(o,o):o()}})}function P(t,n,r){var a=v;return function(o,u){if(a===y)throw Error("Generator is already running");if(a===m){if("throw"===o)throw u;return{value:e,done:!0}}for(r.method=o,r.arg=u;;){var i=r.delegate;if(i){var c=L(i,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===v)throw a=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=y;var s=h(t,n,r);if("normal"===s.type){if(a=r.done?m:d,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=m,r.method="throw",r.arg=s.arg)}}}function L(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var u=o.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function q(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var a=-1,u=function t(){for(;++a<n.length;)if(o.call(n,a))return t.value=n[a],t.done=!1,t;return t.value=e,t.done=!0,t};return u.next=u}}throw new TypeError(t(n)+" is not iterable")}return w.prototype=_,u(O,"constructor",{value:_,configurable:!0}),u(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},n.awrap=function(t){return{__await:t}},C(E.prototype),f(E.prototype,s,(function(){return this})),n.AsyncIterator=E,n.async=function(t,e,r,a,o){void 0===o&&(o=Promise);var u=new E(p(t,e,r,a),o);return n.isGeneratorFunction(e)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},C(O),f(O,l,"Generator"),f(O,c,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=N,G.prototype={constructor:G,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(q),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,a){return i.type="throw",i.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var u=this.tryEntries[a],i=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var c=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(c&&s){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=t,u.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),q(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;q(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}function o(t,e,n,r,a,o,u){try{var i=t[o](u),c=i.value}catch(t){return void n(t)}i.done?e(c):Promise.resolve(c).then(r,a)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var u=t.apply(e,n);function i(t){o(u,r,a,i,c,"next",t)}function c(t){o(u,r,a,i,c,"throw",t)}i(void 0)}))}}System.register(["./index-legacy103.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./form-item-legacy.js?v=VERSION_NUMBER","./useController-legacy6.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER"],(function(t,e){"use strict";var r,o,i,c,s,l,f,p,h,v,d,y,m,g,b,w,_,x,k,j,O,C,E,P,L,S,q,G,N,T,F,B,D,A,I,W,H,U,V,Y;return{setters:[function(t){r=t._},function(t){o=t.r,i=t.U,c=t.g,s=t.e,l=t.ag,f=t.B,p=t.c,h=t.a4,v=t.q,d=t.v,y=t.A,m=t.x,g=t.H,b=t.I,w=t.D,_=t.aQ,x=t.F},function(t){k=t.p,j=t.G,O=t.n,C=t.K,E=t.a6,P=t.M,L=t.fj,S=t.a7},function(t){q=t.o},function(t){G=t.createPythonEnvironment,N=t.addPythonEnvironment,T=t.setPythonEnvironment,F=t.getPythonEnvironment,B=t.deletePythonEnvironment},function(t){D=t.f},function(t){A=t.b,I=t.h,W=t.e,H=t.l,U=t.f},function(t){V=t.k},function(t){Y=t._},null,null],execute:function(){o("");var e=o(!1),K=i([]),M=o(null),Q=function(){var t=u(a().mark((function t(){var e,n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,C({request:F({sort_not_use:0})});case 3:if((e=t.sent).status){t.next=8;break}return P.error(e.msg),K.value=[],t.abrupt("return",{data:[],total:0});case 8:if(!e.data.now_env){t.next=19;break}M.value=e.data.now_env,n=0;case 11:if(!(n<e.data.env_list.length)){t.next=19;break}if(e.data.env_list[n].bin_path!==e.data.now_env.bin_path){t.next=16;break}return e.data.env_list[n].isCurrent=!0,K.value=e.data.env_list,t.abrupt("return",{data:e.data.env_list,total:e.data.env_list.length});case 16:n++,t.next=11;break;case 19:return K.value=e.data.env_list,t.abrupt("return",{data:e.data.env_list,total:e.data.env_list.length});case 23:return t.prev=23,t.t0=t.catch(0),t.abrupt("return",{data:[],total:0});case 27:case"end":return t.stop()}}),t,null,[[0,23]])})));return function(){return t.apply(this,arguments)}}(),z=function(){var t=u(a().mark((function t(n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C({loading:"正在设置,请稍后...",request:T({path:n}),message:!0,success:function(){e.value=!0}});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),J=function(){var t=u(a().mark((function t(n,r){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,k({title:"确定删除环境【".concat(r,"】吗?"),content:"删除后无法恢复,请谨慎操作",onConfirm:function(){var t=u(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C({request:B({path_data:n}),loading:"正在删除,请稍后...",success:function(t){var n;t.status&&t.data.data[0].status?(P.success("删除成功"),e.value=!0):P.error((null===(n=t.data.data)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.msg)||t.msg)}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 2:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),R=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"apply",r=o(null),i=o(null);return n(n({},E({request:(t=u(a().mark((function t(){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=K.value.filter((function(t){return"apply"===e?(t.isCurrent&&(i.value=t),t.can_set_default):t.can_create})),t.abrupt("return",{data:n,total:n.length});case 2:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),columns:[{label:" ",prop:"select",width:50,render:function(t){return s(l,{value:t.bin_path,modelValue:r.value,"onUpdate:modelValue":function(t){return r.value=t}},null)}},{label:"名称",prop:"name",render:function(t){return s("div",{class:"truncate",title:"".concat(t.name).concat(t.isCurrent&&"apply"===e?"【当前使用】":"")},[t.name,t.isCurrent&&"apply"===e?s("span",{class:"font-bold text-[#333]"},[f("【当前使用】")]):""])}},{label:"类型",prop:"type",width:100,render:function(t){if(t.bin_path.includes("/www/server/panel/pyenv"))return"宝塔面板环境";switch(t.type){case"venv":return"虚拟环境";case"system":return t.from_panel?"面板安装":"系统级环境";case"conda":return"Conda环境";default:return"未知"}}},{label:"Python版本",prop:"version",width:100}]})),{},{getCurrentSelect:function(){return K.value.find((function(t){return t.bin_path===r.value}))},handleCurrentChange:function(t){r.value=t.bin_path},currentApply:i})},X=function(){var t=u(a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,k({title:"取消应用命令行",content:"确定取消命令行环境【".concat((null===(e=M.value)||void 0===e?void 0:e.name)||"","】吗?"),onConfirm:function(){var t=u(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,z("");case 2:M.value=null;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}(),Z=function(){var t=u(a().mark((function t(e){var n,r,o,i,l,f,p;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=R("create"),r=n.BtTable,o=n.getCurrentSelect,i=n.handleCurrentChange,l=j({data:function(){return{venv_name:"",python_bin:"",ps:""}},options:function(t){return c((function(){return[A("名称","venv_name",{attrs:{class:"!w-[24rem]",placeholder:"虚拟环境名称"},rules:[{required:!0,message:"虚拟环境名称不可为空",trigger:["blur","change"]}]}),I("环境来源",(function(){return s("div",{class:"w-[90%]"},[s(r,{"highlight-current-row":!0,maxHeight:400,onCurrentChange:i},null)])}),"python_bin",{attrs:{class:"!w-[52rem]"},rules:[{required:!0,trigger:"blur",validator:function(e,n,r){var a=o();a?(t.value.python_bin=a.bin_path,r()):r(new Error("请选择需要创建虚拟环境的环境来源"))}}]}),A("备注","ps",{attrs:{class:"!w-[24rem]",placeholder:"备注"},rules:[{required:!1,message:"备注不可为空",trigger:["blur","change"]}]})]}))},submit:function(){var t=u(a().mark((function t(e,n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:return t.next=4,$(e.value);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}),f=l.BtForm,p=l.submit,O({title:"创建虚拟环境",area:65,btn:"创建",component:function(){return s("div",{class:"p-[1.6rem]"},[s(f,null,null)])},onConfirm:function(){var t=u(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p();case 3:if(!t.sent){t.next=6;break}return t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 9:return t.prev=9,t.t0=t.catch(0),t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}()});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),$=function(){var t=u(a().mark((function t(n){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C({request:G({venv_name:n.venv_name,python_bin:n.python_bin,ps:n.ps}),message:!0,loading:"正在创建,请稍后..."});case 2:if(!t.sent.status){t.next=6;break}return e.value=!0,t.abrupt("return",!0);case 6:return t.abrupt("return",!1);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),tt=function(){var t,n,r={venv:"添加虚拟环境需要指定到虚拟环境目录",conda:"添加Conda环境需要指定到Conda可执行文件",system:"添加系统级环境需要指定到Python解释器文件"},o=j({data:function(){return{add_type:"venv",path:""}},options:function(t){return c((function(){return[W("环境类型","add_type",[{label:"虚拟环境",value:"venv"},{label:"Conda环境",value:"conda"},{label:"系统级环境",value:"system"}]),H("环境位置","path",{attrs:{class:"!w-[42rem]",placeholder:r[t.value.add_type]},rules:[{required:!0,message:"环境位置不可为空",trigger:["blur","change"]}]},(function(){var e="dir";switch(t.value.add_type){case"system":case"conda":e="file";break;case"venv":e="dir"}!function(t){D({type:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dir",path:t.value.path,change:function(e){t.value.path=e}})}(t,e)})),U(" ",[{content:r[t.value.add_type]}])]}))},submit:(t=u(a().mark((function t(n,r){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r();case 2:return t.next=4,C({loading:"正在添加,请稍后...",request:N(n.value),message:!0,success:function(){e.value=!0}});case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}),i=o.BtForm,l=o.submit;O({area:65,title:"添加已存在的Python环境",btn:"添加",component:function(){return s("div",{class:"p-[1.6rem]"},[s(i,null,null)])},onConfirm:(n=u(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l();case 2:if(!t.sent.status){t.next=5;break}return t.abrupt("return",!0);case 5:return t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})})},et={class:"p-2rem"};t("default",p({__name:"index",setup:function(t){var n=L({request:Q,empty:function(){return s("div",{class:"text-[#666] text-[1.4rem]"},[f("暂无数据,"),s("span",{class:"bt-link",onClick:function(){return V("py",o)}},[f("点击安装Python")])])},columns:[{label:"名称",prop:"name",render:function(t){return s("div",{class:"truncate flex items-center gap-2",title:"".concat(t.name).concat(t.isCurrent?"【命令行使用】":"")},[s("span",{class:"truncate"},[t.name]),s("span",{class:"shrink-0 px-2 py-1 bg-gray-100 text-gray-600 rounded"},[function(e){if(t.bin_path.includes("/www/server/panel/pyenv"))return"宝塔面板环境";switch(e){case"venv":return"虚拟环境";case"system":return t.from_panel?"面板安装":"系统级环境";case"conda":return"Conda环境";default:return"未知"}}(t.type)])])}},{label:"Python版本",prop:"version",width:130},{label:"解释器位置",prop:"bin_path",width:80,render:function(t){return s("span",{class:"flex"},[s("i",{title:"跳转解释器目录",class:"text-[#efc566] cursor-pointer svgtofont-folder-open !text-[1.8rem]",onClick:function(){return q({path:t.bin_path})}},null)])}},{label:"使用项目",prop:"project_name",render:function(t){var e="--";return t.project_name&&t.project_name.length>0&&(e=t.project_name.join("、")),s(_,{effect:"dark",content:e,"popper-class":"w-[35rem]","show-after":500,placement:"top-start",disabled:!t._isOverflow},{default:function(){return[s("div",{class:"max-w-[30rem] truncate",ref:function(e){e&&(t._isOverflow=e.scrollWidth>e.clientWidth)}},[e])]}})}},{label:"备注",prop:"ps",render:function(t){return s(_,{effect:"dark",content:"".concat(t.ps).concat("venv"===t.type?"【来自".concat(t.system_data.name,"】"):""),"popper-class":"w-[35rem]","show-after":500,placement:"top-start",disabled:!t._isPsOverflow},{default:function(){return[s("div",{class:"max-w-[30rem] truncate",ref:function(e){e&&(t._isPsOverflow=e.scrollWidth>e.clientWidth)}},["".concat(t.ps).concat("venv"===t.type?"【来自".concat(t.system_data.name,"】"):"")])]}})}},{label:"操作",align:"right",width:150,render:function(t){var e=[];return t.isCurrent&&e.push(s("span",{class:"shrink-0 text-[#666]"},[f("当前命令行使用")])),t.can_set_default&&e.push(s("span",{class:"cursor-pointer bt-link",onClick:function(){return z(t.bin_path)}},[f("应用命令行")])),t.can_remove&&e.push(s("span",{class:"cursor-pointer bt-link",onClick:function(){return J(t.bin_path,t.name)}},[f("删除")])),s("div",{class:"flex items-center"},[e.map((function(t,n){return e[n+1]?s(x,null,[t,s(Y,null,null)]):t}))])}}],extension:[S(e)]}),a=n.BtTable,o=n.refresh;return h((function(){K.value=[]})),function(t,e){var n=w,o=r;return v(),d("div",et,[s(o,null,{"header-left":y((function(){var t;return[s(n,{type:"primary",onClick:m(Z)},{default:y((function(){return e[1]||(e[1]=[f("创建虚拟环境")])})),_:1},8,["onClick"]),s(n,{class:"ml-[2rem]",type:"default",onClick:m(tt)},{default:y((function(){return e[2]||(e[2]=[f("添加")])})),_:1},8,["onClick"]),s(n,{class:"ml-[2rem]",type:"default",onClick:e[0]||(e[0]=function(t){return m(V)("py")})},{default:y((function(){return e[3]||(e[3]=[f("版本管理")])})),_:1}),g(s(n,{class:"ml-[2rem]",type:"default",onClick:m(X)},{default:y((function(){return e[4]||(e[4]=[f("取消当前命令行应用")])})),_:1},8,["onClick"]),[[b,null===(t=m(M))||void 0===t?void 0:t.name]])]})),content:y((function(){return[s(m(a),{"max-height":400})]})),_:1})])}}}))}}}))}();
Save File
Cancel