← Back
Editing: ip-list-legacy.js
System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy471.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER"],(function(e,t){"use strict";var n,i,l,u,c,a,r,s,o,f,p,y,m,v,d,g,_,j,h,k,x,b,L,w,B,W;return{setters:[function(e){n=e.aM,i=e.l,l=e.a0,u=e.W},function(e){c=e._},function(e){a=e.c,r=e.w,s=e.g,o=e.p,f=e.q,p=e.v,y=e.e,m=e.A,v=e.x,d=e.M,g=e.y,_=e.C},function(e){j=e.p,h=e.q,k=e.r,x=e.u,b=e.v,L=e.h,w=e.w,B=e.x,W=e.T},null,null,null,null,null,null],execute:function(){e("default",a({__name:"ip-list",setup:function(e){r((function(){return L.value.ip_limit}),(function(e){e?b(e):(w.white=[],w.black=[])}),{deep:!0});var t=s((function(){return"ipWhiteList"===j.value?h.value:k.value})),a=n({options:[{type:"button",label:"添加IP".concat("ipBlackList"===j.value?"黑":"白","名单"),active:!0,onClick:x}]}).BtOperation;return o((function(){b(L.value.ip_limit)})),function(e,n){var r=i,s=l,o=c,x=u;return f(),p("div",null,[y(o,null,{"header-left":m((function(){return[y(v(a))]})),content:m((function(){return["ipWhiteList"===v(j)?(f(),d(r,{key:0,ref_key:"ipWhiteListRef",ref:h,data:v(w).white,"max-height":390,column:v(B)},{empty:m((function(){return n[0]||(n[0]=[g("div",{class:"flex items-center justify-center"},"当前列表为空",-1)])})),_:1},8,["data","column"])):_("",!0),"ipBlackList"===v(j)?(f(),d(r,{key:1,ref_key:"ipListRef",ref:k,data:v(w).black,"max-height":390,column:v(B)},{empty:m((function(){return n[1]||(n[1]=[g("div",{class:"flex items-center justify-center"},"当前列表为空",-1)])})),_:1},8,["data","column"])):_("",!0)]})),"footer-left":m((function(){return[y(s,{"table-ref":v(t),options:v(W)},null,8,["table-ref","options"])]})),_:1}),"ipBlackList"!==v(j)?(f(),d(x,{key:0,class:"mt-[2rem] ml-[1.6rem]",options:[{content:"注意:设置IP白名单后会默认禁止除白名单以外的所有IP访问"}]})):_("",!0)])}}}))}}}));
Save File
Cancel