bkui-vue 2.0.1-beta.113 → 2.0.1-beta.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +54 -54
- package/dist/index.esm.js +13950 -13941
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +47 -39
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +50 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +21 -16
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +42 -31
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +43 -37
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -40
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +55 -46
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +67 -55
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +149 -119
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +89 -79
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +464 -517
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +67 -60
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +23 -16
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +144 -165
- package/lib/color-picker/index.js +98 -82
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +51 -43
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +55 -47
- 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 +4 -4
- package/lib/date-picker/index.d.ts +380 -351
- package/lib/date-picker/index.js +171 -150
- 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 +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +299 -269
- package/lib/dialog/index.js +323 -310
- package/lib/directives/index.js +344 -336
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +23 -16
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +66 -52
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +76 -70
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +22 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +104 -83
- package/lib/icon/angle-double-down-line.js +31 -29
- package/lib/icon/angle-double-left-line.js +31 -29
- package/lib/icon/angle-double-left.js +31 -29
- package/lib/icon/angle-double-right-line.js +31 -29
- package/lib/icon/angle-double-right.js +31 -29
- package/lib/icon/angle-double-up-line.js +31 -29
- package/lib/icon/angle-down-fill.js +31 -29
- package/lib/icon/angle-down-line.js +31 -29
- package/lib/icon/angle-down.js +31 -29
- package/lib/icon/angle-left.js +31 -29
- package/lib/icon/angle-right.js +31 -29
- package/lib/icon/angle-up-fill.js +31 -29
- package/lib/icon/angle-up.js +31 -29
- package/lib/icon/archive-fill.js +31 -29
- package/lib/icon/arrows-left.js +31 -29
- package/lib/icon/arrows-right.js +31 -29
- package/lib/icon/assistant.js +31 -29
- package/lib/icon/audio-fill.js +31 -29
- package/lib/icon/bk.js +31 -29
- package/lib/icon/circle.js +31 -29
- package/lib/icon/close-line.js +31 -29
- package/lib/icon/close.js +31 -29
- package/lib/icon/code.js +31 -29
- package/lib/icon/cog-shape.js +31 -29
- package/lib/icon/collapse-left.js +31 -29
- package/lib/icon/copy-shape.js +31 -29
- package/lib/icon/copy.js +31 -29
- package/lib/icon/data-shape.js +31 -29
- package/lib/icon/del.js +31 -29
- package/lib/icon/doc-fill.js +31 -29
- package/lib/icon/done.js +31 -29
- package/lib/icon/down-shape.js +31 -29
- package/lib/icon/down-small.js +31 -29
- package/lib/icon/edit-line.js +31 -29
- package/lib/icon/ellipsis.js +31 -29
- package/lib/icon/enlarge-line.js +31 -29
- package/lib/icon/error.js +31 -29
- package/lib/icon/excel-fill.js +31 -29
- package/lib/icon/exclamation-circle-shape.js +31 -29
- package/lib/icon/eye.js +31 -29
- package/lib/icon/filliscreen-line.js +31 -29
- package/lib/icon/fix-line.js +31 -29
- package/lib/icon/fix-shape.js +31 -29
- package/lib/icon/folder-open.js +31 -29
- package/lib/icon/folder-shape-open.js +31 -29
- package/lib/icon/folder-shape.js +31 -29
- package/lib/icon/folder.js +31 -29
- package/lib/icon/funnel.js +31 -29
- package/lib/icon/grag-fill.js +31 -29
- package/lib/icon/help-document-fill.js +31 -29
- package/lib/icon/help-fill.js +31 -29
- package/lib/icon/help.js +31 -29
- package/lib/icon/image-fill.js +31 -29
- package/lib/icon/img-error.js +31 -29
- package/lib/icon/img-placehoulder.js +31 -29
- package/lib/icon/info-line.js +31 -29
- package/lib/icon/info.js +31 -29
- package/lib/icon/left-shape.js +31 -29
- package/lib/icon/left-turn-line.js +31 -29
- package/lib/icon/loading.js +31 -29
- package/lib/icon/narrow-line.js +31 -29
- package/lib/icon/original.js +31 -29
- package/lib/icon/pdf-fill.js +31 -29
- package/lib/icon/play-shape.js +31 -29
- package/lib/icon/plus.js +31 -29
- package/lib/icon/ppt-fill.js +31 -29
- package/lib/icon/qq.js +31 -29
- package/lib/icon/right-shape.js +31 -29
- package/lib/icon/right-turn-line.js +31 -29
- package/lib/icon/search.js +31 -29
- package/lib/icon/share.js +31 -29
- package/lib/icon/spinner.js +31 -29
- package/lib/icon/success.js +31 -29
- package/lib/icon/switcher-loading.js +31 -29
- package/lib/icon/text-all.js +31 -29
- package/lib/icon/text-file.js +31 -29
- package/lib/icon/text-fill.js +31 -29
- package/lib/icon/transfer.js +31 -29
- package/lib/icon/tree-application-shape.js +31 -29
- package/lib/icon/unfull-screen.js +31 -29
- package/lib/icon/unvisible.js +31 -29
- package/lib/icon/up-shape.js +31 -29
- package/lib/icon/upload.js +31 -29
- package/lib/icon/video-fill.js +31 -29
- package/lib/icon/warn.js +31 -29
- package/lib/icon/weixin-pro.js +31 -29
- package/lib/icon/weixin.js +31 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +76 -61
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +328 -315
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +91 -83
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +27 -19
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +56 -51
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +67 -58
- package/lib/message/index.js +72 -67
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +58 -48
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +35 -25
- package/lib/notify/index.js +57 -48
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +51 -38
- package/lib/pagination/index.d.ts +184 -198
- package/lib/pagination/index.js +112 -103
- package/lib/plugin-popover/index.js +7 -5
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.d.ts +115 -153
- package/lib/pop-confirm/index.js +53 -36
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +421 -359
- package/lib/popover/index.js +291 -179
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +15 -11
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +299 -295
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +47 -40
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +85 -79
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +44 -39
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +50 -43
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +63 -63
- package/lib/search-select/index.d.ts +678 -895
- package/lib/search-select/index.js +397 -379
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +133 -188
- package/lib/search-select/selected.d.ts +133 -188
- package/lib/select/index.d.ts +1375 -1217
- package/lib/select/index.js +456 -419
- package/lib/select/select.d.ts +132 -169
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +109 -103
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +311 -302
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +305 -294
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +303 -298
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +42 -36
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +50 -44
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +72 -59
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +457 -362
- package/lib/table/index.js +589 -547
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +56 -46
- package/lib/tag-input/index.d.ts +744 -529
- package/lib/tag-input/index.js +148 -128
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +27 -21
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +171 -150
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +311 -273
- package/lib/upload/index.js +474 -465
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- package/lib/virtual-render/index.js +84 -72
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
@@ -35,26 +35,28 @@ __webpack_require__.d(__webpack_exports__, {
|
|
35
35
|
"default": () => (/* binding */ src)
|
36
36
|
});
|
37
37
|
|
38
|
-
;//
|
39
|
-
var x = y => {
|
40
|
-
var
|
41
|
-
|
42
|
-
|
38
|
+
;// external "../shared"
|
39
|
+
var x = (y) => {
|
40
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
41
|
+
}
|
42
|
+
var y = (x) => (() => (x))
|
43
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["withInstall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall) });
|
44
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
43
45
|
function _arrayLikeToArray(arr, len) {
|
44
46
|
if (len == null || len > arr.length) len = arr.length;
|
45
47
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
46
48
|
return arr2;
|
47
49
|
}
|
48
|
-
;//
|
50
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
49
51
|
|
50
52
|
function _arrayWithoutHoles(arr) {
|
51
53
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
52
54
|
}
|
53
|
-
;//
|
55
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
54
56
|
function _iterableToArray(iter) {
|
55
57
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
56
58
|
}
|
57
|
-
;//
|
59
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
58
60
|
|
59
61
|
function _unsupportedIterableToArray(o, minLen) {
|
60
62
|
if (!o) return;
|
@@ -64,11 +66,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
64
66
|
if (n === "Map" || n === "Set") return Array.from(o);
|
65
67
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
66
68
|
}
|
67
|
-
;//
|
69
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
68
70
|
function _nonIterableSpread() {
|
69
71
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
70
72
|
}
|
71
|
-
;//
|
73
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
72
74
|
|
73
75
|
|
74
76
|
|
@@ -76,39 +78,39 @@ function _nonIterableSpread() {
|
|
76
78
|
function _toConsumableArray(arr) {
|
77
79
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
78
80
|
}
|
79
|
-
;//
|
80
|
-
function _typeof(
|
81
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
82
|
+
function _typeof(o) {
|
81
83
|
"@babel/helpers - typeof";
|
82
84
|
|
83
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
84
|
-
return typeof
|
85
|
-
} : function (
|
86
|
-
return
|
87
|
-
}, _typeof(
|
85
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
86
|
+
return typeof o;
|
87
|
+
} : function (o) {
|
88
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
89
|
+
}, _typeof(o);
|
88
90
|
}
|
89
|
-
;//
|
91
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
90
92
|
|
91
|
-
function
|
92
|
-
if (
|
93
|
-
var
|
94
|
-
if (
|
95
|
-
var
|
96
|
-
if (
|
93
|
+
function toPrimitive(t, r) {
|
94
|
+
if ("object" != _typeof(t) || !t) return t;
|
95
|
+
var e = t[Symbol.toPrimitive];
|
96
|
+
if (void 0 !== e) {
|
97
|
+
var i = e.call(t, r || "default");
|
98
|
+
if ("object" != _typeof(i)) return i;
|
97
99
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
98
100
|
}
|
99
|
-
return (
|
101
|
+
return ("string" === r ? String : Number)(t);
|
100
102
|
}
|
101
|
-
;//
|
103
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
102
104
|
|
103
105
|
|
104
|
-
function
|
105
|
-
var
|
106
|
-
return _typeof(
|
106
|
+
function toPropertyKey(t) {
|
107
|
+
var i = toPrimitive(t, "string");
|
108
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
107
109
|
}
|
108
|
-
;//
|
110
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
109
111
|
|
110
112
|
function _defineProperty(obj, key, value) {
|
111
|
-
key =
|
113
|
+
key = toPropertyKey(key);
|
112
114
|
if (key in obj) {
|
113
115
|
Object.defineProperty(obj, key, {
|
114
116
|
value: value,
|
@@ -121,23 +123,31 @@ function _defineProperty(obj, key, value) {
|
|
121
123
|
}
|
122
124
|
return obj;
|
123
125
|
}
|
124
|
-
;//
|
125
|
-
var external_vue_x = y => {
|
126
|
-
var
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
var
|
135
|
-
const
|
136
|
-
;//
|
137
|
-
var
|
138
|
-
var
|
139
|
-
|
140
|
-
|
126
|
+
;// external "vue"
|
127
|
+
var external_vue_x = (y) => {
|
128
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
129
|
+
}
|
130
|
+
var external_vue_y = (x) => (() => (x))
|
131
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["onUnmounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch) });
|
132
|
+
;// external "../config-provider"
|
133
|
+
var config_provider_x = (y) => {
|
134
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
135
|
+
}
|
136
|
+
var config_provider_y = (x) => (() => (x))
|
137
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
138
|
+
;// external "../scrollbar"
|
139
|
+
var scrollbar_x = (y) => {
|
140
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
141
|
+
}
|
142
|
+
var scrollbar_y = (x) => (() => (x))
|
143
|
+
const scrollbar_namespaceObject = scrollbar_x({ ["VirtualElement"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_scrollbar_918447d0__.VirtualElement), ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_scrollbar_918447d0__["default"]) });
|
144
|
+
;// external "vue-types"
|
145
|
+
var external_vue_types_x = (y) => {
|
146
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
147
|
+
}
|
148
|
+
var external_vue_types_y = (x) => (() => (x))
|
149
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
|
150
|
+
;// ../../packages/virtual-render/src/props.ts
|
141
151
|
|
142
152
|
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; }
|
143
153
|
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(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; }
|
@@ -269,7 +279,7 @@ var virtualRenderProps = _objectSpread({
|
|
269
279
|
*/
|
270
280
|
autoIndex: shared_namespaceObject.PropTypes.bool.def(true)
|
271
281
|
}, EventProps);
|
272
|
-
;//
|
282
|
+
;// ../../packages/virtual-render/src/use-fix-top.tsx
|
273
283
|
/*
|
274
284
|
* Tencent is pleased to support the open source community by making
|
275
285
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -328,7 +338,7 @@ var virtualRenderProps = _objectSpread({
|
|
328
338
|
fixToTop: fixToTop
|
329
339
|
};
|
330
340
|
});
|
331
|
-
;//
|
341
|
+
;// ../../packages/virtual-render/src/use-scrollbar.tsx
|
332
342
|
/*
|
333
343
|
* Tencent is pleased to support the open source community by making
|
334
344
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -366,7 +376,7 @@ var virtualRenderProps = _objectSpread({
|
|
366
376
|
};
|
367
377
|
var scrollTo = function scrollTo(x, y) {
|
368
378
|
var _instance;
|
369
|
-
(_instance = instance) === null || _instance === void 0
|
379
|
+
(_instance = instance) === null || _instance === void 0 || _instance.scrollTo({
|
370
380
|
x: x,
|
371
381
|
y: y
|
372
382
|
});
|
@@ -376,7 +386,7 @@ var virtualRenderProps = _objectSpread({
|
|
376
386
|
if ((_instance2 = instance) !== null && _instance2 !== void 0 && _instance2.element) {
|
377
387
|
var _instance3, _instance4;
|
378
388
|
((_instance3 = instance) === null || _instance3 === void 0 ? void 0 : _instance3.element).scrollHeight = height;
|
379
|
-
(_instance4 = instance) === null || _instance4 === void 0
|
389
|
+
(_instance4 = instance) === null || _instance4 === void 0 || _instance4.update();
|
380
390
|
}
|
381
391
|
};
|
382
392
|
return {
|
@@ -390,13 +400,13 @@ var virtualRenderProps = _objectSpread({
|
|
390
400
|
updateScrollHeight: updateScrollHeight
|
391
401
|
};
|
392
402
|
});
|
393
|
-
;//
|
403
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
394
404
|
function _classCallCheck(instance, Constructor) {
|
395
405
|
if (!(instance instanceof Constructor)) {
|
396
406
|
throw new TypeError("Cannot call a class as a function");
|
397
407
|
}
|
398
408
|
}
|
399
|
-
;//
|
409
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
400
410
|
|
401
411
|
function _defineProperties(target, props) {
|
402
412
|
for (var i = 0; i < props.length; i++) {
|
@@ -404,7 +414,7 @@ function _defineProperties(target, props) {
|
|
404
414
|
descriptor.enumerable = descriptor.enumerable || false;
|
405
415
|
descriptor.configurable = true;
|
406
416
|
if ("value" in descriptor) descriptor.writable = true;
|
407
|
-
Object.defineProperty(target,
|
417
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
408
418
|
}
|
409
419
|
}
|
410
420
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -415,11 +425,13 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
415
425
|
});
|
416
426
|
return Constructor;
|
417
427
|
}
|
418
|
-
;//
|
419
|
-
var throttle_x = y => {
|
420
|
-
var
|
421
|
-
|
422
|
-
|
428
|
+
;// external "lodash/throttle"
|
429
|
+
var throttle_x = (y) => {
|
430
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
431
|
+
}
|
432
|
+
var throttle_y = (x) => (() => (x))
|
433
|
+
const throttle_namespaceObject = throttle_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"]) });
|
434
|
+
;// ../../packages/virtual-render/src/v-virtual-render.ts
|
423
435
|
|
424
436
|
|
425
437
|
|
@@ -616,13 +628,13 @@ var VisibleRender = /*#__PURE__*/function () {
|
|
616
628
|
key: "install",
|
617
629
|
value: function install() {
|
618
630
|
var _this$wrapper3;
|
619
|
-
(_this$wrapper3 = this.wrapper) === null || _this$wrapper3 === void 0
|
631
|
+
(_this$wrapper3 = this.wrapper) === null || _this$wrapper3 === void 0 || _this$wrapper3.addEventListener('scroll', this.executeThrottledRender.bind(this));
|
620
632
|
}
|
621
633
|
}, {
|
622
634
|
key: "uninstall",
|
623
635
|
value: function uninstall() {
|
624
636
|
var _this$wrapper4, _this$wrapper4$remove;
|
625
|
-
(_this$wrapper4 = this.wrapper) === null || _this$wrapper4 === void 0 || (_this$wrapper4$remove = _this$wrapper4.removeListener) === null || _this$wrapper4$remove === void 0
|
637
|
+
(_this$wrapper4 = this.wrapper) === null || _this$wrapper4 === void 0 || (_this$wrapper4$remove = _this$wrapper4.removeListener) === null || _this$wrapper4$remove === void 0 || _this$wrapper4$remove.call(_this$wrapper4, 'scroll', this.executeThrottledRender.bind(this));
|
626
638
|
}
|
627
639
|
}, {
|
628
640
|
key: "setBinding",
|
@@ -641,7 +653,7 @@ var instance = null;
|
|
641
653
|
},
|
642
654
|
updated: function updated(_el, binding) {
|
643
655
|
var _instance;
|
644
|
-
(_instance = instance) === null || _instance === void 0
|
656
|
+
(_instance = instance) === null || _instance === void 0 || _instance.setBinding(binding);
|
645
657
|
},
|
646
658
|
unbind: function unbind(el) {
|
647
659
|
if (el) {
|
@@ -653,7 +665,7 @@ var instance = null;
|
|
653
665
|
}
|
654
666
|
}
|
655
667
|
});
|
656
|
-
;//
|
668
|
+
;// ../../packages/virtual-render/src/use-tag-render.tsx
|
657
669
|
|
658
670
|
function use_tag_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; }
|
659
671
|
function use_tag_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? use_tag_render_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : use_tag_render_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -749,7 +761,7 @@ function use_tag_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
749
761
|
});
|
750
762
|
(0,external_vue_namespaceObject.onUnmounted)(function () {
|
751
763
|
var _renderInstance;
|
752
|
-
(_renderInstance = renderInstance) === null || _renderInstance === void 0
|
764
|
+
(_renderInstance = renderInstance) === null || _renderInstance === void 0 || _renderInstance.uninstall();
|
753
765
|
});
|
754
766
|
var wrapperClassNames = (0,external_vue_namespaceObject.computed)(function () {
|
755
767
|
if (props.scrollbar.enabled) {
|
@@ -772,7 +784,7 @@ function use_tag_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
772
784
|
}
|
773
785
|
};
|
774
786
|
});
|
775
|
-
;//
|
787
|
+
;// ../../packages/virtual-render/src/virtual-render.tsx
|
776
788
|
|
777
789
|
|
778
790
|
|
@@ -978,7 +990,7 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
978
990
|
});
|
979
991
|
(0,external_vue_namespaceObject.onUnmounted)(function () {
|
980
992
|
var _instance;
|
981
|
-
(_instance = instance) === null || _instance === void 0
|
993
|
+
(_instance = instance) === null || _instance === void 0 || _instance.uninstall();
|
982
994
|
});
|
983
995
|
var handleChangeListConfig = function handleChangeListConfig() {
|
984
996
|
/** 数据改变时激活当前表单,使其渲染DOM */
|
@@ -1067,7 +1079,7 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
1067
1079
|
var _instance2;
|
1068
1080
|
handleChangeListConfig();
|
1069
1081
|
afterListDataReset();
|
1070
|
-
(_instance2 = instance) === null || _instance2 === void 0
|
1082
|
+
(_instance2 = instance) === null || _instance2 === void 0 || _instance2.executeThrottledRender.call(instance, {
|
1071
1083
|
offset: {
|
1072
1084
|
x: 0,
|
1073
1085
|
y: 0
|
@@ -1083,11 +1095,11 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
1083
1095
|
scrollHeight: innerHeight.value,
|
1084
1096
|
offsetHeight: props.height
|
1085
1097
|
} : el;
|
1086
|
-
(_instance3 = instance) === null || _instance3 === void 0
|
1098
|
+
(_instance3 = instance) === null || _instance3 === void 0 || _instance3.setDelegateWrapper(container);
|
1087
1099
|
};
|
1088
1100
|
var updateVirtualInstance = function updateVirtualInstance() {
|
1089
1101
|
var _instance4;
|
1090
|
-
(_instance4 = instance) === null || _instance4 === void 0
|
1102
|
+
(_instance4 = instance) === null || _instance4 === void 0 || _instance4.setBinding(binding);
|
1091
1103
|
handleChangeListConfig();
|
1092
1104
|
updateScrollHeight(contentHeight.value);
|
1093
1105
|
setDelegateEl();
|
@@ -1095,7 +1107,7 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
1095
1107
|
afterListDataReset();
|
1096
1108
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
1097
1109
|
var _instance5;
|
1098
|
-
(_instance5 = instance) === null || _instance5 === void 0
|
1110
|
+
(_instance5 = instance) === null || _instance5 === void 0 || _instance5.executeThrottledRender.call(instance, {
|
1099
1111
|
offset: {
|
1100
1112
|
x: pagination.scrollLeft,
|
1101
1113
|
y: pagination.scrollTop
|
@@ -1140,7 +1152,7 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
1140
1152
|
};
|
1141
1153
|
}
|
1142
1154
|
}));
|
1143
|
-
;//
|
1155
|
+
;// ../../packages/virtual-render/src/index.ts
|
1144
1156
|
/*
|
1145
1157
|
* Tencent is pleased to support the open source community by making
|
1146
1158
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -280,13 +280,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
280
280
|
};
|
281
281
|
enabled: boolean;
|
282
282
|
list: unknown[];
|
283
|
-
lineHeight: any;
|
284
283
|
minHeight: number;
|
285
284
|
wrapperStyle: any;
|
286
285
|
className: string | {
|
287
286
|
[key: string]: any;
|
288
287
|
};
|
289
288
|
scrollEvent: boolean;
|
289
|
+
lineHeight: any;
|
290
290
|
contentStyle: {
|
291
291
|
[key: string]: any;
|
292
292
|
};
|