← Back
Editing: index-legacy114.js
!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,r,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function u(e,o,a,i){var u=o&&o.prototype instanceof s?o:s,c=Object.create(u.prototype);return t(c,"_invoke",function(e,t,o){var a,i,u,s=0,c=o||[],f=!1,d={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(e,t){return a=e,i=0,u=n,d.n=t,l}};function p(e,t){for(i=e,u=t,r=0;!f&&s&&!o&&r<c.length;r++){var o,a=c[r],p=d.p,v=a[2];e>3?(o=v===t)&&(u=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=n):a[0]<=p&&((o=e<2&&p<a[1])?(i=0,d.v=t,d.n=a[1]):p<v&&(o=e<3||a[0]>t||t>v)&&(a[4]=e,a[5]=t,d.n=v,i=0))}if(o||e>1)return l;throw f=!0,t}return function(o,c,v){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,v),i=c,u=v;(r=i<2?n:u)||!f;){a||(i?i<3?(i>1&&(d.n=-1),p(i,u)):d.n=u:d.v=u);try{if(s=2,a){if(i||(o="next"),r=a[o]){if(!(r=r.call(a,u)))throw TypeError("iterator result is not an object");if(!r.done)return r;u=r.value,i<2&&(i=0)}else 1===i&&(r=a.return)&&r.call(a),i<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=n}else if((r=(f=d.n<0)?u:e.call(t,d))!==l)break}catch(r){a=n,i=1,u=r}finally{s=1}}return{value:r,done:f}}}(e,a,i),!0),c}var l={};function s(){}function c(){}function f(){}r=Object.getPrototypeOf;var d=[][a]?r(r([][a]())):(t(r={},a,function(){return this}),r),p=f.prototype=s.prototype=Object.create(d);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,t(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=f,t(p,"constructor",f),t(f,"constructor",c),c.displayName="GeneratorFunction",t(f,i,"GeneratorFunction"),t(p),t(p,i,"Generator"),t(p,a,function(){return this}),t(p,"toString",function(){return"[object Generator]"}),(e=function(){return{w:u,m:v}})()}function t(e,n,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t=function(e,n,r,o){function i(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(i("next",0),i("throw",1),i("return",2))},t(e,n,r,o)}function n(e,t,n,r,o,a,i){try{var u=e[a](i),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}System.register(["./utils-lib-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387"],function(t,r){"use strict";var o,a,i,u,l,s,c,f,d,p,v,m,y,b,g,h,C,w,j,O,_;return{setters:[function(e){o=e.l,a=e.L,i=e.e},function(e){u=e.c,l=e.W,s=e.X,c=e.x,f=e.g,d=e.q,p=e.M,v=e.A,m=e.y,y=e.v,b=e.C,g=e.z,h=e.J,C=e.a$,w=e.F,j=e.m,O=e.ak,_=e.aj}],execute:function(){var P={key:0},x=u({__name:"index",props:l({name:{default:"bt-table-type"},size:{default:"default"},options:{default:function(){return[{label:"全部分类",value:"all"}]}},ignore:{default:function(){return[]}},config:{default:function(){return{getClassList:function(){return Promise.resolve([])},addClass:function(){return Promise.resolve()},editClass:function(){return Promise.resolve()},deleteClass:function(){return Promise.resolve()},field:"ps"}}},field:{default:"ps"},showEdit:{type:Boolean,default:!0}},{modelValue:{default:function(){return"all"},type:String},modelModifiers:{}}),emits:l(["change","update:options"],["update:modelValue"]),setup:function(t,i){var u=i.expose,l=i.emit,x=t,k=l,S=s(t,"modelValue"),E=c(x.config),G=E.getClassList,T=E.addClass,V=E.editClass,F=E.deleteClass,L=f(function(){return"all"!==S.value}),z=f(function(){return"small"===x.size}),M=function(e){k("change",e)},B=function(){var t,r=(t=e().m(function t(n){return e().w(function(e){for(;;)switch(e.n){case 0:k("update:options",n);case 1:return e.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(o,a){var i=t.apply(e,r);function u(e){n(i,o,a,u,l,"next",e)}function l(e){n(i,o,a,u,l,"throw",e)}u(void 0)})});return function(e){return r.apply(this,arguments)}}(),$=function(){o({title:"分类管理",area:"54",compData:{ignore:x.ignore,field:x.field,getClassList:G,addClass:T,editClass:V,deleteClass:F,updateOptions:B,showEdit:x.showEdit},component:function(){return a(function(){return r.import("./class-manage-legacy.js?v=1765440387")},void 0,r.meta.url)}})};return u({setClassManage:$}),function(e,n){var r=_,o=O;return d(),p(o,j({modelValue:S.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return S.value=e}),class:[{"select-active":c(L),"!w-[11rem]":c(z)}]},e.$attrs,{onChange:M}),{label:v(function(e){var t=e.label;return[m("div",{class:h([{"text-primary":c(L)},"flex items-center "])},[c(L)&&c(z)?(d(),y("span",P,"分类:")):b("",!0),m("span",null,g(t),1)],2)]}),footer:v(function(){return[m("span",{class:"select-type-line",onClick:$},"分类管理")]}),default:v(function(){return[(d(!0),y(w,null,C(t.options,function(e,t){return d(),p(r,{key:t,label:e.label,value:e.value,disabled:null==e?void 0:e.disabled,class:"select-custom-hover"},null,8,["label","value","disabled"])}),128))]}),_:1},16,["modelValue","class"])}}});t("B",i(x,[["__scopeId","data-v-7fd96fe8"]]))}}})}();
Save File
Cancel