bkui-vue 0.0.1-beta.442 → 0.0.1-beta.443

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.
@@ -13,6 +13,7 @@ declare const BkTableColumn: {
13
13
  list: any[] | (object & (() => any[]));
14
14
  filterFn: any;
15
15
  match: "full" | "fuzzy";
16
+ checked: any[] | (object & (() => any[]));
16
17
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
17
18
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
18
19
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -68,6 +69,7 @@ declare const BkTableColumn: {
68
69
  list: any[] | (object & (() => any[]));
69
70
  filterFn: any;
70
71
  match: "full" | "fuzzy";
72
+ checked: any[] | (object & (() => any[]));
71
73
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
72
74
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
73
75
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -76,6 +78,7 @@ declare const BkTableColumn: {
76
78
  list: any[] | (object & (() => any[]));
77
79
  filterFn: any;
78
80
  match: "full" | "fuzzy";
81
+ checked: any[] | (object & (() => any[]));
79
82
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
80
83
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
81
84
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -145,6 +148,7 @@ declare const BkTableColumn: {
145
148
  list: any[] | (object & (() => any[]));
146
149
  filterFn: any;
147
150
  match: "full" | "fuzzy";
151
+ checked: any[] | (object & (() => any[]));
148
152
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
149
153
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
150
154
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -153,6 +157,7 @@ declare const BkTableColumn: {
153
157
  list: any[] | (object & (() => any[]));
154
158
  filterFn: any;
155
159
  match: "full" | "fuzzy";
160
+ checked: any[] | (object & (() => any[]));
156
161
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
157
162
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
158
163
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -228,6 +233,7 @@ declare const BkTableColumn: {
228
233
  list: any[] | (object & (() => any[]));
229
234
  filterFn: any;
230
235
  match: "full" | "fuzzy";
236
+ checked: any[] | (object & (() => any[]));
231
237
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
232
238
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
233
239
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -303,6 +309,7 @@ declare const BkTableColumn: {
303
309
  list: any[] | (object & (() => any[]));
304
310
  filterFn: any;
305
311
  match: "full" | "fuzzy";
312
+ checked: any[] | (object & (() => any[]));
306
313
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
307
314
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
308
315
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -311,6 +318,7 @@ declare const BkTableColumn: {
311
318
  list: any[] | (object & (() => any[]));
312
319
  filterFn: any;
313
320
  match: "full" | "fuzzy";
321
+ checked: any[] | (object & (() => any[]));
314
322
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
315
323
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
316
324
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -425,6 +433,7 @@ declare const BkTableColumn: {
425
433
  list: any[] | (object & (() => any[]));
426
434
  filterFn: any;
427
435
  match: "full" | "fuzzy";
436
+ checked: any[] | (object & (() => any[]));
428
437
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
429
438
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
430
439
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -433,6 +442,7 @@ declare const BkTableColumn: {
433
442
  list: any[] | (object & (() => any[]));
434
443
  filterFn: any;
435
444
  match: "full" | "fuzzy";
445
+ checked: any[] | (object & (() => any[]));
436
446
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
437
447
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
438
448
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -508,6 +518,7 @@ declare const BkTableColumn: {
508
518
  list: any[] | (object & (() => any[]));
509
519
  filterFn: any;
510
520
  match: "full" | "fuzzy";
521
+ checked: any[] | (object & (() => any[]));
511
522
  filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
512
523
  btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
513
524
  btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],o);else{var p="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var r in p)("object"==typeof exports?exports:e)[r]=p[r]}}(self,((e,o,p)=>(()=>{"use strict";var r={4212:o=>{o.exports=e},748:e=>{e.exports=o},210:e=>{e.exports=p}},n={};function s(e){var o=n[e];if(void 0!==o)return o.exports;var p=n[e]={exports:{}};return r[e](p,p.exports,s),p.exports}s.d=(e,o)=>{for(var p in o)s.o(o,p)&&!s.o(e,p)&&Object.defineProperty(e,p,{enumerable:!0,get:o[p]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};return(()=>{s.r(t),s.d(t,{default:()=>D});var e,o,p,r,n=s(4212),T=s(748);function f(e,o,p){return o in e?Object.defineProperty(e,o,{value:p,enumerable:!0,configurable:!0,writable:!0}):e[o]=p,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(p||(p={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(r||(r={}));var i,y,l=[r.AUTO,r.HIGHLIGHT];p.NONE,p.ROW,p.COL,p.OUTER,p.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"}(i||(i={})),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.ROW_MOUSE_ENTER="rowMouseEnter",e.ROW_MOUSE_LEAVE="rowMouseLeave",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"}(y||(y={}));var u,d=function(){return!0};f(e={},y.COLUMN_PICK,d),f(e,y.COLUMN_FILTER,d),f(e,y.COLUMN_SORT,d),f(e,y.COLUMN_FILTER_SAVE,d),f(e,y.ROW_CLICK,d),f(e,y.ROW_DBL_CLICK,d),f(e,y.ROW_EXPAND_CLICK,d),f(e,y.ROW_SELECT,d),f(e,y.ROW_SELECT_ALL,d),f(e,y.ROW_SELECT_CHANGE,d),f(e,y.PAGE_LIMIT_CHANGE,d),f(e,y.PAGE_VALUE_CHANGE,d),f(e,y.SETTING_CHANGE,d),f(e,y.SCROLL_BOTTOM,d),f(e,y.CELL_CLICK,d),f(e,y.CELL_DBL_CLICK,d),f(o={},y.NATIVE_CLICK,d),f(o,y.NATIVE_DBL_CLICK,d),function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(u||(u={})),u.ASC,u.DESC,u.NULL,u.CUSTOM;var a,P,c=s(210);!function(e){e.CURRENT="current",e.ALL="all"}(a||(a={})),function(e){e.STATIC="static",e.AUTO="auto"}(P||(P={}));var O,C,L=(0,c.toType)("showOverflowTooltipMode",{default:P.AUTO});!function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(O||(O={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.NONE=""}(C||(C={}));var b,E=(0,c.toType)("columnType",{default:O.NONE}),_=(0,c.toType)("columnType",{default:C.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(b||(b={}));var h,m=(0,c.toType)("full",{default:b.FULL});!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(h||(h={}));var g,v=(0,c.toType)("columnSize",{default:h.SMALL});!function(e){e.LEFT="left",e.RIGHT="right"}(g||(g={}));var N,I,R=(0,c.string)(),S=(0,c.toType)("sortScope",{}).def(a.CURRENT);!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(N||(N={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(I||(I={}));var A={label:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),field:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),render:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),width:n.PropTypes.oneOfType([n.PropTypes.number.def(void 0),n.PropTypes.string.def("auto")]),minWidth:n.PropTypes.oneOfType([n.PropTypes.number.def(void 0),n.PropTypes.string.def("auto")]).def(30),columnKey:n.PropTypes.string.def(""),showOverflowTooltip:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.shape({content:n.PropTypes.string.def(""),disabled:n.PropTypes.bool.def(!1),watchCellResize:n.PropTypes.bool.def(!0),mode:L})]).def(void 0),type:E,resizable:n.PropTypes.bool.def(!0),fixed:n.PropTypes.oneOfType([n.PropTypes.bool,R]).def(!1),sort:n.PropTypes.oneOfType([n.PropTypes.shape({sortFn:n.PropTypes.func.def(void 0),sortScope:S,value:n.PropTypes.string.def(u.NULL)}),n.PropTypes.bool,n.PropTypes.string]).def(!1),filter:n.PropTypes.oneOfType([n.PropTypes.shape({list:n.PropTypes.arrayOf(n.PropTypes.any).def([]),filterFn:n.PropTypes.func.def(void 0),match:m,filterScope:S,btnSave:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.string]).def("确定"),btnReset:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.string]).def("重置")}),n.PropTypes.bool,n.PropTypes.string]).def(!1),colspan:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return 1})),n.PropTypes.number.def(1)]),rowspan:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return 1})),n.PropTypes.number.def(1)]),align:_,className:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func])};n.PropTypes.arrayOf(n.PropTypes.any).def([]),n.PropTypes.arrayOf(n.PropTypes.shape(A).loose).def([]),n.PropTypes.oneOfType([n.PropTypes.number.def(-1),n.PropTypes.arrayOf(n.PropTypes.number.def(-1))]),(0,c.toType)("columnPick",{}).def(N.DISABLED),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def("auto"),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def(84),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def("auto"),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.func]).def(42),n.PropTypes.number.def(42),n.PropTypes.bool.def(!0),n.PropTypes.shape({height:n.PropTypes.number.def(42),isShow:n.PropTypes.bool.def(!0),cellFn:n.PropTypes.func.def(void 0)}),n.PropTypes.bool.def(!1),n.PropTypes.oneOfType([n.PropTypes.arrayOf((0,c.toType)("boderType",{})),n.PropTypes.string]).def([p.ROW]),n.PropTypes.oneOfType([n.PropTypes.bool.def(!1),n.PropTypes.object.def({})]).def(!1),n.PropTypes.number.def(60),n.PropTypes.bool.def(!1),n.PropTypes.string,n.PropTypes.oneOfType([n.PropTypes.shape({fields:n.PropTypes.arrayOf(n.PropTypes.shape({label:n.PropTypes.string,field:n.PropTypes.string,disabled:n.PropTypes.bool})),checked:n.PropTypes.arrayOf(n.PropTypes.string),limit:n.PropTypes.number.def(0),size:v,sizeList:n.PropTypes.shape([]),showLineHeight:n.PropTypes.bool.def(!0)}),n.PropTypes.bool]).def(!1),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.object,n.PropTypes.bool]).def(void 0),n.PropTypes.bool.def(!1),n.PropTypes.string.def(""),n.PropTypes.func.def(void 0),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func]).def("__$table_row_index"),n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.shape({content:n.PropTypes.string.def(""),disabled:n.PropTypes.bool.def(!1),watchCellResize:n.PropTypes.bool.def(!0),mode:L})]).def(!1),n.PropTypes.bool.def(!1),n.PropTypes.oneOf(l).def(r.HIGHLIGHT),n.PropTypes.shape({}).def({}),n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return!0})),n.PropTypes.bool.def(!0)]).def(!0),(0,c.toType)("ResizerWay",{default:I.DEBOUNCE}),n.PropTypes.bool.def(!0);const U=(0,T.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},A),{prop:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),index:n.PropTypes.number.def(void 0)}),setup:function(e){return{initColumns:(0,T.inject)("InitColumns",(function(e){}),!1),bkTableCache:(0,T.inject)("BKTableCahce",{queueStack:function(e,o){return null==o?void 0:o()}}),column:(0,T.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 o=e._.parent.vnode.children.default()||[],p=[];!function e(o){Array.isArray(o)&&o.forEach((function(o){var r,n,s,t=!0;if("TableColumn"===(null===(r=o.type)||void 0===r?void 0:r.name)){t=Object.hasOwnProperty.call(o.props||{},"key");var f=Object.assign(Object.assign({},o.props),{field:o.props.prop||o.props.field,render:null===(n=o.children)||void 0===n?void 0:n.default});p.push((0,T.unref)(f))}(null===(s=o.children)||void 0===s?void 0:s.length)&&t&&e(o.children)}))}(o),e.initColumns(p)}))},updateColumnDefineByIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=Object.assign(Object.assign({},this.$props),{field:this.$props.prop||this.$props.field,render:this.$slots.default});this.initColumns((0,T.unref)(o),e)}},render:function(){var e,o;return(0,T.createVNode)(T.Fragment,null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e,{row:{}})])}}),D=(0,n.withInstall)(U)})(),t})()));
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],o);else{var p="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var r in p)("object"==typeof exports?exports:e)[r]=p[r]}}(self,((e,o,p)=>(()=>{"use strict";var r={4212:o=>{o.exports=e},748:e=>{e.exports=o},210:e=>{e.exports=p}},n={};function s(e){var o=n[e];if(void 0!==o)return o.exports;var p=n[e]={exports:{}};return r[e](p,p.exports,s),p.exports}s.d=(e,o)=>{for(var p in o)s.o(o,p)&&!s.o(e,p)&&Object.defineProperty(e,p,{enumerable:!0,get:o[p]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};return(()=>{s.r(t),s.d(t,{default:()=>D});var e,o,p,r,n=s(4212),T=s(748);function f(e,o,p){return o in e?Object.defineProperty(e,o,{value:p,enumerable:!0,configurable:!0,writable:!0}):e[o]=p,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(p||(p={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(r||(r={}));var i,y,l=[r.AUTO,r.HIGHLIGHT];p.NONE,p.ROW,p.COL,p.OUTER,p.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"}(i||(i={})),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.ROW_MOUSE_ENTER="rowMouseEnter",e.ROW_MOUSE_LEAVE="rowMouseLeave",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"}(y||(y={}));var d,u=function(){return!0};f(e={},y.COLUMN_PICK,u),f(e,y.COLUMN_FILTER,u),f(e,y.COLUMN_SORT,u),f(e,y.COLUMN_FILTER_SAVE,u),f(e,y.ROW_CLICK,u),f(e,y.ROW_DBL_CLICK,u),f(e,y.ROW_EXPAND_CLICK,u),f(e,y.ROW_SELECT,u),f(e,y.ROW_SELECT_ALL,u),f(e,y.ROW_SELECT_CHANGE,u),f(e,y.PAGE_LIMIT_CHANGE,u),f(e,y.PAGE_VALUE_CHANGE,u),f(e,y.SETTING_CHANGE,u),f(e,y.SCROLL_BOTTOM,u),f(e,y.CELL_CLICK,u),f(e,y.CELL_DBL_CLICK,u),f(o={},y.NATIVE_CLICK,u),f(o,y.NATIVE_DBL_CLICK,u),function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(d||(d={})),d.ASC,d.DESC,d.NULL,d.CUSTOM;var a,P,c=s(210);!function(e){e.CURRENT="current",e.ALL="all"}(a||(a={})),function(e){e.STATIC="static",e.AUTO="auto"}(P||(P={}));var O,C,L=(0,c.toType)("showOverflowTooltipMode",{default:P.AUTO});!function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(O||(O={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.NONE=""}(C||(C={}));var b,E=(0,c.toType)("columnType",{default:O.NONE}),_=(0,c.toType)("columnType",{default:C.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(b||(b={}));var h,m=(0,c.toType)("full",{default:b.FULL});!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(h||(h={}));var g,v=(0,c.toType)("columnSize",{default:h.SMALL});!function(e){e.LEFT="left",e.RIGHT="right"}(g||(g={}));var N,I,R=(0,c.string)(),S=(0,c.toType)("sortScope",{}).def(a.CURRENT);!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(N||(N={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(I||(I={}));var A={label:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),field:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),render:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),width:n.PropTypes.oneOfType([n.PropTypes.number.def(void 0),n.PropTypes.string.def("auto")]),minWidth:n.PropTypes.oneOfType([n.PropTypes.number.def(void 0),n.PropTypes.string.def("auto")]).def(30),columnKey:n.PropTypes.string.def(""),showOverflowTooltip:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.shape({content:n.PropTypes.string.def(""),disabled:n.PropTypes.bool.def(!1),watchCellResize:n.PropTypes.bool.def(!0),mode:L})]).def(void 0),type:E,resizable:n.PropTypes.bool.def(!0),fixed:n.PropTypes.oneOfType([n.PropTypes.bool,R]).def(!1),sort:n.PropTypes.oneOfType([n.PropTypes.shape({sortFn:n.PropTypes.func.def(void 0),sortScope:S,value:n.PropTypes.string.def(d.NULL)}),n.PropTypes.bool,n.PropTypes.string]).def(!1),filter:n.PropTypes.oneOfType([n.PropTypes.shape({list:n.PropTypes.arrayOf(n.PropTypes.any).def([]),filterFn:n.PropTypes.func.def(void 0),match:m,checked:n.PropTypes.arrayOf(n.PropTypes.any).def([]),filterScope:S,btnSave:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.string]).def("确定"),btnReset:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.string]).def("重置")}),n.PropTypes.bool,n.PropTypes.string]).def(!1),colspan:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return 1})),n.PropTypes.number.def(1)]),rowspan:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return 1})),n.PropTypes.number.def(1)]),align:_,className:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func])};n.PropTypes.arrayOf(n.PropTypes.any).def([]),n.PropTypes.arrayOf(n.PropTypes.shape(A).loose).def([]),n.PropTypes.oneOfType([n.PropTypes.number.def(-1),n.PropTypes.arrayOf(n.PropTypes.number.def(-1))]),(0,c.toType)("columnPick",{}).def(N.DISABLED),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def("auto"),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def(84),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def("auto"),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.func]).def(42),n.PropTypes.number.def(42),n.PropTypes.bool.def(!0),n.PropTypes.shape({height:n.PropTypes.number.def(42),isShow:n.PropTypes.bool.def(!0),cellFn:n.PropTypes.func.def(void 0)}),n.PropTypes.bool.def(!1),n.PropTypes.oneOfType([n.PropTypes.arrayOf((0,c.toType)("boderType",{})),n.PropTypes.string]).def([p.ROW]),n.PropTypes.oneOfType([n.PropTypes.bool.def(!1),n.PropTypes.object.def({})]).def(!1),n.PropTypes.number.def(60),n.PropTypes.bool.def(!1),n.PropTypes.string,n.PropTypes.oneOfType([n.PropTypes.shape({fields:n.PropTypes.arrayOf(n.PropTypes.shape({label:n.PropTypes.string,field:n.PropTypes.string,disabled:n.PropTypes.bool})),checked:n.PropTypes.arrayOf(n.PropTypes.string),limit:n.PropTypes.number.def(0),size:v,sizeList:n.PropTypes.shape([]),showLineHeight:n.PropTypes.bool.def(!0)}),n.PropTypes.bool]).def(!1),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.object,n.PropTypes.bool]).def(void 0),n.PropTypes.bool.def(!1),n.PropTypes.string.def(""),n.PropTypes.func.def(void 0),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func]).def("__$table_row_index"),n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.shape({content:n.PropTypes.string.def(""),disabled:n.PropTypes.bool.def(!1),watchCellResize:n.PropTypes.bool.def(!0),mode:L})]).def(!1),n.PropTypes.bool.def(!1),n.PropTypes.oneOf(l).def(r.HIGHLIGHT),n.PropTypes.shape({}).def({}),n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return!0})),n.PropTypes.bool.def(!0)]).def(!0),(0,c.toType)("ResizerWay",{default:I.DEBOUNCE}),n.PropTypes.bool.def(!0);const U=(0,T.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},A),{prop:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),index:n.PropTypes.number.def(void 0)}),setup:function(e){return{initColumns:(0,T.inject)("InitColumns",(function(e){}),!1),bkTableCache:(0,T.inject)("BKTableCahce",{queueStack:function(e,o){return null==o?void 0:o()}}),column:(0,T.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 o=e._.parent.vnode.children.default()||[],p=[];!function e(o){Array.isArray(o)&&o.forEach((function(o){var r,n,s,t=!0;if("TableColumn"===(null===(r=o.type)||void 0===r?void 0:r.name)){t=Object.hasOwnProperty.call(o.props||{},"key");var f=Object.assign(Object.assign({},o.props),{field:o.props.prop||o.props.field,render:null===(n=o.children)||void 0===n?void 0:n.default});p.push((0,T.unref)(f))}(null===(s=o.children)||void 0===s?void 0:s.length)&&t&&e(o.children)}))}(o),e.initColumns(p)}))},updateColumnDefineByIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=Object.assign(Object.assign({},this.$props),{field:this.$props.prop||this.$props.field,render:this.$slots.default});this.initColumns((0,T.unref)(o),e)}},render:function(){var e,o;return(0,T.createVNode)(T.Fragment,null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e,{row:{}})])}}),D=(0,n.withInstall)(U)})(),t})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.442",
3
+ "version": "0.0.1-beta.443",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",