"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[9834],{2131:function(e,t,i){var n=i(9439),l=i(1002),o=i(1515),s=i(2954),r=i.n(s),c=i(4184),a=i.n(c),d=i(7294),u=i(9335),h=i(3150),p=i(6142),x=i(6437),f=i(5893);t.Z=function Table(e){var t,i=e.columns,s=e.dataSource,c=e.onLoadMore,v=(e.height,e.moreText),m=void 0===v?"查看更多":v,g=e.loadingText,w=void 0===g?"加载中":g,Z=e.noMoreText,T=void 0===Z?"没有更多了":Z,j=e.emptyText,C=void 0===j?"暂无数据":j,b=e.safeAreaInsetBottom,y=void 0===b||b,k=function handleShowMore(){c&&c()},M=(0,d.useCallback)((function(e){var t={};("boolean"==typeof e.ellipsis&&e.ellipsis&&(t[x.Z.ellipsis_1]=!0),"object"===(0,l.Z)(e.ellipsis)&&e.ellipsis.isEllipsis)&&(2===e.ellipsis.rows?t[x.Z.ellipsis_2]=!0:t[x.Z.ellipsis_1]=!0);return t}),[]),N=(0,d.useMemo)((function(){return s?0===s.list.length&&s.list.length===s.total?(0,f.jsx)(h.Z,{emptyText:C,status:"empty"}):s.list.length=s.total?(0,f.jsx)(h.Z,{noMoreText:T,status:"noMore"}):void 0:(0,f.jsx)(h.Z,{moreText:m,loadingText:w,noMoreText:T,status:"loading"})}),[s]),S=(0,d.useRef)(null),I=(0,d.useRef)({title:"",tips:"",width:""}),G=(0,d.useRef)({cellWidth:0,cellHeight:0}),R=(0,d.useState)({position:"fixed"}),H=(0,n.Z)(R,2),W=H[0],_=H[1],A=(0,d.useState)({}),B=(0,n.Z)(A,2)[1],J=(0,d.useMemo)((function(){return(0,f.jsx)(o.xv,{id:"hiddenTips",className:x.Z.td,style:{color:"transparent",width:G.current.cellWidth,height:G.current.cellHeight},children:I.current.title})}),[I.current.title]);return(0,f.jsxs)(o.G7,{className:x.Z.table,children:[(0,f.jsx)(o.G7,{className:a()(x.Z.tr,x.Z["bg-header"]),children:i.map((function(e){return(0,f.jsx)(o.G7,{className:x.Z.th,style:{width:e.width},children:e.title},e.key)}))}),(0,f.jsx)(u.Z,{enableLoadMoreStatus:!1,safeAreaInsetBottom:y,children:function sourceContainer(){var e;return(0,f.jsxs)(f.Fragment,{children:[!(null==s||null===(e=s.list)||void 0===e||!e.length)&&s.list.map((function(e,t){return(0,f.jsx)(o.G7,{className:a()(x.Z.tr,x.Z["bg-line"]),children:i.map((function(i,n){var s=function generateCellId(e,t){return"cell-".concat(e,"-").concat(t)}(t,n);return i.render?(0,f.jsx)(o.G7,{id:s,className:x.Z.td,style:{width:i.width},children:i.render(e[i.dataIndex],e,t)},n):(0,f.jsx)(o.G7,{id:s,className:a()(x.Z.td,M(i)),style:{width:i.width},onClick:function onClick(){return function handleClickCell(e,t,i,n){var o,s,c,a,d;null!==(o=S.current)&&void 0!==o&&o.visible&&(null===(s=S.current)||void 0===s||s.hide()),"object"===(0,l.Z)(t.showTipsConfig)&&t.showTipsConfig.isShowTips&&(I.current={width:t.width,title:i[t.dataIndex],tips:"function"==typeof(null===(c=t.showTipsConfig)||void 0===c?void 0:c.tips)?null===(a=t.showTipsConfig)||void 0===a?void 0:a.tips(i[t.dataIndex],i,n):null===(d=t.showTipsConfig)||void 0===d?void 0:d.tips},B({}),setTimeout((function(){var t=r().createSelectorQuery();t.select("#".concat(e)).boundingClientRect(),t.exec((function(e){var t;G.current={cellWidth:e[0].width,cellHeight:e[0].height},_({position:"fixed",top:"".concat(e[0].top,"px"),left:"".concat(e[0].left,"px")}),null===(t=S.current)||void 0===t||t.show(),console.log("res===》",e)}))}),100))}(s,i,e,t)},children:e[i.dataIndex]},n)}))},e.key)})),N]})}()}),(0,f.jsx)(p.Z,{childrenNode:G.current,ref:S,customContainerStyle:W,placement:"top",content:null===(t=I.current)||void 0===t?void 0:t.tips,children:J})]})}}}]);