bkui-vue 0.0.3-beta.2 → 0.0.3-beta.2-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 +48 -48
- package/dist/index.esm.js +10567 -10537
- package/dist/index.umd.js +48 -48
- 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 +380 -437
- 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/index.d.ts +156 -223
- package/lib/config-provider/index.js +19 -19
- 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 +345 -302
- 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.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +25 -26
- 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 +229 -230
- 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 +130 -156
- package/lib/loading/index.js +23 -25
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +0 -4
- 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 +251 -246
- package/lib/modal/index.js +24 -24
- 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/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/index.js +62 -64
- package/lib/sideslider/index.d.ts +237 -226
- package/lib/sideslider/index.js +227 -227
- 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 +161 -132
- package/lib/table/plugins/use-pagination.d.ts +3 -2
- package/lib/table/table.css +12 -5
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +15 -5
- package/lib/table/table.variable.css +12 -5
- package/lib/table/use-attributes.d.ts +40 -1
- package/lib/table/use-common.d.ts +68 -34
- package/lib/table-column/index.d.ts +206 -242
- 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 +334 -293
- 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 +1 -1
package/lib/table/index.js
CHANGED
@@ -64,38 +64,38 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
64
64
|
var y = x => () => x
|
65
65
|
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.RenderType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.debounce, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.hasOverflowEllipsis, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.isElement, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
|
66
66
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
67
|
-
function typeof_typeof(
|
67
|
+
function typeof_typeof(o) {
|
68
68
|
"@babel/helpers - typeof";
|
69
69
|
|
70
|
-
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
71
|
-
return typeof
|
72
|
-
} : function (
|
73
|
-
return
|
74
|
-
}, typeof_typeof(
|
70
|
+
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
71
|
+
return typeof o;
|
72
|
+
} : function (o) {
|
73
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
74
|
+
}, typeof_typeof(o);
|
75
75
|
}
|
76
76
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
77
77
|
|
78
|
-
function
|
79
|
-
if (
|
80
|
-
var
|
81
|
-
if (
|
82
|
-
var
|
83
|
-
if (
|
78
|
+
function toPrimitive(t, r) {
|
79
|
+
if ("object" != typeof_typeof(t) || !t) return t;
|
80
|
+
var e = t[Symbol.toPrimitive];
|
81
|
+
if (void 0 !== e) {
|
82
|
+
var i = e.call(t, r || "default");
|
83
|
+
if ("object" != typeof_typeof(i)) return i;
|
84
84
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
85
85
|
}
|
86
|
-
return (
|
86
|
+
return ("string" === r ? String : Number)(t);
|
87
87
|
}
|
88
88
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
89
89
|
|
90
90
|
|
91
|
-
function
|
92
|
-
var
|
93
|
-
return typeof_typeof(
|
91
|
+
function toPropertyKey(t) {
|
92
|
+
var i = toPrimitive(t, "string");
|
93
|
+
return "symbol" == typeof_typeof(i) ? i : String(i);
|
94
94
|
}
|
95
95
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
96
96
|
|
97
97
|
function defineProperty_defineProperty(obj, key, value) {
|
98
|
-
key =
|
98
|
+
key = toPropertyKey(key);
|
99
99
|
if (key in obj) {
|
100
100
|
Object.defineProperty(obj, key, {
|
101
101
|
value: value,
|
@@ -111,10 +111,9 @@ function defineProperty_defineProperty(obj, key, value) {
|
|
111
111
|
;// CONCATENATED MODULE: external "vue"
|
112
112
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
113
113
|
var external_vue_y = x => () => x
|
114
|
-
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 });
|
114
|
+
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, ["resolveComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
115
115
|
;// CONCATENATED MODULE: ../../packages/table/src/const.ts
|
116
116
|
|
117
|
-
var _DEF_COLOR;
|
118
117
|
/*
|
119
118
|
* Tencent is pleased to support the open source community by making
|
120
119
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -210,7 +209,7 @@ var IHeadColor;
|
|
210
209
|
/**
|
211
210
|
* 根据表格的使用场景,表头支持颜色自定义,默认提供的选项:FAFBFD、F0F1F5,尽量一个项目选用同一种颜色。
|
212
211
|
*/
|
213
|
-
var DEF_COLOR = (
|
212
|
+
var DEF_COLOR = defineProperty_defineProperty(defineProperty_defineProperty({}, IHeadColor.DEF1, '#FAFBFD'), IHeadColor.DEF2, '#F0F1F5');
|
214
213
|
var SETTING_SIZE = {
|
215
214
|
large: 78,
|
216
215
|
medium: 60,
|
@@ -796,7 +795,7 @@ function _defineProperties(target, props) {
|
|
796
795
|
descriptor.enumerable = descriptor.enumerable || false;
|
797
796
|
descriptor.configurable = true;
|
798
797
|
if ("value" in descriptor) descriptor.writable = true;
|
799
|
-
Object.defineProperty(target,
|
798
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
800
799
|
}
|
801
800
|
}
|
802
801
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -862,7 +861,7 @@ var BkTableCache = /*#__PURE__*/function () {
|
|
862
861
|
|
863
862
|
;// CONCATENATED MODULE: ../../packages/table/src/events.ts
|
864
863
|
|
865
|
-
var _EMIT_EVENT_TYPES
|
864
|
+
var _EMIT_EVENT_TYPES;
|
866
865
|
/*
|
867
866
|
* Tencent is pleased to support the open source community by making
|
868
867
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -964,8 +963,8 @@ var EVENT_SCROLL_FN = function EVENT_SCROLL_FN(_args) {
|
|
964
963
|
var EVENT_DRAGEND_FN = function EVENT_DRAGEND_FN(_args) {
|
965
964
|
return true;
|
966
965
|
};
|
967
|
-
var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, defineProperty_defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.COLUMN_PICK, EVENT_COL_PICK),
|
968
|
-
var CELL_EVENT_TYPES = (
|
966
|
+
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));
|
967
|
+
var CELL_EVENT_TYPES = defineProperty_defineProperty(defineProperty_defineProperty({}, EMIT_EVENTS.NATIVE_CLICK, EVENT_MOUSE_FN), EMIT_EVENTS.NATIVE_DBL_CLICK, EVENT_MOUSE_FN);
|
969
968
|
;// CONCATENATED MODULE: external "lodash/isElement"
|
970
969
|
var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
971
970
|
var isElement_y = x => () => x
|
@@ -976,8 +975,8 @@ var throttle_y = x => () => x
|
|
976
975
|
const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
|
977
976
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-column-resize.tsx
|
978
977
|
|
979
|
-
function ownKeys(
|
980
|
-
function _objectSpread(
|
978
|
+
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; }
|
979
|
+
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; }
|
981
980
|
/*
|
982
981
|
* Tencent is pleased to support the open source community by making
|
983
982
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1008,7 +1007,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1008
1007
|
|
1009
1008
|
|
1010
1009
|
/* harmony default export */ const use_column_resize = (function (tableResp) {
|
1011
|
-
var _handler;
|
1012
1010
|
var immediate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
1013
1011
|
var head = arguments.length > 2 ? arguments[2] : undefined;
|
1014
1012
|
var formatData = tableResp.formatData,
|
@@ -1058,7 +1056,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1058
1056
|
dragOffsetX.value = -1000;
|
1059
1057
|
dragColumn = null;
|
1060
1058
|
var targetTable = (_head$value = head.value) === null || _head$value === void 0 ? void 0 : _head$value.querySelector('table');
|
1061
|
-
targetTable === null || targetTable === void 0
|
1059
|
+
targetTable === null || targetTable === void 0 || targetTable.querySelectorAll('th').forEach(function (th) {
|
1062
1060
|
return th.style.setProperty('user-select', 'inherit');
|
1063
1061
|
});
|
1064
1062
|
};
|
@@ -1081,7 +1079,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1081
1079
|
var setChildrenNodeCursor = function setChildrenNodeCursor(root, cursor) {
|
1082
1080
|
if ((0,isElement_namespaceObject["default"])(root)) {
|
1083
1081
|
var _root$style, _root$childNodes;
|
1084
|
-
(_root$style = root.style) === null || _root$style === void 0
|
1082
|
+
(_root$style = root.style) === null || _root$style === void 0 || _root$style.setProperty('cursor', cursor);
|
1085
1083
|
if (((_root$childNodes = root.childNodes) === null || _root$childNodes === void 0 ? void 0 : _root$childNodes.length) > 0) {
|
1086
1084
|
root.childNodes.forEach(function (node) {
|
1087
1085
|
return setChildrenNodeCursor(node, cursor);
|
@@ -1089,7 +1087,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1089
1087
|
}
|
1090
1088
|
}
|
1091
1089
|
};
|
1092
|
-
var handler = (
|
1090
|
+
var handler = defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, EVENTS.MOUSE_DOWN, function (e, column) {
|
1093
1091
|
if (!isInDragSection) {
|
1094
1092
|
return;
|
1095
1093
|
}
|
@@ -1106,7 +1104,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1106
1104
|
updateOffsetX(e)();
|
1107
1105
|
document.addEventListener('mouseup', handleMouseUp);
|
1108
1106
|
document.addEventListener('mousemove', handleMouseMove);
|
1109
|
-
}),
|
1107
|
+
}), EVENTS.MOUSE_MOVE, function (e, _column) {
|
1110
1108
|
if (isMouseDown && !isDraging) {
|
1111
1109
|
isDraging = true;
|
1112
1110
|
}
|
@@ -1131,13 +1129,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1131
1129
|
isInDragSection = false;
|
1132
1130
|
}
|
1133
1131
|
}
|
1134
|
-
}),
|
1132
|
+
}), EVENTS.MOUSE_OUT, function (e, _column) {
|
1135
1133
|
var target = e.target.closest('th');
|
1136
1134
|
if (!isDraging) {
|
1137
1135
|
setChildrenNodeCursor(target, '');
|
1138
1136
|
target.classList.remove('col-resize-hover');
|
1139
1137
|
}
|
1140
|
-
})
|
1138
|
+
});
|
1141
1139
|
var getEventName = function getEventName(event) {
|
1142
1140
|
return "".concat(pluginName, "_").concat(event);
|
1143
1141
|
};
|
@@ -1587,8 +1585,8 @@ function v4(options, buf, offset) {
|
|
1587
1585
|
|
1588
1586
|
|
1589
1587
|
|
1590
|
-
function use_pagination_ownKeys(
|
1591
|
-
function use_pagination_objectSpread(
|
1588
|
+
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; }
|
1589
|
+
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; }
|
1592
1590
|
/*
|
1593
1591
|
* Tencent is pleased to support the open source community by making
|
1594
1592
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1647,10 +1645,11 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
1647
1645
|
* pagination 为Prop传入配置
|
1648
1646
|
* 方便兼容内置分页功能,此处需要单独处理count
|
1649
1647
|
*/
|
1650
|
-
var
|
1651
|
-
var indexData = (0,external_vue_namespaceObject.computed)(function () {
|
1648
|
+
var propsData = (0,external_vue_namespaceObject.computed)(function () {
|
1652
1649
|
return props.data;
|
1653
1650
|
});
|
1651
|
+
var localPagination = (0,external_vue_namespaceObject.ref)(null);
|
1652
|
+
var indexData = (0,external_vue_namespaceObject.reactive)([]);
|
1654
1653
|
// 当前分页缓存,用于支持内置前端分页,用户无需接收change事件来自行处理数据分割
|
1655
1654
|
var pagination = (0,external_vue_namespaceObject.reactive)({
|
1656
1655
|
count: 0,
|
@@ -1664,7 +1663,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
1664
1663
|
return;
|
1665
1664
|
}
|
1666
1665
|
localPagination.value = props.remotePagination ? pagination : use_pagination_objectSpread(use_pagination_objectSpread({}, pagination), {}, {
|
1667
|
-
count: indexData.
|
1666
|
+
count: indexData.length
|
1668
1667
|
});
|
1669
1668
|
};
|
1670
1669
|
/**
|
@@ -1675,7 +1674,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
1675
1674
|
var resetStartEndIndex = function resetStartEndIndex() {
|
1676
1675
|
if (!props.pagination || props.remotePagination) {
|
1677
1676
|
startIndex.value = 0;
|
1678
|
-
endIndex.value = indexData.
|
1677
|
+
endIndex.value = indexData.length;
|
1679
1678
|
return;
|
1680
1679
|
}
|
1681
1680
|
// 如果是前端分页
|
@@ -1706,15 +1705,25 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
1706
1705
|
var filter = function filter(sourceData, filterFn) {
|
1707
1706
|
if (typeof filterFn === 'function') {
|
1708
1707
|
var filterVals = sourceData.filter(function (row, index) {
|
1709
|
-
return filterFn(row, index, indexData
|
1708
|
+
return filterFn(row, index, indexData);
|
1710
1709
|
});
|
1711
1710
|
sourceData.length = 0;
|
1712
1711
|
sourceData.push.apply(sourceData, _toConsumableArray(filterVals));
|
1713
1712
|
}
|
1714
1713
|
return sourceData;
|
1715
1714
|
};
|
1715
|
+
var resolveIndexData = function resolveIndexData() {
|
1716
|
+
return new Promise(function (resolve) {
|
1717
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
1718
|
+
var target = propsData.value.slice();
|
1719
|
+
indexData.length = 0;
|
1720
|
+
indexData.push.apply(indexData, _toConsumableArray(target));
|
1721
|
+
resolve();
|
1722
|
+
});
|
1723
|
+
});
|
1724
|
+
};
|
1716
1725
|
var resolvePageData = function resolvePageData(filterFn, sortFn, column, type, sortScope, multiCol) {
|
1717
|
-
var sourceData = indexData.
|
1726
|
+
var sourceData = indexData.slice();
|
1718
1727
|
if (multiCol !== null && multiCol !== void 0 && multiCol.length) {
|
1719
1728
|
multiSort(sourceData, multiCol);
|
1720
1729
|
}
|
@@ -1728,7 +1737,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
1728
1737
|
resolvePageData(null, null, null, null, null, multiCol);
|
1729
1738
|
};
|
1730
1739
|
var multiFilter = function multiFilter(filterFnList) {
|
1731
|
-
var sourceData = indexData.
|
1740
|
+
var sourceData = indexData.slice();
|
1732
1741
|
var target = filterFnList.reduce(function (result, fn) {
|
1733
1742
|
return filter(result, fn);
|
1734
1743
|
}, sourceData);
|
@@ -1754,6 +1763,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
|
|
1754
1763
|
indexData: indexData,
|
1755
1764
|
localPagination: localPagination,
|
1756
1765
|
resolvePageData: resolvePageData,
|
1766
|
+
resolveIndexData: resolveIndexData,
|
1757
1767
|
resolvePageDataBySortList: resolvePageDataBySortList,
|
1758
1768
|
resetStartEndIndex: resetStartEndIndex,
|
1759
1769
|
multiFilter: multiFilter,
|
@@ -2703,8 +2713,8 @@ var index = (function () {
|
|
2703
2713
|
|
2704
2714
|
|
2705
2715
|
var _this = undefined;
|
2706
|
-
function utils_ownKeys(
|
2707
|
-
function utils_objectSpread(
|
2716
|
+
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; }
|
2717
|
+
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; }
|
2708
2718
|
/*
|
2709
2719
|
* Tencent is pleased to support the open source community by making
|
2710
2720
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3098,8 +3108,7 @@ var getSortFn = function getSortFn(column, sortType) {
|
|
3098
3108
|
};
|
3099
3109
|
};
|
3100
3110
|
var getNextSortType = function getNextSortType(sortType) {
|
3101
|
-
var
|
3102
|
-
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);
|
3111
|
+
var steps = defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, SORT_OPTION.NULL, 3), SORT_OPTION.ASC, 1), SORT_OPTION.DESC, 2);
|
3103
3112
|
if (steps[sortType] === undefined) {
|
3104
3113
|
return SORT_OPTION.ASC;
|
3105
3114
|
}
|
@@ -3168,8 +3177,8 @@ var resolveColumnSortProp = function resolveColumnSortProp(col, props) {
|
|
3168
3177
|
;// CONCATENATED MODULE: ../../packages/table/src/use-attributes.ts
|
3169
3178
|
|
3170
3179
|
|
3171
|
-
function use_attributes_ownKeys(
|
3172
|
-
function use_attributes_objectSpread(
|
3180
|
+
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; }
|
3181
|
+
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; }
|
3173
3182
|
/*
|
3174
3183
|
* Tencent is pleased to support the open source community by making
|
3175
3184
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3235,12 +3244,14 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3235
3244
|
});
|
3236
3245
|
var _usePagination = use_pagination(props),
|
3237
3246
|
pageData = _usePagination.pageData,
|
3247
|
+
indexData = _usePagination.indexData,
|
3238
3248
|
localPagination = _usePagination.localPagination,
|
3239
3249
|
resolvePageData = _usePagination.resolvePageData,
|
3240
3250
|
resolvePageDataBySortList = _usePagination.resolvePageDataBySortList,
|
3241
3251
|
multiFilter = _usePagination.multiFilter,
|
3242
3252
|
sort = _usePagination.sort,
|
3243
|
-
resetStartEndIndex = _usePagination.resetStartEndIndex
|
3253
|
+
resetStartEndIndex = _usePagination.resetStartEndIndex,
|
3254
|
+
resolveIndexData = _usePagination.resolveIndexData;
|
3244
3255
|
var updateSettings = function updateSettings(settings, rowHeight) {
|
3245
3256
|
if (settings) {
|
3246
3257
|
var _ref2, _ref3;
|
@@ -3298,7 +3309,6 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3298
3309
|
var skipColNum = 0;
|
3299
3310
|
var needColSpan = neepColspanOrRowspan(['colspan']);
|
3300
3311
|
(formatData.columns || []).forEach(function (col, index) {
|
3301
|
-
var _Object$assign;
|
3302
3312
|
var _ref4 = needColSpan ? getColumnSpanConfig(col, index, skipColNum) : {
|
3303
3313
|
skipCol: false,
|
3304
3314
|
skipColumnNum: 0,
|
@@ -3324,17 +3334,17 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3324
3334
|
}
|
3325
3335
|
return fn;
|
3326
3336
|
};
|
3327
|
-
formatData.columnSchema.set(col, (_formatData$columnSch = {}, defineProperty_defineProperty(_formatData$columnSch, COLUMN_ATTRIBUTE.CALC_WIDTH, undefined),
|
3337
|
+
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, {
|
3328
3338
|
skipCol: skipCol,
|
3329
3339
|
skipColumnNum: skipColumnNum,
|
3330
3340
|
skipColLen: skipColLen
|
3331
|
-
}),
|
3341
|
+
}), COLUMN_ATTRIBUTE.COL_UID, esm_browser_v4())));
|
3332
3342
|
}
|
3333
|
-
Object.assign(formatData.columnSchema.get(col), (
|
3343
|
+
Object.assign(formatData.columnSchema.get(col), defineProperty_defineProperty(defineProperty_defineProperty({}, COLUMN_ATTRIBUTE.COL_SPAN, {
|
3334
3344
|
skipCol: skipCol,
|
3335
3345
|
skipColumnNum: skipColumnNum,
|
3336
3346
|
skipColLen: skipColLen
|
3337
|
-
}),
|
3347
|
+
}), COLUMN_ATTRIBUTE.COL_MIN_WIDTH, resolveMinWidth(col)));
|
3338
3348
|
});
|
3339
3349
|
};
|
3340
3350
|
var getColumnSpanConfig = function getColumnSpanConfig(col, index, skipColNum) {
|
@@ -3377,6 +3387,13 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3377
3387
|
var type = getColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_TYPE);
|
3378
3388
|
var scope = getColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_SCOPE);
|
3379
3389
|
if (type === SORT_OPTION.NULL) {
|
3390
|
+
resolveIndexData().then(function () {
|
3391
|
+
resolvePageData();
|
3392
|
+
});
|
3393
|
+
return;
|
3394
|
+
}
|
3395
|
+
if (scope === 'all') {
|
3396
|
+
sort(indexData, fn, column, type, scope);
|
3380
3397
|
resolvePageData();
|
3381
3398
|
return;
|
3382
3399
|
}
|
@@ -3565,7 +3582,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3565
3582
|
* @param data
|
3566
3583
|
*/
|
3567
3584
|
var formatDataSchema = function formatDataSchema(data) {
|
3568
|
-
var _formatData$data
|
3585
|
+
var _formatData$data;
|
3569
3586
|
formatData.data.length = 0;
|
3570
3587
|
(_formatData$data = formatData.data).push.apply(_formatData$data, _toConsumableArray(data));
|
3571
3588
|
var hasSelectedRow = false;
|
@@ -3579,8 +3596,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3579
3596
|
hasUnSelectedRow = true;
|
3580
3597
|
}
|
3581
3598
|
if (!formatData.dataSchema.has(row)) {
|
3582
|
-
|
3583
|
-
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));
|
3599
|
+
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));
|
3584
3600
|
}
|
3585
3601
|
// 当传入的data改变时,更新相关属性
|
3586
3602
|
// ROW_EXPAND & ROW_SELECTION & ROW_UID 不做更新
|
@@ -3588,7 +3604,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3588
3604
|
rowId = target[TABLE_ROW_ATTRIBUTE.ROW_UID];
|
3589
3605
|
target[TABLE_ROW_ATTRIBUTE.ROW_INDEX] = index + 1;
|
3590
3606
|
});
|
3591
|
-
formatData.dataSchema.set(CHECK_ALL_OBJ, (
|
3607
|
+
formatData.dataSchema.set(CHECK_ALL_OBJ, defineProperty_defineProperty(defineProperty_defineProperty({}, TABLE_ROW_ATTRIBUTE.ROW_SELECTION, hasSelectedRow), TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, hasSelectedRow && hasUnSelectedRow));
|
3592
3608
|
formatData.dataSchema.set(NEED_COL_ROW_SPAN, defineProperty_defineProperty({}, TABLE_ROW_ATTRIBUTE.ROW_SPAN, neepColspanOrRowspan(['rowspan'])));
|
3593
3609
|
};
|
3594
3610
|
/**
|
@@ -3667,7 +3683,6 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3667
3683
|
setRowSelection(row, !getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION));
|
3668
3684
|
};
|
3669
3685
|
var toggleAllSelection = function toggleAllSelection(value) {
|
3670
|
-
var _formatData$dataSchem7;
|
3671
3686
|
var val = value !== null && value !== void 0 ? value : !isCheckedAll();
|
3672
3687
|
if (props.acrossAll) {
|
3673
3688
|
formatData.data.forEach(function (row) {
|
@@ -3678,7 +3693,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3678
3693
|
pageData.forEach(function (row) {
|
3679
3694
|
return setRowSelection(row, val);
|
3680
3695
|
});
|
3681
|
-
formatData.dataSchema.set(CHECK_ALL_OBJ, (
|
3696
|
+
formatData.dataSchema.set(CHECK_ALL_OBJ, defineProperty_defineProperty(defineProperty_defineProperty({}, TABLE_ROW_ATTRIBUTE.ROW_SELECTION, val), TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE, false));
|
3682
3697
|
};
|
3683
3698
|
var clearSelection = function clearSelection() {
|
3684
3699
|
formatData.data.forEach(function (row) {
|
@@ -3816,6 +3831,9 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3816
3831
|
var resolvedIndex = sourceIndex < targetIndex ? sourceIndex : sourceIndex + 1;
|
3817
3832
|
pageData.splice(resolvedIndex, 1);
|
3818
3833
|
};
|
3834
|
+
var setIndexData = function setIndexData() {
|
3835
|
+
return resolveIndexData();
|
3836
|
+
};
|
3819
3837
|
return {
|
3820
3838
|
formatColumns: formatColumns,
|
3821
3839
|
formatDataSchema: formatDataSchema,
|
@@ -3852,7 +3870,8 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3852
3870
|
changePageRowIndex: changePageRowIndex,
|
3853
3871
|
pageData: pageData,
|
3854
3872
|
localPagination: localPagination,
|
3855
|
-
formatData: formatData
|
3873
|
+
formatData: formatData,
|
3874
|
+
setIndexData: setIndexData
|
3856
3875
|
};
|
3857
3876
|
});
|
3858
3877
|
;// CONCATENATED MODULE: ../../packages/table/src/use-column.ts
|
@@ -3958,8 +3977,8 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3958
3977
|
});
|
3959
3978
|
;// CONCATENATED MODULE: ../../packages/table/src/use-common.ts
|
3960
3979
|
|
3961
|
-
function use_common_ownKeys(
|
3962
|
-
function use_common_objectSpread(
|
3980
|
+
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; }
|
3981
|
+
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; }
|
3963
3982
|
/*
|
3964
3983
|
* Tencent is pleased to support the open source community by making
|
3965
3984
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -4000,7 +4019,6 @@ function use_common_objectSpread(target) { for (var i = 1; i < arguments.length;
|
|
4000
4019
|
* @param pageData 当前页数据
|
4001
4020
|
*/
|
4002
4021
|
var useClass = function useClass(props, targetColumns, root, TableSchema, pageData) {
|
4003
|
-
var _classes2;
|
4004
4022
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
4005
4023
|
resolveClassName = _usePrefix.resolveClassName;
|
4006
4024
|
var _useColumn = use_column(props, targetColumns),
|
@@ -4017,25 +4035,25 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4017
4035
|
return hasScrollY.value;
|
4018
4036
|
});
|
4019
4037
|
var tableClass = (0,external_vue_namespaceObject.computed)(function () {
|
4020
|
-
|
4021
|
-
return (0,external_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));
|
4038
|
+
return (0,external_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));
|
4022
4039
|
});
|
4023
|
-
var headClass = (0,external_shared_namespaceObject.classes)((
|
4040
|
+
var headClass = (0,external_shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-head'), true), 'has-settings', !!props.settings));
|
4024
4041
|
var resolvedColumns = (0,external_vue_namespaceObject.computed)(function () {
|
4025
4042
|
return getColumns();
|
4026
4043
|
});
|
4027
4044
|
var config = resolveHeadConfig(props);
|
4028
4045
|
var headStyle = (0,external_vue_namespaceObject.computed)(function () {
|
4046
|
+
var _props$thead$color, _props$thead;
|
4029
4047
|
return {
|
4030
4048
|
'--row-height': "".concat(resolvePropVal(config, 'height', ['thead']), "px"),
|
4031
4049
|
'--scroll-head-left': "-".concat(TableSchema.formatData.layout.translateX, "px"),
|
4032
|
-
'--scroll-left': "".concat(TableSchema.formatData.layout.translateX, "px")
|
4050
|
+
'--scroll-left': "".concat(TableSchema.formatData.layout.translateX, "px"),
|
4051
|
+
'--background-color': DEF_COLOR[(_props$thead$color = (_props$thead = props.thead) === null || _props$thead === void 0 ? void 0 : _props$thead.color) !== null && _props$thead$color !== void 0 ? _props$thead$color : IHeadColor.DEF1]
|
4033
4052
|
};
|
4034
4053
|
});
|
4035
4054
|
var contentClass = defineProperty_defineProperty({}, resolveClassName('table-body'), true);
|
4036
4055
|
var footerClass = (0,external_vue_namespaceObject.computed)(function () {
|
4037
|
-
|
4038
|
-
return (0,external_shared_namespaceObject.classes)((_classes3 = {}, defineProperty_defineProperty(_classes3, resolveClassName('table-footer'), true), defineProperty_defineProperty(_classes3, 'is-hidden', !props.pagination || !props.data.length), _classes3));
|
4056
|
+
return (0,external_shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-footer'), true), 'is-hidden', !props.pagination || !props.data.length));
|
4039
4057
|
});
|
4040
4058
|
var getTableHeight = function getTableHeight() {
|
4041
4059
|
if (props.height === 'number') {
|
@@ -4068,7 +4086,6 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4068
4086
|
// maxHeight: props.maxHeight,
|
4069
4087
|
};
|
4070
4088
|
});
|
4071
|
-
|
4072
4089
|
var resolvePropHeight = function resolvePropHeight(height, parentHeight) {
|
4073
4090
|
var strHeight = String(height);
|
4074
4091
|
if (/^\d+\.?\d*$/.test(strHeight)) {
|
@@ -4183,8 +4200,7 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4183
4200
|
});
|
4184
4201
|
});
|
4185
4202
|
var tableBodyContentClass = (0,external_vue_namespaceObject.computed)(function () {
|
4186
|
-
|
4187
|
-
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;
|
4203
|
+
return defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-body-content'), true), resolveClassName('stripe'), props.stripe), 'with-virtual-render', props.virtualEnabled);
|
4188
4204
|
});
|
4189
4205
|
var resizeColumnClass = {
|
4190
4206
|
column_drag_line: true,
|
@@ -4195,8 +4211,7 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4195
4211
|
_bottom: true
|
4196
4212
|
};
|
4197
4213
|
var fixedBottomBorder = (0,external_vue_namespaceObject.computed)(function () {
|
4198
|
-
|
4199
|
-
return _ref3 = {}, defineProperty_defineProperty(_ref3, resolveClassName('fixed-bottom-border'), true), defineProperty_defineProperty(_ref3, '_is-empty', !props.data.length), _ref3;
|
4214
|
+
return defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('fixed-bottom-border'), true), '_is-empty', !props.data.length);
|
4200
4215
|
});
|
4201
4216
|
var columnGhostStyle = {
|
4202
4217
|
zIndex: -1,
|
@@ -4462,7 +4477,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4462
4477
|
}
|
4463
4478
|
} else {
|
4464
4479
|
var _bkEllipsisIns;
|
4465
|
-
(_bkEllipsisIns = bkEllipsisIns) === null || _bkEllipsisIns === void 0
|
4480
|
+
(_bkEllipsisIns = bkEllipsisIns) === null || _bkEllipsisIns === void 0 || _bkEllipsisIns.destroyInstance(target);
|
4466
4481
|
bkEllipsisIns = null;
|
4467
4482
|
}
|
4468
4483
|
};
|
@@ -4487,7 +4502,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4487
4502
|
});
|
4488
4503
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
4489
4504
|
var _bkEllipsisIns2;
|
4490
|
-
(_bkEllipsisIns2 = bkEllipsisIns) === null || _bkEllipsisIns2 === void 0
|
4505
|
+
(_bkEllipsisIns2 = bkEllipsisIns) === null || _bkEllipsisIns2 === void 0 || _bkEllipsisIns2.destroyInstance(refRoot.value);
|
4491
4506
|
});
|
4492
4507
|
var hasExplain = props.headExplain || props.column.explain;
|
4493
4508
|
return function () {
|
@@ -4947,7 +4962,7 @@ function _isSlot(s) {
|
|
4947
4962
|
}
|
4948
4963
|
var beforeEventFire = function beforeEventFire(fn) {
|
4949
4964
|
if (props.rowDraggable) {
|
4950
|
-
fn === null || fn === void 0
|
4965
|
+
fn === null || fn === void 0 || fn();
|
4951
4966
|
}
|
4952
4967
|
};
|
4953
4968
|
var getTargetRow = function getTargetRow(event) {
|
@@ -5085,6 +5100,7 @@ function head_filter_isSlot(s) {
|
|
5085
5100
|
var _filter$value$checked, _filter$value;
|
5086
5101
|
return (_filter$value$checked = (_filter$value = filter.value) === null || _filter$value === void 0 ? void 0 : _filter$value.checked) !== null && _filter$value$checked !== void 0 ? _filter$value$checked : [];
|
5087
5102
|
});
|
5103
|
+
var searchValue = (0,external_vue_namespaceObject.ref)('');
|
5088
5104
|
var state = (0,external_vue_namespaceObject.reactive)({
|
5089
5105
|
isOpen: false,
|
5090
5106
|
checked: checked.value
|
@@ -5106,8 +5122,7 @@ function head_filter_isSlot(s) {
|
|
5106
5122
|
deep: true
|
5107
5123
|
});
|
5108
5124
|
var headClass = (0,external_vue_namespaceObject.computed)(function () {
|
5109
|
-
|
5110
|
-
return (0,external_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));
|
5125
|
+
return (0,external_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));
|
5111
5126
|
});
|
5112
5127
|
var headFilterContentClass = (0,external_shared_namespaceObject.classes)(defineProperty_defineProperty({}, resolveClassName('table-head-filter'), true));
|
5113
5128
|
var refVirtualRender = (0,external_vue_namespaceObject.ref)(null);
|
@@ -5116,21 +5131,28 @@ function head_filter_isSlot(s) {
|
|
5116
5131
|
isOpen && setTimeout(function () {
|
5117
5132
|
refVirtualRender.value.reset();
|
5118
5133
|
});
|
5134
|
+
if (!isOpen) {
|
5135
|
+
searchValue.value = '';
|
5136
|
+
}
|
5119
5137
|
};
|
5120
5138
|
var theme = "light ".concat(resolveClassName('table-head-filter'));
|
5121
5139
|
var localData = (0,external_vue_namespaceObject.computed)(function () {
|
5122
5140
|
var _filter$value$list = filter.value.list,
|
5123
5141
|
list = _filter$value$list === void 0 ? [] : _filter$value$list;
|
5124
|
-
|
5142
|
+
var filterList = list.filter(function (l) {
|
5143
|
+
return getRegExp(searchValue.value).test(l.value);
|
5144
|
+
});
|
5145
|
+
console.log(' filterList: ', filterList);
|
5146
|
+
return filterList;
|
5125
5147
|
});
|
5126
|
-
var getRegExp = function getRegExp(
|
5148
|
+
var getRegExp = function getRegExp(val) {
|
5127
5149
|
var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ig';
|
5128
|
-
return new RegExp("".concat(
|
5150
|
+
return new RegExp("".concat(val).replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'), flags);
|
5129
5151
|
};
|
5130
5152
|
var defaultFilterFn = function defaultFilterFn(checked, row) {
|
5131
5153
|
var match = filter.value.match;
|
5132
5154
|
var matchText = getRowText(row, resolvePropVal(column, 'field', [column, row]));
|
5133
|
-
if (match
|
5155
|
+
if (match !== 'fuzzy') {
|
5134
5156
|
return checked.includes(matchText);
|
5135
5157
|
}
|
5136
5158
|
return checked.some(function (str) {
|
@@ -5294,7 +5316,14 @@ function head_filter_isSlot(s) {
|
|
5294
5316
|
content: function content() {
|
5295
5317
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
5296
5318
|
"class": headFilterContentClass
|
5297
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
5319
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
5320
|
+
"style": "padding: 4px 10px;"
|
5321
|
+
}, [(0,external_vue_namespaceObject.createVNode)((0,external_vue_namespaceObject.resolveComponent)("bk-input"), {
|
5322
|
+
"modelValue": searchValue.value,
|
5323
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
5324
|
+
return searchValue.value = $event;
|
5325
|
+
}
|
5326
|
+
}, null)]), (0,external_vue_namespaceObject.createVNode)(external_checkbox_namespaceObject.BkCheckboxGroup, {
|
5298
5327
|
"class": "content-list"
|
5299
5328
|
}, {
|
5300
5329
|
"default": function _default() {
|
@@ -5324,31 +5353,31 @@ function _arrayWithHoles(arr) {
|
|
5324
5353
|
if (Array.isArray(arr)) return arr;
|
5325
5354
|
}
|
5326
5355
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
5327
|
-
function _iterableToArrayLimit(
|
5328
|
-
var
|
5329
|
-
if (null !=
|
5330
|
-
var
|
5331
|
-
|
5332
|
-
|
5333
|
-
|
5334
|
-
|
5335
|
-
|
5336
|
-
|
5356
|
+
function _iterableToArrayLimit(r, l) {
|
5357
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
5358
|
+
if (null != t) {
|
5359
|
+
var e,
|
5360
|
+
n,
|
5361
|
+
i,
|
5362
|
+
u,
|
5363
|
+
a = [],
|
5364
|
+
f = !0,
|
5365
|
+
o = !1;
|
5337
5366
|
try {
|
5338
|
-
if (
|
5339
|
-
if (Object(
|
5340
|
-
|
5341
|
-
} else for (; !(
|
5342
|
-
} catch (
|
5343
|
-
|
5367
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
5368
|
+
if (Object(t) !== t) return;
|
5369
|
+
f = !1;
|
5370
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
5371
|
+
} catch (r) {
|
5372
|
+
o = !0, n = r;
|
5344
5373
|
} finally {
|
5345
5374
|
try {
|
5346
|
-
if (!
|
5375
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
5347
5376
|
} finally {
|
5348
|
-
if (
|
5377
|
+
if (o) throw n;
|
5349
5378
|
}
|
5350
5379
|
}
|
5351
|
-
return
|
5380
|
+
return a;
|
5352
5381
|
}
|
5353
5382
|
}
|
5354
5383
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
@@ -5740,8 +5769,8 @@ function use_head_cell_isSlot(s) {
|
|
5740
5769
|
|
5741
5770
|
|
5742
5771
|
|
5743
|
-
function use_render_ownKeys(
|
5744
|
-
function use_render_objectSpread(
|
5772
|
+
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; }
|
5773
|
+
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; }
|
5745
5774
|
/*
|
5746
5775
|
* Tencent is pleased to support the open source community by making
|
5747
5776
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -6137,8 +6166,7 @@ function use_render_isSlot(s) {
|
|
6137
6166
|
}
|
6138
6167
|
};
|
6139
6168
|
var getColumnClass = function getColumnClass(column, colIndex) {
|
6140
|
-
|
6141
|
-
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;
|
6169
|
+
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');
|
6142
6170
|
};
|
6143
6171
|
var getHeadColumnClass = function getHeadColumnClass(column, colIndex) {
|
6144
6172
|
return use_render_objectSpread({}, getColumnClass(column, colIndex));
|
@@ -6358,8 +6386,8 @@ function use_render_isSlot(s) {
|
|
6358
6386
|
;// CONCATENATED MODULE: ../../packages/table/src/table.tsx
|
6359
6387
|
|
6360
6388
|
|
6361
|
-
function table_ownKeys(
|
6362
|
-
function table_objectSpread(
|
6389
|
+
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; }
|
6390
|
+
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; }
|
6363
6391
|
/*
|
6364
6392
|
* Tencent is pleased to support the open source community by making
|
6365
6393
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -6434,7 +6462,6 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6434
6462
|
hasFooter = _useClass.hasFooter,
|
6435
6463
|
footerStyle = _useClass.footerStyle,
|
6436
6464
|
tableBodyClass = _useClass.tableBodyClass,
|
6437
|
-
fixedBottomBorder = _useClass.fixedBottomBorder,
|
6438
6465
|
resizeColumnClass = _useClass.resizeColumnClass,
|
6439
6466
|
tableBodyContentClass = _useClass.tableBodyContentClass,
|
6440
6467
|
loadingRowClass = _useClass.loadingRowClass,
|
@@ -6474,27 +6501,30 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6474
6501
|
}
|
6475
6502
|
};
|
6476
6503
|
var isFirstLoad = (0,external_vue_namespaceObject.ref)(true);
|
6504
|
+
// const tableWidth = ref(null);
|
6477
6505
|
(0,external_vue_namespaceObject.watch)(function () {
|
6478
6506
|
return [props.data, columns];
|
6479
6507
|
}, function () {
|
6480
|
-
tableSchema.
|
6481
|
-
|
6482
|
-
|
6483
|
-
|
6484
|
-
|
6485
|
-
|
6486
|
-
|
6487
|
-
|
6488
|
-
|
6489
|
-
|
6490
|
-
|
6491
|
-
updateOffsetRight();
|
6492
|
-
resolveFixedColumns(tableOffsetRight.value);
|
6493
|
-
/**
|
6494
|
-
* 确保在所有数据渲染完毕再执行fix column计算
|
6495
|
-
*/
|
6508
|
+
tableSchema.setIndexData().then(function () {
|
6509
|
+
tableSchema.formatColumns(columns);
|
6510
|
+
tableSchema.formatDataSchema(props.data);
|
6511
|
+
tableSchema.resetStartEndIndex();
|
6512
|
+
if (isFirstLoad.value) {
|
6513
|
+
tableSchema.resolveByDefColumns();
|
6514
|
+
isFirstLoad.value = false;
|
6515
|
+
} else {
|
6516
|
+
tableSchema.resolvePageData();
|
6517
|
+
}
|
6518
|
+
registerResizeEvent();
|
6496
6519
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
6497
|
-
|
6520
|
+
updateOffsetRight();
|
6521
|
+
resolveFixedColumns(tableOffsetRight.value);
|
6522
|
+
/**
|
6523
|
+
* 确保在所有数据渲染完毕再执行fix column计算
|
6524
|
+
*/
|
6525
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
6526
|
+
resetTableHeight(root.value);
|
6527
|
+
});
|
6498
6528
|
});
|
6499
6529
|
});
|
6500
6530
|
}, {
|
@@ -6549,7 +6579,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6549
6579
|
left: 0,
|
6550
6580
|
top: 0
|
6551
6581
|
};
|
6552
|
-
(_refVirtualRender$val = refVirtualRender.value) === null || _refVirtualRender$val === void 0 || (_refVirtualRender$val2 = _refVirtualRender$val.scrollTo) === null || _refVirtualRender$val2 === void 0
|
6582
|
+
(_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);
|
6553
6583
|
};
|
6554
6584
|
var getRoot = function getRoot() {
|
6555
6585
|
return root.value;
|
@@ -6611,9 +6641,8 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6611
6641
|
return renderTableBodySchema(scope.data);
|
6612
6642
|
},
|
6613
6643
|
afterSection: function afterSection() {
|
6614
|
-
return [
|
6615
|
-
|
6616
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("div", {
|
6644
|
+
return [// <div class={fixedBottomBorder.value}></div>,
|
6645
|
+
(0,external_vue_namespaceObject.createVNode)("div", {
|
6617
6646
|
"class": resizeColumnClass,
|
6618
6647
|
"style": resizeColumnStyle.value
|
6619
6648
|
}, null)];
|