You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
20 KiB
2 lines
20 KiB
5 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{40110:function(Y,K,e){var p=e(1413),_=e(67294),R=e(509),g=e(91146),Z=function(P,l){return _.createElement(g.Z,(0,p.Z)((0,p.Z)({},P),{},{ref:l,icon:R.Z}))},y=_.forwardRef(Z);K.Z=y},42767:function(Y,K,e){e.d(K,{Z:function(){return M}});var p=e(5574),_=e.n(p),R=e(55241),g=e(2487),Z=e(71230),y=e(7134),h=e(67294),P=e(52043),l=e(15009),S=e.n(l),T=e(97857),D=e.n(T),B=e(99289),x=e.n(B),I=e(40110),o=e(67539),j=e(55102),v=e(42075),O=e(14726),W=e(17788),Q=e(4575),i=e(85893),G=function(n){var m=(0,h.useState)(),a=_()(m,2),A=a[0],t=a[1],u=(0,h.useState)(),f=_()(u,2),s=f[0],c=f[1],z=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(d){var E=d.setSelectedKeys,b=d.selectedKeys,L=d.confirm,$=d.clearFilters;return(0,i.jsxs)("div",{style:{padding:8},children:[(0,i.jsx)(j.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:b[0],onChange:function(F){return E(F.target.value?[F.target.value]:[])},onPressEnter:function(){return L()},style:{marginBottom:8,display:"block"}}),(0,i.jsxs)(v.Z,{children:[(0,i.jsx)(O.ZP,{onClick:function(){return L()},type:"primary",children:"\u641C\u7D22"}),(0,i.jsx)(O.ZP,{onClick:function(){return $&&$()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(d,E){return typeof d=="string"&&typeof(E==null?void 0:E.appName)=="string"?E.appName.includes(d):!1},filterIcon:function(d){return(0,i.jsx)(I.Z,{style:{color:d?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(d){var E=d.setSelectedKeys,b=d.selectedKeys,L=d.confirm,$=d.clearFilters;return(0,i.jsxs)("div",{style:{padding:8},children:[(0,i.jsx)(j.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:b[0],onChange:function(F){return E(F.target.value?[F.target.value]:[])},onPressEnter:function(){return L()},style:{marginBottom:8,display:"block"}}),(0,i.jsxs)(v.Z,{children:[(0,i.jsx)(O.ZP,{onClick:function(){return L()},type:"primary",children:"\u641C\u7D22"}),(0,i.jsx)(O.ZP,{onClick:function(){return $&&$()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(d,E){return typeof d=="string"&&typeof(E==null?void 0:E.packageName)=="string"?E.packageName.includes(d):!1},filterIcon:function(d){return(0,i.jsx)(I.Z,{style:{color:d?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],U=function(){var C=x()(S()().mark(function d(){var E,b,L,$;return S()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,(0,Q.ai)();case 2:E=F.sent,E.data&&(L=[],$=[],(b=n.data.localAppList)===null||b===void 0||b.forEach(function(V){var X;(X=E.data)!==null&&X!==void 0&&X.some(function(q){return q.packageName===V.packageName})?L.push(D()(D()({},V),{},{evil:!0})):$.push(D()(D()({},V),{},{evil:!1}))}),t([].concat(L,$)),c([].concat(L,$)));case 4:case"end":return F.stop()}},d)}));return function(){return C.apply(this,arguments)}}();return(0,h.useEffect)(function(){U()},[]),(0,i.jsx)(W.Z,{style:{width:600},onCancel:n.onClose,visible:!0,footer:[],children:(0,i.jsx)(o.Z,{onRow:function(d){return{style:{backgroundColor:d.evil?"red":"transparent"}}},search:!1,onReset:function(){c(A)},columns:z,dataSource:s})})},N=G,H=function(n){var m=(0,h.useState)(!1),a=_()(m,2),A=a[0],t=a[1],u=(0,P.E7)(n.data.env);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(R.Z,{content:(0,i.jsxs)(i.Fragment,{children:[n.data.localAppList&&n.data.localAppList.length>0&&(0,i.jsxs)("p",{children:[(0,i.jsx)("label",{children:"\u5DF2\u5B89\u88C5\u5E94\u7528\uFF1A"}),n.data.localAppList.length,"\u4E2A",(0,i.jsx)("a",{onClick:function(){t(!0)},style:{marginLeft:20},children:"\u67E5\u770B"})]}),u.length>0&&(0,i.jsx)(g.Z,{size:"small",header:(0,i.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:u,renderItem:function(s){return(0,i.jsx)(g.Z.Item,{children:s})}})]}),children:(0,i.jsxs)(Z.Z,{children:[(0,i.jsx)(y.C,{src:n.data.avatar||"https://apks.bzgames.cn/matrix/fc3f
|