bkui-vue 0.0.1-beta.426 → 0.0.1-beta.428
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +12 -12
- package/dist/index.esm.js +70 -31
- package/dist/index.umd.js +12 -12
- package/lib/cascader/index.js +1 -1
- package/lib/table/components/table-column.d.ts +18 -3
- package/lib/table/index.d.ts +42 -10
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +2 -2
- package/lib/table/use-column.d.ts +5 -4
- package/lib/table-column/index.d.ts +42 -10
- package/lib/table-column/index.js +1 -1
- package/lib/tag-input/index.d.ts +24 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.d.ts +11 -0
- package/lib/tag-input/tag-props.d.ts +5 -0
- package/package.json +1 -1
package/lib/table/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"),require("../config-provider"),require("../virtual-render"),require("../loading"),require("../checkbox"),require("../icon"),require("../pagination"),require("../directives"),require("lodash"),require("../exception"),require("../popover"),require("../icon/"),require("../button"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types","../config-provider","../virtual-render","../loading","../checkbox","../icon","../pagination","../directives","lodash","../exception","../popover","../icon/","../button"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types"),require("../config-provider"),require("../virtual-render"),require("../loading"),require("../checkbox"),require("../icon"),require("../pagination"),require("../directives"),require("lodash"),require("../exception"),require("../popover"),require("../icon/"),require("../button")):t(e["../shared"],e.vue,e["vue-types"],e["../config-provider"],e["../virtual-render"],e["../loading"],e["../checkbox"],e["../icon"],e["../pagination"],e["../directives"],e.lodash,e["../exception"],e["../popover"],e["../icon/"],e["../button"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n,o,r,i,l,a,s,u,c,d,f,p,v)=>(()=>{var h={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,s=0;e.exports=function(e,t,n){var u=t&&n||0,c=t||[],d=(e=e||{}).node||o,f=void 0!==e.clockseq?e.clockseq:r;if(null==d||null==f){var p=i();null==d&&(d=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:s+1,y=v-a+(h-s)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||v>a)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,s=h,r=f;var g=(1e4*(268435455&(v+=122192928e5))+h)%4294967296;c[u++]=g>>>24&255,c[u++]=g>>>16&255,c[u++]=g>>>8&255,c[u++]=255&g;var m=v/4294967296*1e4&268435455;c[u++]=m>>>8&255,c[u++]=255&m,c[u++]=m>>>24&15|16,c[u++]=m>>>16&255,c[u++]=f>>>8|128,c[u++]=255&f;for(var b=0;b<6;++b)c[u+b]=d[b];return t||l(c)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4976:e=>{"use strict";e.exports=v},5800:e=>{"use strict";e.exports=l},2717:e=>{"use strict";e.exports=o},4061:e=>{"use strict";e.exports=u},9911:e=>{"use strict";e.exports=d},6870:e=>{"use strict";e.exports=a},7685:e=>{"use strict";e.exports=p},4870:e=>{"use strict";e.exports=i},5801:e=>{"use strict";e.exports=s},5537:e=>{"use strict";e.exports=f},4212:t=>{"use strict";t.exports=e},3511:e=>{"use strict";e.exports=r},467:e=>{"use strict";e.exports=c},748:e=>{"use strict";e.exports=t},210:e=>{"use strict";e.exports=n}},y={};function g(e){var t=y[e];if(void 0!==t)return t.exports;var n=y[e]={exports:{}};return h[e](n,n.exports,g),n.exports}g.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return g.d(t,{a:t}),t},g.d=(e,t)=>{for(var n in t)g.o(t,n)&&!g.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var m={};return(()=>{"use strict";g.r(m),g.d(m,{BkColumn:()=>At,default:()=>Lt});var e,t,n,o,r=g(4212),i=g(748);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(n||(n={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(o||(o={}));var a,s,u=[o.AUTO,o.HIGHLIGHT],c=[n.NONE,n.ROW,n.COL,n.OUTER,n.HORIZONTAL];!function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick",e.ON_SETTING_CHANGE="onSettingChange",e.ON_ROW_EXPAND_CLICK="onRowExpandClick",e.ON_ROW_CHECK="onRowCheck"}(a||(a={})),function(e){e.COLUMN_PICK="columnPick",e.COLUMN_SORT="columnSort",e.COLUMN_FILTER="columnFilter",e.COLUMN_FILTER_SAVE="colFilterSave",e.ROW_CLICK="rowClick",e.ROW_DBL_CLICK="rowDblclick",e.ROW_EXPAND_CLICK="rowExpand",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.SETTING_CHANGE="settingChange",e.SCROLL_BOTTOM="scrollBottom",e.ROW_SELECT="select",e.ROW_SELECT_ALL="selectAll",e.ROW_SELECT_CHANGE="selectionChange",e.CELL_CLICK="cellClick",e.CELL_DBL_CLICK="cellDblclick",e.NATIVE_CLICK="click",e.NATIVE_DBL_CLICK="dblclick"}(s||(s={}));var d,f=function(){return!0},p=(l(e={},s.COLUMN_PICK,f),l(e,s.COLUMN_FILTER,f),l(e,s.COLUMN_SORT,f),l(e,s.COLUMN_FILTER_SAVE,f),l(e,s.ROW_CLICK,f),l(e,s.ROW_DBL_CLICK,f),l(e,s.ROW_EXPAND_CLICK,f),l(e,s.ROW_SELECT,f),l(e,s.ROW_SELECT_ALL,f),l(e,s.ROW_SELECT_CHANGE,f),l(e,s.PAGE_LIMIT_CHANGE,f),l(e,s.PAGE_VALUE_CHANGE,f),l(e,s.SETTING_CHANGE,f),l(e,s.SCROLL_BOTTOM,f),l(e,s.CELL_CLICK,f),l(e,s.CELL_DBL_CLICK,f),e),v=(l(t={},s.NATIVE_CLICK,f),l(t,s.NATIVE_DBL_CLICK,f),"__$table_row_index"),h="__$uuid",y="__row_expand",b="__row_selection",T="__row_selection_all",C="__row_selection_indeterminate",_="__row_source_data",w="__row_skip_config",O="__col_$uuid",P="__col_source_data",x=42,E={large:78,medium:60,small:42},N="InitColumns",S="BKTableCahce";!function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(d||(d={}));var k,L,A=[d.ASC,d.DESC,d.NULL,d.CUSTOM],R=80,V=g(210);!function(e){e.CURRENT="current",e.ALL="all"}(k||(k={})),function(e){e.STATIC="static",e.AUTO="auto"}(L||(L={}));var j,H=(0,V.toType)("showOverflowTooltipMode",{default:L.AUTO});!function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(j||(j={}));var I,W=(0,V.toType)("columnType",{default:j.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(I||(I={}));var z,M=(0,V.toType)("full",{default:I.FULL});!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(z||(z={}));var D,F=(0,V.toType)("columnSize",{default:z.SMALL});!function(e){e.LEFT="left",e.RIGHT="right"}(D||(D={}));var U,K,B=(0,V.string)(),G=(0,V.toType)("sortScope",{}).def(k.CURRENT);!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(U||(U={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(K||(K={}));var q={label:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),field:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),render:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),width:r.PropTypes.oneOfType([r.PropTypes.number.def(void 0),r.PropTypes.string.def("auto")]),minWidth:r.PropTypes.oneOfType([r.PropTypes.number.def(void 0),r.PropTypes.string.def("auto")]).def(30),columnKey:r.PropTypes.string.def(""),showOverflowTooltip:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:H})]).def(void 0),type:W,resizable:r.PropTypes.bool.def(!0),fixed:r.PropTypes.oneOfType([r.PropTypes.bool,B]).def(!1),sort:r.PropTypes.oneOfType([r.PropTypes.shape({sortFn:r.PropTypes.func.def(void 0),sortScope:G,value:r.PropTypes.string.def(d.NULL)}),r.PropTypes.bool,r.PropTypes.string]).def(!1),filter:r.PropTypes.oneOfType([r.PropTypes.shape({list:r.PropTypes.arrayOf(r.PropTypes.any).def([]),filterFn:r.PropTypes.func.def(void 0),match:M,filterScope:G,btnSave:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.string]).def("确定"),btnReset:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.string]).def("重置")}),r.PropTypes.bool,r.PropTypes.string]).def(!1),colspan:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return 1})),r.PropTypes.number.def(1)]),rowspan:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return 1})),r.PropTypes.number.def(1)])},$={data:r.PropTypes.arrayOf(r.PropTypes.any).def([]),columns:r.PropTypes.arrayOf(r.PropTypes.shape(q).loose).def([]),activeColumn:r.PropTypes.oneOfType([r.PropTypes.number.def(-1),r.PropTypes.arrayOf(r.PropTypes.number.def(-1))]),columnPick:(0,V.toType)("columnPick",{}).def(U.DISABLED),height:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def("auto"),minHeight:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def(84),maxHeight:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def("auto"),rowHeight:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.func]).def(x),headHeight:r.PropTypes.number.def(x),showHead:r.PropTypes.bool.def(!0),thead:r.PropTypes.shape({height:r.PropTypes.number.def(x),isShow:r.PropTypes.bool.def(!0),cellFn:r.PropTypes.func.def(void 0)}),virtualEnabled:r.PropTypes.bool.def(!1),border:r.PropTypes.oneOfType([r.PropTypes.arrayOf((0,V.toType)("boderType",{})),r.PropTypes.string]).def([n.ROW]),pagination:r.PropTypes.oneOfType([r.PropTypes.bool.def(!1),r.PropTypes.object.def({})]).def(!1),paginationHeihgt:r.PropTypes.number.def(x),remotePagination:r.PropTypes.bool.def(!1),emptyText:r.PropTypes.string,settings:r.PropTypes.oneOfType([r.PropTypes.shape({fields:r.PropTypes.arrayOf(r.PropTypes.shape({label:r.PropTypes.string,field:r.PropTypes.string,disabled:r.PropTypes.bool})),checked:r.PropTypes.arrayOf(r.PropTypes.string),limit:r.PropTypes.number.def(0),size:F,sizeList:r.PropTypes.shape([]),showLineHeight:r.PropTypes.bool.def(!0)}),r.PropTypes.bool]).def(!1),rowClass:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),rowStyle:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),cellStyle:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),cellClass:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),scrollLoading:r.PropTypes.oneOfType([r.PropTypes.object,r.PropTypes.bool]).def(void 0),reserveExpand:r.PropTypes.bool.def(!1),selectionKey:r.PropTypes.string.def(""),isSelectedFn:r.PropTypes.func.def(void 0),rowKey:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.func]).def(v),showOverflowTooltip:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:H})]).def(!1),asyncData:r.PropTypes.bool.def(!1),rowHover:r.PropTypes.oneOf(u).def(o.HIGHLIGHT),defaultSort:r.PropTypes.shape({}).def({}),isRowSelectEnable:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return!0})),r.PropTypes.bool.def(!0)]).def(!0),resizerWay:(0,V.toType)("ResizerWay",{default:K.DEBOUNCE}),observerResize:r.PropTypes.bool.def(!0)};const X=(0,i.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},q),{prop:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")])}),setup:function(e){return{initColumns:(0,i.inject)(N,(function(e){}),!1),bkTableCache:(0,i.inject)(S,{queueStack:function(e,t){return null==t?void 0:t()}}),column:(0,i.reactive)(Object.assign(Object.assign({},e),{field:e.prop||e.field}))}},unmounted:function(){this.updateColumnDefine()},mounted:function(){this.updateColumnDefine()},methods:{updateColumnDefine:function(){var e=this;"function"==typeof this.bkTableCache.queueStack&&this.bkTableCache.queueStack("Bk_COlumn_Update_Define",(function(){var t=e._.parent.vnode.children.default()||[],n=[];!function e(t){Array.isArray(t)&&t.forEach((function(t){var o,r,l,a=!0;if("TableColumn"===(null===(o=t.type)||void 0===o?void 0:o.name)){a=Object.hasOwnProperty.call(t.props||{},"key");var s=Object.assign(Object.assign({},t.props),{field:t.props.prop||t.props.field,render:null===(r=t.children)||void 0===r?void 0:r.default});n.push((0,i.unref)(s))}(null===(l=t.children)||void 0===l?void 0:l.length)&&a&&e(t.children)}))}(t),e.initColumns(n)}))}},render:function(){var e,t;return(0,i.createVNode)(i.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e,{row:{}})])}});var Y=g(2717),Z=g(3511),J=g.n(Z);function Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function te(e,t,n){return t&&ee(e.prototype,t),n&&ee(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ne=function(){function e(){Q(this,e),this.storage=void 0,this.storage={}}return te(e,[{key:"queueStack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this.storage[e]&&clearTimeout(this.storage[e]),this.storage[e]=setTimeout((function(){return t()}))}},{key:"clearQueueStack",value:function(e){this.storage[e]&&clearTimeout(this.storage[e])}}]),e}();function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function re(e,t){if(e){if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}function ie(e){return function(e){if(Array.isArray(e))return oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||re(e)||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 le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}var ae=function(e,t){if(e){if("object"===le(e)){var n=Object.prototype.hasOwnProperty.call(e,"current")?e.current:e.value;return/\d+/.test(n)||(n=1),Object.assign(Object.assign(Object.assign({},t),e),{current:n})}return t}return{}};const se=function(e,t){var n=(0,i.ref)(0),o=(0,i.ref)(0),r=(0,i.reactive)({count:0,limit:10,current:1,align:"right",layout:["total","limit","list"]});r=ae(e.pagination,r);var l=(0,i.ref)(null),a=(0,i.reactive)([]),s=function(e,t){"function"==typeof t&&e.sort(t)},u=function(r,i,l){var u,c=t.slice();(null!==(u=null==l?void 0:l.sort)&&void 0!==u?u:{}).sortScope===k.ALL&&s(c,i),a.length=0,a.push.apply(a,ie(c.slice(n.value,o.value))),function(t,n){if("function"==typeof n){var o=t.filter((function(t,o){return n(t,o,e.data)}));t.length=0,t.push.apply(t,ie(o))}}(a,r),s(a,i)};return{pageData:a,localPagination:l,resolvePageData:u,watchEffectFn:function(t,i,a){r=ae(e.pagination,r),e.pagination&&(l.value=e.remotePagination?r:Object.assign(Object.assign({},r),{count:e.data.length})),function(){if(!e.pagination||e.remotePagination)return n.value=0,void(o.value=e.data.length);n.value=(r.current-1)*r.limit,o.value=r.current*r.limit}(),u(t,i,a)}}};var ue=g(4870),ce=g.n(ue);var de=g(8022),fe=g(5800),pe=g.n(fe),ve=g(6870),he=g(5801),ye=g.n(he),ge=g(4061),me=g(467),be=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),Te="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ce=void 0!==g.g&&g.g.Math===Math?g.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),_e="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ce):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},we=["top","right","bottom","left","width","height","size","weight"],Oe="undefined"!=typeof MutationObserver,Pe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&a()}function l(){_e(i)}function a(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(l,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Te&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Oe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Te&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;we.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),xe=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Ee=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ce},Ne=Re(0,0,0,0);function Se(e){return parseFloat(e)||0}function ke(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Se(e["border-"+n+"-width"])}),0)}var Le="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Ee(e).SVGGraphicsElement}:function(e){return e instanceof Ee(e).SVGElement&&"function"==typeof e.getBBox};function Ae(e){return Te?Le(e)?function(e){var t=e.getBBox();return Re(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ne;var o=Ee(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=Se(i)}return t}(o),i=r.left+r.right,l=r.top+r.bottom,a=Se(o.width),s=Se(o.height);if("border-box"===o.boxSizing&&(Math.round(a+i)!==t&&(a-=ke(o,"left","right")+i),Math.round(s+l)!==n&&(s-=ke(o,"top","bottom")+l)),!function(e){return e===Ee(e).document.documentElement}(e)){var u=Math.round(a+i)-t,c=Math.round(s+l)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(c)&&(s-=c)}return Re(r.left,r.top,a,s)}(e):Ne}function Re(e,t,n,o){return{x:e,y:t,width:n,height:o}}var Ve=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Re(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ae(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),je=function(e,t){var n,o,r,i,l,a,s,u=(o=(n=t).x,r=n.y,i=n.width,l=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(a.prototype),xe(s,{x:o,y:r,width:i,height:l,top:r,right:o+i,bottom:l+r,left:o}),s);xe(this,{target:e,contentRect:u})},He=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new be,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ee(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Ve(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ee(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new je(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ie="undefined"!=typeof WeakMap?new WeakMap:new be,We=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Pe.getInstance(),o=new He(t,n,this);Ie.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){We.prototype[e]=function(){var t;return(t=Ie.get(this))[e].apply(t,arguments)}}));const ze=void 0!==Ce.ResizeObserver?Ce.ResizeObserver:We;var Me=void 0,De=function e(t,n,o){var r;return"string"==typeof n?Object.prototype.hasOwnProperty.call(t,n)?"function"==typeof t[n]?(r=t[n]).call.apply(r,[Me].concat(ie(o))):t[n]:void 0:Array.isArray(n)?n.map((function(n){return e(t,n,o)})).filter((function(e){return void 0!==e})).at(0):void 0},Fe=function(e){return/^\d+$/.test("".concat(e))?[parseInt("".concat(e),10)]:[]},Ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o="";return o=/^auto|null|undefined$/gi.test("".concat(e))?t:/^\d+\.?\d+$/.test("".concat(e))?"".concat(e,"px"):e,n&&(o="calc(".concat(o," - ").concat(n,")")),o},Ke=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["resizeWidth","calcWidth","width"];return null!==(n=null!==(t=e[o[0]])&&void 0!==t?t:e[o[1]])&&void 0!==n?n:e[o[2]]},Be=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=e.getBoundingClientRect()||{},i=r.width,l=i-o,a=l,s=[],u=function(e,t){var n=e.minWidth,o=void 0===n?void 0:n;if(void 0===o)return t<R?R:t;var r=t;return/^\d+\.?\d*$/.test("".concat(o))&&(r=Number(o)),/^\d+\.?\d*%$/.test("".concat(o))&&(r=Number(o)*l/100),/^\d+\.?\d*px$/i.test("".concat(o))&&(r=Number("".concat(o).replace(/px/i,""))),r},c=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=u(e,t),r=t<o?o:t;Object.assign(e,{calcWidth:r}),n&&(a-=r)<0&&(a=0)};if(t.forEach((function(e,t){if(!e.isHidden){var o=String(Ke(e,["resizeWidth","width"])),r=!0;if(/^\d+\.?\d*(px)?$/.test(o)){var i=Number(o.replace("px",""));c(e,i),r=!1}if(/^\d+\.?\d*%$/.test(o)){var l=n;if(a>0){var u=Number(o.replace("%",""));l=a*u/100}c(e,l),r=!1}r&&s.push(t)}})),s.length>0){var d=n;a>0?s.forEach((function(e,n){d=a/(s.length-n),c(t[e],d,!1);var o=t[e].calcWidth;a-=o})):s.forEach((function(e){var n=u(t[e],R);Object.assign(t[e],{calcWidth:n})}))}},Ge=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"throttle",i=function(){"function"==typeof t&&t()},l="debounce"===r?(0,me.debounce)(i,n):(0,me.throttle)(i,n),a=function(){return Reflect.apply(l,Me,[])},s=new ze((function(){a()}));return o&&"function"==typeof t&&t(),{start:function(){s.observe(e)},disconnect:function(){s.unobserve(e),s.disconnect()}}},qe=function(e){var t=e.showHead,n=e.headHeight,o=e.thead,r=void 0===o?{}:o;return Object.assign({},{isShow:t,height:n},Object.assign({},r))},$e=function(e,t,n){return"index"===n.type?e[v]+1:(0,me.get)(e,t)},Xe=function e(t,n){return Array.isArray(t)?t:"string"==typeof t||"object"===le(t)?[t]:"function"==typeof t?e(Reflect.apply(t,Me,n),n):[]},Ye=function(e,t,n){return"string"==typeof t.rowKey?t.rowKey===v?"__ROW_INDEX_".concat(n):(0,me.get)(e,t.rowKey):"function"==typeof t.rowKey?Reflect.apply(t.rowKey,Me,[e]):(0,de.v4)()},Ze=function(e,t,n){var o;return o=t,e.some((function(e){return e.field===De(o,["field","type"],[o])}))&&n.length&&!n.includes(De(t,["field","type"],[t]))},Je=function(e,t,n,o,r){return"function"==typeof e[r]?Reflect.apply(e[r],Me,[{column:e,colIndex:t,row:n,rowIndex:o}]):"number"==typeof e[r]?e[r]:1},Qe=function(e,t,n,o){return{colspan:Je(e,t,n,o,"colspan"),rowspan:Je(e,t,n,o,"rowspan")}},et=function(e,t){var n,o,r=e.field,i=function(t){return $e(t,r,e)},l="function"==typeof(null===(n=e.sort)||void 0===n?void 0:n.sortFn)?null===(o=e.sort)||void 0===o?void 0:o.sortFn:function(e,t){var n=i(e)||"",o=i(t)||"";return"number"==typeof n&&"number"==typeof o?n-o:String.prototype.localeCompare.call(n,o)};return t===d.NULL?function(){return!0}:function(e,n){return l(e,n)*(t===d.DESC?-1:1)}},tt=function(e){var t,n=(l(t={},d.NULL,0),l(t,d.ASC,1),l(t,d.DESC,2),t);return void 0===e?d.NULL:Object.keys(n)[(n[e]+1)%3]},nt=function(e){return"string"==typeof e?{value:e}:"boolean"==typeof e&&e?{value:d.NULL}:"object"===le(e)&&null!==e?le(e.sortFn)?Object.assign({value:"custom"},e):e:null},ot=function(e,t){var n=t.row,o=t.index,r=t.isCheckAll;return"boolean"==typeof e.isRowSelectEnable?!1!==e.isRowSelectEnable:"function"!=typeof e.isRowSelectEnable||e.isRowSelectEnable({row:n,index:o,isCheckAll:r})},rt=function(e,t,n){if(void 0!==e.__$uuid)return e.__$uuid;var o=Ye(e,n,t);return void 0!==o&&void 0!==e[o]?e[o]:t},it=function(e){return(0,i.unref)(e.__row_source_data||e)},lt=function(e){return(0,i.unref)(e.__col_source_data||e)};const at=(0,i.defineComponent)({name:"TableCell",props:{column:r.PropTypes.any.def({}),row:r.PropTypes.any.def({}),parentSetting:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:H})]).def(void 0),title:r.PropTypes.string.def(void 0),observerResize:r.PropTypes.bool.def(!0),resizerWay:(0,V.toType)("ResizerWay",{default:K.DEBOUNCE})},setup:function(e,t){var n=this,o=t.slots,l=(0,i.ref)(),a=(0,i.ref)(!1),s=(/boolean|object/.test(le(e.column.showOverflowTooltip))&&null!==e.column.showOverflowTooltip?e.column:{showOverflowTooltip:e.parentSetting}).showOverflowTooltip,u=void 0!==s&&s,c=null,d=function(){var t=!0,o=e.resizerWay,r=l.value.innerText,i="auto",a=!0;return"boolean"==typeof u&&(t=!u),"object"===le(u)&&(t=u.disabled,o=u.resizerWay||"debounce",r=u.content||l.value.innerText,"function"==typeof u.content&&(r=u.content(e.column,e.row)),a=u.watchCellResize,i=u.mode||"auto"),"function"==typeof t&&(t=Reflect.apply(t,n,[e.column,e.row])),{disabled:t,content:r,mode:i,resizerWay:o,watchCellResize:a}},f=function(){if(l.value&&(0,r.isElement)(l.value)){var e=d(),t=e.mode,n=e.disabled;if(a.value=!n,"auto"===t&&(a.value=(0,r.hasOverflowEllipsis)(l.value)),"static"===t&&(a.value=!0),a.value){var o=(0,i.ref)(d());null===c&&(c=(0,ge.bkEllipsisInstance)(l.value,{disabled:o.value.disabled,content:o.value.content,mode:o.value.mode}))}else null==c||c.destroyInstance(l.value),c=null}};return(0,i.onMounted)((function(){var t=d(),n=t.disabled,o=t.resizerWay,r=t.watchCellResize;if(!n&&(f(),!1!==r&&e.observerResize)){var a=Ge(l.value,(function(){f()}),60,!0,o);a.start(),(0,i.onBeforeUnmount)((function(){a.disconnect(),a=null}))}})),(0,i.onBeforeUnmount)((function(){null==c||c.destroyInstance(l.value)})),function(){var t;return(0,i.createVNode)("div",{class:["cell",e.column.type],ref:l,title:e.title},[null===(t=o.default)||void 0===t?void 0:t.call(o)])}}}),st=(0,i.defineComponent)({name:"TableRow",render:function(){var e,t;return(0,i.createVNode)(i.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});var ut=g(9911),ct=g.n(ut);const dt=(0,i.defineComponent)({name:"BodyEmpty",props:{list:r.PropTypes.array.def([]),filterList:r.PropTypes.array.def([]),emptyText:r.PropTypes.string},emits:["change"],setup:function(e){var t=(0,Y.useLocale)("table"),n=(0,i.computed)((function(){return void 0===e.emptyText?t.value.emptyText:e.emptyText})),o=(0,i.computed)((function(){return 0===e.list.length?"empty":"search-empty"}));return function(){return(0,i.createVNode)(ct(),{scene:"part",type:o.value,description:n.value},null)}}});var ft=g(5537),pt=g.n(ft);const vt=(0,i.defineComponent)({name:"HeadFilter",props:{column:r.PropTypes.any.def({}),height:r.PropTypes.number.def(x)},emits:["change","filterSave"],setup:function(e,t){var n=t.emit,o=(0,Y.useLocale)("table"),a=e.column,s=(0,i.reactive)({isOpen:!1,checked:[]}),u=(0,i.computed)((function(){var t;return(0,r.classes)((l(t={},(0,r.resolveClassName)("table-head-action"),!0),l(t,"column-filter",!0),l(t,"--row-height","".concat(e.height,"px")),l(t,"active",s.checked.length),l(t,"opened",s.isOpen),t))})),c=(0,r.classes)(l({},(0,r.resolveClassName)("table-head-filter"),!0)),d=(0,i.ref)(null),f=function(e){s.isOpen=e,e&&setTimeout((function(){d.value.reset()}))},p="light ".concat((0,r.resolveClassName)("table-head-filter")),v=(0,i.computed)((function(){var e=a.filter.list;return void 0===e?[]:e})),h="function"==typeof a.filter.filterFn?function(t,n,o,r){return a.filter.filterFn(t,n,e.column,o,r)}:function(e,t){return!e.length||function(e,t){var n=a.filter.match,o=$e(t,De(a,"field",[a,t]),a);return"full"===n&&e.includes(o),e.some((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ig";return new RegExp("".concat(e).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),t)}(e,"img").test(o)}))}(e,t)},y=function(){g(!0),n("filterSave",ie(s.checked)),s.isOpen=!1},g=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=b(C,o.value.confirm),i=r.disabled;if(i||t){if("custom"===e.column.filter)return n("change",ie(s.checked),null),void(s.isOpen=!1);n("change",ie(s.checked),h)}},m=function(){s.checked.length&&(s.checked.length=0,s.isOpen=!1,(0,i.nextTick)((function(){return n("change",s.checked,h)})))},b=function(e,t){return{disabled:"disabled"===e||!1===e,text:"string"==typeof e?e:t}},T=a.filter,C=T.btnSave,_=T.btnReset,w=function(){var e=b(_,o.value.reset),t=e.disabled,n=e.text;return t?"":(0,i.createVNode)("span",{class:["btn-filter-reset",s.checked.length?"":"disable"],onClick:m},[n])},O=function(e){return e.data.length?e.data.map((function(e){return(0,i.createVNode)("div",{class:"list-item"},[(0,i.createVNode)(pe(),{label:e.value,key:e.$index,immediateEmitChange:!1,checked:s.checked.includes(e.value),modelValue:s.checked.includes(e.value),onChange:function(t){return function(e,t){var n,o=new Set(s.checked);e?o.add(t.value):o.delete(t.value),s.checked.length=0,(n=s.checked).push.apply(n,ie(Array.from(o))),g()}(t,e)}},{default:function(){return["".concat(e.text)]}})])})):(0,i.createVNode)("div",{class:"list-item is-empty"},[o.value.emptyText])};return function(){return(0,i.createVNode)(pt(),(0,i.mergeProps)({trigger:"click",isShow:s.isOpen,placement:"bottom-start",renderType:r.RenderType.SHOWN,arrow:!1,offset:0},{theme:p},{onAfterShow:function(){return f(!0)},onAfterHidden:function(){return f(!1)}}),{default:function(){return(0,i.createVNode)(ve.Funnel,{class:u.value},null)},content:function(){return(0,i.createVNode)("div",{class:c},[(0,i.createVNode)(fe.BkCheckboxGroup,{class:"content-list"},{default:function(){return[(0,i.createVNode)(J(),{lineHeight:32,list:v.value,throttleDelay:0,scrollEvent:!0,ref:d,className:"content-items"},{default:O})]}}),(0,i.createVNode)("div",{class:"content-footer"},[(e=b(C,o.value.confirm),t=e.disabled,n=e.text,t?(0,i.createVNode)("span",{class:"btn-filter-save disabled"},[n]):(0,i.createVNode)("span",{class:"btn-filter-save",onClick:y},[n])),(0,i.createVNode)("span",{class:"btn-filter-split"},null),w()])]);var e,t,n}})}}});var ht=g(7685);const yt=(0,i.defineComponent)({name:"HeadSort",props:{column:r.PropTypes.any.def({}),defaultSort:r.PropTypes.oneOf(A).def(d.NULL)},emits:["change"],setup:function(e,t){var n,o,l=t.emit,a=(null===(o=null===(n=e.column)||void 0===n?void 0:n.sort)||void 0===o?void 0:o.value)||e.defaultSort||d.NULL,s=(0,i.ref)(a);(0,i.watch)((function(){return[e.defaultSort]}),(function(e){var t,n,o=(t=e,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(t,n)||re(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];s.value=o}));var u=function(t,n){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault();var o=n;n===d.NULL&&(o=tt(n)),s.value===n&&(o=d.NULL);var r=nt(e.column.sort);if("custom"!==(null==r?void 0:r.value)){var i=et(e.column,o);l("change",i,o)}else l("change",null==r?void 0:r.sortFn,o)};return function(){return(0,i.createVNode)("span",{class:(0,r.resolveClassName)("head-cell-sort"),onClick:function(e){return u(e,d.NULL)}},[(0,i.createVNode)(ht.AngleDownFill,{class:["sort-action","sort-asc",s.value===d.ASC?"active":""],style:"align-items: flex-end;",onClick:function(e){return u(e,d.ASC)}},null),(0,i.createVNode)(ht.AngleUpFill,{class:["sort-action","sort-desc",s.value===d.DESC?"active":""],style:"align-items: flex-start;",onClick:function(e){return u(e,d.DESC)}},null)])}}});var gt=te((function e(t,n){Q(this,e),this.props=null,this.ctx=null,this.props=t,this.ctx=n})),mt=g(4976),bt=g.n(mt);function Tt(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,i.isVNode)(e)}const Ct=(0,i.defineComponent)({name:"Settings",props:{settings:r.PropTypes.oneOfType([r.PropTypes.shape({fields:r.PropTypes.arrayOf(r.PropTypes.shape({label:r.PropTypes.string,field:r.PropTypes.string,disabled:r.PropTypes.bool})),checked:r.PropTypes.arrayOf(r.PropTypes.string),limit:r.PropTypes.number.def(0),size:F.def(z.SMALL),sizeList:r.PropTypes.shape([]),showLineHeight:r.PropTypes.bool.def(!0)}),r.PropTypes.bool]).def(!1),columns:r.PropTypes.array.def([]),rowHeight:r.PropTypes.number.def(x)},emits:["change"],setup:function(e,t){var n=t.emit,o=(0,Y.useLocale)("table"),l=function(e){return[{value:"small",label:e.value.setting.lineHeight.small,height:E.small},{value:"medium",label:e.value.setting.lineHeight.medium,height:E.medium},{value:"large",label:e.value.setting.lineHeight.large,height:E.large}]}(o),a=function(e,t){return De(e,["field","type"],[e,t])},s=(0,i.ref)(!1),u=(0,i.ref)(!1),c=(0,i.computed)((function(){return"boolean"==typeof e.settings?{fields:e.columns.map((function(e){return Object.assign(Object.assign({},e),{field:e.field||e.type})})),checked:[],limit:0,size:"small",sizeList:l,showLineHeight:!0}:e.settings})),d=(0,i.ref)(c.value.size||"small"),f=(0,i.ref)(e.rowHeight),p=(0,i.ref)(c.value.checked||[]),v=(0,r.resolveClassName)("table-settings"),h="light ".concat(v),y=(0,i.computed)((function(){return c.value.fields||e.columns||[]})),g={checkAll:s.value,activeSize:d.value,activeHeight:f.value,checkedFields:c.value.checked||[]},m=function(){Object.assign(g,{checkAll:s.value,activeSize:d.value,activeHeight:f.value,checkedFields:p.value}),n("change",{checked:p.value,size:d.value,height:f.value,fields:(0,i.unref)(y)}),u.value=!1},b=function(){s.value=g.checkAll,d.value=g.activeSize,f.value=g.activeHeight,p.value=g.checkedFields,u.value=!1},T=function(){u.value=!0},C=function(t){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),s.value=!s.value;var n=c.value.fields||e.columns||[],o=n.filter((function(e,t){return e.disabled&&p.value.includes(a(e,t))})).map((function(e,t){return a(e,t)}));if(s.value){var r,i=n.filter((function(e){return!e.disabled})).map((function(e,t){return a(e,t)}));(r=p.value).splice.apply(r,[0,p.value.length].concat(ie(i),ie(o)))}else{var l;(l=p.value).splice.apply(l,[0,p.value.length].concat(ie(o)))}},_=(0,i.computed)((function(){var e;return(null!==(e=c.value.limit)&&void 0!==e?e:0)>0})),w=c.value.sizeList||l,O=(0,i.computed)((function(){return _.value&&(c.value.limit?c.value.limit:0)<=p.value.length})),P=function(e,t){return e.disabled||O.value&&!p.value.includes(a(e,t))},x=function(e){return{"line-size":!0,"is-medium":"medium"===d.value,active:e.value===d.value}},N={marginRight:"12px"},S=(0,i.computed)((function(){return p.value.length>0&&!y.value.every((function(e,t){return p.value.includes(De(e,"field",[e,t]))}))})),k=(0,i.computed)((function(){return"boolean"!=typeof c.value.showLineHeight||c.value.showLineHeight}));return(0,i.watch)((function(){return[p.value]}),(function(){p.value.length||(s.value=!1),p.value.length&&y.value.every((function(e,t){return p.value.includes(a(e,t))}))&&(s.value=!0)}),{immediate:!0,deep:!0}),(0,i.watch)((function(){return[e.settings.checked]}),(function(){var e;(e=p.value).splice.apply(e,[0,p.value.length].concat(ie(c.value.checked)))}),{immediate:!0,deep:!0}),function(){return e.settings?(0,i.createVNode)(pt(),(0,i.mergeProps)({trigger:"manual",isShow:u.value,placement:"bottom-end",arrow:!0},{theme:h}),{default:function(){return(0,i.createVNode)("span",{class:"table-head-settings",onClick:T},[(0,i.createVNode)(ht.CogShape,{style:"color: #c4c6cc;"},null)])},content:function(){var e;return(0,i.createVNode)("div",{class:"setting-content"},[(0,i.createVNode)("div",{class:"setting-head"},[(0,i.createVNode)("span",{class:"head-title"},[o.value.setting.title]),(0,i.createVNode)(ht.CloseLine,{class:"icon-close-action",onClick:b},null)]),(0,i.createVNode)("div",{class:"setting-body"},[(0,i.createVNode)("div",{class:"setting-body-title"},[(0,i.createVNode)("div",null,[(0,i.createVNode)("span",{class:"field-setting-label"},[o.value.setting.fields.title]),_.value?(0,i.createVNode)("span",{class:"limit"},[o.value.setting.fields.subtitle(c.value.limit)]):""]),_.value?"":(0,i.createVNode)("span",{class:"check-all",onClick:C},[(0,i.createVNode)(pe(),{label:o.value.setting.fields.selectAll,indeterminate:Boolean(S.value),modelValue:p.value.length>0},{default:function(){return[o.value.setting.fields.selectAll]}})])]),(0,i.createVNode)(fe.BkCheckboxGroup,{class:"setting-body-fields",modelValue:p.value,"onUpdate:modelValue":function(e){return p.value=e}},Tt(e=y.value.map((function(e,t){var n;return(0,i.createVNode)("div",{class:"field-item"},[(0,i.createVNode)(pe(),{checked:p.value.includes(a(e,t)),label:a(e,t),disabled:P(e,t)},Tt(n=De(e,"label",[e,t]))?n:{default:function(){return[n]}})])})))?e:{default:function(){return[e]}}),k.value?(0,i.createVNode)("div",{class:"setting-body-line-height"},[o.value.setting.lineHeight.title,(0,i.createTextVNode)(":"),w.map((function(e){return(0,i.createVNode)("span",{class:x(e),onClick:function(){return function(e){d.value=e.value,f.value=e.height}(e)}},[e.label])}))]):""]),(0,i.createVNode)("div",{class:"setting-footer"},[(0,i.createVNode)(bt(),{theme:"primary",style:N,onClick:m},{default:function(){return[o.value.setting.options.ok]}}),(0,i.createVNode)(bt(),{style:N,onClick:b},{default:function(){return[o.value.setting.options.cancel]}})])])}}):""}}}),_t=function(e,t,n){var o=function(e){return"right"===e.fixed?"right":"left"},a={left:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t.filter((function(e){return!e.isHidden&&e.fixed&&"right"!==e.fixed})).reduce((function(t,n,o){return e&&0===o?t:t+Ke(n)}),0)},right:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t.filter((function(e){return!e.isHidden&&"right"===e.fixed})).reduce((function(t,n,o){return e&&0===o?t:t+Ke(n)}),n?6:0)}},s=function(e,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=n.__col_$uuid,l="right"===e?-1:1,a=t.filter((function(e){return!e.isHidden})),s=a.length,u="right"===e?s*l:1,c=0;;){u+=-1*l;var d=Math.abs(u),f=a[d],p=o(f),v=f.__col_$uuid;if(p===e&&i!==v){var h=Ke(f);c+=h}if(i===v)break}return c+r},u=(0,i.computed)((function(){var e={left:!1,right:!1};return t.filter((function(e){return!e.isHidden&&e.fixed})).map((function(t){var n=o(t),r=e[n];return e[n]=!0,{isExist:r,colPos:n,column:t}}))}));return{fixedWrapperClass:(0,r.resolveClassName)("table-fixed"),resolveFixedColumnStyle:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.fixed||e.isHidden)return{};var n={left:0,right:t?6:-1},r=o(e);return n[r]=s(r,e,n[r]),l({},r,"".concat(n[r],"px"))},fixedColumns:u,resolveColumnStyle:function(e){return{width:"".concat(a[e](!1),"px"),bottom:"0px"}},resolveColumnClass:function(e,t,n){return{column_fixed:!!e.fixed,column_fixed_left:"right"!==e.fixed,column_fixed_right:"right"===e.fixed,shadow:"right"===e.fixed?n-t>2:t>0}}}};function wt(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,i.isVNode)(e)}var Ot=function(){function e(t,n,o,r,i,a){var s=this;Q(this,e),this.getRowHeight=function(e,t){var n=s.setting,o=n.size;return null!=n.height?De(s.setting,"height",["tbody",e,t,o]):De(s.props,"rowHeight",["tbody",e,t])},this.getColumnClass=function(e,t){var n;return l(n={},"".concat(s.uuid,"-column-").concat(t),!0),l(n,"column_fixed",!!e.fixed),l(n,"column_fixed_left",!!e.fixed),l(n,"column_fixed_right","right"===e.fixed),n},this.getHeadColumnClass=function(e,t){return Object.assign(Object.assign({},s.getColumnClass(e,t)),{active:s.isColActive(t)})},this.props=t,this.context=n,this.reactiveProp=o,this.colgroups=r,this.plugins=new gt(t,n),this.uuid=(0,de.v4)(),this.events=new Map,this.styleRef=i,this.t=a}return te(e,[{key:"propActiveCols",get:function(){return this.reactiveProp.activeColumns}},{key:"renderTableHeadSchema",value:function(){var e=this,t=qe(this.props).isShow;return void 0===t||t?[this.props.settings?(0,i.createVNode)(Ct,{class:"table-head-settings",settings:this.reactiveProp.settings,columns:this.colgroups,rowHeight:this.props.rowHeight,onChange:function(t){var n,o=t.checked,r=void 0===o?[]:o,i=t.size,l=t.height;e.reactiveProp.setting.size=i,e.reactiveProp.setting.height=l;var s=(null===(n=e.props.settings)||void 0===n?void 0:n.fields)||[];r.length&&e.colgroups.forEach((function(e){e.isHidden=Ze(s,e,r)})),e.emitEvent(a.ON_SETTING_CHANGE,[t])}},null):"",(0,i.createVNode)("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderHeader()])]:null}},{key:"renderTableBodySchema",value:function(e){var t,n,o,r=this,l=(0,i.computed)((function(){return void 0===r.props.emptyText?r.t.value.emptyText:r.props.emptyText}));return e.length?(0,i.createVNode)("table",{cellpadding:0,cellspacing:0,"data-table-uuid":this.uuid},[this.renderColGroup(),this.renderTBody(e)]):null!==(o=null===(n=(t=this.context.slots).empty)||void 0===n?void 0:n.call(t))&&void 0!==o?o:(0,i.createVNode)(dt,{filterList:e,list:this.props.data,emptyText:l.value},null)}},{key:"renderTableFooter",value:function(e){var t=this;return(0,i.createVNode)(ye(),(0,i.mergeProps)(e,{modelValue:e.current,onLimitChange:function(e){return t.handlePageLimitChange(e)},onChange:function(e){return t.handlePageChange(e)}}),null)}},{key:"on",value:function(e,t){return this.events.has(e)||this.events.set(e,[]),this.events.get(e).push(t),this}},{key:"destroy",value:function(){this.events.clear(),this.events=null}},{key:"emitEvent",value:function(e,t){var n=this;this.events.has(e)&&this.events.get(e).forEach((function(e){"function"==typeof e&&Reflect.apply(e,n,t)}))}},{key:"handlePageLimitChange",value:function(e){Object.assign(this.props.pagination,{limit:e}),this.context.emit(s.PAGE_LIMIT_CHANGE,e)}},{key:"handlePageChange",value:function(e){Object.assign(this.props.pagination,{current:e,value:e}),this.context.emit(s.PAGE_VALUE_CHANGE,e)}},{key:"setColumnActive",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.propActiveCols.find((function(t){return t.index===e}));Object.assign(n,{active:!n.active}),t&&this.propActiveCols.filter((function(t){return t.index!==e&&t.active})).forEach((function(e){Object.assign(e,{active:!1})}))}},{key:"handleColumnHeadClick",value:function(e,t){if("disabled"!==this.props.columnPick&&(this.setColumnActive(e,"single"===this.props.columnPick),this.context.emit(s.COLUMN_PICK,this.propActiveCols)),t.sort&&!t.filter){var n=De(t,["field","type"],[t,e]),o=tt(this.reactiveProp.defaultSort[n]);Object.assign(this.reactiveProp.defaultSort,l({},n,o));var r=et(t,o);this.emitEvent(a.ON_SORT_BY_CLICK,[{sortFn:r,column:t,index:e,type:o}])}}},{key:"getSortCell",value:function(e,t){var n=this,o=De(e,["field","type"],[e,t]),r=this.reactiveProp.defaultSort[o];return(0,i.createVNode)(yt,{column:e,defaultSort:r,onChange:function(r,i){Object.assign(n.reactiveProp.defaultSort,l({},o,i)),n.emitEvent(a.ON_SORT_BY_CLICK,[{sortFn:r,column:e,index:t,type:i}])}},null)}},{key:"getFilterCell",value:function(e,t){var n=this;return(0,i.createVNode)(vt,{column:e,height:this.props.headHeight,onChange:function(o,r){n.emitEvent(a.ON_FILTER_CLICK,[{filterFn:function(e,t){return r(o,e,t)},checked:o,column:e,index:t}])},onFilterSave:function(t){n.context.emit(s.COLUMN_FILTER_SAVE,{column:e,values:t})}},null)}},{key:"renderHeader",value:function(){var e=this,t=qe(this.props),n=t.cellFn,o={"--row-height":"".concat(De(t,"height",["thead"]),"px")},r=function(t,o){if("selection"===t.type){var r=e.reactiveProp.rowActions.get(T);return e.renderCheckboxColumn(l({},b,!!r),0,!0)}var a=[];t.sort&&a.push(e.getSortCell(t,o)),t.filter&&a.push(e.getFilterCell(t,o));var s=function(e,t){return"function"==typeof n?n(e,t):De(e,"label",[e,t])}(t,o);a.unshift((0,i.createVNode)("span",{class:"head-text"},[s]));var u="string"==typeof s?s:void 0,c={"has-sort":!!t.sort,"has-filter":!!t.filter};return(0,i.createVNode)(at,{class:c,title:u,observerResize:e.props.observerResize,resizerWay:e.props.resizerWay},wt(a)?a:{default:function(){return[a]}})},a=_t(this.props,this.colgroups).resolveFixedColumnStyle,s=function(){if(e.styleRef.value.hasScrollY){var t={width:"".concat(8,"px"),right:"-1px"};return(0,i.createVNode)("th",{style:t,class:"column_fixed"},null)}};return(0,i.createVNode)("thead",{style:o},[(0,i.createVNode)(st,null,{default:function(){return[(0,i.createVNode)("tr",null,[e.filterColgroups.map((function(t,n){return(0,i.createVNode)("th",(0,i.mergeProps)({colspan:1,rowspan:1,class:e.getHeadColumnClass(t,n),style:a(t,e.styleRef.value.hasScrollY),onClick:function(){return e.handleColumnHeadClick(n,t)}},(o=t,Array.from(o.listeners.keys()).reduce((function(t,n){var r=n.split("_").slice(-1)[0];return Object.assign(t,l({},r,(function(t){o.listeners.get(n).forEach((function(n){return Reflect.apply(n,e,[t,o,e])}))})))}),{}))),[r(t,n)]);var o})),s()])]}})])}},{key:"renderTBody",value:function(e){var t=this,n=_t(this.props,this.colgroups).resolveFixedColumnStyle,o=e.length;return(0,i.createVNode)("tbody",null,[e.map((function(r,l){var a=[].concat(ie(Xe(t.props.rowStyle,[r,l,t])),[{"--row-height":"".concat(t.getRowHeight(r,l),"px")}]),u=[].concat(ie(Xe(t.props.rowClass,[r,l,t])),["hover-".concat(t.props.rowHover)]),c=rt(r,l,t.props);return[(0,i.createVNode)(st,{key:c},{default:function(){return[(0,i.createVNode)("tr",{style:a,class:u,onClick:function(n){return t.handleRowClick(n,r,l,e)},onDblclick:function(n){return t.handleRowDblClick(n,r,l,e)}},[t.filterColgroups.map((function(a,u){var c,d,f=[n(a)].concat(ie(Xe(t.props.cellStyle,[a,u,r,l,t]))),p={"expand-cell":"expand"===a.type},v="__CELL_".concat(l,"_").concat(u),h=Qe(a,u,r,l),y=h.colspan,g=h.rowspan,m=a.__col_$uuid,b=null!==(d=null===(c=r.__row_skip_config)||void 0===c?void 0:c[m])&&void 0!==d?d:{},T=b.skipRow,C=void 0!==T&&T,_=b.skipCol;if(!(C||void 0!==_&&_)){var w,O=[t.getColumnClass(a,u)].concat(ie(Xe(t.props.cellClass,[a,u,r,l,t])),[{"expand-row":r.__row_expand,"is-last":l+g>=o}]),P=function(n,o){var i={event:n,row:it(r),column:lt(a),cell:{getValue:function(){return t.renderCell(r,a,l,e)}},rowIndex:l,columnIndex:u};t.context.emit(o,i)};return(0,i.createVNode)("td",{class:O,style:f,key:v,colspan:y,rowspan:g,onClick:function(e){return P(e,s.CELL_CLICK)},onDblclick:function(e){return P(e,s.CELL_DBL_CLICK)}},[(0,i.createVNode)(at,{class:p,column:a,row:r,parentSetting:t.props.showOverflowTooltip,observerResize:t.props.observerResize},wt(w=t.renderCell(r,a,l,e))?w:{default:function(){return[w]}})])}return null}))])]}}),t.renderExpandRow(r,u,l)]}))])}},{key:"renderExpandRow",value:function(e,t,n){var o,r,l,a=this;if(e.__row_expand){var s=[].concat(ie(t),[{row_expend:!0}]),u=rt(e,n,this.props),c="".concat(u,"_expand");return(0,i.createVNode)(st,{key:c},{default:function(){return[(0,i.createVNode)("tr",{class:s},[(0,i.createVNode)("td",{colspan:a.filterColgroups.length,rowspan:1},[null!==(l=null===(r=(o=a.context.slots).expandRow)||void 0===r?void 0:r.call(o,it(e)))&&void 0!==l?l:(0,i.createVNode)("div",{class:"expand-cell-ctx"},[(0,i.createTextVNode)("Expand Row")])])])]}})}}},{key:"handleRowClick",value:function(e,t,n,o){this.context.emit(s.ROW_CLICK,e,t,n,o,this)}},{key:"handleRowDblClick",value:function(e,t,n,o){this.context.emit(s.ROW_DBL_CLICK,e,t,n,o,this)}},{key:"getExpandCell",value:function(e){return e.__row_expand?(0,i.createVNode)(ve.DownShape,null,null):(0,i.createVNode)(ve.RightShape,null,null)}},{key:"handleRowExpandClick",value:function(e,t,n,o,r){this.emitEvent(a.ON_ROW_EXPAND_CLICK,[{row:e,column:t,index:n,rows:o,e:r}])}},{key:"renderCellCallbackFn",value:function(e,t,n,o){var r=$e(e,De(t,"field",[t,e]),t),i=e[v],l="number"==typeof i?i:n,a=this.props.data[l];return t.render({cell:r,data:a,row:e,column:t,index:n,rows:o})}},{key:"renderCheckboxColumn",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(r){n.emitEvent(a.ON_ROW_CHECK,[{row:e,index:t,isAll:o,value:r}])},l=o&&!!this.reactiveProp.rowActions.get(C),s=ot(this.props,{row:e,index:t,isCheckAll:o});return(0,i.createVNode)(pe(),{onChange:r,disabled:!s,modelValue:e.__row_selection,indeterminate:l},null)}},{key:"renderExpandColumn",value:function(e,t,n,o){var r,l,a,s=this;return(0,i.createVNode)("span",{class:"expand-btn-action",onClick:function(r){return s.handleRowExpandClick(e,t,n,o,r)}},["function"==typeof t.render?s.renderCellCallbackFn(e,t,n,o):null!==(a=null===(l=(r=s.context.slots).expandCell)||void 0===l?void 0:l.call(r,{row:e,column:t,index:n,rows:o}))&&void 0!==a?a:s.getExpandCell(e)])}},{key:"renderCell",value:function(e,t,n,o){var r,l,a,s=this,u={expand:function(e,t,n,o){return s.renderExpandColumn(e,t,n,o)},selection:function(e,t,n,o){return s.renderCheckboxColumn(e,n)}};return null!==(l=null===(r=u[t.type])||void 0===r?void 0:r.call(u,e,t,n,o))&&void 0!==l?l:(a=$e(e,De(t,"field",[t,e]),t),"function"==typeof t.render?s.renderCellCallbackFn(e,t,n,o):"object"===le(a)?JSON.stringify((0,i.unref)(a)):a)}},{key:"isColActive",value:function(e){return"disabled"!==this.props.columnPick&&this.propActiveCols.some((function(t){return t.index===e&&t.active}))}},{key:"renderColGroup",value:function(){var e=this;return(0,i.createVNode)("colgroup",null,[(this.filterColgroups||[]).map((function(t,n){var o,l=(0,r.classes)({active:e.isColActive(n)}),a="".concat((o=Ke(t),Ue(o,"auto"))).replace(/px$/i,"");return(0,i.createVNode)("col",{class:l,width:a},null)}))])}},{key:"filterColgroups",get:function(){return this.colgroups.filter((function(e){return!e.isHidden}))}},{key:"setting",get:function(){return this.reactiveProp.setting}}]),e}();const Pt=function(e,t){return{initColumns:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=[];if(o=Array.isArray(e)?e:[e],n)o.forEach((function(e){var o=t.findIndex((function(t){return t.label===e.label&&t.field===e.field}));n&&o>=0&&t.splice(o,1)}));else{var r=o.map((function(e){return t.find((function(t){return t.label===e.label&&t.field===e.field}))||(0,i.unref)(e)}));t.length=0,t.push.apply(t,ie(r))}},getColumns:function(){var n;return(null==t?void 0:t.length)?t:(null===(n=e.columns)||void 0===n?void 0:n.length)?e.columns:[]}}};var xt=function(e){return"disabled"!==e.columnPick?"multi"===e.columnPick?Array.isArray(e.activeColumn)?e.activeColumn:Fe(e.activeColumn):Array.isArray(e.activeColumn)?Fe(e.activeColumn[0]):Fe(e.activeColumn):[]};var Et=void 0,Nt=function(e,t,o,a,s){var u,d=Pt(e,t).getColumns,f=(0,i.ref)(200),p=(0,i.ref)(!1),v=(0,i.computed)((function(){return e.pagination&&e.data.length})),h=(0,i.computed)((function(){return p.value})),y=(0,i.computed)((function(){var t,n,o;return(0,r.classes)((l(t={},(0,r.resolveClassName)("table"),!0),l(t,"has-footer",v.value),l(t,"has-scroll-y",p.value||e.virtualEnabled),t),(o=["row"],"string"==typeof(n=e.border)&&o.push(n),Array.isArray(n)&&o.push.apply(o,ie(n.filter((function(e){return c.includes(e)})))),ie(new Set(o)).map((function(e){return"bordered-".concat(e)})).join(" ")))})),g=(0,r.classes)((l(u={},(0,r.resolveClassName)("table-head"),!0),l(u,"has-settings",!!e.settings),u)),m=(0,i.computed)((function(){return d()})),b=qe(e),T=(0,i.computed)((function(){return{"--row-height":"".concat(De(b,"height",["thead"]),"px"),"--scroll-head-left":"-".concat(a.scrollTranslateX,"px"),"--scroll-left":"".concat(a.scrollTranslateX,"px")}})),C=l({},(0,r.resolveClassName)("table-body"),!0),_=(0,i.computed)((function(){var t;return(0,r.classes)((l(t={},(0,r.resolveClassName)("table-footer"),!0),l(t,"is-hidden",!e.pagination||!e.data.length),t))})),w=function(){if(m.value.every((function(e){return/^\d+\.?\d*(px)?$/gi.test("".concat(e.width))}))){var e=m.value.reduce((function(e,t){return e+Number("".concat(t.width).replace(/px/gi,""))}),0),t=p.value?6:0;return"".concat(e+t,"px")}return"100%"},O=(0,i.computed)((function(){return{minHeight:Ue(e.minHeight,"auto"),width:w(),maxWidth:"100%"}})),P=function(e,t){var n=String(e);return/^\d+\.?\d*$/.test(n)?Number(n):/^\d+\.?\d*px$/gi.test(n)?Number(n.replace("px","")):/^\d+\.?\d*%$/gi.test(n)&&"number"==typeof t?t*Number(n.replace("%",""))/100:t},E=(0,i.reactive)({display:"","min-height":"",height:"",maxHeight:""});(0,i.onMounted)((function(){N(null==o?void 0:o.value)}));var N=function(t){if(t){var n=t.parentElement.getBoundingClientRect().height;f.value=n,function(){var t=P(e.height,f.value),n=e.showHead?P(e.headHeight,x):0,o=P(e.minHeight,f.value),r=e.pagination&&e.data.length?e.paginationHeihgt:0,i=t-n-r,l="auto"!==e.height&&"".concat(i,"px"),a=o-n-r,u=P(e.maxHeight,void 0),c="number"==typeof u&&"".concat(u-n-r,"px");Object.assign(E,{display:!!(null==s?void 0:s.length)&&"block","min-height":"".concat(a,"px"),height:l,maxHeight:c})}(),S(t)}},S=function(t){if(t){var n=e.virtualEnabled?".".concat((0,r.resolveClassName)("virtual-section")):".".concat((0,r.resolveClassName)("table-body-content")),o=t.querySelector(".bk-table-body");p.value=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e){var o=e.querySelector(t);if(o)return o.offsetHeight>e.offsetHeight-n}return!1}(o,n,0)}};return{tableClass:y,headClass:g,contentClass:C,footerClass:_,wrapperStyle:O,contentStyle:E,headStyle:T,resetTableHeight:N,updateBorderClass:S,getColumnsWidthOffsetWidth:function(){var t=0;return p.value&&(t+=6),e.border.includes(n.OUTER)&&!e.border.includes(n.NONE)&&(t+=2),t},hasFooter:v,hasScrollY:p,hasScrollYRef:h}},St=function(e,t){var n,o,r=(0,i.reactive)([]),a=Pt(e,t).getColumns,s=function(e){if(/^\d+/.test("".concat(e.minWidth)))return e.minWidth;var t=R;return e.sort&&(t+=18),e.filter&&(t+=28),t},u=(0,i.computed)((function(){return a()})),c=function(t){var n,o,i=(null==t?void 0:t.checked)||(null===(n=e.settings)||void 0===n?void 0:n.checked)||[],a=(null==t?void 0:t.fields)||(null===(o=e.settings)||void 0===o?void 0:o.fields)||[];r.length=0,r.push.apply(r,ie(u.value.map((function(e){var t;return Object.assign(Object.assign({},e),(l(t={calcWidth:null,resizeWidth:null,minWidth:s(e),listeners:new Map,isHidden:Ze(a,e,i)},O,(0,de.v4)()),l(t,P,e),t))}))))};"object"===le(e.settings)&&c(e.settings);var d=function(e){var t,n,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r="HeadColumnResize";!function(e){e.MOUSE_MOVE="onMousemove",e.MOUSE_OUT="onMouseout",e.MOUSE_DOWN="onMousedown"}(n||(n={}));var a=!1,s=!1,u=!1,c=0,d=null,f=0,p=(0,i.ref)(-1e3),v=function e(t){var n;s=!1,u=!1,document.body.style.cursor="";var o=t.clientX-c,r=(null!==(n=d.resizeWidth)&&void 0!==n?n:d.calcWidth)+o,i=Number(d.minWidth);d.resizeWidth=r>i?r:i,document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",y),c=0,p.value=-1e3,d=null,t.target.closest("table").querySelectorAll("th").forEach((function(e){return e.style.setProperty("user-select","inherit")}))},h=function(e){return(0,me.throttle)((function(){var t,n=e.clientX-c,o=(null!==(t=d.resizeWidth)&&void 0!==t?t:d.calcWidth)+n;Number(d.minWidth)<o&&(p.value=e.clientX-c+f)}),60)},y=function(e){document.body.style.setProperty("cursor",""),h(e)()},g=(l(t={},n.MOUSE_DOWN,(function(e,t){if(a){s=!0,document.body.style.setProperty("cursor","col-resize"),d=t,c=e.clientX;var n=e.target.closest("table");f=c-n.getBoundingClientRect().left,document.addEventListener("mouseup",v),document.addEventListener("mousemove",y)}})),l(t,n.MOUSE_MOVE,(function(e,t){s&&!u&&(u=!0);var n=e.target.closest("th");if(u&&n.style.setProperty("user-select","none"),!u){if(!n)return;var o=n.getBoundingClientRect();o.width>12&&o.right-e.pageX<8?(a=!0,n.style.setProperty("cursor","col-resize")):(n.style.setProperty("cursor",""),a=!1)}})),l(t,n.MOUSE_OUT,(function(e,t){var n=e.target;u||n.style.setProperty("cursor","")})),t),m=function(e){return"".concat(r,"_").concat(e)},b=function(){e.forEach((function(e){!1!==e.resizable&&Object.keys(g).forEach((function(t){var n=m(t);e.listeners.has(n)||e.listeners.set(n,[]),e.listeners.get(n).push(g[t])}))}))},T=function(){e.forEach((function(e){Object.keys(g).forEach((function(t){var n=m(t);e.listeners.has(n)&&(e.listeners.get(n).length=0)}))}))};o&&b();var C=(0,i.computed)((function(){return{position:"absolute",top:0,bottom:0,left:0,width:"1px","background-color":"#ebeef5"}}));return{registerResizeEvent:b,resetResizeEvents:T,dragOffsetX:p,dragOffsetXStyle:C}}(r,!0),f=d.dragOffsetXStyle,p=d.dragOffsetX,g=d.resetResizeEvents,m=d.registerResizeEvent,x=function(e,t){var n=(0,i.reactive)([]),o=Pt(e,t).getColumns;if("disabled"===e.columnPick)return{activeColumns:n};var r=(0,i.reactive)(xt(e));return(0,i.watchEffect)((function(){n=o().map((function(e,t){return{index:t,active:r.some((function(e){return e===t})),_column:e}}));var t=xt(e);n.forEach((function(e,n){Object.assign(e,{active:t.some((function(e){return e===n}))})}))})),{activeColumns:n}}(e,t).activeColumns;(0,i.watch)((function(){return[e.settings]}),(function(){var t;((null===(t=e.settings)||void 0===t?void 0:t.checked)||[]).length&&c()}));var N=(0,me.debounce)((function(){c(),g(),m()}),120);(0,i.watch)((function(){return u}),(function(){N()}),{immediate:!0,deep:!0});var S=e.columns.reduce((function(e,t,n){var o=De(t,["field","type"],[t,n]),r=nt(t.sort);return r?Object.assign(Object.assign({},e||{}),l({},o,null==r?void 0:r.value)):e}),null),k=(0,i.reactive)({rowActions:new Map,scrollTranslateY:0,scrollTranslateX:0,pos:{bottom:1},activeColumns:x,settings:e.settings,setting:{size:null===(n=e.settings)||void 0===n?void 0:n.size,height:E[null===(o=e.settings)||void 0===o?void 0:o.size]},defaultSort:S||e.defaultSort}),L=function(e){var t;return!!k.rowActions.has(e)&&(null===(t=k.rowActions.get(e))||void 0===t?void 0:t.isExpand)},A=function(){return k.rowActions.has(T)?k.rowActions.get(T):!!e.selectionKey&&M.every((function(e){return W(e)}))},V=function(e){var t=e.__$uuid,n=(k.rowActions.get(t)||{}).isSelected;return void 0!==n&&n},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=!1,n=!1;M.forEach((function(o){var r=e(o);t||r||(t=!0),!n&&r&&(n=!0)})),k.rowActions.set(C,n&&t),k.rowActions.set(T,n&&!t)},H=function(){e.columns.some((function(e){return"selection"===e.type}))&&j((function(e){return W(e)}))},I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n="boolean"==typeof t?t:!A();k.rowActions.set(T,n),k.rowActions.set(C,!1),M.forEach((function(t,o){var r;if(ot(e,{row:t,index:o,isCheckAll:!1})){var i=t.__$uuid,l=Object.assign({},null!==(r=k.rowActions.get(i))&&void 0!==r?r:{},{isSelected:n});k.rowActions.set(i,l)}})),j(),B(n),$(null,t,!0)},W=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return V(e)};return"function"==typeof e.isSelectedFn?Reflect.apply(e.isSelectedFn,Et,[{row:t,data:e.data}]):"string"==typeof e.selectionKey&&e.selectionKey.length?(0,me.get)(t,e.selectionKey):n(t)},z=function(t,n,o){return W(t,(function(){var r,i=void 0===n?t.__$uuid:n;return!(!ot(e,{row:t,index:o,isCheckAll:!1})||!A())||!!k.rowActions.has(i)&&(null===(r=k.rowActions.get(i))||void 0===r?void 0:r.isSelected)}))},M=(0,i.reactive)([]),D=(0,i.computed)((function(){return r.some((function(e){return"function"==typeof e.rowspan||/^\d$/.test("".concat(e.rowspan))||"function"==typeof e.colspan||/^\d$/.test("".concat(e.colspan))}))})),F=(0,i.computed)((function(){return r.some((function(e){return"selection"===e.type}))})),U=(0,i.computed)((function(){return r.some((function(e){return"expand"===e.type}))})),K=(0,i.computed)((function(){return r.some((function(e){return"index"===e.type}))})),B=function(t){if(D.value||F.value||U.value||K.value){var n=null,o={};return M.forEach((function(r,i){var a=r.__$uuid;if(U.value&&Object.assign(r,l({},y,L(r.__$uuid))),D.value){var s=G(r,a,i,o,n);n=r.__$uuid,Object.assign(r,l({},w,s))}if(K.value&&Object.assign(r,l({},v,i)),F.value){var u=ot(e,{row:r,index:i,isCheckAll:!1});Object.assign(r,l({},b,function(e,t,n,o){var r=z(n,n.__$uuid,o);return e&&"boolean"==typeof t?t:r}(u,t,r,i)))}})),void(F.value&&"boolean"!=typeof t&&H())}},G=function(e,t,n,o,i){var a,s=0,u=null!==(a=o[i])&&void 0!==a?a:{};return o[t]||(o[t]={}),r.forEach((function(r,i){var a,c,d=Qe(r,i,e,n),f=d.colspan,p=d.rowspan,v=r.__col_$uuid,h=null!==(c=null===(a=u[v])||void 0===a?void 0:a.skipRowLen)&&void 0!==c?c:0,y=l({},v,{skipRowLen:0,skipRow:!1,skipCol:!1,skipColLen:0});s>0&&(y[v].skipColLen=s,y[v].skipCol=!0,s-=1),h>1?(y[v].skipRowLen=h-1,y[v].skipRow=!0):p>1&&(y[v].skipRowLen=p,y[v].skipRow=!1),f>1&&(y[v].skipColLen=f,s=f-1),Object.assign(o[t],Object.assign({},y))})),o[t]},q=(0,me.debounce)(B,120);(0,i.watch)([D,F,U,K],(function(){q()}));var $=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.asyncData&&e.rowKey)if(o)e.data.forEach((function(t){(0,me.has)(t,e.selectionKey)&&(0,me.set)(t,e.selectionKey,!!n)}));else if((0,me.has)(t,e.selectionKey)){var r=e.data.find((function(n){return(0,me.get)(n,e.rowKey)===(0,me.get)(t,e.rowKey)}));(0,me.set)(r,e.selectionKey,!!n)}},X=_t(0,r,!1),Y=X.fixedColumns,Z=X.resolveColumnStyle,J=X.resolveColumnClass,Q=X.fixedWrapperClass;return{colgroups:r,dragOffsetXStyle:f,dragOffsetX:p,reactiveSchema:k,indexData:M,fixedWrapperClass:Q,fixedColumns:Y,resolveColumnStyle:Z,resolveColumnClass:J,initIndexData:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=null,o={};if(D.value||F.value||U.value||K.value){var r=e.data.map((function(r,i){var a,s=Ye(r,e,i);n=s;var u=Object.assign(Object.assign({},r),(l(a={},h,s),l(a,_,Object.assign({},r)),a));if(D.value){var c=G(r,s,i,o,n);Object.assign(u,l({},w,c))}return F.value&&Object.assign(u,l({},b,z(r,s,i))),K.value&&Object.assign(u,l({},v,i)),U.value&&Object.assign(u,l({},y,!!t&&L(s))),u}));return M.length=0,M.push.apply(M,ie(r)),void(F.value&&H())}M.length=0,M.push.apply(M,ie(e.data))},updateIndexData:B,setRowExpand:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=e.__$uuid,r="boolean"==typeof n?n:!L(o);k.rowActions.set(o,Object.assign({},null!==(t=k.rowActions.get(o))&&void 0!==t?t:{},{isExpand:r})),B()},updateColGroups:c,clearSelection:function(){I(!1)},toggleAllSelection:I,toggleRowSelection:function(e,t){var n,o=e.__$uuid;if(o){var r="boolean"==typeof t?t:!z(e,o),i=Object.assign({},null!==(n=k.rowActions.get(o))&&void 0!==n?n:{},{isSelected:r});k.rowActions.set(o,i),t||k.rowActions.set(T,!1),j(),B(),$(e,t,!1)}},getSelection:function(){return M.filter((function(e){return z(e)}))},clearSort:function(){Array.isArray(k.defaultSort)&&k.defaultSort.splice(0),k.defaultSort=S||e.defaultSort}}};const kt=(0,i.defineComponent)({name:"Table",props:$,emits:p,setup:function(e,t){var n=(0,Y.useLocale)("table"),o=null,u=null,c=null,d=new ne,f=(0,i.reactive)([]),p=Pt(e,f).initColumns;(0,i.provide)(N,p),(0,i.provide)(S,d);var v=(0,i.ref)(),h=(0,i.ref)(),y=(0,i.ref)(0),g=St(e,f),m=g.colgroups,b=g.dragOffsetXStyle,T=g.dragOffsetX,C=g.reactiveSchema,_=g.indexData,w=g.fixedColumns,O=g.resolveColumnStyle,P=g.resolveColumnClass,x=g.setRowExpand,E=g.initIndexData,k=g.fixedWrapperClass,L=g.clearSelection,A=g.toggleAllSelection,V=g.toggleRowSelection,j=g.getSelection,H=g.clearSort,I=g.updateColGroups,W=se(e,_),z=W.pageData,M=W.localPagination,D=W.resolvePageData,F=W.watchEffectFn,U=Nt(e,f,v,C,z),K=U.tableClass,B=U.headClass,G=U.contentClass,q=U.footerClass,$=U.wrapperStyle,X=U.contentStyle,Z=U.headStyle,Q=U.hasScrollYRef,ee=U.updateBorderClass,te=U.resetTableHeight,oe=U.getColumnsWidthOffsetWidth,re=U.hasFooter,ie=(0,i.computed)((function(){return{hasScrollY:Q.value}})),ae=new Ot(e,t,C,m,ie,n),de=function(){var e=v.value.querySelector(".bk-table-body-content"),t=e.querySelector("table");if(t){var n=t.scrollWidth,o=e.clientWidth;y.value=n-o}};(0,i.watch)((function(){return[e.data,e.pagination,e.height,e.maxHeight,e.minHeight]}),(function(){E(e.reserveExpand),F(c,o,u),(0,i.nextTick)((function(){te(v.value),ee(v.value)}))}),{immediate:!0,deep:!0}),(0,i.watchEffect)((function(){if((null==v?void 0:v.value)instanceof HTMLElement){var e=oe();Be(v.value,m,20,e),de()}})),ae.on(a.ON_SORT_BY_CLICK,(function(e){var n,r,l=e.sortFn,a=e.column,d=e.index,f=e.type;"function"==typeof l&&(D(c,o=l,u=a),null===(r=null===(n=h.value)||void 0===n?void 0:n.reset)||void 0===r||r.call(n)),t.emit(s.COLUMN_SORT,{column:(0,i.unref)(a.__col_source_data),index:d,type:f})})).on(a.ON_FILTER_CLICK,(function(e){var n,r,l=e.filterFn,a=e.checked,d=e.column,f=e.index;"function"==typeof l&&(D(c=l,o,u),null===(r=null===(n=h.value)||void 0===n?void 0:n.reset)||void 0===r||r.call(n)),t.emit(s.COLUMN_FILTER,{checked:a,column:(0,i.unref)(d.__col_source_data),index:f})})).on(a.ON_SETTING_CHANGE,(function(e){var n=e.checked,o=void 0===n?[]:n,r=e.size,l=e.height,a=e.fields;(0,i.nextTick)((function(){var e,n;I({checked:o,fields:a}),ee(v.value);var i=oe();o.length&&Be(v.value,m,R,i),null===(n=null===(e=h.value)||void 0===e?void 0:e.reset)||void 0===n||n.call(e),t.emit(s.SETTING_CHANGE,{checked:o,size:r,height:l,fields:a})}))})).on(a.ON_ROW_EXPAND_CLICK,(function(e){var n=e.row,o=e.column,r=e.index,i=e.rows,l=e.e;t.emit(s.ROW_EXPAND_CLICK,{row:it(n),column:lt(o),index:r,rows:i,e:l}),x(n,!n.__row_expand)})).on(a.ON_ROW_CHECK,(function(n){var o=n.row,r=n.isAll,i=n.index,l=n.value;r?(A(l),t.emit(s.ROW_SELECT_ALL,{checked:l,data:e.data})):(V(o,l),t.emit(s.ROW_SELECT,{row:it(o),index:i,checked:l,data:e.data})),t.emit(s.ROW_SELECT_CHANGE,{row:it(o),isAll:r,index:i,checked:l,data:e.data})}));var fe=function(e){var n,o=null!==(n=C.pos.bottom)&&void 0!==n?n:0,i=e[1],l=i.translateX,a=i.translateY,u=i.pos,c=void 0===u?{}:u;C.scrollTranslateY=a,C.scrollTranslateX=l,C.pos=c;var d=c.bottom;d<=2&&o>d&&(0,r.debounce)(60,(function(){t.emit(s.SCROLL_BOTTOM,Object.assign(Object.assign({},c),{translateX:l,translateY:a}))}),!0)(),de()};(0,i.onMounted)((function(){if(e.observerResize){var t=Ge(v.value,(function(){if(v.value){"100%"!==e.height&&"auto"!==e.height||te(v.value),ee(v.value);var t=oe();Be(v.value,m,20,t)}}),180,!0,e.resizerWay);t.start(),(0,i.onBeforeUnmount)((function(){t.disconnect(),t=null}))}})),(0,i.onBeforeUnmount)((function(){ae.destroy()})),t.expose({setRowExpand:x,clearSelection:L,toggleAllSelection:A,toggleRowSelection:V,getSelection:j,clearSort:H,scrollTo:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,top:0};null===(t=null===(e=h.value)||void 0===e?void 0:e.scrollTo)||void 0===t||t.call(e,n)},getRoot:function(){return v.value}});var pe=(0,i.computed)((function(){return Object.assign(Object.assign({},G),{"__is-empty":!z.length})})),ve=(0,i.computed)((function(){var t;return l(t={},(0,r.resolveClassName)("table-body-content"),!0),l(t,"with-virtual-render",e.virtualEnabled),t})),he={column_drag_line:!0,"offset-x":!0},ye=(0,i.computed)((function(){return Object.assign(Object.assign({},b.value),{left:"".concat(T.value-C.scrollTranslateX,"px")})})),ge={"scroll-loading":!0,_bottom:!0},me=(0,i.computed)((function(){var t;return l(t={},(0,r.resolveClassName)("fixed-bottom-border"),!0),l(t,"_is-empty",!e.data.length),t})),be={zIndex:-1,width:0,height:0,display:"none"},Te=(0,i.computed)((function(){return{"--footer-height":re.value?"".concat(e.paginationHeihgt,"px"):"0"}})),Ce=(0,i.computed)((function(){return Object.assign({right:Q.value?"".concat(6,"px"):0},Te.value)})),_e=function(e,t){var n=(0,i.toRef)(e,"scrollLoading"),o=(0,i.computed)((function(){return null!==n.value&&("boolean"==typeof n.value&&n.value||"object"===le(n.value))}));return{renderScrollLoading:function(){var e,r,l;if(o.value){var a="boolean"==typeof n.value?{loading:!!n.value,inline:!0,title:"",size:ue.BkLoadingSize.Normal,mode:ue.BkLoadingMode.Default,indicator:null}:n.value,s=a.loading,u=a.size,c=a.mode,d=a.title,f=a.inline,p=a.indicator;return null!==(l=null===(r=(e=t.slots).fixedBottom)||void 0===r?void 0:r.call(e))&&void 0!==l?l:(0,i.createVNode)(ce(),{loading:s,size:u,mode:c,title:d,inline:f,indicator:p},null)}}}}(e,t).renderScrollLoading,we=(0,i.computed)((function(){return e.virtualEnabled?{}:{scrollXName:"",scrollYName:""}}));return function(){var n,o;return(0,i.createVNode)("div",{class:K.value,style:$.value,ref:v},[(0,i.createVNode)("div",{class:B,style:Z.value},[ae.renderTableHeadSchema()]),(0,i.createVNode)(J(),(0,i.mergeProps)({ref:h,lineHeight:ae.getRowHeight,class:pe.value,style:X,list:z},we.value,{contentClassName:ve.value,onContentScroll:fe,throttleDelay:0,scrollEvent:!0,rowKey:e.rowKey,enabled:e.virtualEnabled}),{default:function(t){return ae.renderTableBodySchema(t.data||e.data)},afterSection:function(){return(0,i.createVNode)("div",{class:me.value},null)}}),(0,i.createVNode)("div",{class:k,style:Ce.value},[w.value.map((function(e){var t=e.isExist,n=e.colPos,o=e.column;return t?"":(0,i.createVNode)("div",{class:P(o,C.scrollTranslateX,y.value),style:O(n)},null)})),(0,i.createVNode)("div",{class:he,style:ye.value},null),(0,i.createVNode)("div",{class:ge},[_e()])]),(0,i.createVNode)("div",{class:q.value,style:Te.value},[re.value&&ae.renderTableFooter(M.value)]),(0,i.createVNode)("div",{style:be},[null===(o=(n=t.slots).default)||void 0===o?void 0:o.call(n)])])}}}),Lt=(0,r.withInstall)(kt);var At=(0,r.withInstall)(X)})(),m})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"),require("../config-provider"),require("../virtual-render"),require("../loading"),require("../checkbox"),require("../icon"),require("../pagination"),require("../directives"),require("lodash"),require("../exception"),require("../popover"),require("../icon/"),require("../button"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types","../config-provider","../virtual-render","../loading","../checkbox","../icon","../pagination","../directives","lodash","../exception","../popover","../icon/","../button"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types"),require("../config-provider"),require("../virtual-render"),require("../loading"),require("../checkbox"),require("../icon"),require("../pagination"),require("../directives"),require("lodash"),require("../exception"),require("../popover"),require("../icon/"),require("../button")):t(e["../shared"],e.vue,e["vue-types"],e["../config-provider"],e["../virtual-render"],e["../loading"],e["../checkbox"],e["../icon"],e["../pagination"],e["../directives"],e.lodash,e["../exception"],e["../popover"],e["../icon/"],e["../button"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n,o,r,i,l,a,s,u,c,d,f,p,v)=>(()=>{var h={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,s=0;e.exports=function(e,t,n){var u=t&&n||0,c=t||[],d=(e=e||{}).node||o,f=void 0!==e.clockseq?e.clockseq:r;if(null==d||null==f){var p=i();null==d&&(d=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:s+1,y=v-a+(h-s)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||v>a)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,s=h,r=f;var g=(1e4*(268435455&(v+=122192928e5))+h)%4294967296;c[u++]=g>>>24&255,c[u++]=g>>>16&255,c[u++]=g>>>8&255,c[u++]=255&g;var m=v/4294967296*1e4&268435455;c[u++]=m>>>8&255,c[u++]=255&m,c[u++]=m>>>24&15|16,c[u++]=m>>>16&255,c[u++]=f>>>8|128,c[u++]=255&f;for(var b=0;b<6;++b)c[u+b]=d[b];return t||l(c)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4976:e=>{"use strict";e.exports=v},5800:e=>{"use strict";e.exports=l},2717:e=>{"use strict";e.exports=o},4061:e=>{"use strict";e.exports=u},9911:e=>{"use strict";e.exports=d},6870:e=>{"use strict";e.exports=a},7685:e=>{"use strict";e.exports=p},4870:e=>{"use strict";e.exports=i},5801:e=>{"use strict";e.exports=s},5537:e=>{"use strict";e.exports=f},4212:t=>{"use strict";t.exports=e},3511:e=>{"use strict";e.exports=r},467:e=>{"use strict";e.exports=c},748:e=>{"use strict";e.exports=t},210:e=>{"use strict";e.exports=n}},y={};function g(e){var t=y[e];if(void 0!==t)return t.exports;var n=y[e]={exports:{}};return h[e](n,n.exports,g),n.exports}g.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return g.d(t,{a:t}),t},g.d=(e,t)=>{for(var n in t)g.o(t,n)&&!g.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var m={};return(()=>{"use strict";g.r(m),g.d(m,{BkColumn:()=>At,default:()=>Lt});var e,t,n,o,r=g(4212),i=g(748);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(n||(n={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(o||(o={}));var a,s,u=[o.AUTO,o.HIGHLIGHT],c=[n.NONE,n.ROW,n.COL,n.OUTER,n.HORIZONTAL];!function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick",e.ON_SETTING_CHANGE="onSettingChange",e.ON_ROW_EXPAND_CLICK="onRowExpandClick",e.ON_ROW_CHECK="onRowCheck"}(a||(a={})),function(e){e.COLUMN_PICK="columnPick",e.COLUMN_SORT="columnSort",e.COLUMN_FILTER="columnFilter",e.COLUMN_FILTER_SAVE="colFilterSave",e.ROW_CLICK="rowClick",e.ROW_DBL_CLICK="rowDblclick",e.ROW_EXPAND_CLICK="rowExpand",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.SETTING_CHANGE="settingChange",e.SCROLL_BOTTOM="scrollBottom",e.ROW_SELECT="select",e.ROW_SELECT_ALL="selectAll",e.ROW_SELECT_CHANGE="selectionChange",e.CELL_CLICK="cellClick",e.CELL_DBL_CLICK="cellDblclick",e.NATIVE_CLICK="click",e.NATIVE_DBL_CLICK="dblclick"}(s||(s={}));var d,f=function(){return!0},p=(l(e={},s.COLUMN_PICK,f),l(e,s.COLUMN_FILTER,f),l(e,s.COLUMN_SORT,f),l(e,s.COLUMN_FILTER_SAVE,f),l(e,s.ROW_CLICK,f),l(e,s.ROW_DBL_CLICK,f),l(e,s.ROW_EXPAND_CLICK,f),l(e,s.ROW_SELECT,f),l(e,s.ROW_SELECT_ALL,f),l(e,s.ROW_SELECT_CHANGE,f),l(e,s.PAGE_LIMIT_CHANGE,f),l(e,s.PAGE_VALUE_CHANGE,f),l(e,s.SETTING_CHANGE,f),l(e,s.SCROLL_BOTTOM,f),l(e,s.CELL_CLICK,f),l(e,s.CELL_DBL_CLICK,f),e),v=(l(t={},s.NATIVE_CLICK,f),l(t,s.NATIVE_DBL_CLICK,f),"__$table_row_index"),h="__$uuid",y="__row_expand",b="__row_selection",C="__row_selection_all",T="__row_selection_indeterminate",_="__row_source_data",w="__row_skip_config",O="__col_$uuid",x="__col_source_data",P=42,E={large:78,medium:60,small:42},N="InitColumns",S="BKTableCahce";!function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(d||(d={}));var k,L,A=[d.ASC,d.DESC,d.NULL,d.CUSTOM],R=80,V=g(210);!function(e){e.CURRENT="current",e.ALL="all"}(k||(k={})),function(e){e.STATIC="static",e.AUTO="auto"}(L||(L={}));var j,H=(0,V.toType)("showOverflowTooltipMode",{default:L.AUTO});!function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(j||(j={}));var I,W=(0,V.toType)("columnType",{default:j.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(I||(I={}));var z,M=(0,V.toType)("full",{default:I.FULL});!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(z||(z={}));var D,F=(0,V.toType)("columnSize",{default:z.SMALL});!function(e){e.LEFT="left",e.RIGHT="right"}(D||(D={}));var U,K,B=(0,V.string)(),G=(0,V.toType)("sortScope",{}).def(k.CURRENT);!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(U||(U={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(K||(K={}));var q={label:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),field:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),render:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),width:r.PropTypes.oneOfType([r.PropTypes.number.def(void 0),r.PropTypes.string.def("auto")]),minWidth:r.PropTypes.oneOfType([r.PropTypes.number.def(void 0),r.PropTypes.string.def("auto")]).def(30),columnKey:r.PropTypes.string.def(""),showOverflowTooltip:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:H})]).def(void 0),type:W,resizable:r.PropTypes.bool.def(!0),fixed:r.PropTypes.oneOfType([r.PropTypes.bool,B]).def(!1),sort:r.PropTypes.oneOfType([r.PropTypes.shape({sortFn:r.PropTypes.func.def(void 0),sortScope:G,value:r.PropTypes.string.def(d.NULL)}),r.PropTypes.bool,r.PropTypes.string]).def(!1),filter:r.PropTypes.oneOfType([r.PropTypes.shape({list:r.PropTypes.arrayOf(r.PropTypes.any).def([]),filterFn:r.PropTypes.func.def(void 0),match:M,filterScope:G,btnSave:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.string]).def("确定"),btnReset:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.string]).def("重置")}),r.PropTypes.bool,r.PropTypes.string]).def(!1),colspan:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return 1})),r.PropTypes.number.def(1)]),rowspan:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return 1})),r.PropTypes.number.def(1)])},$={data:r.PropTypes.arrayOf(r.PropTypes.any).def([]),columns:r.PropTypes.arrayOf(r.PropTypes.shape(q).loose).def([]),activeColumn:r.PropTypes.oneOfType([r.PropTypes.number.def(-1),r.PropTypes.arrayOf(r.PropTypes.number.def(-1))]),columnPick:(0,V.toType)("columnPick",{}).def(U.DISABLED),height:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def("auto"),minHeight:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def(84),maxHeight:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def("auto"),rowHeight:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.func]).def(P),headHeight:r.PropTypes.number.def(P),showHead:r.PropTypes.bool.def(!0),thead:r.PropTypes.shape({height:r.PropTypes.number.def(P),isShow:r.PropTypes.bool.def(!0),cellFn:r.PropTypes.func.def(void 0)}),virtualEnabled:r.PropTypes.bool.def(!1),border:r.PropTypes.oneOfType([r.PropTypes.arrayOf((0,V.toType)("boderType",{})),r.PropTypes.string]).def([n.ROW]),pagination:r.PropTypes.oneOfType([r.PropTypes.bool.def(!1),r.PropTypes.object.def({})]).def(!1),paginationHeihgt:r.PropTypes.number.def(P),remotePagination:r.PropTypes.bool.def(!1),emptyText:r.PropTypes.string,settings:r.PropTypes.oneOfType([r.PropTypes.shape({fields:r.PropTypes.arrayOf(r.PropTypes.shape({label:r.PropTypes.string,field:r.PropTypes.string,disabled:r.PropTypes.bool})),checked:r.PropTypes.arrayOf(r.PropTypes.string),limit:r.PropTypes.number.def(0),size:F,sizeList:r.PropTypes.shape([]),showLineHeight:r.PropTypes.bool.def(!0)}),r.PropTypes.bool]).def(!1),rowClass:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),rowStyle:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),cellStyle:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),cellClass:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),scrollLoading:r.PropTypes.oneOfType([r.PropTypes.object,r.PropTypes.bool]).def(void 0),reserveExpand:r.PropTypes.bool.def(!1),selectionKey:r.PropTypes.string.def(""),isSelectedFn:r.PropTypes.func.def(void 0),rowKey:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.func]).def(v),showOverflowTooltip:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:H})]).def(!1),asyncData:r.PropTypes.bool.def(!1),rowHover:r.PropTypes.oneOf(u).def(o.HIGHLIGHT),defaultSort:r.PropTypes.shape({}).def({}),isRowSelectEnable:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return!0})),r.PropTypes.bool.def(!0)]).def(!0),resizerWay:(0,V.toType)("ResizerWay",{default:K.DEBOUNCE}),observerResize:r.PropTypes.bool.def(!0)};const X=(0,i.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},q),{prop:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),index:r.PropTypes.number.def(void 0)}),setup:function(e){return{initColumns:(0,i.inject)(N,(function(e){}),!1),bkTableCache:(0,i.inject)(S,{queueStack:function(e,t){return null==t?void 0:t()}}),column:(0,i.reactive)(Object.assign(Object.assign({},e),{field:e.prop||e.field}))}},unmounted:function(){this.updateColumnDefine(!0)},mounted:function(){this.updateColumnDefine()},methods:{updateColumnDefine:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];void 0===this.$props.index||"number"!=typeof this.$props.index?this.updateColumnDefineByParent():this.updateColumnDefineByIndex(e)},updateColumnDefineByParent:function(){var e=this;"function"==typeof this.bkTableCache.queueStack&&this.bkTableCache.queueStack("Bk_COlumn_Update_Define",(function(){var t=e._.parent.vnode.children.default()||[],n=[];!function e(t){Array.isArray(t)&&t.forEach((function(t){var o,r,l,a=!0;if("TableColumn"===(null===(o=t.type)||void 0===o?void 0:o.name)){a=Object.hasOwnProperty.call(t.props||{},"key");var s=Object.assign(Object.assign({},t.props),{field:t.props.prop||t.props.field,render:null===(r=t.children)||void 0===r?void 0:r.default});n.push((0,i.unref)(s))}(null===(l=t.children)||void 0===l?void 0:l.length)&&a&&e(t.children)}))}(t),e.initColumns(n)}))},updateColumnDefineByIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object.assign(Object.assign({},this.$props),{field:this.$props.prop||this.$props.field,render:this.$slots.default});this.initColumns((0,i.unref)(t),e)}},render:function(){var e,t;return(0,i.createVNode)(i.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e,{row:{}})])}});var Y=g(2717),Z=g(3511),J=g.n(Z);function Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function te(e,t,n){return t&&ee(e.prototype,t),n&&ee(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ne=function(){function e(){Q(this,e),this.storage=void 0,this.storage={}}return te(e,[{key:"queueStack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this.storage[e]&&clearTimeout(this.storage[e]),this.storage[e]=setTimeout((function(){return t()}))}},{key:"clearQueueStack",value:function(e){this.storage[e]&&clearTimeout(this.storage[e])}}]),e}();function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function re(e,t){if(e){if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}function ie(e){return function(e){if(Array.isArray(e))return oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||re(e)||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 le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}var ae=function(e,t){if(e){if("object"===le(e)){var n=Object.prototype.hasOwnProperty.call(e,"current")?e.current:e.value;return/\d+/.test(n)||(n=1),Object.assign(Object.assign(Object.assign({},t),e),{current:n})}return t}return{}};const se=function(e,t){var n=(0,i.ref)(0),o=(0,i.ref)(0),r=(0,i.reactive)({count:0,limit:10,current:1,align:"right",layout:["total","limit","list"]});r=ae(e.pagination,r);var l=(0,i.ref)(null),a=(0,i.reactive)([]),s=function(e,t){"function"==typeof t&&e.sort(t)},u=function(r,i,l){var u,c=t.slice();(null!==(u=null==l?void 0:l.sort)&&void 0!==u?u:{}).sortScope===k.ALL&&s(c,i),a.length=0,a.push.apply(a,ie(c.slice(n.value,o.value))),function(t,n){if("function"==typeof n){var o=t.filter((function(t,o){return n(t,o,e.data)}));t.length=0,t.push.apply(t,ie(o))}}(a,r),s(a,i)};return{pageData:a,localPagination:l,resolvePageData:u,watchEffectFn:function(t,i,a){r=ae(e.pagination,r),e.pagination&&(l.value=e.remotePagination?r:Object.assign(Object.assign({},r),{count:e.data.length})),function(){if(!e.pagination||e.remotePagination)return n.value=0,void(o.value=e.data.length);n.value=(r.current-1)*r.limit,o.value=r.current*r.limit}(),u(t,i,a)}}};var ue=g(4870),ce=g.n(ue);var de=g(8022),fe=g(5800),pe=g.n(fe),ve=g(6870),he=g(5801),ye=g.n(he),ge=g(4061),me=g(467),be=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),Ce="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Te=void 0!==g.g&&g.g.Math===Math?g.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),_e="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Te):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},we=["top","right","bottom","left","width","height","size","weight"],Oe="undefined"!=typeof MutationObserver,xe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&a()}function l(){_e(i)}function a(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(l,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Ce&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Oe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ce&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;we.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Pe=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Ee=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Te},Ne=Re(0,0,0,0);function Se(e){return parseFloat(e)||0}function ke(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Se(e["border-"+n+"-width"])}),0)}var Le="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Ee(e).SVGGraphicsElement}:function(e){return e instanceof Ee(e).SVGElement&&"function"==typeof e.getBBox};function Ae(e){return Ce?Le(e)?function(e){var t=e.getBBox();return Re(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ne;var o=Ee(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=Se(i)}return t}(o),i=r.left+r.right,l=r.top+r.bottom,a=Se(o.width),s=Se(o.height);if("border-box"===o.boxSizing&&(Math.round(a+i)!==t&&(a-=ke(o,"left","right")+i),Math.round(s+l)!==n&&(s-=ke(o,"top","bottom")+l)),!function(e){return e===Ee(e).document.documentElement}(e)){var u=Math.round(a+i)-t,c=Math.round(s+l)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(c)&&(s-=c)}return Re(r.left,r.top,a,s)}(e):Ne}function Re(e,t,n,o){return{x:e,y:t,width:n,height:o}}var Ve=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Re(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ae(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),je=function(e,t){var n,o,r,i,l,a,s,u=(o=(n=t).x,r=n.y,i=n.width,l=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(a.prototype),Pe(s,{x:o,y:r,width:i,height:l,top:r,right:o+i,bottom:l+r,left:o}),s);Pe(this,{target:e,contentRect:u})},He=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new be,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ee(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Ve(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ee(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new je(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ie="undefined"!=typeof WeakMap?new WeakMap:new be,We=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=xe.getInstance(),o=new He(t,n,this);Ie.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){We.prototype[e]=function(){var t;return(t=Ie.get(this))[e].apply(t,arguments)}}));const ze=void 0!==Te.ResizeObserver?Te.ResizeObserver:We;var Me=void 0,De=function e(t,n,o){var r;return"string"==typeof n?Object.prototype.hasOwnProperty.call(t,n)?"function"==typeof t[n]?(r=t[n]).call.apply(r,[Me].concat(ie(o))):t[n]:void 0:Array.isArray(n)?n.map((function(n){return e(t,n,o)})).filter((function(e){return void 0!==e})).at(0):void 0},Fe=function(e){return/^\d+$/.test("".concat(e))?[parseInt("".concat(e),10)]:[]},Ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o="";return o=/^auto|null|undefined$/gi.test("".concat(e))?t:/^\d+\.?\d+$/.test("".concat(e))?"".concat(e,"px"):e,n&&(o="calc(".concat(o," - ").concat(n,")")),o},Ke=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["resizeWidth","calcWidth","width"];return null!==(n=null!==(t=e[o[0]])&&void 0!==t?t:e[o[1]])&&void 0!==n?n:e[o[2]]},Be=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=e.getBoundingClientRect()||{},i=r.width,l=i-o,a=l,s=[],u=function(e,t){var n=e.minWidth,o=void 0===n?void 0:n;if(void 0===o)return t<R?R:t;var r=t;return/^\d+\.?\d*$/.test("".concat(o))&&(r=Number(o)),/^\d+\.?\d*%$/.test("".concat(o))&&(r=Number(o)*l/100),/^\d+\.?\d*px$/i.test("".concat(o))&&(r=Number("".concat(o).replace(/px/i,""))),r},c=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=u(e,t),r=t<o?o:t;Object.assign(e,{calcWidth:r}),n&&(a-=r)<0&&(a=0)};if(t.forEach((function(e,t){if(!e.isHidden){var o=String(Ke(e,["resizeWidth","width"])),r=!0;if(/^\d+\.?\d*(px)?$/.test(o)){var i=Number(o.replace("px",""));c(e,i),r=!1}if(/^\d+\.?\d*%$/.test(o)){var l=n;if(a>0){var u=Number(o.replace("%",""));l=a*u/100}c(e,l),r=!1}r&&s.push(t)}})),s.length>0){var d=n;a>0?s.forEach((function(e,n){d=a/(s.length-n),c(t[e],d,!1);var o=t[e].calcWidth;a-=o})):s.forEach((function(e){var n=u(t[e],R);Object.assign(t[e],{calcWidth:n})}))}},Ge=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"throttle",i=function(){"function"==typeof t&&t()},l="debounce"===r?(0,me.debounce)(i,n):(0,me.throttle)(i,n),a=function(){return Reflect.apply(l,Me,[])},s=new ze((function(){a()}));return o&&"function"==typeof t&&t(),{start:function(){s.observe(e)},disconnect:function(){s.unobserve(e),s.disconnect()}}},qe=function(e){var t=e.showHead,n=e.headHeight,o=e.thead,r=void 0===o?{}:o;return Object.assign({},{isShow:t,height:n},Object.assign({},r))},$e=function(e,t,n){return"index"===n.type?e[v]+1:(0,me.get)(e,t)},Xe=function e(t,n){return Array.isArray(t)?t:"string"==typeof t||"object"===le(t)?[t]:"function"==typeof t?e(Reflect.apply(t,Me,n),n):[]},Ye=function(e,t,n){return"string"==typeof t.rowKey?t.rowKey===v?"__ROW_INDEX_".concat(n):(0,me.get)(e,t.rowKey):"function"==typeof t.rowKey?Reflect.apply(t.rowKey,Me,[e]):(0,de.v4)()},Ze=function(e,t,n){var o;return o=t,e.some((function(e){return e.field===De(o,["field","type"],[o])}))&&n.length&&!n.includes(De(t,["field","type"],[t]))},Je=function(e,t,n,o,r){return"function"==typeof e[r]?Reflect.apply(e[r],Me,[{column:e,colIndex:t,row:n,rowIndex:o}]):"number"==typeof e[r]?e[r]:1},Qe=function(e,t,n,o){return{colspan:Je(e,t,n,o,"colspan"),rowspan:Je(e,t,n,o,"rowspan")}},et=function(e,t){var n,o,r=e.field,i=function(t){return $e(t,r,e)},l="function"==typeof(null===(n=e.sort)||void 0===n?void 0:n.sortFn)?null===(o=e.sort)||void 0===o?void 0:o.sortFn:function(e,t){var n=i(e)||"",o=i(t)||"";return"number"==typeof n&&"number"==typeof o?n-o:String.prototype.localeCompare.call(n,o)};return t===d.NULL?function(){return!0}:function(e,n){return l(e,n)*(t===d.DESC?-1:1)}},tt=function(e){var t,n=(l(t={},d.NULL,0),l(t,d.ASC,1),l(t,d.DESC,2),t);return void 0===e?d.NULL:Object.keys(n)[(n[e]+1)%3]},nt=function(e){return"string"==typeof e?{value:e}:"boolean"==typeof e&&e?{value:d.NULL}:"object"===le(e)&&null!==e?le(e.sortFn)?Object.assign({value:"custom"},e):e:null},ot=function(e,t){var n=t.row,o=t.index,r=t.isCheckAll;return"boolean"==typeof e.isRowSelectEnable?!1!==e.isRowSelectEnable:"function"!=typeof e.isRowSelectEnable||e.isRowSelectEnable({row:n,index:o,isCheckAll:r})},rt=function(e,t,n){if(void 0!==e.__$uuid)return e.__$uuid;var o=Ye(e,n,t);return void 0!==o&&void 0!==e[o]?e[o]:t},it=function(e){return(0,i.unref)(e.__row_source_data||e)},lt=function(e){return(0,i.unref)(e.__col_source_data||e)};const at=(0,i.defineComponent)({name:"TableCell",props:{column:r.PropTypes.any.def({}),row:r.PropTypes.any.def({}),parentSetting:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:H})]).def(void 0),title:r.PropTypes.string.def(void 0),observerResize:r.PropTypes.bool.def(!0),resizerWay:(0,V.toType)("ResizerWay",{default:K.DEBOUNCE})},setup:function(e,t){var n=this,o=t.slots,l=(0,i.ref)(),a=(0,i.ref)(!1),s=(/boolean|object/.test(le(e.column.showOverflowTooltip))&&null!==e.column.showOverflowTooltip?e.column:{showOverflowTooltip:e.parentSetting}).showOverflowTooltip,u=void 0!==s&&s,c=null,d=function(){var t=!0,o=e.resizerWay,r=l.value.innerText,i="auto",a=!0;return"boolean"==typeof u&&(t=!u),"object"===le(u)&&(t=u.disabled,o=u.resizerWay||"debounce",r=u.content||l.value.innerText,"function"==typeof u.content&&(r=u.content(e.column,e.row)),a=u.watchCellResize,i=u.mode||"auto"),"function"==typeof t&&(t=Reflect.apply(t,n,[e.column,e.row])),{disabled:t,content:r,mode:i,resizerWay:o,watchCellResize:a}},f=function(){if(l.value&&(0,r.isElement)(l.value)){var e=d(),t=e.mode,n=e.disabled;if(a.value=!n,"auto"===t&&(a.value=(0,r.hasOverflowEllipsis)(l.value)),"static"===t&&(a.value=!0),a.value){var o=(0,i.ref)(d());null===c&&(c=(0,ge.bkEllipsisInstance)(l.value,{disabled:o.value.disabled,content:o.value.content,mode:o.value.mode}))}else null==c||c.destroyInstance(l.value),c=null}};return(0,i.onMounted)((function(){var t=d(),n=t.disabled,o=t.resizerWay,r=t.watchCellResize;if(!n&&(f(),!1!==r&&e.observerResize)){var a=Ge(l.value,(function(){f()}),60,!0,o);a.start(),(0,i.onBeforeUnmount)((function(){a.disconnect(),a=null}))}})),(0,i.onBeforeUnmount)((function(){null==c||c.destroyInstance(l.value)})),function(){var t;return(0,i.createVNode)("div",{class:["cell",e.column.type],ref:l,title:e.title},[null===(t=o.default)||void 0===t?void 0:t.call(o)])}}}),st=(0,i.defineComponent)({name:"TableRow",render:function(){var e,t;return(0,i.createVNode)(i.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});var ut=g(9911),ct=g.n(ut);const dt=(0,i.defineComponent)({name:"BodyEmpty",props:{list:r.PropTypes.array.def([]),filterList:r.PropTypes.array.def([]),emptyText:r.PropTypes.string},emits:["change"],setup:function(e){var t=(0,Y.useLocale)("table"),n=(0,i.computed)((function(){return void 0===e.emptyText?t.value.emptyText:e.emptyText})),o=(0,i.computed)((function(){return 0===e.list.length?"empty":"search-empty"}));return function(){return(0,i.createVNode)(ct(),{scene:"part",type:o.value,description:n.value},null)}}});var ft=g(5537),pt=g.n(ft);const vt=(0,i.defineComponent)({name:"HeadFilter",props:{column:r.PropTypes.any.def({}),height:r.PropTypes.number.def(P)},emits:["change","filterSave"],setup:function(e,t){var n=t.emit,o=(0,Y.useLocale)("table"),a=e.column,s=(0,i.reactive)({isOpen:!1,checked:[]}),u=(0,i.computed)((function(){var t;return(0,r.classes)((l(t={},(0,r.resolveClassName)("table-head-action"),!0),l(t,"column-filter",!0),l(t,"--row-height","".concat(e.height,"px")),l(t,"active",s.checked.length),l(t,"opened",s.isOpen),t))})),c=(0,r.classes)(l({},(0,r.resolveClassName)("table-head-filter"),!0)),d=(0,i.ref)(null),f=function(e){s.isOpen=e,e&&setTimeout((function(){d.value.reset()}))},p="light ".concat((0,r.resolveClassName)("table-head-filter")),v=(0,i.computed)((function(){var e=a.filter.list;return void 0===e?[]:e})),h="function"==typeof a.filter.filterFn?function(t,n,o,r){return a.filter.filterFn(t,n,e.column,o,r)}:function(e,t){return!e.length||function(e,t){var n=a.filter.match,o=$e(t,De(a,"field",[a,t]),a);return"full"===n&&e.includes(o),e.some((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ig";return new RegExp("".concat(e).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),t)}(e,"img").test(o)}))}(e,t)},y=function(){g(!0),n("filterSave",ie(s.checked)),s.isOpen=!1},g=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=b(T,o.value.confirm),i=r.disabled;if(i||t){if("custom"===e.column.filter)return n("change",ie(s.checked),null),void(s.isOpen=!1);n("change",ie(s.checked),h)}},m=function(){s.checked.length&&(s.checked.length=0,s.isOpen=!1,(0,i.nextTick)((function(){return n("change",s.checked,h)})))},b=function(e,t){return{disabled:"disabled"===e||!1===e,text:"string"==typeof e?e:t}},C=a.filter,T=C.btnSave,_=C.btnReset,w=function(){var e=b(_,o.value.reset),t=e.disabled,n=e.text;return t?"":(0,i.createVNode)("span",{class:["btn-filter-reset",s.checked.length?"":"disable"],onClick:m},[n])},O=function(e){return e.data.length?e.data.map((function(e){return(0,i.createVNode)("div",{class:"list-item"},[(0,i.createVNode)(pe(),{label:e.value,key:e.$index,immediateEmitChange:!1,checked:s.checked.includes(e.value),modelValue:s.checked.includes(e.value),onChange:function(t){return function(e,t){var n,o=new Set(s.checked);e?o.add(t.value):o.delete(t.value),s.checked.length=0,(n=s.checked).push.apply(n,ie(Array.from(o))),g()}(t,e)}},{default:function(){return["".concat(e.text)]}})])})):(0,i.createVNode)("div",{class:"list-item is-empty"},[o.value.emptyText])};return function(){return(0,i.createVNode)(pt(),(0,i.mergeProps)({trigger:"click",isShow:s.isOpen,placement:"bottom-start",renderType:r.RenderType.SHOWN,arrow:!1,offset:0},{theme:p},{onAfterShow:function(){return f(!0)},onAfterHidden:function(){return f(!1)}}),{default:function(){return(0,i.createVNode)(ve.Funnel,{class:u.value},null)},content:function(){return(0,i.createVNode)("div",{class:c},[(0,i.createVNode)(fe.BkCheckboxGroup,{class:"content-list"},{default:function(){return[(0,i.createVNode)(J(),{lineHeight:32,list:v.value,throttleDelay:0,scrollEvent:!0,ref:d,className:"content-items"},{default:O})]}}),(0,i.createVNode)("div",{class:"content-footer"},[(e=b(T,o.value.confirm),t=e.disabled,n=e.text,t?(0,i.createVNode)("span",{class:"btn-filter-save disabled"},[n]):(0,i.createVNode)("span",{class:"btn-filter-save",onClick:y},[n])),(0,i.createVNode)("span",{class:"btn-filter-split"},null),w()])]);var e,t,n}})}}});var ht=g(7685);const yt=(0,i.defineComponent)({name:"HeadSort",props:{column:r.PropTypes.any.def({}),defaultSort:r.PropTypes.oneOf(A).def(d.NULL)},emits:["change"],setup:function(e,t){var n,o,l=t.emit,a=(null===(o=null===(n=e.column)||void 0===n?void 0:n.sort)||void 0===o?void 0:o.value)||e.defaultSort||d.NULL,s=(0,i.ref)(a);(0,i.watch)((function(){return[e.defaultSort]}),(function(e){var t,n,o=(t=e,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(t,n)||re(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];s.value=o}));var u=function(t,n){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault();var o=n;n===d.NULL&&(o=tt(n)),s.value===n&&(o=d.NULL);var r=nt(e.column.sort);if("custom"!==(null==r?void 0:r.value)){var i=et(e.column,o);l("change",i,o)}else l("change",null==r?void 0:r.sortFn,o)};return function(){return(0,i.createVNode)("span",{class:(0,r.resolveClassName)("head-cell-sort"),onClick:function(e){return u(e,d.NULL)}},[(0,i.createVNode)(ht.AngleDownFill,{class:["sort-action","sort-asc",s.value===d.ASC?"active":""],style:"align-items: flex-end;",onClick:function(e){return u(e,d.ASC)}},null),(0,i.createVNode)(ht.AngleUpFill,{class:["sort-action","sort-desc",s.value===d.DESC?"active":""],style:"align-items: flex-start;",onClick:function(e){return u(e,d.DESC)}},null)])}}});var gt=te((function e(t,n){Q(this,e),this.props=null,this.ctx=null,this.props=t,this.ctx=n})),mt=g(4976),bt=g.n(mt);function Ct(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,i.isVNode)(e)}const Tt=(0,i.defineComponent)({name:"Settings",props:{settings:r.PropTypes.oneOfType([r.PropTypes.shape({fields:r.PropTypes.arrayOf(r.PropTypes.shape({label:r.PropTypes.string,field:r.PropTypes.string,disabled:r.PropTypes.bool})),checked:r.PropTypes.arrayOf(r.PropTypes.string),limit:r.PropTypes.number.def(0),size:F.def(z.SMALL),sizeList:r.PropTypes.shape([]),showLineHeight:r.PropTypes.bool.def(!0)}),r.PropTypes.bool]).def(!1),columns:r.PropTypes.array.def([]),rowHeight:r.PropTypes.number.def(P)},emits:["change"],setup:function(e,t){var n=t.emit,o=(0,Y.useLocale)("table"),l=function(e){return[{value:"small",label:e.value.setting.lineHeight.small,height:E.small},{value:"medium",label:e.value.setting.lineHeight.medium,height:E.medium},{value:"large",label:e.value.setting.lineHeight.large,height:E.large}]}(o),a=function(e,t){return De(e,["field","type"],[e,t])},s=(0,i.ref)(!1),u=(0,i.ref)(!1),c=(0,i.computed)((function(){return"boolean"==typeof e.settings?{fields:e.columns.map((function(e){return Object.assign(Object.assign({},e),{field:e.field||e.type})})),checked:[],limit:0,size:"small",sizeList:l,showLineHeight:!0}:e.settings})),d=(0,i.ref)(c.value.size||"small"),f=(0,i.ref)(e.rowHeight),p=(0,i.ref)(c.value.checked||[]),v=(0,r.resolveClassName)("table-settings"),h="light ".concat(v),y=(0,i.computed)((function(){return c.value.fields||e.columns||[]})),g={checkAll:s.value,activeSize:d.value,activeHeight:f.value,checkedFields:c.value.checked||[]},m=function(){Object.assign(g,{checkAll:s.value,activeSize:d.value,activeHeight:f.value,checkedFields:p.value}),n("change",{checked:p.value,size:d.value,height:f.value,fields:(0,i.unref)(y)}),u.value=!1},b=function(){s.value=g.checkAll,d.value=g.activeSize,f.value=g.activeHeight,p.value=g.checkedFields,u.value=!1},C=function(){u.value=!0},T=function(t){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),s.value=!s.value;var n=c.value.fields||e.columns||[],o=n.filter((function(e,t){return e.disabled&&p.value.includes(a(e,t))})).map((function(e,t){return a(e,t)}));if(s.value){var r,i=n.filter((function(e){return!e.disabled})).map((function(e,t){return a(e,t)}));(r=p.value).splice.apply(r,[0,p.value.length].concat(ie(i),ie(o)))}else{var l;(l=p.value).splice.apply(l,[0,p.value.length].concat(ie(o)))}},_=(0,i.computed)((function(){var e;return(null!==(e=c.value.limit)&&void 0!==e?e:0)>0})),w=c.value.sizeList||l,O=(0,i.computed)((function(){return _.value&&(c.value.limit?c.value.limit:0)<=p.value.length})),x=function(e,t){return e.disabled||O.value&&!p.value.includes(a(e,t))},P=function(e){return{"line-size":!0,"is-medium":"medium"===d.value,active:e.value===d.value}},N={marginRight:"12px"},S=(0,i.computed)((function(){return p.value.length>0&&!y.value.every((function(e,t){return p.value.includes(De(e,"field",[e,t]))}))})),k=(0,i.computed)((function(){return"boolean"!=typeof c.value.showLineHeight||c.value.showLineHeight}));return(0,i.watch)((function(){return[p.value]}),(function(){p.value.length||(s.value=!1),p.value.length&&y.value.every((function(e,t){return p.value.includes(a(e,t))}))&&(s.value=!0)}),{immediate:!0,deep:!0}),(0,i.watch)((function(){return[e.settings.checked]}),(function(){var e;(e=p.value).splice.apply(e,[0,p.value.length].concat(ie(c.value.checked)))}),{immediate:!0,deep:!0}),function(){return e.settings?(0,i.createVNode)(pt(),(0,i.mergeProps)({trigger:"manual",isShow:u.value,placement:"bottom-end",arrow:!0},{theme:h}),{default:function(){return(0,i.createVNode)("span",{class:"table-head-settings",onClick:C},[(0,i.createVNode)(ht.CogShape,{style:"color: #c4c6cc;"},null)])},content:function(){var e;return(0,i.createVNode)("div",{class:"setting-content"},[(0,i.createVNode)("div",{class:"setting-head"},[(0,i.createVNode)("span",{class:"head-title"},[o.value.setting.title]),(0,i.createVNode)(ht.CloseLine,{class:"icon-close-action",onClick:b},null)]),(0,i.createVNode)("div",{class:"setting-body"},[(0,i.createVNode)("div",{class:"setting-body-title"},[(0,i.createVNode)("div",null,[(0,i.createVNode)("span",{class:"field-setting-label"},[o.value.setting.fields.title]),_.value?(0,i.createVNode)("span",{class:"limit"},[o.value.setting.fields.subtitle(c.value.limit)]):""]),_.value?"":(0,i.createVNode)("span",{class:"check-all",onClick:T},[(0,i.createVNode)(pe(),{label:o.value.setting.fields.selectAll,indeterminate:Boolean(S.value),modelValue:p.value.length>0},{default:function(){return[o.value.setting.fields.selectAll]}})])]),(0,i.createVNode)(fe.BkCheckboxGroup,{class:"setting-body-fields",modelValue:p.value,"onUpdate:modelValue":function(e){return p.value=e}},Ct(e=y.value.map((function(e,t){var n;return(0,i.createVNode)("div",{class:"field-item"},[(0,i.createVNode)(pe(),{checked:p.value.includes(a(e,t)),label:a(e,t),disabled:x(e,t)},Ct(n=De(e,"label",[e,t]))?n:{default:function(){return[n]}})])})))?e:{default:function(){return[e]}}),k.value?(0,i.createVNode)("div",{class:"setting-body-line-height"},[o.value.setting.lineHeight.title,(0,i.createTextVNode)(":"),w.map((function(e){return(0,i.createVNode)("span",{class:P(e),onClick:function(){return function(e){d.value=e.value,f.value=e.height}(e)}},[e.label])}))]):""]),(0,i.createVNode)("div",{class:"setting-footer"},[(0,i.createVNode)(bt(),{theme:"primary",style:N,onClick:m},{default:function(){return[o.value.setting.options.ok]}}),(0,i.createVNode)(bt(),{style:N,onClick:b},{default:function(){return[o.value.setting.options.cancel]}})])])}}):""}}}),_t=function(e,t,n){var o=function(e){return"right"===e.fixed?"right":"left"},a={left:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t.filter((function(e){return!e.isHidden&&e.fixed&&"right"!==e.fixed})).reduce((function(t,n,o){return e&&0===o?t:t+Ke(n)}),0)},right:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t.filter((function(e){return!e.isHidden&&"right"===e.fixed})).reduce((function(t,n,o){return e&&0===o?t:t+Ke(n)}),n?6:0)}},s=function(e,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=n.__col_$uuid,l="right"===e?-1:1,a=t.filter((function(e){return!e.isHidden})),s=a.length,u="right"===e?s*l:1,c=0;;){u+=-1*l;var d=Math.abs(u),f=a[d],p=o(f),v=f.__col_$uuid;if(p===e&&i!==v){var h=Ke(f);c+=h}if(i===v)break}return c+r},u=(0,i.computed)((function(){var e={left:!1,right:!1};return t.filter((function(e){return!e.isHidden&&e.fixed})).map((function(t){var n=o(t),r=e[n];return e[n]=!0,{isExist:r,colPos:n,column:t}}))}));return{fixedWrapperClass:(0,r.resolveClassName)("table-fixed"),resolveFixedColumnStyle:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.fixed||e.isHidden)return{};var n={left:0,right:t?6:-1},r=o(e);return n[r]=s(r,e,n[r]),l({},r,"".concat(n[r],"px"))},fixedColumns:u,resolveColumnStyle:function(e){return{width:"".concat(a[e](!1),"px"),bottom:"0px"}},resolveColumnClass:function(e,t,n){return{column_fixed:!!e.fixed,column_fixed_left:"right"!==e.fixed,column_fixed_right:"right"===e.fixed,shadow:"right"===e.fixed?n-t>2:t>0}}}};function wt(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,i.isVNode)(e)}var Ot=function(){function e(t,n,o,r,i,a){var s=this;Q(this,e),this.getRowHeight=function(e,t){var n=s.setting,o=n.size;return null!=n.height?De(s.setting,"height",["tbody",e,t,o]):De(s.props,"rowHeight",["tbody",e,t])},this.getColumnClass=function(e,t){var n;return l(n={},"".concat(s.uuid,"-column-").concat(t),!0),l(n,"column_fixed",!!e.fixed),l(n,"column_fixed_left",!!e.fixed),l(n,"column_fixed_right","right"===e.fixed),n},this.getHeadColumnClass=function(e,t){return Object.assign(Object.assign({},s.getColumnClass(e,t)),{active:s.isColActive(t)})},this.props=t,this.context=n,this.reactiveProp=o,this.colgroups=r,this.plugins=new gt(t,n),this.uuid=(0,de.v4)(),this.events=new Map,this.styleRef=i,this.t=a}return te(e,[{key:"propActiveCols",get:function(){return this.reactiveProp.activeColumns}},{key:"renderTableHeadSchema",value:function(){var e=this,t=qe(this.props).isShow;return void 0===t||t?[this.props.settings?(0,i.createVNode)(Tt,{class:"table-head-settings",settings:this.reactiveProp.settings,columns:this.colgroups,rowHeight:this.props.rowHeight,onChange:function(t){var n,o=t.checked,r=void 0===o?[]:o,i=t.size,l=t.height;e.reactiveProp.setting.size=i,e.reactiveProp.setting.height=l;var s=(null===(n=e.props.settings)||void 0===n?void 0:n.fields)||[];r.length&&e.colgroups.forEach((function(e){e.isHidden=Ze(s,e,r)})),e.emitEvent(a.ON_SETTING_CHANGE,[t])}},null):"",(0,i.createVNode)("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderHeader()])]:null}},{key:"renderTableBodySchema",value:function(e){var t,n,o,r=this,l=(0,i.computed)((function(){return void 0===r.props.emptyText?r.t.value.emptyText:r.props.emptyText}));return e.length?(0,i.createVNode)("table",{cellpadding:0,cellspacing:0,"data-table-uuid":this.uuid},[this.renderColGroup(),this.renderTBody(e)]):null!==(o=null===(n=(t=this.context.slots).empty)||void 0===n?void 0:n.call(t))&&void 0!==o?o:(0,i.createVNode)(dt,{filterList:e,list:this.props.data,emptyText:l.value},null)}},{key:"renderTableFooter",value:function(e){var t=this;return(0,i.createVNode)(ye(),(0,i.mergeProps)(e,{modelValue:e.current,onLimitChange:function(e){return t.handlePageLimitChange(e)},onChange:function(e){return t.handlePageChange(e)}}),null)}},{key:"on",value:function(e,t){return this.events.has(e)||this.events.set(e,[]),this.events.get(e).push(t),this}},{key:"destroy",value:function(){this.events.clear(),this.events=null}},{key:"emitEvent",value:function(e,t){var n=this;this.events.has(e)&&this.events.get(e).forEach((function(e){"function"==typeof e&&Reflect.apply(e,n,t)}))}},{key:"handlePageLimitChange",value:function(e){Object.assign(this.props.pagination,{limit:e}),this.context.emit(s.PAGE_LIMIT_CHANGE,e)}},{key:"handlePageChange",value:function(e){Object.assign(this.props.pagination,{current:e,value:e}),this.context.emit(s.PAGE_VALUE_CHANGE,e)}},{key:"setColumnActive",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.propActiveCols.find((function(t){return t.index===e}));Object.assign(n,{active:!n.active}),t&&this.propActiveCols.filter((function(t){return t.index!==e&&t.active})).forEach((function(e){Object.assign(e,{active:!1})}))}},{key:"handleColumnHeadClick",value:function(e,t){if("disabled"!==this.props.columnPick&&(this.setColumnActive(e,"single"===this.props.columnPick),this.context.emit(s.COLUMN_PICK,this.propActiveCols)),t.sort&&!t.filter){var n=De(t,["field","type"],[t,e]),o=tt(this.reactiveProp.defaultSort[n]);Object.assign(this.reactiveProp.defaultSort,l({},n,o));var r=et(t,o);this.emitEvent(a.ON_SORT_BY_CLICK,[{sortFn:r,column:t,index:e,type:o}])}}},{key:"getSortCell",value:function(e,t){var n=this,o=De(e,["field","type"],[e,t]),r=this.reactiveProp.defaultSort[o];return(0,i.createVNode)(yt,{column:e,defaultSort:r,onChange:function(r,i){Object.assign(n.reactiveProp.defaultSort,l({},o,i)),n.emitEvent(a.ON_SORT_BY_CLICK,[{sortFn:r,column:e,index:t,type:i}])}},null)}},{key:"getFilterCell",value:function(e,t){var n=this;return(0,i.createVNode)(vt,{column:e,height:this.props.headHeight,onChange:function(o,r){n.emitEvent(a.ON_FILTER_CLICK,[{filterFn:function(e,t){return r(o,e,t)},checked:o,column:e,index:t}])},onFilterSave:function(t){n.context.emit(s.COLUMN_FILTER_SAVE,{column:e,values:t})}},null)}},{key:"renderHeader",value:function(){var e=this,t=qe(this.props),n=t.cellFn,o={"--row-height":"".concat(De(t,"height",["thead"]),"px")},r=function(t,o){if("selection"===t.type){var r=e.reactiveProp.rowActions.get(C);return e.renderCheckboxColumn(l({},b,!!r),0,!0)}var a=[];t.sort&&a.push(e.getSortCell(t,o)),t.filter&&a.push(e.getFilterCell(t,o));var s=function(e,t){return"function"==typeof n?n(e,t):De(e,"label",[e,t])}(t,o);a.unshift((0,i.createVNode)("span",{class:"head-text"},[s]));var u="string"==typeof s?s:void 0,c={"has-sort":!!t.sort,"has-filter":!!t.filter};return(0,i.createVNode)(at,{class:c,title:u,observerResize:e.props.observerResize,resizerWay:e.props.resizerWay},wt(a)?a:{default:function(){return[a]}})},a=_t(this.props,this.colgroups).resolveFixedColumnStyle,s=function(){if(e.styleRef.value.hasScrollY){var t={width:"".concat(8,"px"),right:"-1px"};return(0,i.createVNode)("th",{style:t,class:"column_fixed"},null)}};return(0,i.createVNode)("thead",{style:o},[(0,i.createVNode)(st,null,{default:function(){return[(0,i.createVNode)("tr",null,[e.filterColgroups.map((function(t,n){return(0,i.createVNode)("th",(0,i.mergeProps)({colspan:1,rowspan:1,class:e.getHeadColumnClass(t,n),style:a(t,e.styleRef.value.hasScrollY),onClick:function(){return e.handleColumnHeadClick(n,t)}},(o=t,Array.from(o.listeners.keys()).reduce((function(t,n){var r=n.split("_").slice(-1)[0];return Object.assign(t,l({},r,(function(t){o.listeners.get(n).forEach((function(n){return Reflect.apply(n,e,[t,o,e])}))})))}),{}))),[r(t,n)]);var o})),s()])]}})])}},{key:"renderTBody",value:function(e){var t=this,n=_t(this.props,this.colgroups).resolveFixedColumnStyle,o=e.length;return(0,i.createVNode)("tbody",null,[e.map((function(r,l){var a=[].concat(ie(Xe(t.props.rowStyle,[r,l,t])),[{"--row-height":"".concat(t.getRowHeight(r,l),"px")}]),u=[].concat(ie(Xe(t.props.rowClass,[r,l,t])),["hover-".concat(t.props.rowHover)]),c=rt(r,l,t.props);return[(0,i.createVNode)(st,{key:c},{default:function(){return[(0,i.createVNode)("tr",{style:a,class:u,onClick:function(n){return t.handleRowClick(n,r,l,e)},onDblclick:function(n){return t.handleRowDblClick(n,r,l,e)}},[t.filterColgroups.map((function(a,u){var c,d,f=[n(a)].concat(ie(Xe(t.props.cellStyle,[a,u,r,l,t]))),p={"expand-cell":"expand"===a.type},v="__CELL_".concat(l,"_").concat(u),h=Qe(a,u,r,l),y=h.colspan,g=h.rowspan,m=a.__col_$uuid,b=null!==(d=null===(c=r.__row_skip_config)||void 0===c?void 0:c[m])&&void 0!==d?d:{},C=b.skipRow,T=void 0!==C&&C,_=b.skipCol;if(!(T||void 0!==_&&_)){var w,O=[t.getColumnClass(a,u)].concat(ie(Xe(t.props.cellClass,[a,u,r,l,t])),[{"expand-row":r.__row_expand,"is-last":l+g>=o}]),x=function(n,o){var i={event:n,row:it(r),column:lt(a),cell:{getValue:function(){return t.renderCell(r,a,l,e)}},rowIndex:l,columnIndex:u};t.context.emit(o,i)};return(0,i.createVNode)("td",{class:O,style:f,key:v,colspan:y,rowspan:g,onClick:function(e){return x(e,s.CELL_CLICK)},onDblclick:function(e){return x(e,s.CELL_DBL_CLICK)}},[(0,i.createVNode)(at,{class:p,column:a,row:r,parentSetting:t.props.showOverflowTooltip,observerResize:t.props.observerResize},wt(w=t.renderCell(r,a,l,e))?w:{default:function(){return[w]}})])}return null}))])]}}),t.renderExpandRow(r,u,l)]}))])}},{key:"renderExpandRow",value:function(e,t,n){var o,r,l,a=this;if(e.__row_expand){var s=[].concat(ie(t),[{row_expend:!0}]),u=rt(e,n,this.props),c="".concat(u,"_expand");return(0,i.createVNode)(st,{key:c},{default:function(){return[(0,i.createVNode)("tr",{class:s},[(0,i.createVNode)("td",{colspan:a.filterColgroups.length,rowspan:1},[null!==(l=null===(r=(o=a.context.slots).expandRow)||void 0===r?void 0:r.call(o,it(e)))&&void 0!==l?l:(0,i.createVNode)("div",{class:"expand-cell-ctx"},[(0,i.createTextVNode)("Expand Row")])])])]}})}}},{key:"handleRowClick",value:function(e,t,n,o){this.context.emit(s.ROW_CLICK,e,t,n,o,this)}},{key:"handleRowDblClick",value:function(e,t,n,o){this.context.emit(s.ROW_DBL_CLICK,e,t,n,o,this)}},{key:"getExpandCell",value:function(e){return e.__row_expand?(0,i.createVNode)(ve.DownShape,null,null):(0,i.createVNode)(ve.RightShape,null,null)}},{key:"handleRowExpandClick",value:function(e,t,n,o,r){this.emitEvent(a.ON_ROW_EXPAND_CLICK,[{row:e,column:t,index:n,rows:o,e:r}])}},{key:"renderCellCallbackFn",value:function(e,t,n,o){var r=$e(e,De(t,"field",[t,e]),t),i=e[v],l="number"==typeof i?i:n,a=this.props.data[l];return t.render({cell:r,data:a,row:e,column:t,index:n,rows:o})}},{key:"renderCheckboxColumn",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(r){n.emitEvent(a.ON_ROW_CHECK,[{row:e,index:t,isAll:o,value:r}])},l=o&&!!this.reactiveProp.rowActions.get(T),s=ot(this.props,{row:e,index:t,isCheckAll:o});return(0,i.createVNode)(pe(),{onChange:r,disabled:!s,modelValue:e.__row_selection,indeterminate:l},null)}},{key:"renderExpandColumn",value:function(e,t,n,o){var r,l,a,s=this;return(0,i.createVNode)("span",{class:"expand-btn-action",onClick:function(r){return s.handleRowExpandClick(e,t,n,o,r)}},["function"==typeof t.render?s.renderCellCallbackFn(e,t,n,o):null!==(a=null===(l=(r=s.context.slots).expandCell)||void 0===l?void 0:l.call(r,{row:e,column:t,index:n,rows:o}))&&void 0!==a?a:s.getExpandCell(e)])}},{key:"renderCell",value:function(e,t,n,o){var r,l,a,s=this,u={expand:function(e,t,n,o){return s.renderExpandColumn(e,t,n,o)},selection:function(e,t,n,o){return s.renderCheckboxColumn(e,n)}};return null!==(l=null===(r=u[t.type])||void 0===r?void 0:r.call(u,e,t,n,o))&&void 0!==l?l:(a=$e(e,De(t,"field",[t,e]),t),"function"==typeof t.render?s.renderCellCallbackFn(e,t,n,o):"object"===le(a)?JSON.stringify((0,i.unref)(a)):a)}},{key:"isColActive",value:function(e){return"disabled"!==this.props.columnPick&&this.propActiveCols.some((function(t){return t.index===e&&t.active}))}},{key:"renderColGroup",value:function(){var e=this;return(0,i.createVNode)("colgroup",null,[(this.filterColgroups||[]).map((function(t,n){var o,l=(0,r.classes)({active:e.isColActive(n)}),a="".concat((o=Ke(t),Ue(o,"auto"))).replace(/px$/i,"");return(0,i.createVNode)("col",{class:l,width:a},null)}))])}},{key:"filterColgroups",get:function(){return this.colgroups.filter((function(e){return!e.isHidden}))}},{key:"setting",get:function(){return this.reactiveProp.setting}}]),e}();const xt=function(e,t){return{initColumns:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=[];if(o=Array.isArray(e)?e:[e],n)o.forEach((function(e){var o=t.findIndex((function(t){return t.label===e.label&&t.field===e.field}));n&&o>=0&&t.splice(o,1)}));else{var r=!1;o.forEach((function(e){if(void 0!==e.index&&e.index>=0){r=!0;var n=t.findIndex((function(t){return t.label===e.label&&t.field===e.field}));n>=0&&t.splice(n,1),t.push(e)}else{var o=t.findIndex((function(t){return t.label===e.label&&t.field===e.field}));o>=0?t.splice(o,1,e):t.push(e)}})),r&&t.sort((function(e,t){return e.index-t.index}))}},getColumns:function(){var n;return(null==t?void 0:t.length)?t:(null===(n=e.columns)||void 0===n?void 0:n.length)?e.columns:[]}}};var Pt=function(e){return"disabled"!==e.columnPick?"multi"===e.columnPick?Array.isArray(e.activeColumn)?e.activeColumn:Fe(e.activeColumn):Array.isArray(e.activeColumn)?Fe(e.activeColumn[0]):Fe(e.activeColumn):[]};var Et=void 0,Nt=function(e,t,o,a,s){var u,d=xt(e,t).getColumns,f=(0,i.ref)(200),p=(0,i.ref)(!1),v=(0,i.computed)((function(){return e.pagination&&e.data.length})),h=(0,i.computed)((function(){return p.value})),y=(0,i.computed)((function(){var t,n,o;return(0,r.classes)((l(t={},(0,r.resolveClassName)("table"),!0),l(t,"has-footer",v.value),l(t,"has-scroll-y",p.value||e.virtualEnabled),t),(o=["row"],"string"==typeof(n=e.border)&&o.push(n),Array.isArray(n)&&o.push.apply(o,ie(n.filter((function(e){return c.includes(e)})))),ie(new Set(o)).map((function(e){return"bordered-".concat(e)})).join(" ")))})),g=(0,r.classes)((l(u={},(0,r.resolveClassName)("table-head"),!0),l(u,"has-settings",!!e.settings),u)),m=(0,i.computed)((function(){return d()})),b=qe(e),C=(0,i.computed)((function(){return{"--row-height":"".concat(De(b,"height",["thead"]),"px"),"--scroll-head-left":"-".concat(a.scrollTranslateX,"px"),"--scroll-left":"".concat(a.scrollTranslateX,"px")}})),T=l({},(0,r.resolveClassName)("table-body"),!0),_=(0,i.computed)((function(){var t;return(0,r.classes)((l(t={},(0,r.resolveClassName)("table-footer"),!0),l(t,"is-hidden",!e.pagination||!e.data.length),t))})),w=function(){if(m.value.every((function(e){return/^\d+\.?\d*(px)?$/gi.test("".concat(e.width))}))){var e=m.value.reduce((function(e,t){return e+Number("".concat(t.width).replace(/px/gi,""))}),0),t=p.value?6:0;return"".concat(e+t,"px")}return"100%"},O=(0,i.computed)((function(){return{minHeight:Ue(e.minHeight,"auto"),width:w(),maxWidth:"100%"}})),x=function(e,t){var n=String(e);return/^\d+\.?\d*$/.test(n)?Number(n):/^\d+\.?\d*px$/gi.test(n)?Number(n.replace("px","")):/^\d+\.?\d*%$/gi.test(n)&&"number"==typeof t?t*Number(n.replace("%",""))/100:t},E=(0,i.reactive)({display:"","min-height":"",height:"",maxHeight:""});(0,i.onMounted)((function(){N(null==o?void 0:o.value)}));var N=function(t){if(t){var n=t.parentElement.getBoundingClientRect().height;f.value=n,function(){var t=x(e.height,f.value),n=e.showHead?x(e.headHeight,P):0,o=x(e.minHeight,f.value),r=e.pagination&&e.data.length?e.paginationHeihgt:0,i=t-n-r,l="auto"!==e.height&&"".concat(i,"px"),a=o-n-r,u=x(e.maxHeight,void 0),c="number"==typeof u&&"".concat(u-n-r,"px");Object.assign(E,{display:!!(null==s?void 0:s.length)&&"block","min-height":"".concat(a,"px"),height:l,maxHeight:c})}(),S(t)}},S=function(t){if(t){var n=e.virtualEnabled?".".concat((0,r.resolveClassName)("virtual-section")):".".concat((0,r.resolveClassName)("table-body-content")),o=t.querySelector(".bk-table-body");p.value=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e){var o=e.querySelector(t);if(o)return o.offsetHeight>e.offsetHeight-n}return!1}(o,n,0)}};return{tableClass:y,headClass:g,contentClass:T,footerClass:_,wrapperStyle:O,contentStyle:E,headStyle:C,resetTableHeight:N,updateBorderClass:S,getColumnsWidthOffsetWidth:function(){var t=0;return p.value&&(t+=6),e.border.includes(n.OUTER)&&!e.border.includes(n.NONE)&&(t+=2),t},hasFooter:v,hasScrollY:p,hasScrollYRef:h}},St=function(e,t){var n,o,r=(0,i.reactive)([]),a=xt(e,t).getColumns,s=function(e){if(/^\d+/.test("".concat(e.minWidth)))return e.minWidth;var t=R;return e.sort&&(t+=18),e.filter&&(t+=28),t},u=(0,i.computed)((function(){return a()})),c=function(t){var n,o,i=(null==t?void 0:t.checked)||(null===(n=e.settings)||void 0===n?void 0:n.checked)||[],a=(null==t?void 0:t.fields)||(null===(o=e.settings)||void 0===o?void 0:o.fields)||[];r.length=0,r.push.apply(r,ie(u.value.map((function(e){var t;return Object.assign(Object.assign({},e),(l(t={calcWidth:null,resizeWidth:null,minWidth:s(e),listeners:new Map,isHidden:Ze(a,e,i)},O,(0,de.v4)()),l(t,x,e),t))}))))};"object"===le(e.settings)&&c(e.settings);var d=function(e){var t,n,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r="HeadColumnResize";!function(e){e.MOUSE_MOVE="onMousemove",e.MOUSE_OUT="onMouseout",e.MOUSE_DOWN="onMousedown"}(n||(n={}));var a=!1,s=!1,u=!1,c=0,d=null,f=0,p=(0,i.ref)(-1e3),v=function e(t){var n;s=!1,u=!1,document.body.style.cursor="";var o=t.clientX-c,r=(null!==(n=d.resizeWidth)&&void 0!==n?n:d.calcWidth)+o,i=Number(d.minWidth);d.resizeWidth=r>i?r:i,document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",y),c=0,p.value=-1e3,d=null,t.target.closest("table").querySelectorAll("th").forEach((function(e){return e.style.setProperty("user-select","inherit")}))},h=function(e){return(0,me.throttle)((function(){var t,n=e.clientX-c,o=(null!==(t=d.resizeWidth)&&void 0!==t?t:d.calcWidth)+n;Number(d.minWidth)<o&&(p.value=e.clientX-c+f)}),60)},y=function(e){document.body.style.setProperty("cursor",""),h(e)()},g=(l(t={},n.MOUSE_DOWN,(function(e,t){if(a){s=!0,document.body.style.setProperty("cursor","col-resize"),d=t,c=e.clientX;var n=e.target.closest("table");f=c-n.getBoundingClientRect().left,document.addEventListener("mouseup",v),document.addEventListener("mousemove",y)}})),l(t,n.MOUSE_MOVE,(function(e,t){s&&!u&&(u=!0);var n=e.target.closest("th");if(u&&n.style.setProperty("user-select","none"),!u){if(!n)return;var o=n.getBoundingClientRect();o.width>12&&o.right-e.pageX<8?(a=!0,n.style.setProperty("cursor","col-resize")):(n.style.setProperty("cursor",""),a=!1)}})),l(t,n.MOUSE_OUT,(function(e,t){var n=e.target;u||n.style.setProperty("cursor","")})),t),m=function(e){return"".concat(r,"_").concat(e)},b=function(){e.forEach((function(e){!1!==e.resizable&&Object.keys(g).forEach((function(t){var n=m(t);e.listeners.has(n)||e.listeners.set(n,[]),e.listeners.get(n).push(g[t])}))}))},C=function(){e.forEach((function(e){Object.keys(g).forEach((function(t){var n=m(t);e.listeners.has(n)&&(e.listeners.get(n).length=0)}))}))};o&&b();var T=(0,i.computed)((function(){return{position:"absolute",top:0,bottom:0,left:0,width:"1px","background-color":"#ebeef5"}}));return{registerResizeEvent:b,resetResizeEvents:C,dragOffsetX:p,dragOffsetXStyle:T}}(r,!0),f=d.dragOffsetXStyle,p=d.dragOffsetX,g=d.resetResizeEvents,m=d.registerResizeEvent,P=function(e,t){var n=(0,i.reactive)([]),o=xt(e,t).getColumns;if("disabled"===e.columnPick)return{activeColumns:n};var r=(0,i.reactive)(Pt(e));return(0,i.watchEffect)((function(){n=o().map((function(e,t){return{index:t,active:r.some((function(e){return e===t})),_column:e}}));var t=Pt(e);n.forEach((function(e,n){Object.assign(e,{active:t.some((function(e){return e===n}))})}))})),{activeColumns:n}}(e,t).activeColumns;(0,i.watch)((function(){return[e.settings]}),(function(){var t;((null===(t=e.settings)||void 0===t?void 0:t.checked)||[]).length&&c()}));var N=(0,me.debounce)((function(){c(),g(),m()}),120);(0,i.watch)((function(){return u}),(function(){N()}),{immediate:!0,deep:!0});var S=e.columns.reduce((function(e,t,n){var o=De(t,["field","type"],[t,n]),r=nt(t.sort);return r?Object.assign(Object.assign({},e||{}),l({},o,null==r?void 0:r.value)):e}),null),k=(0,i.reactive)({rowActions:new Map,scrollTranslateY:0,scrollTranslateX:0,pos:{bottom:1},activeColumns:P,settings:e.settings,setting:{size:null===(n=e.settings)||void 0===n?void 0:n.size,height:E[null===(o=e.settings)||void 0===o?void 0:o.size]},defaultSort:S||e.defaultSort}),L=function(e){var t;return!!k.rowActions.has(e)&&(null===(t=k.rowActions.get(e))||void 0===t?void 0:t.isExpand)},A=function(){return k.rowActions.has(C)?k.rowActions.get(C):!!e.selectionKey&&M.every((function(e){return W(e)}))},V=function(e){var t=e.__$uuid,n=(k.rowActions.get(t)||{}).isSelected;return void 0!==n&&n},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=!1,n=!1;M.forEach((function(o){var r=e(o);t||r||(t=!0),!n&&r&&(n=!0)})),k.rowActions.set(T,n&&t),k.rowActions.set(C,n&&!t)},H=function(){e.columns.some((function(e){return"selection"===e.type}))&&j((function(e){return W(e)}))},I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n="boolean"==typeof t?t:!A();k.rowActions.set(C,n),k.rowActions.set(T,!1),M.forEach((function(t,o){var r;if(ot(e,{row:t,index:o,isCheckAll:!1})){var i=t.__$uuid,l=Object.assign({},null!==(r=k.rowActions.get(i))&&void 0!==r?r:{},{isSelected:n});k.rowActions.set(i,l)}})),j(),B(n),$(null,t,!0)},W=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return V(e)};return"function"==typeof e.isSelectedFn?Reflect.apply(e.isSelectedFn,Et,[{row:t,data:e.data}]):"string"==typeof e.selectionKey&&e.selectionKey.length?(0,me.get)(t,e.selectionKey):n(t)},z=function(t,n,o){return W(t,(function(){var r,i=void 0===n?t.__$uuid:n;return!(!ot(e,{row:t,index:o,isCheckAll:!1})||!A())||!!k.rowActions.has(i)&&(null===(r=k.rowActions.get(i))||void 0===r?void 0:r.isSelected)}))},M=(0,i.reactive)([]),D=(0,i.computed)((function(){return r.some((function(e){return"function"==typeof e.rowspan||/^\d$/.test("".concat(e.rowspan))||"function"==typeof e.colspan||/^\d$/.test("".concat(e.colspan))}))})),F=(0,i.computed)((function(){return r.some((function(e){return"selection"===e.type}))})),U=(0,i.computed)((function(){return r.some((function(e){return"expand"===e.type}))})),K=(0,i.computed)((function(){return r.some((function(e){return"index"===e.type}))})),B=function(t){if(D.value||F.value||U.value||K.value){var n=null,o={};return M.forEach((function(r,i){var a=r.__$uuid;if(U.value&&Object.assign(r,l({},y,L(r.__$uuid))),D.value){var s=G(r,a,i,o,n);n=r.__$uuid,Object.assign(r,l({},w,s))}if(K.value&&Object.assign(r,l({},v,i)),F.value){var u=ot(e,{row:r,index:i,isCheckAll:!1});Object.assign(r,l({},b,function(e,t,n,o){var r=z(n,n.__$uuid,o);return e&&"boolean"==typeof t?t:r}(u,t,r,i)))}})),void(F.value&&"boolean"!=typeof t&&H())}},G=function(e,t,n,o,i){var a,s=0,u=null!==(a=o[i])&&void 0!==a?a:{};return o[t]||(o[t]={}),r.forEach((function(r,i){var a,c,d=Qe(r,i,e,n),f=d.colspan,p=d.rowspan,v=r.__col_$uuid,h=null!==(c=null===(a=u[v])||void 0===a?void 0:a.skipRowLen)&&void 0!==c?c:0,y=l({},v,{skipRowLen:0,skipRow:!1,skipCol:!1,skipColLen:0});s>0&&(y[v].skipColLen=s,y[v].skipCol=!0,s-=1),h>1?(y[v].skipRowLen=h-1,y[v].skipRow=!0):p>1&&(y[v].skipRowLen=p,y[v].skipRow=!1),f>1&&(y[v].skipColLen=f,s=f-1),Object.assign(o[t],Object.assign({},y))})),o[t]},q=(0,me.debounce)(B,120);(0,i.watch)([D,F,U,K],(function(){q()}));var $=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.asyncData&&e.rowKey)if(o)e.data.forEach((function(t){(0,me.has)(t,e.selectionKey)&&(0,me.set)(t,e.selectionKey,!!n)}));else if((0,me.has)(t,e.selectionKey)){var r=e.data.find((function(n){return(0,me.get)(n,e.rowKey)===(0,me.get)(t,e.rowKey)}));(0,me.set)(r,e.selectionKey,!!n)}},X=_t(0,r,!1),Y=X.fixedColumns,Z=X.resolveColumnStyle,J=X.resolveColumnClass,Q=X.fixedWrapperClass;return{colgroups:r,dragOffsetXStyle:f,dragOffsetX:p,reactiveSchema:k,indexData:M,fixedWrapperClass:Q,fixedColumns:Y,resolveColumnStyle:Z,resolveColumnClass:J,initIndexData:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=null,o={};if(D.value||F.value||U.value||K.value){var r=e.data.map((function(r,i){var a,s=Ye(r,e,i);n=s;var u=Object.assign(Object.assign({},r),(l(a={},h,s),l(a,_,Object.assign({},r)),a));if(D.value){var c=G(r,s,i,o,n);Object.assign(u,l({},w,c))}return F.value&&Object.assign(u,l({},b,z(r,s,i))),K.value&&Object.assign(u,l({},v,i)),U.value&&Object.assign(u,l({},y,!!t&&L(s))),u}));return M.length=0,M.push.apply(M,ie(r)),void(F.value&&H())}M.length=0,M.push.apply(M,ie(e.data))},updateIndexData:B,setRowExpand:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=e.__$uuid,r="boolean"==typeof n?n:!L(o);k.rowActions.set(o,Object.assign({},null!==(t=k.rowActions.get(o))&&void 0!==t?t:{},{isExpand:r})),B()},updateColGroups:c,clearSelection:function(){I(!1)},toggleAllSelection:I,toggleRowSelection:function(e,t){var n,o=e.__$uuid;if(o){var r="boolean"==typeof t?t:!z(e,o),i=Object.assign({},null!==(n=k.rowActions.get(o))&&void 0!==n?n:{},{isSelected:r});k.rowActions.set(o,i),t||k.rowActions.set(C,!1),j(),B(),$(e,t,!1)}},getSelection:function(){return M.filter((function(e){return z(e)}))},clearSort:function(){Array.isArray(k.defaultSort)&&k.defaultSort.splice(0),k.defaultSort=S||e.defaultSort}}};const kt=(0,i.defineComponent)({name:"Table",props:$,emits:p,setup:function(e,t){var n=(0,Y.useLocale)("table"),o=null,u=null,c=null,d=new ne,f=(0,i.reactive)([]),p=xt(e,f).initColumns;(0,i.provide)(N,p),(0,i.provide)(S,d);var v=(0,i.ref)(),h=(0,i.ref)(),y=(0,i.ref)(0),g=St(e,f),m=g.colgroups,b=g.dragOffsetXStyle,C=g.dragOffsetX,T=g.reactiveSchema,_=g.indexData,w=g.fixedColumns,O=g.resolveColumnStyle,x=g.resolveColumnClass,P=g.setRowExpand,E=g.initIndexData,k=g.fixedWrapperClass,L=g.clearSelection,A=g.toggleAllSelection,V=g.toggleRowSelection,j=g.getSelection,H=g.clearSort,I=g.updateColGroups,W=se(e,_),z=W.pageData,M=W.localPagination,D=W.resolvePageData,F=W.watchEffectFn,U=Nt(e,f,v,T,z),K=U.tableClass,B=U.headClass,G=U.contentClass,q=U.footerClass,$=U.wrapperStyle,X=U.contentStyle,Z=U.headStyle,Q=U.hasScrollYRef,ee=U.updateBorderClass,te=U.resetTableHeight,oe=U.getColumnsWidthOffsetWidth,re=U.hasFooter,ie=(0,i.computed)((function(){return{hasScrollY:Q.value}})),ae=new Ot(e,t,T,m,ie,n),de=function(){var e=v.value.querySelector(".bk-table-body-content"),t=e.querySelector("table");if(t){var n=t.scrollWidth,o=e.clientWidth;y.value=n-o}};(0,i.watch)((function(){return[e.data,e.pagination,e.height,e.maxHeight,e.minHeight]}),(function(){E(e.reserveExpand),F(c,o,u),(0,i.nextTick)((function(){te(v.value),ee(v.value)}))}),{immediate:!0,deep:!0}),(0,i.watchEffect)((function(){if((null==v?void 0:v.value)instanceof HTMLElement){var e=oe();Be(v.value,m,20,e),de()}})),ae.on(a.ON_SORT_BY_CLICK,(function(e){var n,r,l=e.sortFn,a=e.column,d=e.index,f=e.type;"function"==typeof l&&(D(c,o=l,u=a),null===(r=null===(n=h.value)||void 0===n?void 0:n.reset)||void 0===r||r.call(n)),t.emit(s.COLUMN_SORT,{column:(0,i.unref)(a.__col_source_data),index:d,type:f})})).on(a.ON_FILTER_CLICK,(function(e){var n,r,l=e.filterFn,a=e.checked,d=e.column,f=e.index;"function"==typeof l&&(D(c=l,o,u),null===(r=null===(n=h.value)||void 0===n?void 0:n.reset)||void 0===r||r.call(n)),t.emit(s.COLUMN_FILTER,{checked:a,column:(0,i.unref)(d.__col_source_data),index:f})})).on(a.ON_SETTING_CHANGE,(function(e){var n=e.checked,o=void 0===n?[]:n,r=e.size,l=e.height,a=e.fields;(0,i.nextTick)((function(){var e,n;I({checked:o,fields:a}),ee(v.value);var i=oe();o.length&&Be(v.value,m,R,i),null===(n=null===(e=h.value)||void 0===e?void 0:e.reset)||void 0===n||n.call(e),t.emit(s.SETTING_CHANGE,{checked:o,size:r,height:l,fields:a})}))})).on(a.ON_ROW_EXPAND_CLICK,(function(e){var n=e.row,o=e.column,r=e.index,i=e.rows,l=e.e;t.emit(s.ROW_EXPAND_CLICK,{row:it(n),column:lt(o),index:r,rows:i,e:l}),P(n,!n.__row_expand)})).on(a.ON_ROW_CHECK,(function(n){var o=n.row,r=n.isAll,i=n.index,l=n.value;r?(A(l),t.emit(s.ROW_SELECT_ALL,{checked:l,data:e.data})):(V(o,l),t.emit(s.ROW_SELECT,{row:it(o),index:i,checked:l,data:e.data})),t.emit(s.ROW_SELECT_CHANGE,{row:it(o),isAll:r,index:i,checked:l,data:e.data})}));var fe=function(e){var n,o=null!==(n=T.pos.bottom)&&void 0!==n?n:0,i=e[1],l=i.translateX,a=i.translateY,u=i.pos,c=void 0===u?{}:u;T.scrollTranslateY=a,T.scrollTranslateX=l,T.pos=c;var d=c.bottom;d<=2&&o>d&&(0,r.debounce)(60,(function(){t.emit(s.SCROLL_BOTTOM,Object.assign(Object.assign({},c),{translateX:l,translateY:a}))}),!0)(),de()};(0,i.onMounted)((function(){if(e.observerResize){var t=Ge(v.value,(function(){if(v.value){"100%"!==e.height&&"auto"!==e.height||te(v.value),ee(v.value);var t=oe();Be(v.value,m,20,t)}}),180,!0,e.resizerWay);t.start(),(0,i.onBeforeUnmount)((function(){t.disconnect(),t=null}))}})),(0,i.onBeforeUnmount)((function(){ae.destroy()})),t.expose({setRowExpand:P,clearSelection:L,toggleAllSelection:A,toggleRowSelection:V,getSelection:j,clearSort:H,scrollTo:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,top:0};null===(t=null===(e=h.value)||void 0===e?void 0:e.scrollTo)||void 0===t||t.call(e,n)},getRoot:function(){return v.value}});var pe=(0,i.computed)((function(){return Object.assign(Object.assign({},G),{"__is-empty":!z.length})})),ve=(0,i.computed)((function(){var t;return l(t={},(0,r.resolveClassName)("table-body-content"),!0),l(t,"with-virtual-render",e.virtualEnabled),t})),he={column_drag_line:!0,"offset-x":!0},ye=(0,i.computed)((function(){return Object.assign(Object.assign({},b.value),{left:"".concat(C.value-T.scrollTranslateX,"px")})})),ge={"scroll-loading":!0,_bottom:!0},me=(0,i.computed)((function(){var t;return l(t={},(0,r.resolveClassName)("fixed-bottom-border"),!0),l(t,"_is-empty",!e.data.length),t})),be={zIndex:-1,width:0,height:0,display:"none"},Ce=(0,i.computed)((function(){return{"--footer-height":re.value?"".concat(e.paginationHeihgt,"px"):"0"}})),Te=(0,i.computed)((function(){return Object.assign({right:Q.value?"".concat(6,"px"):0},Ce.value)})),_e=function(e,t){var n=(0,i.toRef)(e,"scrollLoading"),o=(0,i.computed)((function(){return null!==n.value&&("boolean"==typeof n.value&&n.value||"object"===le(n.value))}));return{renderScrollLoading:function(){var e,r,l;if(o.value){var a="boolean"==typeof n.value?{loading:!!n.value,inline:!0,title:"",size:ue.BkLoadingSize.Normal,mode:ue.BkLoadingMode.Default,indicator:null}:n.value,s=a.loading,u=a.size,c=a.mode,d=a.title,f=a.inline,p=a.indicator;return null!==(l=null===(r=(e=t.slots).fixedBottom)||void 0===r?void 0:r.call(e))&&void 0!==l?l:(0,i.createVNode)(ce(),{loading:s,size:u,mode:c,title:d,inline:f,indicator:p},null)}}}}(e,t).renderScrollLoading,we=(0,i.computed)((function(){return e.virtualEnabled?{}:{scrollXName:"",scrollYName:""}}));return function(){var n,o;return(0,i.createVNode)("div",{class:K.value,style:$.value,ref:v},[(0,i.createVNode)("div",{class:B,style:Z.value},[ae.renderTableHeadSchema()]),(0,i.createVNode)(J(),(0,i.mergeProps)({ref:h,lineHeight:ae.getRowHeight,class:pe.value,style:X,list:z},we.value,{contentClassName:ve.value,onContentScroll:fe,throttleDelay:0,scrollEvent:!0,rowKey:e.rowKey,enabled:e.virtualEnabled}),{default:function(t){return ae.renderTableBodySchema(t.data||e.data)},afterSection:function(){return(0,i.createVNode)("div",{class:me.value},null)}}),(0,i.createVNode)("div",{class:k,style:Te.value},[w.value.map((function(e){var t=e.isExist,n=e.colPos,o=e.column;return t?"":(0,i.createVNode)("div",{class:x(o,T.scrollTranslateX,y.value),style:O(n)},null)})),(0,i.createVNode)("div",{class:he,style:ye.value},null),(0,i.createVNode)("div",{class:ge},[_e()])]),(0,i.createVNode)("div",{class:q.value,style:Ce.value},[re.value&&ae.renderTableFooter(M.value)]),(0,i.createVNode)("div",{style:be},[null===(o=(n=t.slots).default)||void 0===o?void 0:o.call(n)])])}}}),Lt=(0,r.withInstall)(kt);var At=(0,r.withInstall)(X)})(),m})()));
|
package/lib/table/props.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { ExtractPropTypes, Slot } from 'vue';
|
2
2
|
import { ROW_HOVER, SORT_OPTION } from './const';
|
3
3
|
export declare enum SortScope {
|
4
4
|
CURRENT = "current",
|
@@ -411,7 +411,7 @@ export declare type Field = {
|
|
411
411
|
export declare type Column = {
|
412
412
|
label: Function | string;
|
413
413
|
field?: Function | string;
|
414
|
-
render?: Function | string;
|
414
|
+
render?: Function | string | Slot;
|
415
415
|
width?: number | string;
|
416
416
|
minWidth?: number | string;
|
417
417
|
columnKey?: string;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import { ITableColumn } from './components/table-column';
|
2
|
+
import { TablePropTypes } from './props';
|
3
|
+
declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) => {
|
4
|
+
initColumns: (column: ITableColumn | ITableColumn[], remove?: boolean) => void;
|
5
|
+
getColumns: () => import("./props").Column[];
|
5
6
|
};
|
6
7
|
/**
|
7
8
|
* 渲染column settings
|
@@ -18,11 +18,17 @@ declare const BkTableColumn: {
|
|
18
18
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
19
19
|
};
|
20
20
|
minWidth: string | number;
|
21
|
+
index: number;
|
21
22
|
columnKey: string;
|
22
23
|
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
23
24
|
resizable: boolean;
|
24
25
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
25
26
|
prop: import("vue-types").VueTypeDef<any>;
|
27
|
+
index: import("vue-types").VueTypeValidableDef<number> & {
|
28
|
+
default: number;
|
29
|
+
} & {
|
30
|
+
default: number;
|
31
|
+
};
|
26
32
|
label: import("vue-types").VueTypeDef<any>;
|
27
33
|
field: import("vue-types").VueTypeDef<any>;
|
28
34
|
render: import("vue-types").VueTypeDef<any>;
|
@@ -77,7 +83,7 @@ declare const BkTableColumn: {
|
|
77
83
|
};
|
78
84
|
colspan: import("vue-types").VueTypeDef<any>;
|
79
85
|
rowspan: import("vue-types").VueTypeDef<any>;
|
80
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "fixed" | "sort" | "filter" | "minWidth" | "columnKey" | "showOverflowTooltip" | "resizable">;
|
86
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "fixed" | "sort" | "filter" | "minWidth" | "index" | "columnKey" | "showOverflowTooltip" | "resizable">;
|
81
87
|
$attrs: {
|
82
88
|
[x: string]: unknown;
|
83
89
|
};
|
@@ -93,6 +99,11 @@ declare const BkTableColumn: {
|
|
93
99
|
$el: any;
|
94
100
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
95
101
|
prop: import("vue-types").VueTypeDef<any>;
|
102
|
+
index: import("vue-types").VueTypeValidableDef<number> & {
|
103
|
+
default: number;
|
104
|
+
} & {
|
105
|
+
default: number;
|
106
|
+
};
|
96
107
|
label: import("vue-types").VueTypeDef<any>;
|
97
108
|
field: import("vue-types").VueTypeDef<any>;
|
98
109
|
render: import("vue-types").VueTypeDef<any>;
|
@@ -148,14 +159,14 @@ declare const BkTableColumn: {
|
|
148
159
|
colspan: import("vue-types").VueTypeDef<any>;
|
149
160
|
rowspan: import("vue-types").VueTypeDef<any>;
|
150
161
|
}>>, {
|
151
|
-
initColumns: (
|
162
|
+
initColumns: (_col: import("../../table/src/components/table-column").ITableColumn | import("../../table/src/components/table-column").ITableColumn[], _rm?: boolean) => void;
|
152
163
|
bkTableCache: {
|
153
164
|
queueStack: (_: any, fn: any) => any;
|
154
165
|
};
|
155
166
|
column: {
|
156
167
|
field: string | Function;
|
157
168
|
label: string | Function;
|
158
|
-
render?: string | Function;
|
169
|
+
render?: string | Function | import("vue").Slot;
|
159
170
|
width?: string | number;
|
160
171
|
minWidth?: string | number;
|
161
172
|
columnKey?: string;
|
@@ -194,9 +205,12 @@ declare const BkTableColumn: {
|
|
194
205
|
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
195
206
|
};
|
196
207
|
prop?: string | Function;
|
208
|
+
index?: number;
|
197
209
|
};
|
198
210
|
}, unknown, {}, {
|
199
|
-
updateColumnDefine(): void;
|
211
|
+
updateColumnDefine(unmounted?: boolean): void;
|
212
|
+
updateColumnDefineByParent(): void;
|
213
|
+
updateColumnDefineByIndex(unmounted?: boolean): void;
|
200
214
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
201
215
|
fixed: boolean | "left" | "right";
|
202
216
|
sort: string | boolean | {
|
@@ -213,6 +227,7 @@ declare const BkTableColumn: {
|
|
213
227
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
214
228
|
};
|
215
229
|
minWidth: string | number;
|
230
|
+
index: number;
|
216
231
|
columnKey: string;
|
217
232
|
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
218
233
|
resizable: boolean;
|
@@ -238,6 +253,11 @@ declare const BkTableColumn: {
|
|
238
253
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
239
254
|
} & Readonly<import("vue").ExtractPropTypes<{
|
240
255
|
prop: import("vue-types").VueTypeDef<any>;
|
256
|
+
index: import("vue-types").VueTypeValidableDef<number> & {
|
257
|
+
default: number;
|
258
|
+
} & {
|
259
|
+
default: number;
|
260
|
+
};
|
241
261
|
label: import("vue-types").VueTypeDef<any>;
|
242
262
|
field: import("vue-types").VueTypeDef<any>;
|
243
263
|
render: import("vue-types").VueTypeDef<any>;
|
@@ -293,14 +313,14 @@ declare const BkTableColumn: {
|
|
293
313
|
colspan: import("vue-types").VueTypeDef<any>;
|
294
314
|
rowspan: import("vue-types").VueTypeDef<any>;
|
295
315
|
}>> & import("vue").ShallowUnwrapRef<{
|
296
|
-
initColumns: (
|
316
|
+
initColumns: (_col: import("../../table/src/components/table-column").ITableColumn | import("../../table/src/components/table-column").ITableColumn[], _rm?: boolean) => void;
|
297
317
|
bkTableCache: {
|
298
318
|
queueStack: (_: any, fn: any) => any;
|
299
319
|
};
|
300
320
|
column: {
|
301
321
|
field: string | Function;
|
302
322
|
label: string | Function;
|
303
|
-
render?: string | Function;
|
323
|
+
render?: string | Function | import("vue").Slot;
|
304
324
|
width?: string | number;
|
305
325
|
minWidth?: string | number;
|
306
326
|
columnKey?: string;
|
@@ -339,15 +359,23 @@ declare const BkTableColumn: {
|
|
339
359
|
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
340
360
|
};
|
341
361
|
prop?: string | Function;
|
362
|
+
index?: number;
|
342
363
|
};
|
343
364
|
}> & {} & {} & {
|
344
|
-
updateColumnDefine(): void;
|
365
|
+
updateColumnDefine(unmounted?: boolean): void;
|
366
|
+
updateColumnDefineByParent(): void;
|
367
|
+
updateColumnDefineByIndex(unmounted?: boolean): void;
|
345
368
|
} & import("vue").ComponentCustomProperties;
|
346
369
|
__isFragment?: never;
|
347
370
|
__isTeleport?: never;
|
348
371
|
__isSuspense?: never;
|
349
372
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
350
373
|
prop: import("vue-types").VueTypeDef<any>;
|
374
|
+
index: import("vue-types").VueTypeValidableDef<number> & {
|
375
|
+
default: number;
|
376
|
+
} & {
|
377
|
+
default: number;
|
378
|
+
};
|
351
379
|
label: import("vue-types").VueTypeDef<any>;
|
352
380
|
field: import("vue-types").VueTypeDef<any>;
|
353
381
|
render: import("vue-types").VueTypeDef<any>;
|
@@ -403,14 +431,14 @@ declare const BkTableColumn: {
|
|
403
431
|
colspan: import("vue-types").VueTypeDef<any>;
|
404
432
|
rowspan: import("vue-types").VueTypeDef<any>;
|
405
433
|
}>>, {
|
406
|
-
initColumns: (
|
434
|
+
initColumns: (_col: import("../../table/src/components/table-column").ITableColumn | import("../../table/src/components/table-column").ITableColumn[], _rm?: boolean) => void;
|
407
435
|
bkTableCache: {
|
408
436
|
queueStack: (_: any, fn: any) => any;
|
409
437
|
};
|
410
438
|
column: {
|
411
439
|
field: string | Function;
|
412
440
|
label: string | Function;
|
413
|
-
render?: string | Function;
|
441
|
+
render?: string | Function | import("vue").Slot;
|
414
442
|
width?: string | number;
|
415
443
|
minWidth?: string | number;
|
416
444
|
columnKey?: string;
|
@@ -449,9 +477,12 @@ declare const BkTableColumn: {
|
|
449
477
|
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
450
478
|
};
|
451
479
|
prop?: string | Function;
|
480
|
+
index?: number;
|
452
481
|
};
|
453
482
|
}, unknown, {}, {
|
454
|
-
updateColumnDefine(): void;
|
483
|
+
updateColumnDefine(unmounted?: boolean): void;
|
484
|
+
updateColumnDefineByParent(): void;
|
485
|
+
updateColumnDefineByIndex(unmounted?: boolean): void;
|
455
486
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
456
487
|
fixed: boolean | "left" | "right";
|
457
488
|
sort: string | boolean | {
|
@@ -468,6 +499,7 @@ declare const BkTableColumn: {
|
|
468
499
|
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
469
500
|
};
|
470
501
|
minWidth: string | number;
|
502
|
+
index: number;
|
471
503
|
columnKey: string;
|
472
504
|
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
473
505
|
resizable: boolean;
|