← Back
Editing: setting-ip-list-legacy.js
!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./utils-lib-legacy.js?v=1765440387","./index-legacy93.js?v=1765440387","./index-legacy448.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./column-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387","./site-legacy.js?v=1765440387","./validator-legacy.js?v=1765440387","./useStore-legacy3.js?v=1765440387"],function(e,n){"use strict";var r,i,a,l,u,o,c,s,f,y,m,p,d,g,v,b,j,h,_,k,x,A,I,S,w,B,L;return{setters:[function(t){r=t.aM,i=t.k,a=t.a0,l=t.W},function(t){u=t._},function(t){o=t.g,c=t.a5,s=t.a6,f=t.a7,y=t.a8,m=t.a9,p=t.aa,d=t.ab,g=t.ac,v=t.m},function(t){b=t.c,j=t.w,h=t.g,_=t.p,k=t.q,x=t.v,A=t.e,I=t.A,S=t.x,w=t.M,B=t.y,L=t.C},null,null,null,null,null,null],execute:function(){e("default",b({__name:"setting-ip-list",props:{compData:{default:function(){return{}}}},setup:function(e){j(function(){return v.value.ip_limit},function(t){t?g(t):(m.white=[],m.black=[])},{deep:!0});var n=h(function(){return"ipWhiteList"===o.value?c.value:s.value}),b=r({options:[{label:"添加IP".concat("ipBlackList"===o.value?"黑":"白","名单"),type:"button",active:!0,onClick:f}]}).BtOperation;return _(y),function(e,r){var f=i,y=a,g=u,v=l;return k(),x("div",null,[A(g,null,{"header-left":I(function(){return[A(S(b))]}),content:I(function(){return["ipBlackList"!==S(o)?(k(),w(f,{key:0,ref_key:"settingIpWhiteRef",ref:c,data:S(m).white,"max-height":390,column:S(p)},{empty:I(function(){return t(r[0]||(r[0]=[B("div",{class:"flex items-center justify-center"},"当前列表为空",-1)]))}),_:1},8,["data","column"])):(k(),w(f,{key:1,ref_key:"settingIpRef",ref:s,data:S(m).black,"max-height":390,column:S(p)},{empty:I(function(){return t(r[1]||(r[1]=[B("div",{class:"flex items-center justify-center"},"当前列表为空",-1)]))}),_:1},8,["data","column"]))]}),"footer-left":I(function(){return[A(y,{"table-ref":S(n),options:S(d)},null,8,["table-ref","options"])]}),_:1}),"ipBlackList"!==S(o)?(k(),w(v,{key:0,class:"mt-[2rem] ml-[1.6rem]",options:[{content:"注意:设置IP白名单后会默认禁止除白名单以外的所有IP访问"}]})):L("",!0)])}}}))}}})}();
Save File
Cancel