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
@@ -1,6 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import "./virtual-render.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
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
5
6
|
/******/ // The require scope
|
6
7
|
/******/ var __webpack_require__ = {};
|
@@ -28,13 +29,13 @@ var __webpack_exports__ = {};
|
|
28
29
|
|
29
30
|
// EXPORTS
|
30
31
|
__webpack_require__.d(__webpack_exports__, {
|
31
|
-
|
32
|
+
"default": () => (/* binding */ src)
|
32
33
|
});
|
33
34
|
|
34
35
|
;// CONCATENATED MODULE: external "../shared"
|
35
36
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
36
37
|
var y = x => () => x
|
37
|
-
const
|
38
|
+
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 });
|
38
39
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
39
40
|
function _arrayLikeToArray(arr, len) {
|
40
41
|
if (len == null || len > arr.length) len = arr.length;
|
@@ -73,38 +74,38 @@ function _toConsumableArray(arr) {
|
|
73
74
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
74
75
|
}
|
75
76
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
76
|
-
function _typeof(
|
77
|
+
function _typeof(o) {
|
77
78
|
"@babel/helpers - typeof";
|
78
79
|
|
79
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
80
|
-
return typeof
|
81
|
-
} : function (
|
82
|
-
return
|
83
|
-
}, _typeof(
|
80
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
81
|
+
return typeof o;
|
82
|
+
} : function (o) {
|
83
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
84
|
+
}, _typeof(o);
|
84
85
|
}
|
85
86
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
86
87
|
|
87
|
-
function
|
88
|
-
if (
|
89
|
-
var
|
90
|
-
if (
|
91
|
-
var
|
92
|
-
if (
|
88
|
+
function toPrimitive(t, r) {
|
89
|
+
if ("object" != _typeof(t) || !t) return t;
|
90
|
+
var e = t[Symbol.toPrimitive];
|
91
|
+
if (void 0 !== e) {
|
92
|
+
var i = e.call(t, r || "default");
|
93
|
+
if ("object" != _typeof(i)) return i;
|
93
94
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
94
95
|
}
|
95
|
-
return (
|
96
|
+
return ("string" === r ? String : Number)(t);
|
96
97
|
}
|
97
98
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
98
99
|
|
99
100
|
|
100
|
-
function
|
101
|
-
var
|
102
|
-
return _typeof(
|
101
|
+
function toPropertyKey(t) {
|
102
|
+
var i = toPrimitive(t, "string");
|
103
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
103
104
|
}
|
104
105
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
105
106
|
|
106
107
|
function _defineProperty(obj, key, value) {
|
107
|
-
key =
|
108
|
+
key = toPropertyKey(key);
|
108
109
|
if (key in obj) {
|
109
110
|
Object.defineProperty(obj, key, {
|
110
111
|
value: value,
|
@@ -122,13 +123,13 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
122
123
|
var external_vue_y = x => () => x
|
123
124
|
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 });
|
124
125
|
;// CONCATENATED MODULE: external "../config-provider"
|
125
|
-
var
|
126
|
-
var
|
127
|
-
const
|
126
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
127
|
+
var config_provider_y = x => () => x
|
128
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
128
129
|
;// CONCATENATED MODULE: ../../packages/virtual-render/src/props.ts
|
129
130
|
|
130
|
-
function ownKeys(
|
131
|
-
function _objectSpread(
|
131
|
+
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; }
|
132
|
+
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; }
|
132
133
|
/*
|
133
134
|
* Tencent is pleased to support the open source community by making
|
134
135
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -160,7 +161,7 @@ var EventProps = {
|
|
160
161
|
};
|
161
162
|
var virtualRenderProps = _objectSpread({
|
162
163
|
/** 传入原始数据源 */
|
163
|
-
list:
|
164
|
+
list: shared_namespaceObject.PropTypes.array.def([]),
|
164
165
|
/**
|
165
166
|
* 是否启用此功能
|
166
167
|
* 如果设置为false,则此组件只会渲染两层指定的 容器,默认渲染两层 div
|
@@ -168,13 +169,13 @@ var virtualRenderProps = _objectSpread({
|
|
168
169
|
* 此属性设置为了兼容需要按需开启\关闭虚拟渲染场景,避免外层设计两套样式架构
|
169
170
|
* Note: 目前此属性不支持动态修改
|
170
171
|
*/
|
171
|
-
enabled:
|
172
|
+
enabled: shared_namespaceObject.PropTypes.bool.def(true),
|
172
173
|
/**
|
173
174
|
* 是否启用内置的Scroll Listener
|
174
175
|
* 当启用虚拟滚动时(enabled = true),滚动监听为内置生效
|
175
176
|
* 只有当(enabled = false)时此配置项才生效
|
176
177
|
*/
|
177
|
-
scrollEvent:
|
178
|
+
scrollEvent: shared_namespaceObject.PropTypes.bool.def(false),
|
178
179
|
/**
|
179
180
|
* 每行数据高度
|
180
181
|
* 默认为数值类型,默认高度 30px
|
@@ -182,68 +183,68 @@ var virtualRenderProps = _objectSpread({
|
|
182
183
|
* 函数参数为当前行index & 当前行数据 row,row为数组,当不分组时,为当前行item
|
183
184
|
* 如果有分组展示, index 为当前分组 index, row为数组,当前行分组所有 item 数据
|
184
185
|
*/
|
185
|
-
lineHeight:
|
186
|
+
lineHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.func]).def(30),
|
186
187
|
/** 整体最小高度 */
|
187
|
-
minHeight:
|
188
|
+
minHeight: shared_namespaceObject.PropTypes.number.def(30),
|
188
189
|
/** 整体最大高度 */
|
189
|
-
maxHeight:
|
190
|
+
maxHeight: shared_namespaceObject.PropTypes.number,
|
190
191
|
/**
|
191
192
|
* 整体高度
|
192
193
|
* 可设置具体值,如果设置为 100%,则组件会自动计算外层DOM元素offsetHeight,用于计算可渲染行数
|
193
194
|
*/
|
194
|
-
height:
|
195
|
+
height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('100%'), shared_namespaceObject.PropTypes.number]).def('100%'),
|
195
196
|
/**
|
196
197
|
* 渲染区域宽度
|
197
198
|
* 如果设置 100% 则自适应外层元素宽度
|
198
199
|
*/
|
199
|
-
width:
|
200
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('100%'), shared_namespaceObject.PropTypes.number]).def('100%'),
|
200
201
|
/** 最外层元素ClassName */
|
201
|
-
className:
|
202
|
+
className: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.string), shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.object), shared_namespaceObject.PropTypes.string]).def(''),
|
202
203
|
/** 内层层元素ClassName */
|
203
|
-
contentClassName:
|
204
|
+
contentClassName: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.string), shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.object), shared_namespaceObject.PropTypes.string]).def(''),
|
204
205
|
/** 内层元素样式 */
|
205
|
-
contentStyle:
|
206
|
+
contentStyle: shared_namespaceObject.PropTypes.object.def({}),
|
206
207
|
/** 用于自定义X轴滚动条样式 */
|
207
|
-
scrollXName:
|
208
|
+
scrollXName: shared_namespaceObject.PropTypes.string.def((0,shared_namespaceObject.resolveClassName)('F-scroll-x')),
|
208
209
|
/** 用于自定义Y轴滚动条样式 */
|
209
|
-
scrollYName:
|
210
|
+
scrollYName: shared_namespaceObject.PropTypes.string.def((0,shared_namespaceObject.resolveClassName)('F-scroll-y')),
|
210
211
|
/** 分组展示,一行数据可能有多条数据 */
|
211
|
-
groupItemCount:
|
212
|
+
groupItemCount: shared_namespaceObject.PropTypes.number.def(1),
|
212
213
|
/** 预加载行数,避免空白渲染 */
|
213
|
-
preloadItemCount:
|
214
|
+
preloadItemCount: shared_namespaceObject.PropTypes.number.def(1),
|
214
215
|
/** 外层Dom元素需要渲染成的目标元素 */
|
215
|
-
renderAs:
|
216
|
+
renderAs: shared_namespaceObject.PropTypes.string.def('div'),
|
216
217
|
/** 内容层渲染成目标元素 */
|
217
|
-
contentAs:
|
218
|
+
contentAs: shared_namespaceObject.PropTypes.string.def('div'),
|
218
219
|
/** top 滚动填充 */
|
219
|
-
scrollOffsetTop:
|
220
|
+
scrollOffsetTop: shared_namespaceObject.PropTypes.number.def(0),
|
220
221
|
/**
|
221
222
|
* 内置滚动位置
|
222
223
|
* 可选:container (最外层容器),content(内容层容器)
|
223
224
|
* Note: container 慎选,需要自己处理样式 & 位置
|
224
225
|
*/
|
225
|
-
scrollPosition:
|
226
|
+
scrollPosition: shared_namespaceObject.PropTypes.string.def('content'),
|
226
227
|
/**
|
227
228
|
* 绝对高度 | 实际高估
|
228
229
|
* 可选值: auto(根据行高和行数计算, LineHeight * List.length) number(外层给定高度,若为0,则不显示)
|
229
230
|
*/
|
230
|
-
abosuteHeight:
|
231
|
+
abosuteHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string.def('auto'), shared_namespaceObject.PropTypes.number]).def('auto'),
|
231
232
|
/**
|
232
233
|
* 滚动刷新计算间隔时间
|
233
234
|
* 默认60 ms
|
234
235
|
*/
|
235
|
-
throttleDelay:
|
236
|
-
rowKey:
|
236
|
+
throttleDelay: shared_namespaceObject.PropTypes.number.def(60),
|
237
|
+
rowKey: shared_namespaceObject.PropTypes.string.def(undefined),
|
237
238
|
/**
|
238
239
|
* 数据改变时是否保持之前的状态
|
239
240
|
* 保持滚动条位置、当前渲染区间
|
240
241
|
*/
|
241
|
-
keepAlive:
|
242
|
+
keepAlive: shared_namespaceObject.PropTypes.bool.def(false),
|
242
243
|
/**
|
243
244
|
* 数据监听改变时,是否自动重置位置到[0, 0]
|
244
245
|
*/
|
245
|
-
autoReset:
|
246
|
-
wrapperStyle:
|
246
|
+
autoReset: shared_namespaceObject.PropTypes.bool.def(true),
|
247
|
+
wrapperStyle: shared_namespaceObject.PropTypes.any.def({})
|
247
248
|
}, EventProps);
|
248
249
|
;// CONCATENATED MODULE: ../../packages/virtual-render/src/use-fix-top.tsx
|
249
250
|
/* harmony default export */ const use_fix_top = (function (props, refRoot) {
|
@@ -305,7 +306,7 @@ function _defineProperties(target, props) {
|
|
305
306
|
descriptor.enumerable = descriptor.enumerable || false;
|
306
307
|
descriptor.configurable = true;
|
307
308
|
if ("value" in descriptor) descriptor.writable = true;
|
308
|
-
Object.defineProperty(target,
|
309
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
309
310
|
}
|
310
311
|
}
|
311
312
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -461,13 +462,13 @@ var VisibleRender = /*#__PURE__*/function () {
|
|
461
462
|
key: "install",
|
462
463
|
value: function install() {
|
463
464
|
var _this$wrapper;
|
464
|
-
(_this$wrapper = this.wrapper) === null || _this$wrapper === void 0
|
465
|
+
(_this$wrapper = this.wrapper) === null || _this$wrapper === void 0 || _this$wrapper.addEventListener('scroll', this.executeThrottledRender.bind(this));
|
465
466
|
}
|
466
467
|
}, {
|
467
468
|
key: "uninstall",
|
468
469
|
value: function uninstall() {
|
469
470
|
var _this$wrapper2, _this$wrapper2$remove;
|
470
|
-
(_this$wrapper2 = this.wrapper) === null || _this$wrapper2 === void 0 || (_this$wrapper2$remove = _this$wrapper2.removeListener) === null || _this$wrapper2$remove === void 0
|
471
|
+
(_this$wrapper2 = this.wrapper) === null || _this$wrapper2 === void 0 || (_this$wrapper2$remove = _this$wrapper2.removeListener) === null || _this$wrapper2$remove === void 0 || _this$wrapper2$remove.call(_this$wrapper2, 'scroll', this.executeThrottledRender.bind(this));
|
471
472
|
}
|
472
473
|
}, {
|
473
474
|
key: "setBinding",
|
@@ -486,7 +487,7 @@ var instance = null;
|
|
486
487
|
},
|
487
488
|
updated: function updated(_el, binding) {
|
488
489
|
var _instance;
|
489
|
-
(_instance = instance) === null || _instance === void 0
|
490
|
+
(_instance = instance) === null || _instance === void 0 || _instance.setBinding(binding);
|
490
491
|
},
|
491
492
|
unbind: function unbind(el) {
|
492
493
|
if (el) {
|
@@ -500,8 +501,8 @@ var instance = null;
|
|
500
501
|
});
|
501
502
|
;// CONCATENATED MODULE: ../../packages/virtual-render/src/use-tag-render.tsx
|
502
503
|
|
503
|
-
function use_tag_render_ownKeys(
|
504
|
-
function use_tag_render_objectSpread(
|
504
|
+
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; }
|
505
|
+
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; }
|
505
506
|
/*
|
506
507
|
* Tencent is pleased to support the open source community by making
|
507
508
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -576,7 +577,7 @@ function use_tag_render_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
576
577
|
});
|
577
578
|
(0,external_vue_namespaceObject.onUnmounted)(function () {
|
578
579
|
var _instance;
|
579
|
-
(_instance = instance) === null || _instance === void 0
|
580
|
+
(_instance = instance) === null || _instance === void 0 || _instance.uninstall();
|
580
581
|
});
|
581
582
|
return {
|
582
583
|
rendAsTag: function rendAsTag() {
|
@@ -600,8 +601,8 @@ function use_tag_render_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
600
601
|
|
601
602
|
|
602
603
|
|
603
|
-
function virtual_render_ownKeys(
|
604
|
-
function virtual_render_objectSpread(
|
604
|
+
function virtual_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; }
|
605
|
+
function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? virtual_render_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : virtual_render_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
605
606
|
/*
|
606
607
|
* Tencent is pleased to support the open source community by making
|
607
608
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -720,7 +721,7 @@ function virtual_render_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
720
721
|
});
|
721
722
|
(0,external_vue_namespaceObject.onUnmounted)(function () {
|
722
723
|
var _instance;
|
723
|
-
(_instance = instance) === null || _instance === void 0
|
724
|
+
(_instance = instance) === null || _instance === void 0 || _instance.uninstall();
|
724
725
|
});
|
725
726
|
var handleChangeListConfig = function handleChangeListConfig() {
|
726
727
|
/** 数据改变时激活当前表单,使其渲染DOM */
|
@@ -803,7 +804,7 @@ function virtual_render_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
803
804
|
display: isHidden ? 'none' : 'block'
|
804
805
|
};
|
805
806
|
});
|
806
|
-
var _usePrefix = (0,
|
807
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
807
808
|
resolveClassName = _usePrefix.resolveClassName;
|
808
809
|
/** 外层样式列表 */
|
809
810
|
var wrapperClass = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -828,7 +829,7 @@ function virtual_render_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
828
829
|
return [props.lineHeight, props.height, props.list, props.maxHeight];
|
829
830
|
}, function () {
|
830
831
|
var _instance2;
|
831
|
-
(_instance2 = instance) === null || _instance2 === void 0
|
832
|
+
(_instance2 = instance) === null || _instance2 === void 0 || _instance2.setBinding(binding);
|
832
833
|
handleChangeListConfig();
|
833
834
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
834
835
|
afterListDataReset();
|
@@ -895,7 +896,7 @@ function virtual_render_objectSpread(target) { for (var i = 1; i < arguments.len
|
|
895
896
|
*/
|
896
897
|
|
897
898
|
|
898
|
-
var BkVirtualRender = (0,
|
899
|
+
var BkVirtualRender = (0,shared_namespaceObject.withInstall)(virtual_render);
|
899
900
|
/* harmony default export */ const src = (BkVirtualRender);
|
900
|
-
var __webpack_exports__default = __webpack_exports__
|
901
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
901
902
|
export { __webpack_exports__default as default };
|
@@ -280,12 +280,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
280
280
|
maxHeight: number;
|
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
|
};
|
288
|
+
lineHeight: any;
|
289
289
|
scrollEvent: boolean;
|
290
290
|
contentClassName: string | {
|
291
291
|
[key: string]: any;
|
package/package.json
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "
|
3
|
+
"version": "1.0.1",
|
4
4
|
"workspaces": {
|
5
5
|
"packages": [
|
6
6
|
"packages/!(**.bak)*",
|
7
|
-
"scripts
|
7
|
+
"scripts/cli",
|
8
|
+
"site"
|
8
9
|
]
|
9
10
|
},
|
10
11
|
"files": [
|
@@ -12,6 +13,10 @@
|
|
12
13
|
"dist"
|
13
14
|
],
|
14
15
|
"packageManager": "yarn@1.22.10",
|
16
|
+
"sideEffects": [
|
17
|
+
"*.css",
|
18
|
+
"*.less"
|
19
|
+
],
|
15
20
|
"engines": {
|
16
21
|
"node": ">=14.0.0"
|
17
22
|
},
|
@@ -24,9 +29,9 @@
|
|
24
29
|
"prepublishOnly": "npm run build && node scripts/pre-publish.js",
|
25
30
|
"postpublish": "node scripts/post-publish.js",
|
26
31
|
"prepare": "husky install",
|
27
|
-
"dev": "
|
32
|
+
"dev": "lerna run --stream --scope site dev",
|
28
33
|
"build": "run-s build:dist build:lib",
|
29
|
-
"build:site": "
|
34
|
+
"build:site": "lerna run --stream --scope site build && cp -r ./site/views/ ./site/dist/views",
|
30
35
|
"build:dist": "rimraf dist && lerna run --stream --scope cli dist",
|
31
36
|
"build:lib": "rimraf lib && lerna run --stream --scope cli lib",
|
32
37
|
"help:release": "lerna run --stream --scope cli release",
|
@@ -53,7 +58,6 @@
|
|
53
58
|
"@babel/plugin-transform-runtime": "~7.22.9",
|
54
59
|
"@babel/preset-env": "~7.22.9",
|
55
60
|
"@babel/preset-typescript": "~7.22.5",
|
56
|
-
"@blueking/magicbox-header": "~1.1.61",
|
57
61
|
"@commitlint/cli": "~16.2.3",
|
58
62
|
"@commitlint/config-conventional": "~16.2.1",
|
59
63
|
"@types/jest": "~29.5.3",
|
@@ -62,8 +66,6 @@
|
|
62
66
|
"@types/postcss-less": "~4.0.2",
|
63
67
|
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
64
68
|
"@typescript-eslint/parser": "^5.20.0",
|
65
|
-
"@vitejs/plugin-vue": "~4.2.3",
|
66
|
-
"@vitejs/plugin-vue-jsx": "~3.0.1",
|
67
69
|
"@vue/babel-plugin-jsx": "~1.1.5",
|
68
70
|
"@vue/eslint-config-standard": "~6.1.0",
|
69
71
|
"@vue/eslint-config-typescript": "~10.0.0",
|
@@ -93,7 +95,6 @@
|
|
93
95
|
"less": "~4.2.0",
|
94
96
|
"less-loader": "~10.2.0",
|
95
97
|
"lint-staged": "~12.3.7",
|
96
|
-
"markdown-it-container": "~3.0.0",
|
97
98
|
"normalize-wheel": "~1.0.1",
|
98
99
|
"npm-run-all": "~4.1.5",
|
99
100
|
"plop": "~3.1.2",
|
@@ -114,20 +115,15 @@
|
|
114
115
|
"ts-node": "~10.9.1",
|
115
116
|
"typescript": "~4.9.5",
|
116
117
|
"uuid": "~9.0.1",
|
117
|
-
"vite": "~4.4.7",
|
118
|
-
"vite-plugin-vue-markdown": "~0.23.7",
|
119
118
|
"vue": "~3.3.4",
|
120
119
|
"vue-eslint-parser": "~9.3.1",
|
121
|
-
"vue-i18n": "~9.2.2",
|
122
|
-
"vue-router": "~4.2.4",
|
123
120
|
"vue-types": "~4.1.1"
|
124
121
|
},
|
125
122
|
"peerDependencies": {
|
126
123
|
"highlight.js": "~11.5.0",
|
127
|
-
"markdown-it": "^13.0.1",
|
128
124
|
"vue": "^3.2.0"
|
129
125
|
},
|
130
|
-
"
|
126
|
+
"module": "lib/index.js",
|
131
127
|
"typings": "lib/index.d.ts",
|
132
128
|
"lint-staged": {
|
133
129
|
"scripts/**/*.(vue|ts|tsx|js)": [
|