bkui-vue 0.0.3-beta.6 → 1.0.1
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/README.md +1 -0
- package/dist/index.cjs.js +47 -47
- package/dist/index.esm.js +10444 -10431
- package/dist/index.umd.js +47 -47
- 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 +35 -34
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +82 -132
- package/lib/alert/index.js +43 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +7 -7
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +23 -22
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +120 -153
- package/lib/badge/index.js +40 -39
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -47
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +60 -53
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +129 -158
- package/lib/card/index.js +62 -57
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +338 -320
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +119 -161
- package/lib/checkbox/index.js +77 -78
- package/lib/code-diff/code-diff.css +0 -1
- package/lib/code-diff/code-diff.d.ts +1 -0
- package/lib/code-diff/code-diff.less +1 -1
- package/lib/code-diff/code-diff.variable.css +0 -1
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +532 -452
- package/lib/collapse/index.d.ts +144 -168
- package/lib/collapse/index.js +67 -66
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +10 -10
- 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 +74 -76
- package/lib/components.js +63 -504
- package/lib/config-provider/index.d.ts +159 -226
- package/lib/config-provider/index.js +49 -45
- package/lib/config-provider/use-global-config.d.ts +2 -2
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +47 -46
- 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 +164 -170
- 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 +291 -279
- package/lib/directives/index.js +51 -51
- package/lib/dist.index.js +5 -61
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +16 -15
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +56 -49
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +37 -37
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +16 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +83 -83
- package/lib/hooks.js +8 -48
- package/lib/icon/angle-double-down-line.js +23 -23
- package/lib/icon/angle-double-left-line.js +23 -23
- package/lib/icon/angle-double-left.js +23 -23
- package/lib/icon/angle-double-right-line.js +23 -23
- package/lib/icon/angle-double-right.js +23 -23
- package/lib/icon/angle-double-up-line.js +23 -23
- package/lib/icon/angle-down-fill.js +23 -23
- package/lib/icon/angle-down-line.js +23 -23
- package/lib/icon/angle-down.js +23 -23
- package/lib/icon/angle-left.js +23 -23
- package/lib/icon/angle-right.js +23 -23
- package/lib/icon/angle-up-fill.js +23 -23
- package/lib/icon/angle-up.js +23 -23
- package/lib/icon/archive-fill.js +23 -23
- package/lib/icon/arrows-left.js +23 -23
- package/lib/icon/arrows-right.js +23 -23
- package/lib/icon/assistant.js +23 -23
- package/lib/icon/audio-fill.js +23 -23
- package/lib/icon/bk.js +23 -23
- package/lib/icon/circle.js +23 -23
- package/lib/icon/close-line.js +23 -23
- package/lib/icon/close.js +23 -23
- package/lib/icon/code.js +23 -23
- package/lib/icon/cog-shape.js +23 -23
- package/lib/icon/collapse-left.js +23 -23
- package/lib/icon/copy-shape.js +23 -23
- package/lib/icon/copy.js +23 -23
- package/lib/icon/data-shape.js +23 -23
- package/lib/icon/del.js +23 -23
- package/lib/icon/doc-fill.js +23 -23
- package/lib/icon/done.js +23 -23
- package/lib/icon/down-shape.js +23 -23
- package/lib/icon/down-small.js +23 -23
- package/lib/icon/edit-line.js +23 -23
- package/lib/icon/ellipsis.js +23 -23
- package/lib/icon/enlarge-line.js +23 -23
- package/lib/icon/error.js +23 -23
- package/lib/icon/excel-fill.js +23 -23
- package/lib/icon/exclamation-circle-shape.js +23 -23
- package/lib/icon/eye.js +23 -23
- package/lib/icon/filliscreen-line.js +23 -23
- package/lib/icon/fix-line.js +23 -23
- package/lib/icon/fix-shape.js +23 -23
- package/lib/icon/folder-open.js +23 -23
- package/lib/icon/folder-shape-open.js +23 -23
- package/lib/icon/folder-shape.js +23 -23
- package/lib/icon/folder.js +23 -23
- package/lib/icon/funnel.js +23 -23
- package/lib/icon/grag-fill.js +23 -23
- package/lib/icon/help-document-fill.js +23 -23
- package/lib/icon/help-fill.js +23 -23
- package/lib/icon/help.js +23 -23
- package/lib/icon/image-fill.js +29 -29
- package/lib/icon/img-error.js +29 -29
- package/lib/icon/img-placehoulder.js +29 -29
- package/lib/icon/index.js +485 -485
- package/lib/icon/info-line.js +29 -29
- package/lib/icon/info.js +29 -29
- package/lib/icon/left-shape.js +29 -29
- package/lib/icon/left-turn-line.js +29 -29
- package/lib/icon/loading.js +29 -29
- package/lib/icon/narrow-line.js +29 -29
- package/lib/icon/original.js +29 -29
- package/lib/icon/pdf-fill.js +29 -29
- package/lib/icon/play-shape.js +29 -29
- package/lib/icon/plus.js +29 -29
- package/lib/icon/ppt-fill.js +29 -29
- package/lib/icon/qq.js +29 -29
- package/lib/icon/right-shape.js +29 -29
- package/lib/icon/right-turn-line.js +29 -29
- package/lib/icon/search.js +29 -29
- package/lib/icon/share.js +29 -29
- package/lib/icon/spinner.js +29 -29
- package/lib/icon/success.js +29 -29
- package/lib/icon/switcher-loading.js +29 -29
- package/lib/icon/text-file.js +29 -29
- package/lib/icon/text-fill.js +29 -29
- package/lib/icon/transfer.js +29 -29
- package/lib/icon/tree-application-shape.js +29 -29
- package/lib/icon/unfull-screen.js +29 -29
- package/lib/icon/unvisible.js +29 -29
- package/lib/icon/up-shape.js +29 -29
- package/lib/icon/upload.js +29 -29
- package/lib/icon/video-fill.js +29 -29
- package/lib/icon/warn.js +29 -29
- package/lib/icon/weixin-pro.js +29 -29
- package/lib/icon/weixin.js +29 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +62 -62
- package/lib/index.js +8 -72
- package/lib/info-box/index.js +296 -284
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +316 -317
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +16 -15
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +49 -50
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +2 -4
- package/lib/menu/index.d.ts +51 -112
- package/lib/menu/index.js +49 -48
- package/lib/message/index.js +69 -70
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +261 -249
- package/lib/modal/index.js +535 -75
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +17 -16
- package/lib/notify/index.js +56 -57
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +314 -242
- package/lib/overflow-title/index.js +32 -25
- package/lib/pagination/index.d.ts +194 -205
- package/lib/pagination/index.js +116 -109
- package/lib/plugin-popover/index.js +247 -153
- package/lib/plugins/index.js +2 -2
- package/lib/pop-confirm/index.d.ts +126 -159
- package/lib/pop-confirm/index.js +43 -31
- 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 +251 -156
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +5 -5
- package/lib/preset.d.ts +2 -287
- package/lib/preset.js +16 -58
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +253 -254
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +48 -47
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +83 -135
- package/lib/radio/index.js +80 -81
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +43 -43
- package/lib/resize-layout/index.d.ts +156 -185
- package/lib/resize-layout/index.js +48 -48
- 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 +310 -293
- 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 +427 -392
- 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 +235 -217
- package/lib/sideslider/index.d.ts +247 -233
- package/lib/sideslider/index.js +264 -263
- package/lib/slider/index.d.ts +204 -204
- package/lib/slider/index.js +245 -233
- package/lib/steps/index.d.ts +114 -150
- package/lib/steps/index.js +257 -257
- package/lib/styles/index.d.ts +0 -1
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +35 -34
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +52 -53
- package/lib/tab/index.d.ts +199 -211
- package/lib/tab/index.js +78 -79
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/index.d.ts +605 -593
- package/lib/table/index.js +275 -237
- 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 +61 -62
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +41 -40
- package/lib/tag-input/index.d.ts +690 -498
- package/lib/tag-input/index.js +135 -129
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +442 -385
- package/lib/time-picker/index.js +10 -9
- package/lib/timeline/index.d.ts +50 -109
- package/lib/timeline/index.js +20 -20
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +52 -38
- package/lib/tree/index.d.ts +322 -288
- package/lib/tree/index.js +129 -113
- 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 +313 -302
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +337 -242
- package/lib/virtual-render/index.js +66 -65
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +10 -14
- package/lib/version-log/index.d.ts +0 -298
- package/lib/version-log/index.js +0 -9045
- package/lib/version-log/version-log.css +0 -224
- package/lib/version-log/version-log.d.ts +0 -203
- package/lib/version-log/version-log.less +0 -239
- package/lib/version-log/version-log.variable.css +0 -350
package/lib/table/index.js
CHANGED
@@ -1,21 +1,29 @@
|
|
1
|
-
import
|
1
|
+
import "./table.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
4
|
-
import * as
|
5
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ from "../virtual-render";
|
7
|
+
import "../virtual-render/virtual-render.less";
|
6
8
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
|
7
9
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
8
|
-
import * as
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__ from "../loading";
|
11
|
+
import "../loading/loading.less";
|
9
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
10
13
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__ from "lodash/get";
|
11
|
-
import * as
|
12
|
-
import
|
13
|
-
import * as
|
14
|
-
import * as
|
15
|
-
import
|
16
|
-
import * as
|
17
|
-
import * as
|
18
|
-
import
|
14
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
15
|
+
import "../checkbox/checkbox.less";
|
16
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
17
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_pagination_95c6c47e__ from "../pagination";
|
18
|
+
import "../pagination/pagination.less";
|
19
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
20
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_exception_7490d0fd__ from "../exception";
|
21
|
+
import "../exception/exception.less";
|
22
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__ from "../button";
|
23
|
+
import "../button/button.less";
|
24
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__ from "../icon/";
|
25
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
26
|
+
import "../popover/popover.less";
|
19
27
|
/******/ // The require scope
|
20
28
|
/******/ var __webpack_require__ = {};
|
21
29
|
/******/
|
@@ -54,48 +62,48 @@ var __webpack_exports__ = {};
|
|
54
62
|
|
55
63
|
// EXPORTS
|
56
64
|
__webpack_require__.d(__webpack_exports__, {
|
57
|
-
|
58
|
-
|
59
|
-
|
65
|
+
BkTable: () => (/* binding */ BkTable),
|
66
|
+
BkTableColumn: () => (/* reexport */ table_column),
|
67
|
+
"default": () => (/* binding */ src)
|
60
68
|
});
|
61
69
|
|
62
70
|
;// CONCATENATED MODULE: external "../shared"
|
63
71
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
64
72
|
var y = x => () => x
|
65
|
-
const
|
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 });
|
66
74
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
67
|
-
function typeof_typeof(
|
75
|
+
function typeof_typeof(o) {
|
68
76
|
"@babel/helpers - typeof";
|
69
77
|
|
70
|
-
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
71
|
-
return typeof
|
72
|
-
} : function (
|
73
|
-
return
|
74
|
-
}, 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);
|
75
83
|
}
|
76
84
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
77
85
|
|
78
|
-
function
|
79
|
-
if (
|
80
|
-
var
|
81
|
-
if (
|
82
|
-
var
|
83
|
-
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;
|
84
92
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
85
93
|
}
|
86
|
-
return (
|
94
|
+
return ("string" === r ? String : Number)(t);
|
87
95
|
}
|
88
96
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
89
97
|
|
90
98
|
|
91
|
-
function
|
92
|
-
var
|
93
|
-
return typeof_typeof(
|
99
|
+
function toPropertyKey(t) {
|
100
|
+
var i = toPrimitive(t, "string");
|
101
|
+
return "symbol" == typeof_typeof(i) ? i : String(i);
|
94
102
|
}
|
95
103
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
96
104
|
|
97
105
|
function defineProperty_defineProperty(obj, key, value) {
|
98
|
-
key =
|
106
|
+
key = toPropertyKey(key);
|
99
107
|
if (key in obj) {
|
100
108
|
Object.defineProperty(obj, key, {
|
101
109
|
value: value,
|
@@ -114,7 +122,6 @@ var external_vue_y = x => () => x
|
|
114
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 });
|
115
123
|
;// CONCATENATED MODULE: ../../packages/table/src/const.ts
|
116
124
|
|
117
|
-
var _DEF_COLOR;
|
118
125
|
/*
|
119
126
|
* Tencent is pleased to support the open source community by making
|
120
127
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -210,7 +217,7 @@ var IHeadColor;
|
|
210
217
|
/**
|
211
218
|
* 根据表格的使用场景,表头支持颜色自定义,默认提供的选项:FAFBFD、F0F1F5,尽量一个项目选用同一种颜色。
|
212
219
|
*/
|
213
|
-
var DEF_COLOR = (
|
220
|
+
var DEF_COLOR = defineProperty_defineProperty(defineProperty_defineProperty({}, IHeadColor.DEF1, '#FAFBFD'), IHeadColor.DEF2, '#F0F1F5');
|
214
221
|
var SETTING_SIZE = {
|
215
222
|
large: 78,
|
216
223
|
medium: 60,
|
@@ -395,16 +402,16 @@ var tableProps = {
|
|
395
402
|
/**
|
396
403
|
* 渲染列表
|
397
404
|
*/
|
398
|
-
data:
|
405
|
+
data: shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.any).def([]),
|
399
406
|
/**
|
400
407
|
* Table 列渲染
|
401
408
|
*/
|
402
|
-
columns:
|
409
|
+
columns: shared_namespaceObject.PropTypes.arrayOf(IColumnType).def([]),
|
403
410
|
/**
|
404
411
|
* 当前选中列
|
405
412
|
* 当设置选中多列时(columnPick = multi),配置为数组[index1, index2, index3],只能选中单列时,可以为数值或者数组[index]
|
406
413
|
*/
|
407
|
-
activeColumn:
|
414
|
+
activeColumn: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number.def(-1), shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.number.def(-1))]),
|
408
415
|
/**
|
409
416
|
* 表格列选中方式
|
410
417
|
* 支持:单列(single),多列(multi),禁用(disabled)
|
@@ -420,7 +427,7 @@ var tableProps = {
|
|
420
427
|
/**
|
421
428
|
* 是否为斑马纹 Table
|
422
429
|
*/
|
423
|
-
stripe:
|
430
|
+
stripe: shared_namespaceObject.PropTypes.bool.def(false),
|
424
431
|
/**
|
425
432
|
* 设置表格最小高度
|
426
433
|
* 默认:300
|
@@ -439,11 +446,11 @@ var tableProps = {
|
|
439
446
|
/**
|
440
447
|
* Thead行高,可以为固定数值类型
|
441
448
|
*/
|
442
|
-
headHeight:
|
449
|
+
headHeight: shared_namespaceObject.PropTypes.number.def(LINE_HEIGHT),
|
443
450
|
/**
|
444
451
|
* 是否显示Head
|
445
452
|
*/
|
446
|
-
showHead:
|
453
|
+
showHead: shared_namespaceObject.PropTypes.bool.def(true),
|
447
454
|
/**
|
448
455
|
* table header config
|
449
456
|
*/
|
@@ -456,42 +463,42 @@ var tableProps = {
|
|
456
463
|
* 是否启用虚拟渲染 & 滚动
|
457
464
|
* 当数据量很大时,启用虚拟渲染可以解决压面卡顿问题
|
458
465
|
*/
|
459
|
-
virtualEnabled:
|
466
|
+
virtualEnabled: shared_namespaceObject.PropTypes.bool.def(false),
|
460
467
|
/**
|
461
468
|
* 表格边框显示设置,可以是一个组合
|
462
469
|
* 生效规则: 除非单独设置 none,否则会追加每个设置
|
463
470
|
*/
|
464
|
-
border:
|
471
|
+
border: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.arrayOf((0,external_vue_types_namespaceObject.toType)('boderType', {})), shared_namespaceObject.PropTypes.string]).def([BORDER_OPTION.ROW]),
|
465
472
|
/**
|
466
473
|
* 分页配置
|
467
474
|
* 默认值为false,不启用分页
|
468
475
|
* 设置为 true,启用分页功能,默认值参考分页组件 Pagination
|
469
476
|
*/
|
470
|
-
pagination:
|
477
|
+
pagination: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool.def(false), shared_namespaceObject.PropTypes.object.def({})]).def(false),
|
471
478
|
/**
|
472
479
|
* 分页组件高度
|
473
480
|
* 在设置了分页配置之后才会生效
|
474
481
|
* 用于配置分页组件的高度,在不同项目中,分页组件高度会影响表格高度计算
|
475
482
|
* 这里设置为可配置项,避免自计算导致的性能问题以及不确定性样式问题
|
476
483
|
*/
|
477
|
-
paginationHeight:
|
484
|
+
paginationHeight: shared_namespaceObject.PropTypes.number.def(TB_FOOT_HEIGHT),
|
478
485
|
/**
|
479
486
|
* 是否启用远程分页
|
480
487
|
*/
|
481
|
-
remotePagination:
|
488
|
+
remotePagination: shared_namespaceObject.PropTypes.bool.def(false),
|
482
489
|
/**
|
483
490
|
* 是否支持跨页全选
|
484
491
|
*/
|
485
|
-
acrossAll:
|
492
|
+
acrossAll: shared_namespaceObject.PropTypes.bool.def(false),
|
486
493
|
/**
|
487
494
|
* 空数据展示
|
488
495
|
*/
|
489
496
|
// emptyText: PropTypes.string.def('暂无数据'),
|
490
|
-
emptyText:
|
497
|
+
emptyText: shared_namespaceObject.PropTypes.string,
|
491
498
|
/**
|
492
499
|
* 单元格数据为空展示
|
493
500
|
*/
|
494
|
-
emptyCellText:
|
501
|
+
emptyCellText: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.func.def(function () {
|
495
502
|
return '';
|
496
503
|
})]).def(''),
|
497
504
|
/**
|
@@ -501,54 +508,54 @@ var tableProps = {
|
|
501
508
|
/**
|
502
509
|
* 行的 class 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
503
510
|
*/
|
504
|
-
rowClass:
|
511
|
+
rowClass: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
505
512
|
/**
|
506
513
|
* 行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
507
514
|
*/
|
508
|
-
rowStyle:
|
515
|
+
rowStyle: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
509
516
|
/**
|
510
517
|
* 单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style
|
511
518
|
*/
|
512
|
-
cellStyle:
|
519
|
+
cellStyle: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
513
520
|
/**
|
514
521
|
* 单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className
|
515
522
|
*/
|
516
|
-
cellClass:
|
523
|
+
cellClass: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
517
524
|
/**
|
518
525
|
* 表格底部loading加载效果,可以配合表格scroll-bottom事件使用
|
519
526
|
* 详细配置可参考bk-loading组件
|
520
527
|
*/
|
521
|
-
scrollLoading:
|
528
|
+
scrollLoading: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.bool]).def(undefined),
|
522
529
|
/**
|
523
530
|
* 仅对 type=selection 的列有效,类型为 Boolean,为 true 则会在数据更新之后保留之前选中的展开收起操作(需指定 row-key)
|
524
531
|
*/
|
525
|
-
reserveExpand:
|
532
|
+
reserveExpand: shared_namespaceObject.PropTypes.bool.def(false),
|
526
533
|
/**
|
527
534
|
* 仅对设置了selection的情况下生效
|
528
535
|
* 用于初始化或者更新row已选中状态
|
529
536
|
* 内部使用逻辑为:row[selectionKey],可以为多级选择,但是多级选择只支持 row.child.child
|
530
537
|
*/
|
531
|
-
selectionKey:
|
538
|
+
selectionKey: shared_namespaceObject.PropTypes.string.def(''),
|
532
539
|
/**
|
533
540
|
* 默认选中行
|
534
541
|
* 仅对设置了selection的情况下生效
|
535
542
|
* 值可以为 [key1, key2, key3, ...] 或者 [row1, row2, row3, ...]
|
536
543
|
* 如果设置为key,则 selectionKey 必须设置,内部匹配逻辑为:row[selectionKey] === key
|
537
544
|
*/
|
538
|
-
checked:
|
545
|
+
checked: shared_namespaceObject.PropTypes.array.def([]),
|
539
546
|
/**
|
540
547
|
* 提供自定义判定当前行是否选中
|
541
548
|
* 如果设置了此属性,其他判定均不生效
|
542
549
|
* ({ row, cell, data }) => bool
|
543
550
|
*/
|
544
|
-
isSelectedFn:
|
551
|
+
isSelectedFn: shared_namespaceObject.PropTypes.func.def(undefined),
|
545
552
|
/**
|
546
553
|
* 行数据的 Key,用来优化 Table 的渲染
|
547
554
|
* 此key用于渲染table row的key,便于大数据渲染时的性能优化
|
548
555
|
* 在使用 reserve-selection, reserve-expand 功能的情况下,该属性是必填的。
|
549
556
|
* 类型为 String 时,支持多层访问:user.info.id,同时支持 user.info[0].id
|
550
557
|
*/
|
551
|
-
rowKey:
|
558
|
+
rowKey: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.func]).def(TABLE_ROW_ATTRIBUTE.ROW_INDEX),
|
552
559
|
/**
|
553
560
|
* 当内容过长被隐藏时显示 tooltip, 此处为全局配置, 如果只配置此处,整个table都启用
|
554
561
|
* column内部可以单个配置覆盖此配置
|
@@ -560,17 +567,17 @@ var tableProps = {
|
|
560
567
|
* 设置此属性为true则会对源数据进行同步(如:启用selection,勾选时想要自动同步到源数据)
|
561
568
|
* 目前只会对指定了selectionKey的情况下才会对指定的字段数据进行更新,同时需要指定 rowKey,保证匹配到的row是正确的目标对象
|
562
569
|
*/
|
563
|
-
asyncData:
|
570
|
+
asyncData: shared_namespaceObject.PropTypes.bool.def(false),
|
564
571
|
/**
|
565
572
|
* 鼠标划过行样式行为
|
566
573
|
* @param { ROW_HOVER.AUTO }
|
567
574
|
* @param { ROW_HOVER.HIGHLIGHT }
|
568
575
|
*/
|
569
|
-
rowHover:
|
576
|
+
rowHover: shared_namespaceObject.PropTypes.oneOf(ROW_HOVER_OPTIONS).def(ROW_HOVER.HIGHLIGHT),
|
570
577
|
/**
|
571
578
|
* 默认的排序列的 prop 和顺序。它的 prop 属性指定默认的排序的列,order指定默认排序的顺序
|
572
579
|
*/
|
573
|
-
defaultSort:
|
580
|
+
defaultSort: shared_namespaceObject.PropTypes.shape({}).def({}),
|
574
581
|
/**
|
575
582
|
* 配合 column selection 使用
|
576
583
|
* 用于配置渲染行数据的勾选框是否可用
|
@@ -578,9 +585,9 @@ var tableProps = {
|
|
578
585
|
* 如果是函数,则返回 true|false
|
579
586
|
* ({ row, index, isCheckAll }) => boolean
|
580
587
|
*/
|
581
|
-
isRowSelectEnable:
|
588
|
+
isRowSelectEnable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func.def(function () {
|
582
589
|
return true;
|
583
|
-
}),
|
590
|
+
}), shared_namespaceObject.PropTypes.bool.def(true)]).def(true),
|
584
591
|
/**
|
585
592
|
* 当外层容器尺寸改变时,当前组件用什么方式进行重新计算
|
586
593
|
* 默认为 throttle,按照指定频率重新计算
|
@@ -592,7 +599,7 @@ var tableProps = {
|
|
592
599
|
/**
|
593
600
|
* 是否监表格尺寸变化而响应式重新计算渲染
|
594
601
|
*/
|
595
|
-
observerResize:
|
602
|
+
observerResize: shared_namespaceObject.PropTypes.bool.def(true),
|
596
603
|
// 对齐方式
|
597
604
|
align: TableAlign,
|
598
605
|
headerAlign: TableAlign,
|
@@ -601,7 +608,7 @@ var tableProps = {
|
|
601
608
|
* 默认样式为固定在第一行
|
602
609
|
* 需要跟随滚动或者其他样式,可以通过此配置进行覆盖
|
603
610
|
*/
|
604
|
-
prependStyle:
|
611
|
+
prependStyle: shared_namespaceObject.PropTypes.style().def({}),
|
605
612
|
/**
|
606
613
|
* 列排序行为
|
607
614
|
* independent:列与列之间的排序是独立的,互斥的
|
@@ -614,11 +621,11 @@ var tableProps = {
|
|
614
621
|
/**
|
615
622
|
* 是否采用flex布局表格
|
616
623
|
*/
|
617
|
-
isFlex:
|
624
|
+
isFlex: shared_namespaceObject.PropTypes.bool.def(true),
|
618
625
|
/**
|
619
626
|
* 是否支持行拖拽排序
|
620
627
|
*/
|
621
|
-
rowDraggable:
|
628
|
+
rowDraggable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func, shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.object]).def(false)
|
622
629
|
};
|
623
630
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
624
631
|
|
@@ -656,13 +663,13 @@ var TableColumnProp = {
|
|
656
663
|
label: LabelFunctionStringType,
|
657
664
|
field: LabelFunctionStringType,
|
658
665
|
render: RenderFunctionStringType,
|
659
|
-
width:
|
666
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
660
667
|
minWidth: StringNumberType(COL_MIN_WIDTH),
|
661
|
-
columnKey:
|
668
|
+
columnKey: shared_namespaceObject.PropTypes.string.def(''),
|
662
669
|
showOverflowTooltip: IOverflowTooltipPropType,
|
663
670
|
type: columnType,
|
664
|
-
resizable:
|
665
|
-
fixed:
|
671
|
+
resizable: shared_namespaceObject.PropTypes.bool.def(true),
|
672
|
+
fixed: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, fixedType]).def(false),
|
666
673
|
sort: ISortType,
|
667
674
|
filter: IFilterType,
|
668
675
|
colspan: SpanFunctionStringType.def(1),
|
@@ -670,7 +677,7 @@ var TableColumnProp = {
|
|
670
677
|
align: TableAlign,
|
671
678
|
className: RowClassFunctionStringType,
|
672
679
|
prop: LabelFunctionStringType,
|
673
|
-
index:
|
680
|
+
index: shared_namespaceObject.PropTypes.number.def(undefined)
|
674
681
|
};
|
675
682
|
/* harmony default export */ const table_column = ((0,external_vue_namespaceObject.defineComponent)({
|
676
683
|
name: 'TableColumn',
|
@@ -775,13 +782,17 @@ var TableColumnProp = {
|
|
775
782
|
}
|
776
783
|
}));
|
777
784
|
;// CONCATENATED MODULE: external "../config-provider"
|
778
|
-
var
|
779
|
-
var
|
780
|
-
const
|
785
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
786
|
+
var config_provider_y = x => () => x
|
787
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
781
788
|
;// CONCATENATED MODULE: external "../virtual-render"
|
782
|
-
var
|
783
|
-
var
|
784
|
-
const
|
789
|
+
var virtual_render_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
790
|
+
var virtual_render_y = x => () => x
|
791
|
+
const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__["default"] });
|
792
|
+
;// CONCATENATED MODULE: external "../virtual-render/virtual-render.less"
|
793
|
+
var virtual_render_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
794
|
+
var virtual_render_less_y = x => () => x
|
795
|
+
const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
785
796
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
786
797
|
function _classCallCheck(instance, Constructor) {
|
787
798
|
if (!(instance instanceof Constructor)) {
|
@@ -796,7 +807,7 @@ function _defineProperties(target, props) {
|
|
796
807
|
descriptor.enumerable = descriptor.enumerable || false;
|
797
808
|
descriptor.configurable = true;
|
798
809
|
if ("value" in descriptor) descriptor.writable = true;
|
799
|
-
Object.defineProperty(target,
|
810
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
800
811
|
}
|
801
812
|
}
|
802
813
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -862,7 +873,7 @@ var BkTableCache = /*#__PURE__*/function () {
|
|
862
873
|
|
863
874
|
;// CONCATENATED MODULE: ../../packages/table/src/events.ts
|
864
875
|
|
865
|
-
var _EMIT_EVENT_TYPES
|
876
|
+
var _EMIT_EVENT_TYPES;
|
866
877
|
/*
|
867
878
|
* Tencent is pleased to support the open source community by making
|
868
879
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -964,8 +975,8 @@ var EVENT_SCROLL_FN = function EVENT_SCROLL_FN(_args) {
|
|
964
975
|
var EVENT_DRAGEND_FN = function EVENT_DRAGEND_FN(_args) {
|
965
976
|
return true;
|
966
977
|
};
|
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 = (
|
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);
|
969
980
|
;// CONCATENATED MODULE: external "lodash/isElement"
|
970
981
|
var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
971
982
|
var isElement_y = x => () => x
|
@@ -976,8 +987,8 @@ var throttle_y = x => () => x
|
|
976
987
|
const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
|
977
988
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-column-resize.tsx
|
978
989
|
|
979
|
-
function ownKeys(
|
980
|
-
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; }
|
981
992
|
/*
|
982
993
|
* Tencent is pleased to support the open source community by making
|
983
994
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1008,7 +1019,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1008
1019
|
|
1009
1020
|
|
1010
1021
|
/* harmony default export */ const use_column_resize = (function (tableResp) {
|
1011
|
-
var _handler;
|
1012
1022
|
var immediate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
1013
1023
|
var head = arguments.length > 2 ? arguments[2] : undefined;
|
1014
1024
|
var formatData = tableResp.formatData,
|
@@ -1058,7 +1068,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1058
1068
|
dragOffsetX.value = -1000;
|
1059
1069
|
dragColumn = null;
|
1060
1070
|
var targetTable = (_head$value = head.value) === null || _head$value === void 0 ? void 0 : _head$value.querySelector('table');
|
1061
|
-
targetTable === null || targetTable === void 0
|
1071
|
+
targetTable === null || targetTable === void 0 || targetTable.querySelectorAll('th').forEach(function (th) {
|
1062
1072
|
return th.style.setProperty('user-select', 'inherit');
|
1063
1073
|
});
|
1064
1074
|
};
|
@@ -1081,7 +1091,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1081
1091
|
var setChildrenNodeCursor = function setChildrenNodeCursor(root, cursor) {
|
1082
1092
|
if ((0,isElement_namespaceObject["default"])(root)) {
|
1083
1093
|
var _root$style, _root$childNodes;
|
1084
|
-
(_root$style = root.style) === null || _root$style === void 0
|
1094
|
+
(_root$style = root.style) === null || _root$style === void 0 || _root$style.setProperty('cursor', cursor);
|
1085
1095
|
if (((_root$childNodes = root.childNodes) === null || _root$childNodes === void 0 ? void 0 : _root$childNodes.length) > 0) {
|
1086
1096
|
root.childNodes.forEach(function (node) {
|
1087
1097
|
return setChildrenNodeCursor(node, cursor);
|
@@ -1089,7 +1099,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1089
1099
|
}
|
1090
1100
|
}
|
1091
1101
|
};
|
1092
|
-
var handler = (
|
1102
|
+
var handler = defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, EVENTS.MOUSE_DOWN, function (e, column) {
|
1093
1103
|
if (!isInDragSection) {
|
1094
1104
|
return;
|
1095
1105
|
}
|
@@ -1106,7 +1116,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1106
1116
|
updateOffsetX(e)();
|
1107
1117
|
document.addEventListener('mouseup', handleMouseUp);
|
1108
1118
|
document.addEventListener('mousemove', handleMouseMove);
|
1109
|
-
}),
|
1119
|
+
}), EVENTS.MOUSE_MOVE, function (e, _column) {
|
1110
1120
|
if (isMouseDown && !isDraging) {
|
1111
1121
|
isDraging = true;
|
1112
1122
|
}
|
@@ -1131,13 +1141,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
1131
1141
|
isInDragSection = false;
|
1132
1142
|
}
|
1133
1143
|
}
|
1134
|
-
}),
|
1144
|
+
}), EVENTS.MOUSE_OUT, function (e, _column) {
|
1135
1145
|
var target = e.target.closest('th');
|
1136
1146
|
if (!isDraging) {
|
1137
1147
|
setChildrenNodeCursor(target, '');
|
1138
1148
|
target.classList.remove('col-resize-hover');
|
1139
1149
|
}
|
1140
|
-
})
|
1150
|
+
});
|
1141
1151
|
var getEventName = function getEventName(event) {
|
1142
1152
|
return "".concat(pluginName, "_").concat(event);
|
1143
1153
|
};
|
@@ -1406,7 +1416,7 @@ function _toConsumableArray(arr) {
|
|
1406
1416
|
Object.assign(item.className, className);
|
1407
1417
|
});
|
1408
1418
|
};
|
1409
|
-
var _usePrefix = (0,
|
1419
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1410
1420
|
resolveClassName = _usePrefix.resolveClassName;
|
1411
1421
|
var fixedWrapperClass = resolveClassName('table-fixed');
|
1412
1422
|
return {
|
@@ -1420,9 +1430,13 @@ function _toConsumableArray(arr) {
|
|
1420
1430
|
};
|
1421
1431
|
});
|
1422
1432
|
;// CONCATENATED MODULE: external "../loading"
|
1423
|
-
var
|
1424
|
-
var
|
1425
|
-
const
|
1433
|
+
var loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1434
|
+
var loading_y = x => () => x
|
1435
|
+
const loading_namespaceObject = loading_x({ ["BkLoadingMode"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingMode, ["BkLoadingSize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingSize, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"] });
|
1436
|
+
;// CONCATENATED MODULE: external "../loading/loading.less"
|
1437
|
+
var loading_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1438
|
+
var loading_less_y = x => () => x
|
1439
|
+
const loading_less_namespaceObject = loading_less_x({ });
|
1426
1440
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-scroll-loading.tsx
|
1427
1441
|
|
1428
1442
|
|
@@ -1453,6 +1467,8 @@ const external_loading_namespaceObject = external_loading_x({ ["BkLoadingMode"]:
|
|
1453
1467
|
*/
|
1454
1468
|
|
1455
1469
|
|
1470
|
+
|
1471
|
+
|
1456
1472
|
/* harmony default export */ const use_scroll_loading = (function (props, ctx) {
|
1457
1473
|
var refScrollLoading = (0,external_vue_namespaceObject.toRef)(props, 'scrollLoading');
|
1458
1474
|
var getLoadingOption = function getLoadingOption() {
|
@@ -1461,8 +1477,8 @@ const external_loading_namespaceObject = external_loading_x({ ["BkLoadingMode"]:
|
|
1461
1477
|
loading: !!refScrollLoading.value,
|
1462
1478
|
inline: true,
|
1463
1479
|
title: '',
|
1464
|
-
size:
|
1465
|
-
mode:
|
1480
|
+
size: loading_namespaceObject.BkLoadingSize.Normal,
|
1481
|
+
mode: loading_namespaceObject.BkLoadingMode.Default,
|
1466
1482
|
indicator: null
|
1467
1483
|
};
|
1468
1484
|
}
|
@@ -1481,7 +1497,7 @@ const external_loading_namespaceObject = external_loading_x({ ["BkLoadingMode"]:
|
|
1481
1497
|
title = _getLoadingOption.title,
|
1482
1498
|
inline = _getLoadingOption.inline,
|
1483
1499
|
indicator = _getLoadingOption.indicator;
|
1484
|
-
return (_ctx$slots$fixedBotto = (_ctx$slots$fixedBotto2 = (_ctx$slots = ctx.slots).fixedBottom) === null || _ctx$slots$fixedBotto2 === void 0 ? void 0 : _ctx$slots$fixedBotto2.call(_ctx$slots)) !== null && _ctx$slots$fixedBotto !== void 0 ? _ctx$slots$fixedBotto : (0,external_vue_namespaceObject.createVNode)(
|
1500
|
+
return (_ctx$slots$fixedBotto = (_ctx$slots$fixedBotto2 = (_ctx$slots = ctx.slots).fixedBottom) === null || _ctx$slots$fixedBotto2 === void 0 ? void 0 : _ctx$slots$fixedBotto2.call(_ctx$slots)) !== null && _ctx$slots$fixedBotto !== void 0 ? _ctx$slots$fixedBotto : (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
1485
1501
|
loading: loading,
|
1486
1502
|
size: size,
|
1487
1503
|
mode: mode,
|
@@ -1587,8 +1603,8 @@ function v4(options, buf, offset) {
|
|
1587
1603
|
|
1588
1604
|
|
1589
1605
|
|
1590
|
-
function use_pagination_ownKeys(
|
1591
|
-
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; }
|
1592
1608
|
/*
|
1593
1609
|
* Tencent is pleased to support the open source community by making
|
1594
1610
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -2703,8 +2719,8 @@ var index = (function () {
|
|
2703
2719
|
|
2704
2720
|
|
2705
2721
|
var _this = undefined;
|
2706
|
-
function utils_ownKeys(
|
2707
|
-
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; }
|
2708
2724
|
/*
|
2709
2725
|
* Tencent is pleased to support the open source community by making
|
2710
2726
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3098,8 +3114,7 @@ var getSortFn = function getSortFn(column, sortType) {
|
|
3098
3114
|
};
|
3099
3115
|
};
|
3100
3116
|
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);
|
3117
|
+
var steps = defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, SORT_OPTION.NULL, 3), SORT_OPTION.ASC, 1), SORT_OPTION.DESC, 2);
|
3103
3118
|
if (steps[sortType] === undefined) {
|
3104
3119
|
return SORT_OPTION.ASC;
|
3105
3120
|
}
|
@@ -3168,8 +3183,8 @@ var resolveColumnSortProp = function resolveColumnSortProp(col, props) {
|
|
3168
3183
|
;// CONCATENATED MODULE: ../../packages/table/src/use-attributes.ts
|
3169
3184
|
|
3170
3185
|
|
3171
|
-
function use_attributes_ownKeys(
|
3172
|
-
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; }
|
3173
3188
|
/*
|
3174
3189
|
* Tencent is pleased to support the open source community by making
|
3175
3190
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3203,7 +3218,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3203
3218
|
|
3204
3219
|
|
3205
3220
|
/* harmony default export */ const use_attributes = (function (props) {
|
3206
|
-
var t = (0,
|
3221
|
+
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
3207
3222
|
var getDefaultSettings = function getDefaultSettings() {
|
3208
3223
|
var _ref, _SETTING_SIZE$size;
|
3209
3224
|
var _props$settings = props.settings,
|
@@ -3298,7 +3313,6 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3298
3313
|
var skipColNum = 0;
|
3299
3314
|
var needColSpan = neepColspanOrRowspan(['colspan']);
|
3300
3315
|
(formatData.columns || []).forEach(function (col, index) {
|
3301
|
-
var _Object$assign;
|
3302
3316
|
var _ref4 = needColSpan ? getColumnSpanConfig(col, index, skipColNum) : {
|
3303
3317
|
skipCol: false,
|
3304
3318
|
skipColumnNum: 0,
|
@@ -3324,17 +3338,17 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3324
3338
|
}
|
3325
3339
|
return fn;
|
3326
3340
|
};
|
3327
|
-
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, {
|
3328
3342
|
skipCol: skipCol,
|
3329
3343
|
skipColumnNum: skipColumnNum,
|
3330
3344
|
skipColLen: skipColLen
|
3331
|
-
}),
|
3345
|
+
}), COLUMN_ATTRIBUTE.COL_UID, esm_browser_v4())));
|
3332
3346
|
}
|
3333
|
-
Object.assign(formatData.columnSchema.get(col), (
|
3347
|
+
Object.assign(formatData.columnSchema.get(col), defineProperty_defineProperty(defineProperty_defineProperty({}, COLUMN_ATTRIBUTE.COL_SPAN, {
|
3334
3348
|
skipCol: skipCol,
|
3335
3349
|
skipColumnNum: skipColumnNum,
|
3336
3350
|
skipColLen: skipColLen
|
3337
|
-
}),
|
3351
|
+
}), COLUMN_ATTRIBUTE.COL_MIN_WIDTH, resolveMinWidth(col)));
|
3338
3352
|
});
|
3339
3353
|
};
|
3340
3354
|
var getColumnSpanConfig = function getColumnSpanConfig(col, index, skipColNum) {
|
@@ -3565,7 +3579,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3565
3579
|
* @param data
|
3566
3580
|
*/
|
3567
3581
|
var formatDataSchema = function formatDataSchema(data) {
|
3568
|
-
var _formatData$data
|
3582
|
+
var _formatData$data;
|
3569
3583
|
formatData.data.length = 0;
|
3570
3584
|
(_formatData$data = formatData.data).push.apply(_formatData$data, _toConsumableArray(data));
|
3571
3585
|
var hasSelectedRow = false;
|
@@ -3579,8 +3593,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3579
3593
|
hasUnSelectedRow = true;
|
3580
3594
|
}
|
3581
3595
|
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));
|
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));
|
3584
3597
|
}
|
3585
3598
|
// 当传入的data改变时,更新相关属性
|
3586
3599
|
// ROW_EXPAND & ROW_SELECTION & ROW_UID 不做更新
|
@@ -3588,7 +3601,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3588
3601
|
rowId = target[TABLE_ROW_ATTRIBUTE.ROW_UID];
|
3589
3602
|
target[TABLE_ROW_ATTRIBUTE.ROW_INDEX] = index + 1;
|
3590
3603
|
});
|
3591
|
-
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));
|
3592
3605
|
formatData.dataSchema.set(NEED_COL_ROW_SPAN, defineProperty_defineProperty({}, TABLE_ROW_ATTRIBUTE.ROW_SPAN, neepColspanOrRowspan(['rowspan'])));
|
3593
3606
|
};
|
3594
3607
|
/**
|
@@ -3667,7 +3680,6 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3667
3680
|
setRowSelection(row, !getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION));
|
3668
3681
|
};
|
3669
3682
|
var toggleAllSelection = function toggleAllSelection(value) {
|
3670
|
-
var _formatData$dataSchem7;
|
3671
3683
|
var val = value !== null && value !== void 0 ? value : !isCheckedAll();
|
3672
3684
|
if (props.acrossAll) {
|
3673
3685
|
formatData.data.forEach(function (row) {
|
@@ -3678,7 +3690,7 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3678
3690
|
pageData.forEach(function (row) {
|
3679
3691
|
return setRowSelection(row, val);
|
3680
3692
|
});
|
3681
|
-
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));
|
3682
3694
|
};
|
3683
3695
|
var clearSelection = function clearSelection() {
|
3684
3696
|
formatData.data.forEach(function (row) {
|
@@ -3958,8 +3970,8 @@ function use_attributes_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
3958
3970
|
});
|
3959
3971
|
;// CONCATENATED MODULE: ../../packages/table/src/use-common.ts
|
3960
3972
|
|
3961
|
-
function use_common_ownKeys(
|
3962
|
-
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; }
|
3963
3975
|
/*
|
3964
3976
|
* Tencent is pleased to support the open source community by making
|
3965
3977
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -4000,8 +4012,7 @@ function use_common_objectSpread(target) { for (var i = 1; i < arguments.length;
|
|
4000
4012
|
* @param pageData 当前页数据
|
4001
4013
|
*/
|
4002
4014
|
var useClass = function useClass(props, targetColumns, root, TableSchema, pageData) {
|
4003
|
-
var
|
4004
|
-
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
4015
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
4005
4016
|
resolveClassName = _usePrefix.resolveClassName;
|
4006
4017
|
var _useColumn = use_column(props, targetColumns),
|
4007
4018
|
getColumns = _useColumn.getColumns;
|
@@ -4017,10 +4028,9 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4017
4028
|
return hasScrollY.value;
|
4018
4029
|
});
|
4019
4030
|
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));
|
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));
|
4022
4032
|
});
|
4023
|
-
var headClass = (0,
|
4033
|
+
var headClass = (0,shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-head'), true), 'has-settings', !!props.settings));
|
4024
4034
|
var resolvedColumns = (0,external_vue_namespaceObject.computed)(function () {
|
4025
4035
|
return getColumns();
|
4026
4036
|
});
|
@@ -4034,8 +4044,7 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4034
4044
|
});
|
4035
4045
|
var contentClass = defineProperty_defineProperty({}, resolveClassName('table-body'), true);
|
4036
4046
|
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));
|
4047
|
+
return (0,shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-footer'), true), 'is-hidden', !props.pagination || !props.data.length));
|
4039
4048
|
});
|
4040
4049
|
var getTableHeight = function getTableHeight() {
|
4041
4050
|
if (props.height === 'number') {
|
@@ -4068,7 +4077,6 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4068
4077
|
// maxHeight: props.maxHeight,
|
4069
4078
|
};
|
4070
4079
|
});
|
4071
|
-
|
4072
4080
|
var resolvePropHeight = function resolvePropHeight(height, parentHeight) {
|
4073
4081
|
var strHeight = String(height);
|
4074
4082
|
if (/^\d+\.?\d*$/.test(strHeight)) {
|
@@ -4183,8 +4191,7 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4183
4191
|
});
|
4184
4192
|
});
|
4185
4193
|
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;
|
4194
|
+
return defineProperty_defineProperty(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-body-content'), true), resolveClassName('stripe'), props.stripe), 'with-virtual-render', props.virtualEnabled);
|
4188
4195
|
});
|
4189
4196
|
var resizeColumnClass = {
|
4190
4197
|
column_drag_line: true,
|
@@ -4195,8 +4202,7 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4195
4202
|
_bottom: true
|
4196
4203
|
};
|
4197
4204
|
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;
|
4205
|
+
return defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('fixed-bottom-border'), true), '_is-empty', !props.data.length);
|
4200
4206
|
});
|
4201
4207
|
var columnGhostStyle = {
|
4202
4208
|
zIndex: -1,
|
@@ -4258,21 +4264,29 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4258
4264
|
};
|
4259
4265
|
};
|
4260
4266
|
;// CONCATENATED MODULE: external "../checkbox"
|
4261
|
-
var
|
4262
|
-
var
|
4263
|
-
const
|
4267
|
+
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4268
|
+
var checkbox_y = x => () => x
|
4269
|
+
const checkbox_namespaceObject = checkbox_x({ ["BkCheckboxGroup"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__.BkCheckboxGroup, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"] });
|
4270
|
+
;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
|
4271
|
+
var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4272
|
+
var checkbox_less_y = x => () => x
|
4273
|
+
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
4264
4274
|
;// CONCATENATED MODULE: external "../icon"
|
4265
|
-
var
|
4266
|
-
var
|
4267
|
-
const
|
4275
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4276
|
+
var icon_y = x => () => x
|
4277
|
+
const icon_namespaceObject = icon_x({ ["DownShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.DownShape, ["Funnel"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Funnel, ["GragFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.GragFill, ["RightShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.RightShape });
|
4268
4278
|
;// CONCATENATED MODULE: external "../pagination"
|
4269
|
-
var
|
4270
|
-
var
|
4271
|
-
const
|
4279
|
+
var pagination_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4280
|
+
var pagination_y = x => () => x
|
4281
|
+
const pagination_namespaceObject = pagination_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_pagination_95c6c47e__["default"] });
|
4282
|
+
;// CONCATENATED MODULE: external "../pagination/pagination.less"
|
4283
|
+
var pagination_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4284
|
+
var pagination_less_y = x => () => x
|
4285
|
+
const pagination_less_namespaceObject = pagination_less_x({ });
|
4272
4286
|
;// CONCATENATED MODULE: external "../directives"
|
4273
|
-
var
|
4274
|
-
var
|
4275
|
-
const
|
4287
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4288
|
+
var directives_y = x => () => x
|
4289
|
+
const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkEllipsisInstance });
|
4276
4290
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-cell.tsx
|
4277
4291
|
|
4278
4292
|
|
@@ -4312,12 +4326,12 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4312
4326
|
name: 'TableCell',
|
4313
4327
|
props: {
|
4314
4328
|
column: IColumnType,
|
4315
|
-
row:
|
4329
|
+
row: shared_namespaceObject.PropTypes.any.def({}),
|
4316
4330
|
parentSetting: IOverflowTooltipPropType,
|
4317
|
-
title:
|
4318
|
-
observerResize:
|
4319
|
-
isHead:
|
4320
|
-
headExplain:
|
4331
|
+
title: shared_namespaceObject.PropTypes.string.def(undefined),
|
4332
|
+
observerResize: shared_namespaceObject.PropTypes.bool.def(true),
|
4333
|
+
isHead: shared_namespaceObject.PropTypes.bool.def(false),
|
4334
|
+
headExplain: shared_namespaceObject.PropTypes.string,
|
4321
4335
|
resizerWay: (0,external_vue_types_namespaceObject.toType)('ResizerWay', {
|
4322
4336
|
"default": ResizerWay.DEBOUNCE
|
4323
4337
|
})
|
@@ -4438,7 +4452,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4438
4452
|
};
|
4439
4453
|
var resolveOverflowTooltip = function resolveOverflowTooltip() {
|
4440
4454
|
var target = getEllipsisTarget();
|
4441
|
-
if (!target || !(0,
|
4455
|
+
if (!target || !(0,shared_namespaceObject.isElement)(target)) {
|
4442
4456
|
return;
|
4443
4457
|
}
|
4444
4458
|
var _resolveTooltipOption = resolveTooltipOption(),
|
@@ -4446,7 +4460,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4446
4460
|
disabled = _resolveTooltipOption.disabled;
|
4447
4461
|
isTipsEnabled.value = !disabled;
|
4448
4462
|
if (mode === 'auto') {
|
4449
|
-
isTipsEnabled.value = (0,
|
4463
|
+
isTipsEnabled.value = (0,shared_namespaceObject.hasOverflowEllipsis)(target);
|
4450
4464
|
}
|
4451
4465
|
if (mode === 'static') {
|
4452
4466
|
isTipsEnabled.value = true;
|
@@ -4454,7 +4468,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4454
4468
|
if (isTipsEnabled.value) {
|
4455
4469
|
var bindings = (0,external_vue_namespaceObject.ref)(resolveTooltipOption());
|
4456
4470
|
if (bkEllipsisIns === null) {
|
4457
|
-
bkEllipsisIns = (0,
|
4471
|
+
bkEllipsisIns = (0,directives_namespaceObject.bkEllipsisInstance)(target, {
|
4458
4472
|
disabled: bindings.value.disabled,
|
4459
4473
|
content: bindings.value.content,
|
4460
4474
|
mode: bindings.value.mode,
|
@@ -4463,7 +4477,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4463
4477
|
}
|
4464
4478
|
} else {
|
4465
4479
|
var _bkEllipsisIns;
|
4466
|
-
(_bkEllipsisIns = bkEllipsisIns) === null || _bkEllipsisIns === void 0
|
4480
|
+
(_bkEllipsisIns = bkEllipsisIns) === null || _bkEllipsisIns === void 0 || _bkEllipsisIns.destroyInstance(target);
|
4467
4481
|
bkEllipsisIns = null;
|
4468
4482
|
}
|
4469
4483
|
};
|
@@ -4488,7 +4502,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4488
4502
|
});
|
4489
4503
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
4490
4504
|
var _bkEllipsisIns2;
|
4491
|
-
(_bkEllipsisIns2 = bkEllipsisIns) === null || _bkEllipsisIns2 === void 0
|
4505
|
+
(_bkEllipsisIns2 = bkEllipsisIns) === null || _bkEllipsisIns2 === void 0 || _bkEllipsisIns2.destroyInstance(refRoot.value);
|
4492
4506
|
});
|
4493
4507
|
var hasExplain = props.headExplain || props.column.explain;
|
4494
4508
|
return function () {
|
@@ -4537,9 +4551,13 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4537
4551
|
}
|
4538
4552
|
}));
|
4539
4553
|
;// CONCATENATED MODULE: external "../exception"
|
4540
|
-
var
|
4541
|
-
var
|
4542
|
-
const
|
4554
|
+
var exception_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4555
|
+
var exception_y = x => () => x
|
4556
|
+
const exception_namespaceObject = exception_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_exception_7490d0fd__["default"] });
|
4557
|
+
;// CONCATENATED MODULE: external "../exception/exception.less"
|
4558
|
+
var exception_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4559
|
+
var exception_less_y = x => () => x
|
4560
|
+
const exception_less_namespaceObject = exception_less_x({ });
|
4543
4561
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/body-empty.tsx
|
4544
4562
|
|
4545
4563
|
/*
|
@@ -4571,16 +4589,17 @@ const external_exception_namespaceObject = external_exception_x({ ["default"]: (
|
|
4571
4589
|
|
4572
4590
|
|
4573
4591
|
|
4592
|
+
|
4574
4593
|
/* harmony default export */ const body_empty = ((0,external_vue_namespaceObject.defineComponent)({
|
4575
4594
|
name: 'BodyEmpty',
|
4576
4595
|
props: {
|
4577
|
-
list:
|
4578
|
-
filterList:
|
4579
|
-
emptyText:
|
4596
|
+
list: shared_namespaceObject.PropTypes.array.def([]),
|
4597
|
+
filterList: shared_namespaceObject.PropTypes.array.def([]),
|
4598
|
+
emptyText: shared_namespaceObject.PropTypes.string
|
4580
4599
|
},
|
4581
4600
|
emits: ['change'],
|
4582
4601
|
setup: function setup(props) {
|
4583
|
-
var t = (0,
|
4602
|
+
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
4584
4603
|
var localEmptyText = (0,external_vue_namespaceObject.computed)(function () {
|
4585
4604
|
if (props.emptyText === undefined) {
|
4586
4605
|
return t.value.emptyText;
|
@@ -4591,7 +4610,7 @@ const external_exception_namespaceObject = external_exception_x({ ["default"]: (
|
|
4591
4610
|
return props.list.length === 0 ? 'empty' : 'search-empty';
|
4592
4611
|
});
|
4593
4612
|
return function () {
|
4594
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
4613
|
+
return (0,external_vue_namespaceObject.createVNode)(exception_namespaceObject["default"], {
|
4595
4614
|
"scene": "part",
|
4596
4615
|
"type": type.value,
|
4597
4616
|
"description": localEmptyText.value
|
@@ -4600,17 +4619,25 @@ const external_exception_namespaceObject = external_exception_x({ ["default"]: (
|
|
4600
4619
|
}
|
4601
4620
|
}));
|
4602
4621
|
;// CONCATENATED MODULE: external "../button"
|
4603
|
-
var
|
4604
|
-
var
|
4605
|
-
const
|
4622
|
+
var button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4623
|
+
var button_y = x => () => x
|
4624
|
+
const button_namespaceObject = button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__["default"] });
|
4625
|
+
;// CONCATENATED MODULE: external "../button/button.less"
|
4626
|
+
var button_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4627
|
+
var button_less_y = x => () => x
|
4628
|
+
const button_less_namespaceObject = button_less_x({ });
|
4606
4629
|
;// CONCATENATED MODULE: external "../icon/"
|
4607
4630
|
var _x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4608
4631
|
var _y = x => () => x
|
4609
|
-
const _namespaceObject = _x({ ["AngleDownFill"]: () =>
|
4632
|
+
const _namespaceObject = _x({ ["AngleDownFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.AngleDownFill, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.AngleUpFill, ["CloseLine"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.CloseLine, ["CogShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.CogShape });
|
4610
4633
|
;// CONCATENATED MODULE: external "../popover"
|
4611
|
-
var
|
4612
|
-
var
|
4613
|
-
const
|
4634
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4635
|
+
var popover_y = x => () => x
|
4636
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
4637
|
+
;// CONCATENATED MODULE: external "../popover/popover.less"
|
4638
|
+
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4639
|
+
var popover_less_y = x => () => x
|
4640
|
+
const popover_less_namespaceObject = popover_less_x({ });
|
4614
4641
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/settings.tsx
|
4615
4642
|
|
4616
4643
|
|
@@ -4649,6 +4676,10 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
4649
4676
|
|
4650
4677
|
|
4651
4678
|
|
4679
|
+
|
4680
|
+
|
4681
|
+
|
4682
|
+
|
4652
4683
|
function _isSlot(s) {
|
4653
4684
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
4654
4685
|
}
|
@@ -4656,15 +4687,15 @@ function _isSlot(s) {
|
|
4656
4687
|
name: 'Settings',
|
4657
4688
|
props: {
|
4658
4689
|
settings: ITableSettings,
|
4659
|
-
columns:
|
4690
|
+
columns: shared_namespaceObject.PropTypes.arrayOf(IColumnType).def([])
|
4660
4691
|
},
|
4661
4692
|
emits: ['change'],
|
4662
4693
|
setup: function setup(props, _ref) {
|
4663
4694
|
var emit = _ref.emit,
|
4664
4695
|
slots = _ref.slots;
|
4665
|
-
var _usePrefix = (0,
|
4696
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
4666
4697
|
resolveClassName = _usePrefix.resolveClassName;
|
4667
|
-
var t = (0,
|
4698
|
+
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
4668
4699
|
var defaultSizeList = createDefaultSizeList(t);
|
4669
4700
|
var resolvedColVal = function resolvedColVal(item, index) {
|
4670
4701
|
return resolvePropVal(item, ['id', 'field', 'type'], [item, index]);
|
@@ -4820,7 +4851,7 @@ function _isSlot(s) {
|
|
4820
4851
|
});
|
4821
4852
|
return function () {
|
4822
4853
|
var _localSettings$value$2;
|
4823
|
-
return props.settings ? (0,external_vue_namespaceObject.createVNode)(
|
4854
|
+
return props.settings ? (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
4824
4855
|
"trigger": (_localSettings$value$2 = localSettings.value.trigger) !== null && _localSettings$value$2 !== void 0 ? _localSettings$value$2 : 'manual',
|
4825
4856
|
"isShow": isShow.value,
|
4826
4857
|
"placement": "bottom-end",
|
@@ -4859,7 +4890,7 @@ function _isSlot(s) {
|
|
4859
4890
|
}, [t.value.setting.fields.subtitle(localSettings.value.limit)]) : '']), isLimit.value ? '' : (0,external_vue_namespaceObject.createVNode)("span", {
|
4860
4891
|
"class": "check-all",
|
4861
4892
|
"onClick": handleCheckAllClick
|
4862
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
4893
|
+
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
4863
4894
|
"label": t.value.setting.fields.selectAll,
|
4864
4895
|
"indeterminate": Boolean(indeterminate.value),
|
4865
4896
|
"modelValue": checkedFields.value.length > 0
|
@@ -4867,7 +4898,7 @@ function _isSlot(s) {
|
|
4867
4898
|
"default": function _default() {
|
4868
4899
|
return [t.value.setting.fields.selectAll];
|
4869
4900
|
}
|
4870
|
-
})])]), (0,external_vue_namespaceObject.createVNode)(
|
4901
|
+
})])]), (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject.BkCheckboxGroup, {
|
4871
4902
|
"class": "setting-body-fields",
|
4872
4903
|
"modelValue": checkedFields.value,
|
4873
4904
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
@@ -4877,7 +4908,7 @@ function _isSlot(s) {
|
|
4877
4908
|
var _slot;
|
4878
4909
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
4879
4910
|
"class": "field-item"
|
4880
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
4911
|
+
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
4881
4912
|
"checked": checkedFields.value.includes(resolvedColVal(item, index)),
|
4882
4913
|
"label": resolvedColVal(item, index),
|
4883
4914
|
"disabled": isItemReadonly(item, index)
|
@@ -4894,7 +4925,7 @@ function _isSlot(s) {
|
|
4894
4925
|
"class": "setting-body-line-height"
|
4895
4926
|
}, [t.value.setting.lineHeight.title, (0,external_vue_namespaceObject.createTextVNode)("\uFF1A"), renderSize()]) : '']), (0,external_vue_namespaceObject.createVNode)("div", {
|
4896
4927
|
"class": "setting-footer"
|
4897
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
4928
|
+
}, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
4898
4929
|
"theme": "primary",
|
4899
4930
|
"style": buttonStyle,
|
4900
4931
|
"onClick": handleSaveClick
|
@@ -4902,7 +4933,7 @@ function _isSlot(s) {
|
|
4902
4933
|
"default": function _default() {
|
4903
4934
|
return [t.value.setting.options.ok];
|
4904
4935
|
}
|
4905
|
-
}), (0,external_vue_namespaceObject.createVNode)(
|
4936
|
+
}), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
4906
4937
|
"style": buttonStyle,
|
4907
4938
|
"onClick": handleCancelClick
|
4908
4939
|
}, {
|
@@ -4948,7 +4979,7 @@ function _isSlot(s) {
|
|
4948
4979
|
}
|
4949
4980
|
var beforeEventFire = function beforeEventFire(fn) {
|
4950
4981
|
if (props.rowDraggable) {
|
4951
|
-
fn === null || fn === void 0
|
4982
|
+
fn === null || fn === void 0 || fn();
|
4952
4983
|
}
|
4953
4984
|
};
|
4954
4985
|
var getTargetRow = function getTargetRow(event) {
|
@@ -5064,6 +5095,11 @@ function _isSlot(s) {
|
|
5064
5095
|
|
5065
5096
|
|
5066
5097
|
|
5098
|
+
|
5099
|
+
|
5100
|
+
|
5101
|
+
|
5102
|
+
|
5067
5103
|
function head_filter_isSlot(s) {
|
5068
5104
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
5069
5105
|
}
|
@@ -5071,14 +5107,14 @@ function head_filter_isSlot(s) {
|
|
5071
5107
|
name: 'HeadFilter',
|
5072
5108
|
props: {
|
5073
5109
|
column: IColumnType,
|
5074
|
-
height:
|
5110
|
+
height: shared_namespaceObject.PropTypes.number.def(LINE_HEIGHT)
|
5075
5111
|
},
|
5076
5112
|
emits: ['change', 'filterSave'],
|
5077
5113
|
setup: function setup(props, _ref) {
|
5078
5114
|
var emit = _ref.emit;
|
5079
|
-
var _usePrefix = (0,
|
5115
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
5080
5116
|
resolveClassName = _usePrefix.resolveClassName;
|
5081
|
-
var t = (0,
|
5117
|
+
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
5082
5118
|
var column = props.column;
|
5083
5119
|
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props.column),
|
5084
5120
|
filter = _toRefs.filter;
|
@@ -5107,10 +5143,9 @@ function head_filter_isSlot(s) {
|
|
5107
5143
|
deep: true
|
5108
5144
|
});
|
5109
5145
|
var headClass = (0,external_vue_namespaceObject.computed)(function () {
|
5110
|
-
|
5111
|
-
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));
|
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));
|
5112
5147
|
});
|
5113
|
-
var headFilterContentClass = (0,
|
5148
|
+
var headFilterContentClass = (0,shared_namespaceObject.classes)(defineProperty_defineProperty({}, resolveClassName('table-head-filter'), true));
|
5114
5149
|
var refVirtualRender = (0,external_vue_namespaceObject.ref)(null);
|
5115
5150
|
var handlePopShow = function handlePopShow(isOpen) {
|
5116
5151
|
state.isOpen = isOpen;
|
@@ -5193,7 +5228,7 @@ function head_filter_isSlot(s) {
|
|
5193
5228
|
"class": "btn-filter-save disabled"
|
5194
5229
|
}, [text]);
|
5195
5230
|
}
|
5196
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5231
|
+
return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
5197
5232
|
"theme": "primary",
|
5198
5233
|
"size": "small",
|
5199
5234
|
"style": "width: 56px; margin-right: 8px;",
|
@@ -5211,7 +5246,7 @@ function head_filter_isSlot(s) {
|
|
5211
5246
|
if (disabled) {
|
5212
5247
|
return '';
|
5213
5248
|
}
|
5214
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5249
|
+
return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
5215
5250
|
"style": "width: 56px;",
|
5216
5251
|
"size": "small",
|
5217
5252
|
"disabled": state.checked.length === 0,
|
@@ -5239,7 +5274,7 @@ function head_filter_isSlot(s) {
|
|
5239
5274
|
return scope.data.map(function (item) {
|
5240
5275
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
5241
5276
|
"class": "list-item"
|
5242
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
5277
|
+
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
5243
5278
|
"label": item.value,
|
5244
5279
|
"key": item.$index,
|
5245
5280
|
"immediateEmitChange": false,
|
@@ -5270,11 +5305,11 @@ function head_filter_isSlot(s) {
|
|
5270
5305
|
});
|
5271
5306
|
*/
|
5272
5307
|
return function () {
|
5273
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5308
|
+
return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
5274
5309
|
"trigger": "click",
|
5275
5310
|
"isShow": state.isOpen,
|
5276
5311
|
"placement": "bottom-start",
|
5277
|
-
"renderType":
|
5312
|
+
"renderType": shared_namespaceObject.RenderType.SHOWN,
|
5278
5313
|
"arrow": false,
|
5279
5314
|
"offset": 0
|
5280
5315
|
}, {
|
@@ -5288,18 +5323,18 @@ function head_filter_isSlot(s) {
|
|
5288
5323
|
}
|
5289
5324
|
}), {
|
5290
5325
|
"default": function _default() {
|
5291
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5326
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Funnel, {
|
5292
5327
|
"class": headClass.value
|
5293
5328
|
}, null);
|
5294
5329
|
},
|
5295
5330
|
content: function content() {
|
5296
5331
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
5297
5332
|
"class": headFilterContentClass
|
5298
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
5333
|
+
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject.BkCheckboxGroup, {
|
5299
5334
|
"class": "content-list"
|
5300
5335
|
}, {
|
5301
5336
|
"default": function _default() {
|
5302
|
-
return [(0,external_vue_namespaceObject.createVNode)(
|
5337
|
+
return [(0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
|
5303
5338
|
"maxHeight": maxHeight.value,
|
5304
5339
|
"height": height.value,
|
5305
5340
|
"lineHeight": 32,
|
@@ -5325,31 +5360,31 @@ function _arrayWithHoles(arr) {
|
|
5325
5360
|
if (Array.isArray(arr)) return arr;
|
5326
5361
|
}
|
5327
5362
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
5328
|
-
function _iterableToArrayLimit(
|
5329
|
-
var
|
5330
|
-
if (null !=
|
5331
|
-
var
|
5332
|
-
|
5333
|
-
|
5334
|
-
|
5335
|
-
|
5336
|
-
|
5337
|
-
|
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;
|
5338
5373
|
try {
|
5339
|
-
if (
|
5340
|
-
if (Object(
|
5341
|
-
|
5342
|
-
} else for (; !(
|
5343
|
-
} catch (
|
5344
|
-
|
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;
|
5345
5380
|
} finally {
|
5346
5381
|
try {
|
5347
|
-
if (!
|
5382
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
5348
5383
|
} finally {
|
5349
|
-
if (
|
5384
|
+
if (o) throw n;
|
5350
5385
|
}
|
5351
5386
|
}
|
5352
|
-
return
|
5387
|
+
return a;
|
5353
5388
|
}
|
5354
5389
|
}
|
5355
5390
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
@@ -5403,15 +5438,15 @@ function _slicedToArray(arr, i) {
|
|
5403
5438
|
name: 'HeadSort',
|
5404
5439
|
props: {
|
5405
5440
|
column: IColumnType,
|
5406
|
-
defaultSort:
|
5407
|
-
active:
|
5441
|
+
defaultSort: shared_namespaceObject.PropTypes.oneOf(SORT_OPTIONS).def(SORT_OPTION.NULL),
|
5442
|
+
active: shared_namespaceObject.PropTypes.bool
|
5408
5443
|
},
|
5409
5444
|
emits: ['change'],
|
5410
5445
|
setup: function setup(props, _ref) {
|
5411
5446
|
var _ref2, _props$column$sort$va, _props$column;
|
5412
5447
|
var emit = _ref.emit,
|
5413
5448
|
expose = _ref.expose;
|
5414
|
-
var _usePrefix = (0,
|
5449
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
5415
5450
|
resolveClassName = _usePrefix.resolveClassName;
|
5416
5451
|
var defSort = (_ref2 = (_props$column$sort$va = (_props$column = props.column) === null || _props$column === void 0 || (_props$column = _props$column.sort) === null || _props$column === void 0 ? void 0 : _props$column.value) !== null && _props$column$sort$va !== void 0 ? _props$column$sort$va : props.defaultSort) !== null && _ref2 !== void 0 ? _ref2 : SORT_OPTION.NULL;
|
5417
5452
|
var sortType = (0,external_vue_namespaceObject.ref)(defSort);
|
@@ -5510,6 +5545,7 @@ var use_head_cell_this = undefined;
|
|
5510
5545
|
|
5511
5546
|
|
5512
5547
|
|
5548
|
+
|
5513
5549
|
function use_head_cell_isSlot(s) {
|
5514
5550
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
5515
5551
|
}
|
@@ -5601,7 +5637,7 @@ function use_head_cell_isSlot(s) {
|
|
5601
5637
|
index: index,
|
5602
5638
|
isCheckAll: isAll
|
5603
5639
|
});
|
5604
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5640
|
+
return (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
5605
5641
|
"onChange": handleChecked,
|
5606
5642
|
"disabled": !isEnable,
|
5607
5643
|
"modelValue": isChecked,
|
@@ -5741,8 +5777,8 @@ function use_head_cell_isSlot(s) {
|
|
5741
5777
|
|
5742
5778
|
|
5743
5779
|
|
5744
|
-
function use_render_ownKeys(
|
5745
|
-
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; }
|
5746
5782
|
/*
|
5747
5783
|
* Tencent is pleased to support the open source community by making
|
5748
5784
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -5785,11 +5821,13 @@ function use_render_objectSpread(target) { for (var i = 1; i < arguments.length;
|
|
5785
5821
|
|
5786
5822
|
|
5787
5823
|
|
5824
|
+
|
5825
|
+
|
5788
5826
|
function use_render_isSlot(s) {
|
5789
5827
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
5790
5828
|
}
|
5791
5829
|
/* harmony default export */ const use_render = (function (props, context, tableResp, styleRef, head, root, resetTableHeight) {
|
5792
|
-
var t = (0,
|
5830
|
+
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
5793
5831
|
var uuid = esm_browser_v4();
|
5794
5832
|
var formatData = (0,external_vue_namespaceObject.computed)(function () {
|
5795
5833
|
return tableResp.formatData;
|
@@ -5881,7 +5919,7 @@ function use_render_isSlot(s) {
|
|
5881
5919
|
}, [renderColGroup(), renderTBody(rows)]);
|
5882
5920
|
};
|
5883
5921
|
var renderTableFooter = function renderTableFooter(options) {
|
5884
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5922
|
+
return (0,external_vue_namespaceObject.createVNode)(pagination_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
5885
5923
|
"style": "width: 100%;"
|
5886
5924
|
}, options, {
|
5887
5925
|
"modelValue": options.current,
|
@@ -6138,8 +6176,7 @@ function use_render_isSlot(s) {
|
|
6138
6176
|
}
|
6139
6177
|
};
|
6140
6178
|
var getColumnClass = function getColumnClass(column, colIndex) {
|
6141
|
-
|
6142
|
-
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');
|
6143
6180
|
};
|
6144
6181
|
var getHeadColumnClass = function getHeadColumnClass(column, colIndex) {
|
6145
6182
|
return use_render_objectSpread({}, getColumnClass(column, colIndex));
|
@@ -6173,7 +6210,7 @@ function use_render_isSlot(s) {
|
|
6173
6210
|
var getExpandCell = function getExpandCell(row) {
|
6174
6211
|
var _context$slots$expand3, _context$slots$expand4, _context$slots4;
|
6175
6212
|
var isExpand = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_EXPAND);
|
6176
|
-
var icon = isExpand ? (0,external_vue_namespaceObject.createVNode)(
|
6213
|
+
var icon = isExpand ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.DownShape, null, null) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.RightShape, null, null);
|
6177
6214
|
return (0,external_vue_namespaceObject.createVNode)("span", null, [[icon, (_context$slots$expand3 = (_context$slots$expand4 = (_context$slots4 = context.slots).expandContent) === null || _context$slots$expand4 === void 0 ? void 0 : _context$slots$expand4.call(_context$slots4, row)) !== null && _context$slots$expand3 !== void 0 ? _context$slots$expand3 : '']]);
|
6178
6215
|
};
|
6179
6216
|
var handleRowExpandClick = function handleRowExpandClick(row, column, index, rows, e) {
|
@@ -6230,7 +6267,7 @@ function use_render_isSlot(s) {
|
|
6230
6267
|
index: index,
|
6231
6268
|
isCheckAll: isAll
|
6232
6269
|
});
|
6233
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
6270
|
+
return (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
6234
6271
|
"onChange": handleChecked,
|
6235
6272
|
"disabled": !isEnable,
|
6236
6273
|
"modelValue": isChecked,
|
@@ -6264,7 +6301,7 @@ function use_render_isSlot(s) {
|
|
6264
6301
|
return renderFn(row, column, index, rows);
|
6265
6302
|
}
|
6266
6303
|
var fontSize = (_props$rowDraggable$f = (_props$rowDraggable2 = props.rowDraggable) === null || _props$rowDraggable2 === void 0 ? void 0 : _props$rowDraggable2.fontSize) !== null && _props$rowDraggable$f !== void 0 ? _props$rowDraggable$f : '14px';
|
6267
|
-
var fontIcon = (_props$rowDraggable$i = (_props$rowDraggable3 = props.rowDraggable) === null || _props$rowDraggable3 === void 0 ? void 0 : _props$rowDraggable3.icon) !== null && _props$rowDraggable$i !== void 0 ? _props$rowDraggable$i : (0,external_vue_namespaceObject.createVNode)(
|
6304
|
+
var fontIcon = (_props$rowDraggable$i = (_props$rowDraggable3 = props.rowDraggable) === null || _props$rowDraggable3 === void 0 ? void 0 : _props$rowDraggable3.icon) !== null && _props$rowDraggable$i !== void 0 ? _props$rowDraggable$i : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.GragFill, {
|
6268
6305
|
"class": "drag-cell",
|
6269
6306
|
"style": "'--font-size: ".concat(fontSize, ";'")
|
6270
6307
|
}, null);
|
@@ -6336,7 +6373,7 @@ function use_render_isSlot(s) {
|
|
6336
6373
|
*/
|
6337
6374
|
var renderColGroup = function renderColGroup() {
|
6338
6375
|
return (0,external_vue_namespaceObject.createVNode)("colgroup", null, [(filterColGroups.value || []).map(function (column, _index) {
|
6339
|
-
var colCls = (0,
|
6376
|
+
var colCls = (0,shared_namespaceObject.classes)({
|
6340
6377
|
// active: isColActive(index),
|
6341
6378
|
});
|
6342
6379
|
var width = "".concat(resolveWidth(tableResp.getColumnOrderWidth(column))).replace(/px$/i, '');
|
@@ -6359,8 +6396,8 @@ function use_render_isSlot(s) {
|
|
6359
6396
|
;// CONCATENATED MODULE: ../../packages/table/src/table.tsx
|
6360
6397
|
|
6361
6398
|
|
6362
|
-
function table_ownKeys(
|
6363
|
-
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; }
|
6364
6401
|
/*
|
6365
6402
|
* Tencent is pleased to support the open source community by making
|
6366
6403
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -6401,6 +6438,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6401
6438
|
|
6402
6439
|
|
6403
6440
|
|
6441
|
+
|
6404
6442
|
/* harmony default export */ const table = ((0,external_vue_namespaceObject.defineComponent)({
|
6405
6443
|
// eslint-disable-next-line vue/no-reserved-component-names
|
6406
6444
|
name: 'Table',
|
@@ -6451,7 +6489,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6451
6489
|
fixedColumns = _useFixedColumn.fixedColumns,
|
6452
6490
|
resolveFixedColumns = _useFixedColumn.resolveFixedColumns,
|
6453
6491
|
updateFixClass = _useFixedColumn.updateFixClass;
|
6454
|
-
var _usePrefix = (0,
|
6492
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
6455
6493
|
resolveClassName = _usePrefix.resolveClassName;
|
6456
6494
|
var styleRef = (0,external_vue_namespaceObject.computed)(function () {
|
6457
6495
|
return {
|
@@ -6534,7 +6572,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6534
6572
|
Object.assign(tableSchema.formatData.layout, pos || {});
|
6535
6573
|
var bottom = pos.bottom;
|
6536
6574
|
if (bottom <= 2 && preBottom > bottom) {
|
6537
|
-
(0,
|
6575
|
+
(0,shared_namespaceObject.debounce)(60, function () {
|
6538
6576
|
ctx.emit(EMIT_EVENTS.SCROLL_BOTTOM, table_objectSpread(table_objectSpread({}, pos), {}, {
|
6539
6577
|
translateX: translateX,
|
6540
6578
|
translateY: translateY
|
@@ -6550,7 +6588,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6550
6588
|
left: 0,
|
6551
6589
|
top: 0
|
6552
6590
|
};
|
6553
|
-
(_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);
|
6554
6592
|
};
|
6555
6593
|
var getRoot = function getRoot() {
|
6556
6594
|
return root.value;
|
@@ -6589,7 +6627,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6589
6627
|
}, [renderTableHeadSchema(), (0,external_vue_namespaceObject.createVNode)("div", {
|
6590
6628
|
"class": "col-resize-drag",
|
6591
6629
|
"style": resizeHeadColStyle.value
|
6592
|
-
}, null)]), (0,external_vue_namespaceObject.createVNode)(
|
6630
|
+
}, null)]), (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
6593
6631
|
"ref": refVirtualRender,
|
6594
6632
|
"lineHeight": tableSchema.formatData.settings.height,
|
6595
6633
|
"height": contentStyle.height,
|
@@ -6645,12 +6683,12 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6645
6683
|
|
6646
6684
|
|
6647
6685
|
|
6648
|
-
var BkTable = (0,
|
6686
|
+
var BkTable = (0,shared_namespaceObject.withInstallProps)(table, {
|
6649
6687
|
Column: table_column
|
6650
6688
|
});
|
6651
6689
|
/* harmony default export */ const src = (BkTable);
|
6652
6690
|
|
6653
|
-
var __webpack_exports__BkTable = __webpack_exports__.
|
6654
|
-
var __webpack_exports__BkTableColumn = __webpack_exports__.
|
6655
|
-
var __webpack_exports__default = __webpack_exports__
|
6691
|
+
var __webpack_exports__BkTable = __webpack_exports__.BkTable;
|
6692
|
+
var __webpack_exports__BkTableColumn = __webpack_exports__.BkTableColumn;
|
6693
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
6656
6694
|
export { __webpack_exports__BkTable as BkTable, __webpack_exports__BkTableColumn as BkTableColumn, __webpack_exports__default as default };
|