bkui-vue 1.0.0 → 1.0.2
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 +47 -47
- package/dist/index.esm.js +10405 -10394
- package/dist/index.umd.js +47 -47
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +19 -19
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +82 -132
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/backtop/index.d.ts +69 -117
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +120 -153
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +19 -20
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +129 -158
- package/lib/card/index.js +20 -22
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +233 -234
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +119 -161
- package/lib/checkbox/index.js +39 -41
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +381 -438
- package/lib/collapse/index.d.ts +144 -168
- package/lib/collapse/index.js +21 -21
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +128 -154
- package/lib/color-picker/index.js +25 -28
- package/lib/config-provider/config-provider.d.ts +9 -0
- package/lib/config-provider/index.d.ts +168 -223
- package/lib/config-provider/index.js +19 -19
- package/lib/config-provider/token.d.ts +3 -0
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +19 -19
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +3 -3
- package/lib/date-picker/index.d.ts +384 -351
- package/lib/date-picker/index.js +92 -104
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/index.d.ts +355 -309
- package/lib/dialog/index.js +227 -228
- package/lib/directives/index.js +27 -27
- package/lib/divider/index.d.ts +57 -111
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +17 -17
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +18 -19
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/form/form.css +3 -0
- package/lib/form/form.d.ts +1 -1
- package/lib/form/form.less +3 -0
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +29 -27
- package/lib/icon/angle-double-down-line.js +21 -21
- package/lib/icon/angle-double-left-line.js +21 -21
- package/lib/icon/angle-double-left.js +21 -21
- package/lib/icon/angle-double-right-line.js +21 -21
- package/lib/icon/angle-double-right.js +21 -21
- package/lib/icon/angle-double-up-line.js +21 -21
- package/lib/icon/angle-down-fill.js +21 -21
- package/lib/icon/angle-down-line.js +21 -21
- package/lib/icon/angle-down.js +21 -21
- package/lib/icon/angle-left.js +21 -21
- package/lib/icon/angle-right.js +21 -21
- package/lib/icon/angle-up-fill.js +21 -21
- package/lib/icon/angle-up.js +21 -21
- package/lib/icon/archive-fill.js +21 -21
- package/lib/icon/arrows-left.js +21 -21
- package/lib/icon/arrows-right.js +21 -21
- package/lib/icon/assistant.js +21 -21
- package/lib/icon/audio-fill.js +21 -21
- package/lib/icon/bk.js +21 -21
- package/lib/icon/circle.js +21 -21
- package/lib/icon/close-line.js +21 -21
- package/lib/icon/close.js +21 -21
- package/lib/icon/code.js +21 -21
- package/lib/icon/cog-shape.js +21 -21
- package/lib/icon/collapse-left.js +21 -21
- package/lib/icon/copy-shape.js +21 -21
- package/lib/icon/copy.js +21 -21
- package/lib/icon/data-shape.js +21 -21
- package/lib/icon/del.js +21 -21
- package/lib/icon/doc-fill.js +21 -21
- package/lib/icon/done.js +21 -21
- package/lib/icon/down-shape.js +21 -21
- package/lib/icon/down-small.js +21 -21
- package/lib/icon/edit-line.js +21 -21
- package/lib/icon/ellipsis.js +21 -21
- package/lib/icon/enlarge-line.js +21 -21
- package/lib/icon/error.js +21 -21
- package/lib/icon/excel-fill.js +21 -21
- package/lib/icon/exclamation-circle-shape.js +21 -21
- package/lib/icon/eye.js +21 -21
- package/lib/icon/filliscreen-line.js +21 -21
- package/lib/icon/fix-line.js +21 -21
- package/lib/icon/fix-shape.js +21 -21
- package/lib/icon/folder-open.js +21 -21
- package/lib/icon/folder-shape-open.js +21 -21
- package/lib/icon/folder-shape.js +21 -21
- package/lib/icon/folder.js +21 -21
- package/lib/icon/funnel.js +21 -21
- package/lib/icon/grag-fill.js +21 -21
- package/lib/icon/help-document-fill.js +21 -21
- package/lib/icon/help-fill.js +21 -21
- package/lib/icon/help.js +21 -21
- package/lib/icon/image-fill.js +22 -22
- package/lib/icon/img-error.js +22 -22
- package/lib/icon/img-placehoulder.js +22 -22
- package/lib/icon/index.js +192 -192
- package/lib/icon/info-line.js +22 -22
- package/lib/icon/info.js +22 -22
- package/lib/icon/left-shape.js +22 -22
- package/lib/icon/left-turn-line.js +22 -22
- package/lib/icon/loading.js +22 -22
- package/lib/icon/narrow-line.js +22 -22
- package/lib/icon/original.js +22 -22
- package/lib/icon/pdf-fill.js +22 -22
- package/lib/icon/play-shape.js +22 -22
- package/lib/icon/plus.js +22 -22
- package/lib/icon/ppt-fill.js +22 -22
- package/lib/icon/qq.js +22 -22
- package/lib/icon/right-shape.js +22 -22
- package/lib/icon/right-turn-line.js +22 -22
- package/lib/icon/search.js +22 -22
- package/lib/icon/share.js +22 -22
- package/lib/icon/spinner.js +22 -22
- package/lib/icon/success.js +22 -22
- package/lib/icon/switcher-loading.js +22 -22
- package/lib/icon/text-file.js +22 -22
- package/lib/icon/text-fill.js +22 -22
- package/lib/icon/transfer.js +22 -22
- package/lib/icon/tree-application-shape.js +22 -22
- package/lib/icon/unfull-screen.js +22 -22
- package/lib/icon/unvisible.js +22 -22
- package/lib/icon/up-shape.js +22 -22
- package/lib/icon/upload.js +22 -22
- package/lib/icon/video-fill.js +22 -22
- package/lib/icon/warn.js +22 -22
- package/lib/icon/weixin-pro.js +22 -22
- package/lib/icon/weixin.js +22 -22
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +19 -19
- package/lib/info-box/index.js +231 -232
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +256 -258
- package/lib/link/index.d.ts +73 -122
- package/lib/loading/index.d.ts +132 -158
- package/lib/loading/index.js +23 -25
- package/lib/loading/loading.d.ts +4 -4
- package/lib/locale/index.js +8 -12
- package/lib/locale/lang/en.d.ts +3 -0
- package/lib/menu/index.d.ts +51 -112
- package/lib/menu/index.js +25 -25
- package/lib/message/index.js +28 -30
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +261 -249
- package/lib/modal/index.js +492 -33
- package/lib/navigation/index.d.ts +152 -188
- package/lib/notify/index.js +22 -24
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +314 -242
- package/lib/overflow-title/index.js +1 -1
- package/lib/pagination/index.d.ts +194 -205
- package/lib/pagination/index.js +49 -56
- package/lib/plugin-popover/index.js +192 -98
- package/lib/pop-confirm/index.d.ts +126 -159
- package/lib/pop-confirm/index.js +0 -1
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +374 -330
- package/lib/popover/index.js +192 -98
- package/lib/popover2/index.d.ts +8 -83
- package/lib/preset.d.ts +287 -2
- package/lib/preset.js +3 -1
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +225 -226
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +19 -19
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +83 -135
- package/lib/radio/index.js +41 -43
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +19 -20
- package/lib/resize-layout/index.d.ts +156 -185
- package/lib/resize-layout/index.js +20 -21
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/search-select/index.d.ts +292 -327
- package/lib/search-select/index.js +239 -240
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +3 -3
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/select/index.d.ts +1234 -1135
- package/lib/select/index.js +259 -262
- package/lib/select/select.d.ts +121 -161
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/helper.d.ts +4 -0
- package/lib/shared/index.js +81 -63
- package/lib/sideslider/index.d.ts +247 -233
- package/lib/sideslider/index.js +241 -247
- package/lib/slider/index.d.ts +204 -204
- package/lib/slider/index.js +208 -209
- package/lib/steps/index.d.ts +114 -150
- package/lib/steps/index.js +227 -228
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +18 -18
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +20 -22
- package/lib/tab/index.d.ts +199 -211
- package/lib/tab/index.js +23 -25
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/index.d.ts +605 -593
- package/lib/table/index.js +81 -95
- package/lib/table/plugins/use-pagination.d.ts +1 -1
- package/lib/table/table.d.ts +1 -1
- package/lib/table/use-common.d.ts +67 -34
- package/lib/table-column/index.d.ts +207 -243
- package/lib/table-column/index.js +18 -19
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +19 -19
- package/lib/tag-input/index.d.ts +690 -498
- package/lib/tag-input/index.js +54 -62
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +442 -385
- package/lib/timeline/index.d.ts +50 -109
- package/lib/timeline/index.js +6 -6
- package/lib/transfer/index.d.ts +191 -206
- package/lib/tree/index.d.ts +322 -288
- package/lib/tree/index.js +36 -39
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +281 -254
- package/lib/upload/index.js +254 -257
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +337 -242
- package/lib/virtual-render/index.js +30 -30
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +7 -13
package/lib/table/index.js
CHANGED
@@ -72,38 +72,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
72
72
|
var y = x => () => x
|
73
73
|
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
74
74
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
75
|
-
function typeof_typeof(
|
75
|
+
function typeof_typeof(o) {
|
76
76
|
"@babel/helpers - typeof";
|
77
77
|
|
78
|
-
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
79
|
-
return typeof
|
80
|
-
} : function (
|
81
|
-
return
|
82
|
-
}, typeof_typeof(
|
78
|
+
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
79
|
+
return typeof o;
|
80
|
+
} : function (o) {
|
81
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
82
|
+
}, typeof_typeof(o);
|
83
83
|
}
|
84
84
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
85
85
|
|
86
|
-
function
|
87
|
-
if (
|
88
|
-
var
|
89
|
-
if (
|
90
|
-
var
|
91
|
-
if (
|
86
|
+
function toPrimitive(t, r) {
|
87
|
+
if ("object" != typeof_typeof(t) || !t) return t;
|
88
|
+
var e = t[Symbol.toPrimitive];
|
89
|
+
if (void 0 !== e) {
|
90
|
+
var i = e.call(t, r || "default");
|
91
|
+
if ("object" != typeof_typeof(i)) return i;
|
92
92
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
93
93
|
}
|
94
|
-
return (
|
94
|
+
return ("string" === r ? String : Number)(t);
|
95
95
|
}
|
96
96
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
97
97
|
|
98
98
|
|
99
|
-
function
|
100
|
-
var
|
101
|
-
return typeof_typeof(
|
99
|
+
function toPropertyKey(t) {
|
100
|
+
var i = toPrimitive(t, "string");
|
101
|
+
return "symbol" == typeof_typeof(i) ? i : String(i);
|
102
102
|
}
|
103
103
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
104
104
|
|
105
105
|
function defineProperty_defineProperty(obj, key, value) {
|
106
|
-
key =
|
106
|
+
key = toPropertyKey(key);
|
107
107
|
if (key in obj) {
|
108
108
|
Object.defineProperty(obj, key, {
|
109
109
|
value: value,
|
@@ -122,7 +122,6 @@ var external_vue_y = x => () => x
|
|
122
122
|
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
123
123
|
;// CONCATENATED MODULE: ../../packages/table/src/const.ts
|
124
124
|
|
125
|
-
var _DEF_COLOR;
|
126
125
|
/*
|
127
126
|
* Tencent is pleased to support the open source community by making
|
128
127
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -218,7 +217,7 @@ var IHeadColor;
|
|
218
217
|
/**
|
219
218
|
* 根据表格的使用场景,表头支持颜色自定义,默认提供的选项:FAFBFD、F0F1F5,尽量一个项目选用同一种颜色。
|
220
219
|
*/
|
221
|
-
var DEF_COLOR = (
|
220
|
+
var DEF_COLOR = defineProperty_defineProperty(defineProperty_defineProperty({}, IHeadColor.DEF1, '#FAFBFD'), IHeadColor.DEF2, '#F0F1F5');
|
222
221
|
var SETTING_SIZE = {
|
223
222
|
large: 78,
|
224
223
|
medium: 60,
|
@@ -808,7 +807,7 @@ function _defineProperties(target, props) {
|
|
808
807
|
descriptor.enumerable = descriptor.enumerable || false;
|
809
808
|
descriptor.configurable = true;
|
810
809
|
if ("value" in descriptor) descriptor.writable = true;
|
811
|
-
Object.defineProperty(target,
|
810
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
812
811
|
}
|
813
812
|
}
|
814
813
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -874,7 +873,7 @@ var BkTableCache = /*#__PURE__*/function () {
|
|
874
873
|
|
875
874
|
;// CONCATENATED MODULE: ../../packages/table/src/events.ts
|
876
875
|
|
877
|
-
var _EMIT_EVENT_TYPES
|
876
|
+
var _EMIT_EVENT_TYPES;
|
878
877
|
/*
|
879
878
|
* Tencent is pleased to support the open source community by making
|
880
879
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -976,8 +975,8 @@ var EVENT_SCROLL_FN = function EVENT_SCROLL_FN(_args) {
|
|
976
975
|
var EVENT_DRAGEND_FN = function EVENT_DRAGEND_FN(_args) {
|
977
976
|
return true;
|
978
977
|
};
|
979
|
-
var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.COLUMN_PICK, EVENT_COL_PICK),
|
980
|
-
var CELL_EVENT_TYPES = (
|
978
|
+
var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.COLUMN_PICK, EVENT_COL_PICK), EMIT_EVENTS.COLUMN_FILTER, EVENT_COL_FILTER), EMIT_EVENTS.COLUMN_SORT, EVENT_COL_SORT), EMIT_EVENTS.COLUMN_FILTER_SAVE, EVENT_COL_FILTER_SAVE), EMIT_EVENTS.ROW_CLICK, EVENT_MOUSE_FN), EMIT_EVENTS.ROW_DBL_CLICK, EVENT_MOUSE_FN), EMIT_EVENTS.ROW_EXPAND_CLICK, EVENT_EXPAND_FN), EMIT_EVENTS.ROW_SELECT, EVENT_ROW_SELECT_FN), EMIT_EVENTS.ROW_SELECT_ALL, EVENT_ROW_SELECT_ALL_FN), EMIT_EVENTS.ROW_SELECT_CHANGE, EVENT_ROW_SELECT_CHANGE_FN), defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.PAGE_LIMIT_CHANGE, EVENT_PAGE_FN), EMIT_EVENTS.PAGE_VALUE_CHANGE, EVENT_PAGE_FN), EMIT_EVENTS.SETTING_CHANGE, EVENT_SETTING_FN), EMIT_EVENTS.SCROLL_BOTTOM, EVENT_SCROLL_FN), EMIT_EVENTS.CELL_CLICK, EVENT_CELL_FN), EMIT_EVENTS.CELL_DBL_CLICK, EVENT_CELL_FN), EMIT_EVENTS.ROW_MOUSE_ENTER, EVENT_MOUSE_FN), EMIT_EVENTS.ROW_MOUSE_LEAVE, EVENT_MOUSE_FN), EMIT_EVENTS.DRAG_END, EVENT_DRAGEND_FN));
|
979
|
+
var CELL_EVENT_TYPES = defineProperty_defineProperty(defineProperty_defineProperty({}, EMIT_EVENTS.NATIVE_CLICK, EVENT_MOUSE_FN), EMIT_EVENTS.NATIVE_DBL_CLICK, EVENT_MOUSE_FN);
|
981
980
|
;// CONCATENATED MODULE: external "lodash/isElement"
|
982
981
|
var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
983
982
|
var isElement_y = x => () => x
|
@@ -988,8 +987,8 @@ var throttle_y = x => () => x
|
|
988
987
|
const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
|
989
988
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-column-resize.tsx
|
990
989
|
|
991
|
-
function ownKeys(
|
992
|
-
function _objectSpread(
|
990
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
991
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
993
992
|
/*
|
994
993
|
* Tencent is pleased to support the open source community by making
|
995
994
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1020,7 +1019,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1020
1019
|
|
1021
1020
|
|
1022
1021
|
/* harmony default export */ const use_column_resize = (function (tableResp) {
|
1023
|
-
var _handler;
|
1024
1022
|
var immediate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
1025
1023
|
var head = arguments.length > 2 ? arguments[2] : undefined;
|
1026
1024
|
var formatData = tableResp.formatData,
|
@@ -1070,7 +1068,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1070
1068
|
dragOffsetX.value = -1000;
|
1071
1069
|
dragColumn = null;
|
1072
1070
|
var targetTable = (_head$value = head.value) === null || _head$value === void 0 ? void 0 : _head$value.querySelector('table');
|
1073
|
-
targetTable === null || targetTable === void 0
|
1071
|
+
targetTable === null || targetTable === void 0 || targetTable.querySelectorAll('th').forEach(function (th) {
|
1074
1072
|
return th.style.setProperty('user-select', 'inherit');
|
1075
1073
|
});
|
1076
1074
|
};
|
@@ -1093,7 +1091,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1093
1091
|
var setChildrenNodeCursor = function setChildrenNodeCursor(root, cursor) {
|
1094
1092
|
if ((0,isElement_namespaceObject["default"])(root)) {
|
1095
1093
|
var _root$style, _root$childNodes;
|
1096
|
-
(_root$style = root.style) === null || _root$style === void 0
|
1094
|
+
(_root$style = root.style) === null || _root$style === void 0 || _root$style.setProperty('cursor', cursor);
|
1097
1095
|
if (((_root$childNodes = root.childNodes) === null || _root$childNodes === void 0 ? void 0 : _root$childNodes.length) > 0) {
|
1098
1096
|
root.childNodes.forEach(function (node) {
|
1099
1097
|
return setChildrenNodeCursor(node, cursor);
|
@@ -1101,7 +1099,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1101
1099
|
}
|
1102
1100
|
}
|
1103
1101
|
};
|
1104
|
-
var handler = (
|
1102
|
+
var handler = defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, EVENTS.MOUSE_DOWN, function (e, column) {
|
1105
1103
|
if (!isInDragSection) {
|
1106
1104
|
return;
|
1107
1105
|
}
|
@@ -1118,7 +1116,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1118
1116
|
updateOffsetX(e)();
|
1119
1117
|
document.addEventListener('mouseup', handleMouseUp);
|
1120
1118
|
document.addEventListener('mousemove', handleMouseMove);
|
1121
|
-
}),
|
1119
|
+
}), EVENTS.MOUSE_MOVE, function (e, _column) {
|
1122
1120
|
if (isMouseDown && !isDraging) {
|
1123
1121
|
isDraging = true;
|
1124
1122
|
}
|
@@ -1143,13 +1141,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1143
1141
|
isInDragSection = false;
|
1144
1142
|
}
|
1145
1143
|
}
|
1146
|
-
}),
|
1144
|
+
}), EVENTS.MOUSE_OUT, function (e, _column) {
|
1147
1145
|
var target = e.target.closest('th');
|
1148
1146
|
if (!isDraging) {
|
1149
1147
|
setChildrenNodeCursor(target, '');
|
1150
1148
|
target.classList.remove('col-resize-hover');
|
1151
1149
|
}
|
1152
|
-
})
|
1150
|
+
});
|
1153
1151
|
var getEventName = function getEventName(event) {
|
1154
1152
|
return "".concat(pluginName, "_").concat(event);
|
1155
1153
|
};
|
@@ -1605,8 +1603,8 @@ function v4(options, buf, offset) {
|
|
1605
1603
|
|
1606
1604
|
|
1607
1605
|
|
1608
|
-
function use_pagination_ownKeys(
|
1609
|
-
function use_pagination_objectSpread(
|
1606
|
+
function use_pagination_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
1607
|
+
function use_pagination_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? use_pagination_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : use_pagination_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1610
1608
|
/*
|
1611
1609
|
* Tencent is pleased to support the open source community by making
|
1612
1610
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2721,8 +2719,8 @@ var index = (function () {
|
|
2721
2719
|
|
2722
2720
|
|
2723
2721
|
var _this = undefined;
|
2724
|
-
function utils_ownKeys(
|
2725
|
-
function utils_objectSpread(
|
2722
|
+
function utils_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
2723
|
+
function utils_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? utils_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : utils_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
2726
2724
|
/*
|
2727
2725
|
* Tencent is pleased to support the open source community by making
|
2728
2726
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3116,8 +3114,7 @@ var getSortFn = function getSortFn(column, sortType) {
|
|
3116
3114
|
};
|
3117
3115
|
};
|
3118
3116
|
var getNextSortType = function getNextSortType(sortType) {
|
3119
|
-
var
|
3120
|
-
var steps = (_steps = {}, defineProperty_defineProperty(_steps, SORT_OPTION.NULL, 3), defineProperty_defineProperty(_steps, SORT_OPTION.ASC, 1), defineProperty_defineProperty(_steps, SORT_OPTION.DESC, 2), _steps);
|
3117
|
+
var steps = defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, SORT_OPTION.NULL, 3), SORT_OPTION.ASC, 1), SORT_OPTION.DESC, 2);
|
3121
3118
|
if (steps[sortType] === undefined) {
|
3122
3119
|
return SORT_OPTION.ASC;
|
3123
3120
|
}
|
@@ -3186,8 +3183,8 @@ var resolveColumnSortProp = function resolveColumnSortProp(col, props) {
|
|
3186
3183
|
;// CONCATENATED MODULE: ../../packages/table/src/use-attributes.ts
|
3187
3184
|
|
3188
3185
|
|
3189
|
-
function use_attributes_ownKeys(
|
3190
|
-
function use_attributes_objectSpread(
|
3186
|
+
function use_attributes_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3187
|
+
function use_attributes_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? use_attributes_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : use_attributes_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
3191
3188
|
/*
|
3192
3189
|
* Tencent is pleased to support the open source community by making
|
3193
3190
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3316,7 +3313,6 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3316
3313
|
var skipColNum = 0;
|
3317
3314
|
var needColSpan = neepColspanOrRowspan(['colspan']);
|
3318
3315
|
(formatData.columns || []).forEach(function (col, index) {
|
3319
|
-
var _Object$assign;
|
3320
3316
|
var _ref4 = needColSpan ? getColumnSpanConfig(col, index, skipColNum) : {
|
3321
3317
|
skipCol: false,
|
3322
3318
|
skipColumnNum: 0,
|
@@ -3342,17 +3338,17 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3342
3338
|
}
|
3343
3339
|
return fn;
|
3344
3340
|
};
|
3345
|
-
formatData.columnSchema.set(col, (_formatData$columnSch = {}, defineProperty_defineProperty(_formatData$columnSch, COLUMN_ATTRIBUTE.CALC_WIDTH, undefined),
|
3341
|
+
formatData.columnSchema.set(col, (_formatData$columnSch = {}, defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(_formatData$columnSch, COLUMN_ATTRIBUTE.CALC_WIDTH, undefined), COLUMN_ATTRIBUTE.RESIZE_WIDTH, undefined), COLUMN_ATTRIBUTE.COL_MIN_WIDTH, resolveMinWidth(col)), COLUMN_ATTRIBUTE.LISTENERS, new Map()), COLUMN_ATTRIBUTE.WIDTH, col.width), COLUMN_ATTRIBUTE.IS_HIDDEN, isColumnHidden(formatData.settings.fields, col, formatData.settings.checked)), COLUMN_ATTRIBUTE.COL_SORT_TYPE, type), COLUMN_ATTRIBUTE.COL_SORT_FN, getSortFn(col)), COLUMN_ATTRIBUTE.COL_FILTER_FN, undefined), COLUMN_ATTRIBUTE.COL_FILTER_SCOPE, undefined), defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(_formatData$columnSch, COLUMN_ATTRIBUTE.COL_SORT_SCOPE, scope), COLUMN_ATTRIBUTE.COL_SORT_ACTIVE, active), COLUMN_ATTRIBUTE.COL_IS_DRAG, false), COLUMN_ATTRIBUTE.COL_SPAN, {
|
3346
3342
|
skipCol: skipCol,
|
3347
3343
|
skipColumnNum: skipColumnNum,
|
3348
3344
|
skipColLen: skipColLen
|
3349
|
-
}),
|
3345
|
+
}), COLUMN_ATTRIBUTE.COL_UID, esm_browser_v4())));
|
3350
3346
|
}
|
3351
|
-
Object.assign(formatData.columnSchema.get(col), (
|
3347
|
+
Object.assign(formatData.columnSchema.get(col), defineProperty_defineProperty(defineProperty_defineProperty({}, COLUMN_ATTRIBUTE.COL_SPAN, {
|
3352
3348
|
skipCol: skipCol,
|
3353
3349
|
skipColumnNum: skipColumnNum,
|
3354
3350
|
skipColLen: skipColLen
|
3355
|
-
}),
|
3351
|
+
}), COLUMN_ATTRIBUTE.COL_MIN_WIDTH, resolveMinWidth(col)));
|
3356
3352
|
});
|
3357
3353
|
};
|
3358
3354
|
var getColumnSpanConfig = function getColumnSpanConfig(col, index, skipColNum) {
|
@@ -3583,7 +3579,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3583
3579
|
* @param data
|
3584
3580
|
*/
|
3585
3581
|
var formatDataSchema = function formatDataSchema(data) {
|
3586
|
-
var _formatData$data
|
3582
|
+
var _formatData$data;
|
3587
3583
|
formatData.data.length = 0;
|
3588
3584
|
(_formatData$data = formatData.data).push.apply(_formatData$data, _toConsumableArray(data));
|
3589
3585
|
var hasSelectedRow = false;
|
@@ -3597,8 +3593,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3597
3593
|
hasUnSelectedRow = true;
|
3598
3594
|
}
|
3599
3595
|
if (!formatData.dataSchema.has(row)) {
|
3600
|
-
|
3601
|
-
formatData.dataSchema.set(row, (_formatData$dataSchem3 = {}, defineProperty_defineProperty(_formatData$dataSchem3, TABLE_ROW_ATTRIBUTE.ROW_EXPAND, false), defineProperty_defineProperty(_formatData$dataSchem3, TABLE_ROW_ATTRIBUTE.ROW_SELECTION, isSelected), defineProperty_defineProperty(_formatData$dataSchem3, TABLE_ROW_ATTRIBUTE.ROW_UID, rowId), defineProperty_defineProperty(_formatData$dataSchem3, TABLE_ROW_ATTRIBUTE.ROW_INDEX, index + 1), defineProperty_defineProperty(_formatData$dataSchem3, TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, false), _formatData$dataSchem3));
|
3596
|
+
formatData.dataSchema.set(row, defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, TABLE_ROW_ATTRIBUTE.ROW_EXPAND, false), TABLE_ROW_ATTRIBUTE.ROW_SELECTION, isSelected), TABLE_ROW_ATTRIBUTE.ROW_UID, rowId), TABLE_ROW_ATTRIBUTE.ROW_INDEX, index + 1), TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, false));
|
3602
3597
|
}
|
3603
3598
|
// 当传入的data改变时,更新相关属性
|
3604
3599
|
// ROW_EXPAND & ROW_SELECTION & ROW_UID 不做更新
|
@@ -3606,7 +3601,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3606
3601
|
rowId = target[TABLE_ROW_ATTRIBUTE.ROW_UID];
|
3607
3602
|
target[TABLE_ROW_ATTRIBUTE.ROW_INDEX] = index + 1;
|
3608
3603
|
});
|
3609
|
-
formatData.dataSchema.set(CHECK_ALL_OBJ, (
|
3604
|
+
formatData.dataSchema.set(CHECK_ALL_OBJ, defineProperty_defineProperty(defineProperty_defineProperty({}, TABLE_ROW_ATTRIBUTE.ROW_SELECTION, hasSelectedRow), TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, hasSelectedRow && hasUnSelectedRow));
|
3610
3605
|
formatData.dataSchema.set(NEED_COL_ROW_SPAN, defineProperty_defineProperty({}, TABLE_ROW_ATTRIBUTE.ROW_SPAN, neepColspanOrRowspan(['rowspan'])));
|
3611
3606
|
};
|
3612
3607
|
/**
|
@@ -3685,7 +3680,6 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3685
3680
|
setRowSelection(row, !getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION));
|
3686
3681
|
};
|
3687
3682
|
var toggleAllSelection = function toggleAllSelection(value) {
|
3688
|
-
var _formatData$dataSchem7;
|
3689
3683
|
var val = value !== null && value !== void 0 ? value : !isCheckedAll();
|
3690
3684
|
if (props.acrossAll) {
|
3691
3685
|
formatData.data.forEach(function (row) {
|
@@ -3696,7 +3690,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3696
3690
|
pageData.forEach(function (row) {
|
3697
3691
|
return setRowSelection(row, val);
|
3698
3692
|
});
|
3699
|
-
formatData.dataSchema.set(CHECK_ALL_OBJ, (
|
3693
|
+
formatData.dataSchema.set(CHECK_ALL_OBJ, defineProperty_defineProperty(defineProperty_defineProperty({}, TABLE_ROW_ATTRIBUTE.ROW_SELECTION, val), TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, false));
|
3700
3694
|
};
|
3701
3695
|
var clearSelection = function clearSelection() {
|
3702
3696
|
formatData.data.forEach(function (row) {
|
@@ -3976,8 +3970,8 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3976
3970
|
});
|
3977
3971
|
;// CONCATENATED MODULE: ../../packages/table/src/use-common.ts
|
3978
3972
|
|
3979
|
-
function use_common_ownKeys(
|
3980
|
-
function use_common_objectSpread(
|
3973
|
+
function use_common_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3974
|
+
function use_common_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? use_common_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : use_common_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
3981
3975
|
/*
|
3982
3976
|
* Tencent is pleased to support the open source community by making
|
3983
3977
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -4018,7 +4012,6 @@ function use_common_objectSpread(target) { for (var i = 1; i < arguments.length;
|
|
4018
4012
|
* @param pageData 当前页数据
|
4019
4013
|
*/
|
4020
4014
|
var useClass = function useClass(props, targetColumns, root, TableSchema, pageData) {
|
4021
|
-
var _classes2;
|
4022
4015
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
4023
4016
|
resolveClassName = _usePrefix.resolveClassName;
|
4024
4017
|
var _useColumn = use_column(props, targetColumns),
|
@@ -4035,10 +4028,9 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4035
4028
|
return hasScrollY.value;
|
4036
4029
|
});
|
4037
4030
|
var tableClass = (0,external_vue_namespaceObject.computed)(function () {
|
4038
|
-
|
4039
|
-
return (0,shared_namespaceObject.classes)((_classes = {}, defineProperty_defineProperty(_classes, resolveClassName('table'), true), defineProperty_defineProperty(_classes, 'has-footer', hasFooter.value), defineProperty_defineProperty(_classes, 'has-scroll-y', hasScrollY.value || props.virtualEnabled), defineProperty_defineProperty(_classes, resolveClassName('table-flex'), props.isFlex), _classes), resolvePropBorderToClassStr(props.border));
|
4031
|
+
return (0,shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table'), true), 'has-footer', hasFooter.value), 'has-scroll-y', hasScrollY.value || props.virtualEnabled), resolveClassName('table-flex'), props.isFlex), resolvePropBorderToClassStr(props.border));
|
4040
4032
|
});
|
4041
|
-
var headClass = (0,shared_namespaceObject.classes)((
|
4033
|
+
var headClass = (0,shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-head'), true), 'has-settings', !!props.settings));
|
4042
4034
|
var resolvedColumns = (0,external_vue_namespaceObject.computed)(function () {
|
4043
4035
|
return getColumns();
|
4044
4036
|
});
|
@@ -4052,8 +4044,7 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4052
4044
|
});
|
4053
4045
|
var contentClass = defineProperty_defineProperty({}, resolveClassName('table-body'), true);
|
4054
4046
|
var footerClass = (0,external_vue_namespaceObject.computed)(function () {
|
4055
|
-
|
4056
|
-
return (0,shared_namespaceObject.classes)((_classes3 = {}, defineProperty_defineProperty(_classes3, resolveClassName('table-footer'), true), defineProperty_defineProperty(_classes3, 'is-hidden', !props.pagination || !props.data.length), _classes3));
|
4047
|
+
return (0,shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-footer'), true), 'is-hidden', !props.pagination || !props.data.length));
|
4057
4048
|
});
|
4058
4049
|
var getTableHeight = function getTableHeight() {
|
4059
4050
|
if (props.height === 'number') {
|
@@ -4086,7 +4077,6 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4086
4077
|
// maxHeight: props.maxHeight,
|
4087
4078
|
};
|
4088
4079
|
});
|
4089
|
-
|
4090
4080
|
var resolvePropHeight = function resolvePropHeight(height, parentHeight) {
|
4091
4081
|
var strHeight = String(height);
|
4092
4082
|
if (/^\d+\.?\d*$/.test(strHeight)) {
|
@@ -4201,8 +4191,7 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4201
4191
|
});
|
4202
4192
|
});
|
4203
4193
|
var tableBodyContentClass = (0,external_vue_namespaceObject.computed)(function () {
|
4204
|
-
|
4205
|
-
return _ref2 = {}, defineProperty_defineProperty(_ref2, resolveClassName('table-body-content'), true), defineProperty_defineProperty(_ref2, resolveClassName('stripe'), props.stripe), defineProperty_defineProperty(_ref2, 'with-virtual-render', props.virtualEnabled), _ref2;
|
4194
|
+
return defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-body-content'), true), resolveClassName('stripe'), props.stripe), 'with-virtual-render', props.virtualEnabled);
|
4206
4195
|
});
|
4207
4196
|
var resizeColumnClass = {
|
4208
4197
|
column_drag_line: true,
|
@@ -4213,8 +4202,7 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4213
4202
|
_bottom: true
|
4214
4203
|
};
|
4215
4204
|
var fixedBottomBorder = (0,external_vue_namespaceObject.computed)(function () {
|
4216
|
-
|
4217
|
-
return _ref3 = {}, defineProperty_defineProperty(_ref3, resolveClassName('fixed-bottom-border'), true), defineProperty_defineProperty(_ref3, '_is-empty', !props.data.length), _ref3;
|
4205
|
+
return defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('fixed-bottom-border'), true), '_is-empty', !props.data.length);
|
4218
4206
|
});
|
4219
4207
|
var columnGhostStyle = {
|
4220
4208
|
zIndex: -1,
|
@@ -4489,7 +4477,7 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
|
|
4489
4477
|
}
|
4490
4478
|
} else {
|
4491
4479
|
var _bkEllipsisIns;
|
4492
|
-
(_bkEllipsisIns = bkEllipsisIns) === null || _bkEllipsisIns === void 0
|
4480
|
+
(_bkEllipsisIns = bkEllipsisIns) === null || _bkEllipsisIns === void 0 || _bkEllipsisIns.destroyInstance(target);
|
4493
4481
|
bkEllipsisIns = null;
|
4494
4482
|
}
|
4495
4483
|
};
|
@@ -4514,7 +4502,7 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
|
|
4514
4502
|
});
|
4515
4503
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
4516
4504
|
var _bkEllipsisIns2;
|
4517
|
-
(_bkEllipsisIns2 = bkEllipsisIns) === null || _bkEllipsisIns2 === void 0
|
4505
|
+
(_bkEllipsisIns2 = bkEllipsisIns) === null || _bkEllipsisIns2 === void 0 || _bkEllipsisIns2.destroyInstance(refRoot.value);
|
4518
4506
|
});
|
4519
4507
|
var hasExplain = props.headExplain || props.column.explain;
|
4520
4508
|
return function () {
|
@@ -4991,7 +4979,7 @@ function _isSlot(s) {
|
|
4991
4979
|
}
|
4992
4980
|
var beforeEventFire = function beforeEventFire(fn) {
|
4993
4981
|
if (props.rowDraggable) {
|
4994
|
-
fn === null || fn === void 0
|
4982
|
+
fn === null || fn === void 0 || fn();
|
4995
4983
|
}
|
4996
4984
|
};
|
4997
4985
|
var getTargetRow = function getTargetRow(event) {
|
@@ -5155,8 +5143,7 @@ function head_filter_isSlot(s) {
|
|
5155
5143
|
deep: true
|
5156
5144
|
});
|
5157
5145
|
var headClass = (0,external_vue_namespaceObject.computed)(function () {
|
5158
|
-
|
5159
|
-
return (0,shared_namespaceObject.classes)((_classes = {}, defineProperty_defineProperty(_classes, resolveClassName('table-head-action'), true), defineProperty_defineProperty(_classes, 'column-filter', true), defineProperty_defineProperty(_classes, '--row-height', "".concat(props.height, "px")), defineProperty_defineProperty(_classes, "active", state.checked.length), defineProperty_defineProperty(_classes, "opened", state.isOpen), _classes));
|
5146
|
+
return (0,shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-head-action'), true), 'column-filter', true), '--row-height', "".concat(props.height, "px")), "active", state.checked.length), "opened", state.isOpen));
|
5160
5147
|
});
|
5161
5148
|
var headFilterContentClass = (0,shared_namespaceObject.classes)(defineProperty_defineProperty({}, resolveClassName('table-head-filter'), true));
|
5162
5149
|
var refVirtualRender = (0,external_vue_namespaceObject.ref)(null);
|
@@ -5373,31 +5360,31 @@ function _arrayWithHoles(arr) {
|
|
5373
5360
|
if (Array.isArray(arr)) return arr;
|
5374
5361
|
}
|
5375
5362
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
5376
|
-
function _iterableToArrayLimit(
|
5377
|
-
var
|
5378
|
-
if (null !=
|
5379
|
-
var
|
5380
|
-
|
5381
|
-
|
5382
|
-
|
5383
|
-
|
5384
|
-
|
5385
|
-
|
5363
|
+
function _iterableToArrayLimit(r, l) {
|
5364
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
5365
|
+
if (null != t) {
|
5366
|
+
var e,
|
5367
|
+
n,
|
5368
|
+
i,
|
5369
|
+
u,
|
5370
|
+
a = [],
|
5371
|
+
f = !0,
|
5372
|
+
o = !1;
|
5386
5373
|
try {
|
5387
|
-
if (
|
5388
|
-
if (Object(
|
5389
|
-
|
5390
|
-
} else for (; !(
|
5391
|
-
} catch (
|
5392
|
-
|
5374
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
5375
|
+
if (Object(t) !== t) return;
|
5376
|
+
f = !1;
|
5377
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
5378
|
+
} catch (r) {
|
5379
|
+
o = !0, n = r;
|
5393
5380
|
} finally {
|
5394
5381
|
try {
|
5395
|
-
if (!
|
5382
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
5396
5383
|
} finally {
|
5397
|
-
if (
|
5384
|
+
if (o) throw n;
|
5398
5385
|
}
|
5399
5386
|
}
|
5400
|
-
return
|
5387
|
+
return a;
|
5401
5388
|
}
|
5402
5389
|
}
|
5403
5390
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
@@ -5790,8 +5777,8 @@ function use_head_cell_isSlot(s) {
|
|
5790
5777
|
|
5791
5778
|
|
5792
5779
|
|
5793
|
-
function use_render_ownKeys(
|
5794
|
-
function use_render_objectSpread(
|
5780
|
+
function use_render_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
5781
|
+
function use_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? use_render_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : use_render_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5795
5782
|
/*
|
5796
5783
|
* Tencent is pleased to support the open source community by making
|
5797
5784
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -6189,8 +6176,7 @@ function use_render_isSlot(s) {
|
|
6189
6176
|
}
|
6190
6177
|
};
|
6191
6178
|
var getColumnClass = function getColumnClass(column, colIndex) {
|
6192
|
-
|
6193
|
-
return _ref3 = {}, defineProperty_defineProperty(_ref3, "".concat(uuid, "-column-").concat(colIndex), false), defineProperty_defineProperty(_ref3, "column_fixed", !!column.fixed), defineProperty_defineProperty(_ref3, "column_fixed_left", !!column.fixed), defineProperty_defineProperty(_ref3, "column_fixed_right", column.fixed === 'right'), _ref3;
|
6179
|
+
return defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, "".concat(uuid, "-column-").concat(colIndex), false), "column_fixed", !!column.fixed), "column_fixed_left", !!column.fixed), "column_fixed_right", column.fixed === 'right');
|
6194
6180
|
};
|
6195
6181
|
var getHeadColumnClass = function getHeadColumnClass(column, colIndex) {
|
6196
6182
|
return use_render_objectSpread({}, getColumnClass(column, colIndex));
|
@@ -6410,8 +6396,8 @@ function use_render_isSlot(s) {
|
|
6410
6396
|
;// CONCATENATED MODULE: ../../packages/table/src/table.tsx
|
6411
6397
|
|
6412
6398
|
|
6413
|
-
function table_ownKeys(
|
6414
|
-
function table_objectSpread(
|
6399
|
+
function table_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
6400
|
+
function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? table_ownKeys(Object(t), !0).forEach(function (r) { defineProperty_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : table_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
6415
6401
|
/*
|
6416
6402
|
* Tencent is pleased to support the open source community by making
|
6417
6403
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -6602,7 +6588,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6602
6588
|
left: 0,
|
6603
6589
|
top: 0
|
6604
6590
|
};
|
6605
|
-
(_refVirtualRender$val = refVirtualRender.value) === null || _refVirtualRender$val === void 0 || (_refVirtualRender$val2 = _refVirtualRender$val.scrollTo) === null || _refVirtualRender$val2 === void 0
|
6591
|
+
(_refVirtualRender$val = refVirtualRender.value) === null || _refVirtualRender$val === void 0 || (_refVirtualRender$val2 = _refVirtualRender$val.scrollTo) === null || _refVirtualRender$val2 === void 0 || _refVirtualRender$val2.call(_refVirtualRender$val, option);
|
6606
6592
|
};
|
6607
6593
|
var getRoot = function getRoot() {
|
6608
6594
|
return root.value;
|
@@ -10,7 +10,7 @@ export declare const resolvePaginationOption: (propPagination: any, defVal: any)
|
|
10
10
|
declare const _default: (props: TablePropTypes) => {
|
11
11
|
pageData: any[];
|
12
12
|
indexData: import("vue").ComputedRef<any[]>;
|
13
|
-
localPagination: any
|
13
|
+
localPagination: import("vue").Ref<any>;
|
14
14
|
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
|
15
15
|
resolvePageDataBySortList: (multiCol?: any) => void;
|
16
16
|
resetStartEndIndex: () => void;
|
package/lib/table/table.d.ts
CHANGED
@@ -485,7 +485,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
485
485
|
[key: string]: any;
|
486
486
|
};
|
487
487
|
minHeight: string | number;
|
488
|
-
columns: Column[];
|
489
488
|
checked: unknown[];
|
490
489
|
emptyText: string;
|
491
490
|
cellClass: any;
|
@@ -495,6 +494,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
495
494
|
[key: string]: any;
|
496
495
|
};
|
497
496
|
columnPick: "disabled" | "single" | "multi";
|
497
|
+
columns: Column[];
|
498
498
|
stripe: boolean;
|
499
499
|
rowHeight: import("./props").RowHeightFunctionNumber;
|
500
500
|
showHead: boolean;
|