bkui-vue 1.0.3-beta.26 → 1.0.3-beta.27
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 +46 -46
- package/dist/index.esm.js +6162 -6148
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +1 -1
- package/lib/affix/affix.less +2 -2
- package/lib/affix/affix.variable.css +3 -3
- package/lib/affix/index.js +13 -15
- package/lib/alert/alert.css +21 -21
- package/lib/alert/alert.less +16 -17
- package/lib/alert/alert.variable.css +23 -23
- package/lib/alert/index.js +22 -24
- package/lib/animate-number/index.js +5 -6
- package/lib/backtop/backtop.css +11 -11
- package/lib/backtop/backtop.less +3 -3
- package/lib/backtop/backtop.variable.css +13 -13
- package/lib/backtop/index.js +20 -22
- package/lib/badge/badge.css +32 -32
- package/lib/badge/badge.less +5 -5
- package/lib/badge/badge.variable.css +34 -34
- package/lib/badge/index.js +19 -21
- package/lib/breadcrumb/breadcrumb.css +31 -31
- package/lib/breadcrumb/breadcrumb.less +8 -8
- package/lib/breadcrumb/breadcrumb.variable.css +33 -33
- package/lib/breadcrumb/index.js +24 -26
- package/lib/button/button.css +69 -69
- package/lib/button/button.less +5 -3
- package/lib/button/button.variable.css +71 -71
- package/lib/button/index.js +28 -37
- package/lib/card/card.css +31 -31
- package/lib/card/card.less +4 -4
- package/lib/card/card.variable.css +33 -33
- package/lib/card/index.js +35 -43
- package/lib/cascader/cascader.css +63 -63
- package/lib/cascader/cascader.less +11 -12
- package/lib/cascader/cascader.variable.css +65 -65
- package/lib/cascader/index.js +80 -100
- package/lib/checkbox/checkbox.css +21 -21
- package/lib/checkbox/checkbox.less +8 -8
- package/lib/checkbox/checkbox.variable.css +23 -23
- package/lib/checkbox/index.js +32 -34
- package/lib/code-diff/code-diff.css +97 -97
- package/lib/code-diff/code-diff.less +4 -3
- package/lib/code-diff/code-diff.variable.css +99 -99
- package/lib/code-diff/index.js +12 -14
- package/lib/collapse/collapse.css +30 -30
- package/lib/collapse/collapse.less +24 -25
- package/lib/collapse/collapse.variable.css +32 -32
- package/lib/collapse/index.js +39 -41
- package/lib/collapse-transition/collapse-transition.css +32 -32
- package/lib/collapse-transition/collapse-transition.less +48 -59
- package/lib/collapse-transition/collapse-transition.variable.css +34 -34
- package/lib/collapse-transition/index.js +8 -9
- package/lib/color-picker/color-picker.css +57 -57
- package/lib/color-picker/color-picker.less +30 -36
- package/lib/color-picker/color-picker.variable.css +59 -59
- package/lib/color-picker/index.js +48 -50
- package/lib/components.js +505 -60
- package/lib/config-provider/config-provider.variable.css +2 -2
- package/lib/config-provider/index.js +8 -9
- package/lib/container/container.css +19 -19
- package/lib/container/container.less +3 -3
- package/lib/container/container.variable.css +21 -21
- package/lib/container/index.js +19 -21
- package/lib/date-picker/date-picker.css +92 -92
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.less +54 -55
- package/lib/date-picker/date-picker.variable.css +94 -94
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +69 -77
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/dialog/dialog.css +51 -51
- package/lib/dialog/dialog.less +1 -1
- package/lib/dialog/dialog.variable.css +53 -53
- package/lib/dialog/index.js +49 -63
- package/lib/directives/index.js +12 -13
- package/lib/dist.index.js +62 -5
- package/lib/divider/divider.css +8 -8
- package/lib/divider/divider.less +8 -5
- package/lib/divider/divider.variable.css +10 -10
- package/lib/divider/index.js +13 -15
- package/lib/dropdown/dropdown.css +15 -15
- package/lib/dropdown/dropdown.less +6 -6
- package/lib/dropdown/dropdown.variable.css +17 -17
- package/lib/dropdown/index.js +24 -32
- package/lib/exception/exception.css +13 -13
- package/lib/exception/exception.less +6 -6
- package/lib/exception/exception.variable.css +15 -15
- package/lib/exception/index.js +11 -13
- package/lib/fixed-navbar/fixed-navbar.css +9 -9
- package/lib/fixed-navbar/fixed-navbar.less +2 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
- package/lib/fixed-navbar/index.js +13 -15
- package/lib/form/form.css +63 -63
- package/lib/form/form.less +16 -14
- package/lib/form/form.variable.css +65 -65
- package/lib/form/index.js +48 -50
- package/lib/hooks.js +48 -1
- package/lib/icon/index.js +0 -1
- package/lib/image/image-viewer.css +23 -23
- package/lib/image/image-viewer.less +25 -24
- package/lib/image/image-viewer.variable.css +25 -25
- package/lib/image/image.css +29 -29
- package/lib/image/image.less +8 -6
- package/lib/image/image.variable.css +31 -31
- package/lib/image/index.js +38 -39
- package/lib/index.js +72 -7
- package/lib/info-box/index.js +13 -21
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +12 -12
- package/lib/input/index.js +59 -61
- package/lib/input/input.css +104 -102
- package/lib/input/input.less +33 -27
- package/lib/input/input.variable.css +106 -104
- package/lib/link/index.js +13 -15
- package/lib/link/link.css +18 -18
- package/lib/link/link.less +3 -1
- package/lib/link/link.variable.css +20 -20
- package/lib/loading/index.js +17 -19
- package/lib/loading/loading.css +94 -94
- package/lib/loading/loading.less +4 -4
- package/lib/loading/loading.variable.css +96 -96
- package/lib/locale/index.js +0 -1
- package/lib/menu/index.js +13 -15
- package/lib/menu/menu.css +38 -38
- package/lib/menu/menu.less +10 -10
- package/lib/menu/menu.variable.css +40 -40
- package/lib/menu/submenu.css +1 -1
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/index.js +38 -40
- package/lib/message/message.css +59 -59
- package/lib/message/message.less +24 -25
- package/lib/message/message.variable.css +61 -61
- package/lib/modal/index.js +41 -43
- package/lib/modal/modal.css +26 -26
- package/lib/modal/modal.less +12 -8
- package/lib/modal/modal.variable.css +28 -28
- package/lib/navigation/index.js +14 -16
- package/lib/navigation/navigation.css +25 -25
- package/lib/navigation/navigation.less +9 -9
- package/lib/navigation/navigation.variable.css +27 -27
- package/lib/notify/index.js +31 -33
- package/lib/notify/notify.css +17 -17
- package/lib/notify/notify.less +6 -8
- package/lib/notify/notify.variable.css +19 -19
- package/lib/overflow-title/index.js +14 -22
- package/lib/pagination/index.js +50 -65
- package/lib/pagination/pagination.css +60 -60
- package/lib/pagination/pagination.less +25 -24
- package/lib/pagination/pagination.variable.css +62 -62
- package/lib/plugin-popover/index.js +53 -54
- package/lib/plugins/index.js +0 -1
- package/lib/pop-confirm/index.js +28 -42
- package/lib/pop-confirm/pop-confirm.css +10 -10
- package/lib/pop-confirm/pop-confirm.less +11 -14
- package/lib/pop-confirm/pop-confirm.variable.css +12 -12
- package/lib/popover/index.js +52 -54
- package/lib/popover/popover.css +5 -5
- package/lib/popover/popover.less +6 -5
- package/lib/popover/popover.variable.css +7 -7
- package/lib/popover2/index.js +3 -4
- package/lib/preset.js +64 -18
- package/lib/process/index.js +26 -27
- package/lib/process/process.css +33 -36
- package/lib/process/process.less +7 -8
- package/lib/process/process.variable.css +35 -38
- package/lib/progress/index.js +26 -28
- package/lib/progress/progress.css +33 -33
- package/lib/progress/progress.less +5 -6
- package/lib/progress/progress.variable.css +35 -35
- package/lib/radio/index.js +32 -34
- package/lib/radio/radio.css +51 -51
- package/lib/radio/radio.less +20 -13
- package/lib/radio/radio.variable.css +53 -53
- package/lib/rate/index.js +22 -24
- package/lib/rate/rate.css +2 -2
- package/lib/rate/rate.less +1 -1
- package/lib/rate/rate.variable.css +4 -4
- package/lib/rate/star.css +7 -7
- package/lib/rate/star.less +1 -1
- package/lib/rate/star.variable.css +9 -9
- package/lib/resize-layout/index.js +25 -27
- package/lib/resize-layout/resize-layout.css +42 -42
- package/lib/resize-layout/resize-layout.less +10 -17
- package/lib/resize-layout/resize-layout.variable.css +44 -44
- package/lib/search-select/index.js +49 -68
- package/lib/search-select/search-select.css +15 -15
- package/lib/search-select/search-select.variable.css +17 -17
- package/lib/select/index.js +129 -168
- package/lib/select/select.css +87 -87
- package/lib/select/select.less +22 -27
- package/lib/select/select.variable.css +89 -89
- package/lib/shared/index.js +4 -7
- package/lib/sideslider/index.js +14 -22
- package/lib/sideslider/sideslider.css +14 -14
- package/lib/sideslider/sideslider.less +13 -9
- package/lib/sideslider/sideslider.variable.css +16 -16
- package/lib/slider/index.js +22 -36
- package/lib/slider/slider.css +31 -31
- package/lib/slider/slider.less +8 -8
- package/lib/slider/slider.variable.css +33 -33
- package/lib/steps/index.js +28 -30
- package/lib/steps/steps.css +134 -134
- package/lib/steps/steps.less +48 -44
- package/lib/steps/steps.variable.css +136 -136
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +3 -3
- package/lib/styles/mixins/animate.variable.css +6 -6
- package/lib/styles/mixins/mixins.css +15 -15
- package/lib/styles/mixins/mixins.variable.css +15 -15
- package/lib/styles/mixins/popper.css +11 -11
- package/lib/styles/mixins/popper.less +6 -6
- package/lib/styles/mixins/popper.variable.css +13 -13
- package/lib/styles/mixins/scroll.css +5 -5
- package/lib/styles/mixins/scroll.less +4 -4
- package/lib/styles/mixins/scroll.variable.css +7 -7
- package/lib/styles/reset.css +6 -6
- package/lib/styles/reset.less +5 -4
- package/lib/styles/reset.variable.css +8 -8
- package/lib/styles/themes/themes.less +10 -3
- package/lib/swiper/index.js +14 -16
- package/lib/swiper/swiper.css +15 -15
- package/lib/swiper/swiper.less +8 -8
- package/lib/swiper/swiper.variable.css +17 -17
- package/lib/switcher/index.js +29 -31
- package/lib/switcher/switcher.css +57 -57
- package/lib/switcher/switcher.less +22 -14
- package/lib/switcher/switcher.variable.css +59 -59
- package/lib/tab/index.js +44 -46
- package/lib/tab/tab.css +78 -78
- package/lib/tab/tab.less +39 -40
- package/lib/tab/tab.variable.css +80 -80
- package/lib/table/components/table-column.d.ts +1 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.js +168 -207
- package/lib/table/plugins/head-filter.css +13 -13
- package/lib/table/plugins/head-filter.less +3 -3
- package/lib/table/plugins/head-filter.variable.css +15 -15
- package/lib/table/plugins/head-sort.css +5 -5
- package/lib/table/plugins/head-sort.less +2 -2
- package/lib/table/plugins/head-sort.variable.css +7 -7
- package/lib/table/plugins/settings.css +26 -26
- package/lib/table/plugins/settings.less +3 -1
- package/lib/table/plugins/settings.variable.css +28 -28
- package/lib/table/table.css +380 -380
- package/lib/table/table.less +14 -10
- package/lib/table/table.variable.css +382 -382
- package/lib/table-column/index.d.ts +3 -0
- package/lib/table-column/index.js +57 -43
- package/lib/tag/index.js +19 -21
- package/lib/tag/tag.css +51 -51
- package/lib/tag/tag.less +34 -34
- package/lib/tag/tag.variable.css +53 -53
- package/lib/tag-input/index.js +65 -80
- package/lib/tag-input/tag-input.css +38 -38
- package/lib/tag-input/tag-input.less +3 -3
- package/lib/tag-input/tag-input.variable.css +40 -40
- package/lib/time-picker/index.d.ts +3 -0
- package/lib/time-picker/index.js +7 -9
- package/lib/time-picker/time-picker.css +40 -40
- package/lib/time-picker/time-picker.less +44 -76
- package/lib/time-picker/time-picker.variable.css +42 -42
- package/lib/timeline/index.js +12 -13
- package/lib/timeline/timeline.css +69 -69
- package/lib/timeline/timeline.less +12 -6
- package/lib/timeline/timeline.variable.css +71 -71
- package/lib/transfer/index.js +36 -51
- package/lib/transfer/transfer.css +89 -89
- package/lib/transfer/transfer.less +1 -1
- package/lib/transfer/transfer.variable.css +91 -91
- package/lib/tree/index.js +72 -92
- package/lib/tree/tree.css +49 -49
- package/lib/tree/tree.less +7 -6
- package/lib/tree/tree.variable.css +51 -51
- package/lib/upload/index.js +48 -63
- package/lib/upload/upload.css +98 -98
- package/lib/upload/upload.less +69 -68
- package/lib/upload/upload.variable.css +100 -100
- package/lib/virtual-render/index.js +33 -35
- package/lib/virtual-render/virtual-render.css +9 -9
- package/lib/virtual-render/virtual-render.less +1 -1
- package/lib/virtual-render/virtual-render.variable.css +11 -11
- package/package.json +1 -1
- package/lib/styles/themes/themes copy.less +0 -167
@@ -1,8 +1,6 @@
|
|
1
|
-
import "../
|
2
|
-
import "./virtual-render.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
6
4
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
7
5
|
/******/ // The require scope
|
8
6
|
/******/ var __webpack_require__ = {};
|
@@ -36,7 +34,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
36
34
|
;// CONCATENATED MODULE: external "../shared"
|
37
35
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
38
36
|
var y = x => () => x
|
39
|
-
const
|
37
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
40
38
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
41
39
|
function _arrayLikeToArray(arr, len) {
|
42
40
|
if (len == null || len > arr.length) len = arr.length;
|
@@ -124,9 +122,9 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
124
122
|
var external_vue_y = x => () => x
|
125
123
|
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 });
|
126
124
|
;// CONCATENATED MODULE: external "../config-provider"
|
127
|
-
var
|
128
|
-
var
|
129
|
-
const
|
125
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
126
|
+
var external_config_provider_y = x => () => x
|
127
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
130
128
|
;// CONCATENATED MODULE: ../../packages/virtual-render/src/props.ts
|
131
129
|
|
132
130
|
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; }
|
@@ -162,7 +160,7 @@ var EventProps = {
|
|
162
160
|
};
|
163
161
|
var virtualRenderProps = _objectSpread({
|
164
162
|
/** 传入原始数据源 */
|
165
|
-
list:
|
163
|
+
list: external_shared_namespaceObject.PropTypes.array.def([]),
|
166
164
|
/**
|
167
165
|
* 是否启用此功能
|
168
166
|
* 如果设置为false,则此组件只会渲染两层指定的 容器,默认渲染两层 div
|
@@ -170,13 +168,13 @@ var virtualRenderProps = _objectSpread({
|
|
170
168
|
* 此属性设置为了兼容需要按需开启\关闭虚拟渲染场景,避免外层设计两套样式架构
|
171
169
|
* Note: 目前此属性不支持动态修改
|
172
170
|
*/
|
173
|
-
enabled:
|
171
|
+
enabled: external_shared_namespaceObject.PropTypes.bool.def(true),
|
174
172
|
/**
|
175
173
|
* 是否启用内置的Scroll Listener
|
176
174
|
* 当启用虚拟滚动时(enabled = true),滚动监听为内置生效
|
177
175
|
* 只有当(enabled = false)时此配置项才生效
|
178
176
|
*/
|
179
|
-
scrollEvent:
|
177
|
+
scrollEvent: external_shared_namespaceObject.PropTypes.bool.def(false),
|
180
178
|
/**
|
181
179
|
* 每行数据高度
|
182
180
|
* 默认为数值类型,默认高度 30px
|
@@ -184,68 +182,68 @@ var virtualRenderProps = _objectSpread({
|
|
184
182
|
* 函数参数为当前行index & 当前行数据 row,row为数组,当不分组时,为当前行item
|
185
183
|
* 如果有分组展示, index 为当前分组 index, row为数组,当前行分组所有 item 数据
|
186
184
|
*/
|
187
|
-
lineHeight:
|
185
|
+
lineHeight: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.func]).def(30),
|
188
186
|
/** 整体最小高度 */
|
189
|
-
minHeight:
|
187
|
+
minHeight: external_shared_namespaceObject.PropTypes.number.def(30),
|
190
188
|
/** 整体最大高度 */
|
191
|
-
maxHeight:
|
189
|
+
maxHeight: external_shared_namespaceObject.PropTypes.number,
|
192
190
|
/**
|
193
191
|
* 整体高度
|
194
192
|
* 可设置具体值,如果设置为 100%,则组件会自动计算外层DOM元素offsetHeight,用于计算可渲染行数
|
195
193
|
*/
|
196
|
-
height:
|
194
|
+
height: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string.def('100%'), external_shared_namespaceObject.PropTypes.number]).def('100%'),
|
197
195
|
/**
|
198
196
|
* 渲染区域宽度
|
199
197
|
* 如果设置 100% 则自适应外层元素宽度
|
200
198
|
*/
|
201
|
-
width:
|
199
|
+
width: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string.def('100%'), external_shared_namespaceObject.PropTypes.number]).def('100%'),
|
202
200
|
/** 最外层元素ClassName */
|
203
|
-
className:
|
201
|
+
className: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string), external_shared_namespaceObject.PropTypes.object, external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.object), external_shared_namespaceObject.PropTypes.string]).def(''),
|
204
202
|
/** 内层层元素ClassName */
|
205
|
-
contentClassName:
|
203
|
+
contentClassName: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string), external_shared_namespaceObject.PropTypes.object, external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.object), external_shared_namespaceObject.PropTypes.string]).def(''),
|
206
204
|
/** 内层元素样式 */
|
207
|
-
contentStyle:
|
205
|
+
contentStyle: external_shared_namespaceObject.PropTypes.object.def({}),
|
208
206
|
/** 用于自定义X轴滚动条样式 */
|
209
|
-
scrollXName:
|
207
|
+
scrollXName: external_shared_namespaceObject.PropTypes.string.def((0,external_shared_namespaceObject.resolveClassName)('F-scroll-x')),
|
210
208
|
/** 用于自定义Y轴滚动条样式 */
|
211
|
-
scrollYName:
|
209
|
+
scrollYName: external_shared_namespaceObject.PropTypes.string.def((0,external_shared_namespaceObject.resolveClassName)('F-scroll-y')),
|
212
210
|
/** 分组展示,一行数据可能有多条数据 */
|
213
|
-
groupItemCount:
|
211
|
+
groupItemCount: external_shared_namespaceObject.PropTypes.number.def(1),
|
214
212
|
/** 预加载行数,避免空白渲染 */
|
215
|
-
preloadItemCount:
|
213
|
+
preloadItemCount: external_shared_namespaceObject.PropTypes.number.def(1),
|
216
214
|
/** 外层Dom元素需要渲染成的目标元素 */
|
217
|
-
renderAs:
|
215
|
+
renderAs: external_shared_namespaceObject.PropTypes.string.def('div'),
|
218
216
|
/** 内容层渲染成目标元素 */
|
219
|
-
contentAs:
|
217
|
+
contentAs: external_shared_namespaceObject.PropTypes.string.def('div'),
|
220
218
|
/** top 滚动填充 */
|
221
|
-
scrollOffsetTop:
|
219
|
+
scrollOffsetTop: external_shared_namespaceObject.PropTypes.number.def(0),
|
222
220
|
/**
|
223
221
|
* 内置滚动位置
|
224
222
|
* 可选:container (最外层容器),content(内容层容器)
|
225
223
|
* Note: container 慎选,需要自己处理样式 & 位置
|
226
224
|
*/
|
227
|
-
scrollPosition:
|
225
|
+
scrollPosition: external_shared_namespaceObject.PropTypes.string.def('content'),
|
228
226
|
/**
|
229
227
|
* 绝对高度 | 实际高估
|
230
228
|
* 可选值: auto(根据行高和行数计算, LineHeight * List.length) number(外层给定高度,若为0,则不显示)
|
231
229
|
*/
|
232
|
-
abosuteHeight:
|
230
|
+
abosuteHeight: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string.def('auto'), external_shared_namespaceObject.PropTypes.number]).def('auto'),
|
233
231
|
/**
|
234
232
|
* 滚动刷新计算间隔时间
|
235
233
|
* 默认60 ms
|
236
234
|
*/
|
237
|
-
throttleDelay:
|
238
|
-
rowKey:
|
235
|
+
throttleDelay: external_shared_namespaceObject.PropTypes.number.def(60),
|
236
|
+
rowKey: external_shared_namespaceObject.PropTypes.string.def(undefined),
|
239
237
|
/**
|
240
238
|
* 数据改变时是否保持之前的状态
|
241
239
|
* 保持滚动条位置、当前渲染区间
|
242
240
|
*/
|
243
|
-
keepAlive:
|
241
|
+
keepAlive: external_shared_namespaceObject.PropTypes.bool.def(false),
|
244
242
|
/**
|
245
243
|
* 数据监听改变时,是否自动重置位置到[0, 0]
|
246
244
|
*/
|
247
|
-
autoReset:
|
248
|
-
wrapperStyle:
|
245
|
+
autoReset: external_shared_namespaceObject.PropTypes.bool.def(true),
|
246
|
+
wrapperStyle: external_shared_namespaceObject.PropTypes.any.def({})
|
249
247
|
}, EventProps);
|
250
248
|
;// CONCATENATED MODULE: ../../packages/virtual-render/src/use-fix-top.tsx
|
251
249
|
/* harmony default export */ const use_fix_top = (function (props, refRoot) {
|
@@ -805,7 +803,7 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
805
803
|
display: isHidden ? 'none' : 'block'
|
806
804
|
};
|
807
805
|
});
|
808
|
-
var _usePrefix = (0,
|
806
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
809
807
|
resolveClassName = _usePrefix.resolveClassName;
|
810
808
|
/** 外层样式列表 */
|
811
809
|
var wrapperClass = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -897,7 +895,7 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
897
895
|
*/
|
898
896
|
|
899
897
|
|
900
|
-
var BkVirtualRender = (0,
|
898
|
+
var BkVirtualRender = (0,external_shared_namespaceObject.withInstall)(virtual_render);
|
901
899
|
/* harmony default export */ const src = (BkVirtualRender);
|
902
900
|
var __webpack_exports__default = __webpack_exports__["default"];
|
903
901
|
export { __webpack_exports__default as default };
|
@@ -1,25 +1,25 @@
|
|
1
|
-
|
1
|
+
.bk-F-scroll-x {
|
2
2
|
overflow-x: auto;
|
3
3
|
scrollbar-color: #a0a0a0 transparent;
|
4
4
|
scrollbar-width: thin;
|
5
5
|
}
|
6
|
-
|
6
|
+
.bk-F-scroll-x::-webkit-scrollbar {
|
7
7
|
height: 6px;
|
8
8
|
}
|
9
|
-
|
9
|
+
.bk-F-scroll-y {
|
10
10
|
overflow-y: auto;
|
11
11
|
}
|
12
|
-
|
12
|
+
.bk-F-scroll-y::-webkit-scrollbar {
|
13
13
|
width: 4px;
|
14
14
|
}
|
15
|
-
|
15
|
+
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
16
16
|
border-radius: 4px;
|
17
17
|
}
|
18
|
-
|
18
|
+
.bk-virtual-render {
|
19
19
|
position: relative;
|
20
20
|
}
|
21
|
-
|
22
|
-
|
21
|
+
.bk-virtual-render .bk-virtual-content,
|
22
|
+
.bk-virtual-render.bk-virtual-content {
|
23
23
|
position: absolute;
|
24
24
|
top: 0;
|
25
25
|
bottom: 0;
|
@@ -27,7 +27,7 @@
|
|
27
27
|
width: 100%;
|
28
28
|
height: 100%;
|
29
29
|
}
|
30
|
-
|
30
|
+
.bk-virtual-render .bk-virtual-section {
|
31
31
|
width: 1px;
|
32
32
|
background: transparent;
|
33
33
|
}
|
@@ -12,13 +12,13 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
18
19
|
--line-height-base: 16px;
|
19
20
|
--line-height-medium: 16px;
|
20
21
|
--line-height-large: 18px;
|
21
|
-
--border-color: #dcdee5;
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
@@ -111,7 +111,7 @@
|
|
111
111
|
--table-border-color: #dcdee5;
|
112
112
|
--table-head-bg-color: #fafbfd;
|
113
113
|
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656E;
|
115
115
|
--table-row-hover-bg-color: #f5f7fa;
|
116
116
|
--table-row-active-bg-color: #f0f1f5;
|
117
117
|
--cascader-panel-border-color: #dcdee5;
|
@@ -127,28 +127,28 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
|
130
|
+
.bk-F-scroll-x {
|
131
131
|
overflow-x: auto;
|
132
132
|
scrollbar-color: #a0a0a0 transparent;
|
133
133
|
scrollbar-width: thin;
|
134
134
|
}
|
135
|
-
|
135
|
+
.bk-F-scroll-x::-webkit-scrollbar {
|
136
136
|
height: 6px;
|
137
137
|
}
|
138
|
-
|
138
|
+
.bk-F-scroll-y {
|
139
139
|
overflow-y: auto;
|
140
140
|
}
|
141
|
-
|
141
|
+
.bk-F-scroll-y::-webkit-scrollbar {
|
142
142
|
width: 4px;
|
143
143
|
}
|
144
|
-
|
144
|
+
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
145
145
|
border-radius: 4px;
|
146
146
|
}
|
147
|
-
|
147
|
+
.bk-virtual-render {
|
148
148
|
position: relative;
|
149
149
|
}
|
150
|
-
|
151
|
-
|
150
|
+
.bk-virtual-render .bk-virtual-content,
|
151
|
+
.bk-virtual-render.bk-virtual-content {
|
152
152
|
position: absolute;
|
153
153
|
top: 0;
|
154
154
|
bottom: 0;
|
@@ -156,7 +156,7 @@
|
|
156
156
|
width: 100%;
|
157
157
|
height: 100%;
|
158
158
|
}
|
159
|
-
|
159
|
+
.bk-virtual-render .bk-virtual-section {
|
160
160
|
width: 1px;
|
161
161
|
background: transparent;
|
162
162
|
}
|
package/package.json
CHANGED
@@ -1,167 +0,0 @@
|
|
1
|
-
@bk-prefix: bk;
|
2
|
-
|
3
|
-
@popover-max-height: 216px;
|
4
|
-
|
5
|
-
@primary-color: #3a84ff;
|
6
|
-
@success-color: #2dcb56;
|
7
|
-
@warning-color: #ff9c01;
|
8
|
-
@danger-color: #ea3636;
|
9
|
-
@default-color: #63656e;
|
10
|
-
@gray-color: #979ba5;
|
11
|
-
@light-gray: #c4c6cc;
|
12
|
-
@white-color: white;
|
13
|
-
@whitesmoke-color: #fafbfd;
|
14
|
-
@disable-color: #dcdee5;
|
15
|
-
@disable-bg-color: #f9fafd;
|
16
|
-
@font-size-base: 12px;
|
17
|
-
@font-size-medium: 14px;
|
18
|
-
@font-size-large: 16px;
|
19
|
-
@line-height-base: 16px;
|
20
|
-
@line-height-medium: 16px;
|
21
|
-
@line-height-large: 18px;
|
22
|
-
@border-color: #dcdee5;
|
23
|
-
|
24
|
-
@component-size-small: 26px;
|
25
|
-
@component-size-base: 32px;
|
26
|
-
@component-size-large: 40px;
|
27
|
-
@component-size-small-padding: 0 12px;
|
28
|
-
@component-size-base-padding: 0 14px;
|
29
|
-
@component-size-large-padding: 0 16px;
|
30
|
-
|
31
|
-
@border-width-base: 1px;
|
32
|
-
@border-style-base: solid;
|
33
|
-
@border-radius-base: 2px;
|
34
|
-
@border-style-color: @light-gray;
|
35
|
-
|
36
|
-
// input theme
|
37
|
-
@input-disabled-bg: #fafbfd;
|
38
|
-
@input-disabled-border: @disable-color;
|
39
|
-
@input-height-base: @component-size-base;
|
40
|
-
@input-color: @default-color;
|
41
|
-
@input-bg: white;
|
42
|
-
@input-border-color: @light-gray;
|
43
|
-
@input-broder-radius: 3px;
|
44
|
-
@input-shadow-color: #a3c5fd;
|
45
|
-
@input-horizontal-padding: 8px;
|
46
|
-
@input-block-color: #f5f7fa;
|
47
|
-
@input-block-hover-color: #eaebf0;
|
48
|
-
@input-icon-size: @font-size-medium;
|
49
|
-
@input-maxlength-color: #979ba5;
|
50
|
-
|
51
|
-
//button theme
|
52
|
-
@button-primary-hover-color: #5594fa;
|
53
|
-
@button-danger-hover-color: #ff5656;
|
54
|
-
@button-success-hover-color: #45e35f;
|
55
|
-
@button-warning-hover-color: #ffb848;
|
56
|
-
@button-default-hover-border-color: #979ba5;
|
57
|
-
@button-primary-active-color: #2c77f4;
|
58
|
-
@button-danger-active-color: #db2626;
|
59
|
-
@button-success-active-color: #1ab943;
|
60
|
-
@button-warning-active-color: #eb9000;
|
61
|
-
@button-selected-bg-color: #e1ecff;
|
62
|
-
@button-disabled-selected-bg-color: #f0f1f5;
|
63
|
-
|
64
|
-
// radio theme
|
65
|
-
@radio-font-color: #63656e;
|
66
|
-
@radio-active-color: #3a84ff;
|
67
|
-
@radio-hover-border-color: #979ba5;
|
68
|
-
@radio-disabled-border: #dcdee5;
|
69
|
-
@radio-disabled-font-color: #c4c6cc;
|
70
|
-
@radio-disabled-checked-bg: #a3c5fd;
|
71
|
-
@radio-button-checked-bg: #e1ecff;
|
72
|
-
@radio-button-disabled-checked-bg: #fafbfd;
|
73
|
-
|
74
|
-
// checkbox theme
|
75
|
-
@checkbox-disabled-checked-bg: #a3c5fd;
|
76
|
-
|
77
|
-
// fixed-navbar theme
|
78
|
-
@fixed-navbar-background: #fff;
|
79
|
-
@fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
80
|
-
|
81
|
-
// switch theme
|
82
|
-
@switch-default-color: #fff;
|
83
|
-
@switch-grey-color: #c4c6cc;
|
84
|
-
|
85
|
-
// breadcrumb theme
|
86
|
-
@breadcrumb-black-color: #979ba5;
|
87
|
-
@breadcrumb-primary-hover-color: #0082ff;
|
88
|
-
@breadcrumb-fn-main-color: #63656e;
|
89
|
-
|
90
|
-
// link theme
|
91
|
-
@link-default-hover-color: #979ba5;
|
92
|
-
@link-primary-hover-color: #699df4;
|
93
|
-
@link-success-hover-color: #45e35f;
|
94
|
-
@link-warning-hover-color: #ffb848;
|
95
|
-
@link-danger-hover-color: #ff5656;
|
96
|
-
@link-default-disabled-color: #dcdee5;
|
97
|
-
@link-primary-disabled-color: #a3c5fd;
|
98
|
-
@link-success-disabled-color: #94f5a4;
|
99
|
-
@link-warning-disabled-color: #ffd695;
|
100
|
-
@link-danger-disabled-color: #fd9c9c;
|
101
|
-
|
102
|
-
// message theme
|
103
|
-
@message-color: @default-color;
|
104
|
-
@message-primary-bg-color: #f0f8ff;
|
105
|
-
@message-primary-border-color: #e1ecff;
|
106
|
-
@message-primary-shadow-color: #e1e8f4;
|
107
|
-
@message-warning-bg-color: #fff4e2;
|
108
|
-
@message-warning-border-color: #ffe8c3;
|
109
|
-
@message-warning-shadow-color: #ede6db;
|
110
|
-
@message-success-bg-color: #f2fff4;
|
111
|
-
@message-success-border-color: #dcffe2;
|
112
|
-
@message-success-shadow-color: #cef0d7;
|
113
|
-
@message-danger-bg-color: #ffeded;
|
114
|
-
@message-danger-border-color: #ffdddd;
|
115
|
-
@message-danger-shadow-color: #f6dada;
|
116
|
-
|
117
|
-
// slider theme
|
118
|
-
@slider-default-bg: #dcdee5;
|
119
|
-
@slider-disable-bar-bg: #979ba5;
|
120
|
-
|
121
|
-
// menu theme
|
122
|
-
@menu-bg-color: #182132;
|
123
|
-
@submenu-bg-color: #151d2c;
|
124
|
-
@menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
125
|
-
@menu-color: #96a2b9;
|
126
|
-
@menu-group-color: @default-color;
|
127
|
-
@menu-width: 260px;
|
128
|
-
@menu-collapse-width: 60px;
|
129
|
-
@menu-active-color: white;
|
130
|
-
|
131
|
-
// navigation theme
|
132
|
-
@nav-header-bg-color: #182132;
|
133
|
-
@nav-bg-color: #182132;
|
134
|
-
|
135
|
-
// date-picker theme
|
136
|
-
@date-picker-disabled-bg: #fafbfd;
|
137
|
-
@date-picker-dropdown-mb: 4px;
|
138
|
-
@date-picker-dropdown-bg: #fff;
|
139
|
-
|
140
|
-
// table theme
|
141
|
-
@table-bg-color: @white-color;
|
142
|
-
@table-border-color: #dcdee5;
|
143
|
-
|
144
|
-
@table-head-bg-color: #fafbfd;
|
145
|
-
@table-head-font-color: #313238;
|
146
|
-
|
147
|
-
@table-body-font-color: #63656e;
|
148
|
-
@table-row-hover-bg-color: #f5f7fa;
|
149
|
-
@table-row-active-bg-color: #f0f1f5;
|
150
|
-
|
151
|
-
// cascader theme
|
152
|
-
@cascader-panel-border-color: #dcdee5;
|
153
|
-
@cascader-panel-hover: #f5f7fa;
|
154
|
-
@cascader-panel-active: #e1ecff;
|
155
|
-
@cascader-panel-disabled-bg: #fff;
|
156
|
-
|
157
|
-
// search-select theme
|
158
|
-
@search-select-focus-border-color: @primary-color;
|
159
|
-
@search-select-focus-color: #3c96ff;
|
160
|
-
@search-select-font-color: @default-color;
|
161
|
-
@search-select-placeholder-color: @light-gray;
|
162
|
-
@search-select-message-color: @danger-color;
|
163
|
-
@search-select-menu-border-color: @disable-color;
|
164
|
-
|
165
|
-
// select theme
|
166
|
-
@select-active-color: #e1ecff;
|
167
|
-
@select-hover-color: #f5f7fa;
|