bkui-vue 0.0.1-beta.16 → 0.0.1-beta.19
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/bkui-vue.cjs.js +1564 -558
- package/dist/bkui-vue.esm.js +1582 -579
- package/dist/bkui-vue.umd.js +1564 -558
- package/dist/style.css +469 -14
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +7 -0
- package/lib/alert/index.d.ts +96 -60
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +48 -28
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +7 -0
- package/lib/backtop/index.d.ts +108 -52
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +7 -0
- package/lib/badge/index.d.ts +146 -78
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.d.ts +22 -14
- package/lib/breadcrumb/breadcrumb.variable.css +7 -0
- package/lib/breadcrumb/index.d.ts +100 -64
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.d.ts +28 -23
- package/lib/button/button.variable.css +7 -0
- package/lib/button/index.d.ts +114 -96
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +7 -0
- package/lib/card/index.d.ts +120 -60
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.variable.css +7 -0
- package/lib/checkbox/index.d.ts +137 -97
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/index.d.ts +108 -72
- package/lib/components.d.ts +3 -0
- package/lib/date-picker/date-picker.d.ts +112 -65
- package/lib/date-picker/date-picker.variable.css +7 -0
- package/lib/date-picker/index.d.ts +444 -256
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.d.ts +55 -25
- package/lib/dialog/index.d.ts +199 -96
- package/lib/dialog/index.js +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/divider/divider.d.ts +21 -13
- package/lib/divider/divider.variable.css +7 -0
- package/lib/divider/index.d.ts +84 -52
- package/lib/dropdown/dropdown-item.d.ts +6 -5
- package/lib/dropdown/dropdown-menu.d.ts +6 -5
- package/lib/dropdown/dropdown.d.ts +25 -13
- package/lib/dropdown/dropdown.variable.css +7 -0
- package/lib/dropdown/index.d.ts +94 -62
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +7 -0
- package/lib/exception/index.d.ts +44 -36
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +7 -0
- package/lib/fixed-navbar/index.d.ts +60 -36
- package/lib/form/form-item.d.ts +47 -28
- package/lib/form/form.d.ts +22 -14
- package/lib/form/index.d.ts +285 -3
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +15 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +15 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +15 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +15 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +15 -0
- package/lib/icon/index.d.ts +7 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +15 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +15 -0
- package/lib/input/index.d.ts +243 -163
- package/lib/input/input.d.ts +61 -41
- package/lib/input/input.variable.css +7 -0
- package/lib/link/index.d.ts +100 -52
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +7 -0
- package/lib/loading/index.d.ts +64 -64
- package/lib/loading/loading.d.ts +16 -16
- package/lib/loading/loading.variable.css +7 -0
- package/lib/menu/index.d.ts +90 -71
- package/lib/menu/menu-group.d.ts +6 -5
- package/lib/menu/menu-item.d.ts +6 -5
- package/lib/menu/menu.d.ts +18 -14
- package/lib/menu/menu.variable.css +7 -0
- package/lib/menu/submenu.d.ts +6 -5
- package/lib/menu/submenu.variable.css +7 -0
- package/lib/message/message.variable.css +7 -0
- package/lib/message/messageConstructor.d.ts +28 -16
- package/lib/modal/index.d.ts +111 -52
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +31 -13
- package/lib/modal/props.mixin.d.ts +4 -0
- package/lib/navigation/navigation-title.d.ts +10 -7
- package/lib/navigation/navigation.d.ts +40 -23
- package/lib/navigation/navigation.variable.css +7 -0
- package/lib/notify/notify.variable.css +7 -0
- package/lib/notify/notifyConstructor.d.ts +36 -20
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +272 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +209 -179
- package/lib/popover/popover.css +1 -0
- package/lib/popover/popover.d.ts +53 -31
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +8 -0
- package/lib/process/index.d.ts +120 -60
- package/lib/process/process.css +2 -3
- package/lib/process/process.d.ts +30 -15
- package/lib/process/process.less +2 -3
- package/lib/process/process.variable.css +9 -3
- package/lib/progress/index.d.ts +293 -145
- package/lib/progress/progress.d.ts +74 -37
- package/lib/progress/progress.variable.css +7 -0
- package/lib/radio/index.d.ts +127 -78
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.variable.css +7 -0
- package/lib/rate/index.d.ts +52 -40
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +32 -15
- package/lib/select/index.d.ts +396 -327
- package/lib/select/option.d.ts +9 -10
- package/lib/select/optionGroup.d.ts +49 -41
- package/lib/select/select.css +2 -1
- package/lib/select/select.d.ts +98 -84
- package/lib/select/select.less +2 -1
- package/lib/select/select.variable.css +9 -1
- package/lib/shared/bk-mask-manager.d.ts +32 -3
- package/lib/shared/bk-pop-manager.d.ts +8 -1
- package/lib/shared/index.js +1 -1
- package/lib/shared/vue-types.d.ts +2 -6
- package/lib/sideslider/index.d.ts +130 -63
- package/lib/sideslider/sideslider.d.ts +37 -16
- package/lib/sideslider/sideslider.variable.css +7 -0
- package/lib/slider/slider-button.d.ts +10 -7
- package/lib/slider/slider.d.ts +70 -40
- package/lib/slider/slider.variable.css +7 -0
- package/lib/steps/index.d.ts +160 -108
- package/lib/steps/steps.css +3 -0
- package/lib/steps/steps.d.ts +40 -27
- package/lib/steps/steps.less +4 -0
- package/lib/steps/steps.variable.css +10 -0
- package/lib/styles/index.d.ts +2 -0
- package/lib/styles/index.js +1 -1
- package/lib/styles/themes/themes.less +11 -0
- package/lib/switcher/index.d.ts +192 -128
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.variable.css +7 -0
- package/lib/tab/index.d.ts +347 -211
- package/lib/tab/tab-nav.d.ts +74 -38
- package/lib/tab/tab-panel.d.ts +22 -20
- package/lib/tab/tab.d.ts +65 -33
- package/lib/tab/tab.variable.css +7 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +155 -131
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +18 -0
- package/lib/table/render.d.ts +18 -2
- package/lib/table/table.css +47 -10
- package/lib/table/table.d.ts +47 -22
- package/lib/table/table.less +61 -17
- package/lib/table/table.variable.css +56 -12
- package/lib/table/utils.d.ts +32 -1
- package/lib/tag/index.d.ts +10 -286
- package/lib/tag/tag.d.ts +2 -48
- package/lib/tag/tag.variable.css +7 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +328 -0
- package/lib/tree/index.d.ts +142 -77
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +19 -1
- package/lib/tree/tree.d.ts +42 -20
- package/lib/use-form.d.ts +3 -0
- package/lib/virtual-render/index.d.ts +412 -266
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +1 -0
- package/lib/virtual-render/virtual-render.d.ts +106 -45
- package/package.json +46 -46
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,o){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}},l={exports:{}},s={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n},e.exports.__esModule=!0,e.exports.default=e.exports}(s),function(e){var t=s.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var i={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var u={exports:{}};!function(e){var t=s.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,o):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(u);var a={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(a),function(e){var t=l.exports,o=i.exports,n=u.exports,r=a.exports;e.exports=function(e){return t(e)||o(e)||n(e)||r()},e.exports.__esModule=!0,e.exports.default=e.exports}(r);var p=n(r.exports),c={exports:{}};!function(e){function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(c);var f=n(c.exports),d={list:o.PropTypes.array.def([]),enabled:o.PropTypes.bool.def(!0),lineHeight:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.func]).def(30),minHeight:o.PropTypes.number.def(30),height:o.PropTypes.oneOfType([o.PropTypes.string.def("100%"),o.PropTypes.number]).def("100%"),width:o.PropTypes.oneOfType([o.PropTypes.string.def("100%"),o.PropTypes.number]).def("100%"),className:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.string),o.PropTypes.object,o.PropTypes.arrayOf(o.PropTypes.object),o.PropTypes.string]).def(""),contentClassName:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.string),o.PropTypes.object,o.PropTypes.arrayOf(o.PropTypes.object),o.PropTypes.string]).def(""),contentStyle:o.PropTypes.object.def({}),scrollXName:o.PropTypes.string.def("bk-scroll-x"),scrollYName:o.PropTypes.string.def("bk-scroll-y"),groupItemCount:o.PropTypes.number.def(1),preloadItemCount:o.PropTypes.number.def(1),renderAs:o.PropTypes.string.def("div"),contentAs:o.PropTypes.string.def("div"),scrollOffsetTop:o.PropTypes.number.def(0),scrollPosition:o.PropTypes.string.def("content"),abosuteHeight:o.PropTypes.oneOfType([o.PropTypes.string.def("auto"),o.PropTypes.number]).def("auto"),throttleDelay:o.PropTypes.number.def(60)},
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,o){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}},l={exports:{}},s={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n},e.exports.__esModule=!0,e.exports.default=e.exports}(s),function(e){var t=s.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var i={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var u={exports:{}};!function(e){var t=s.exports;e.exports=function(e,o){if(e){if("string"==typeof e)return t(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,o):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(u);var a={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(a),function(e){var t=l.exports,o=i.exports,n=u.exports,r=a.exports;e.exports=function(e){return t(e)||o(e)||n(e)||r()},e.exports.__esModule=!0,e.exports.default=e.exports}(r);var p=n(r.exports),c={exports:{}};!function(e){function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(c);var f=n(c.exports),d={onContentScroll:Function},y=Object.assign({list:o.PropTypes.array.def([]),enabled:o.PropTypes.bool.def(!0),lineHeight:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.func]).def(30),minHeight:o.PropTypes.number.def(30),height:o.PropTypes.oneOfType([o.PropTypes.string.def("100%"),o.PropTypes.number]).def("100%"),width:o.PropTypes.oneOfType([o.PropTypes.string.def("100%"),o.PropTypes.number]).def("100%"),className:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.string),o.PropTypes.object,o.PropTypes.arrayOf(o.PropTypes.object),o.PropTypes.string]).def(""),contentClassName:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.string),o.PropTypes.object,o.PropTypes.arrayOf(o.PropTypes.object),o.PropTypes.string]).def(""),contentStyle:o.PropTypes.object.def({}),scrollXName:o.PropTypes.string.def("bk-scroll-x"),scrollYName:o.PropTypes.string.def("bk-scroll-y"),groupItemCount:o.PropTypes.number.def(1),preloadItemCount:o.PropTypes.number.def(1),renderAs:o.PropTypes.string.def("div"),contentAs:o.PropTypes.string.def("div"),scrollOffsetTop:o.PropTypes.number.def(0),scrollPosition:o.PropTypes.string.def("content"),abosuteHeight:o.PropTypes.oneOfType([o.PropTypes.string.def("auto"),o.PropTypes.number]).def("auto"),throttleDelay:o.PropTypes.number.def(60)},d),v=void 0;function h(e,t,o,n){for(var r=0,l=0,s=0,i=0;r<e;r++){if(l+(i=n(r,[r*o,(r+1)*o]))>t){s=t-l;break}l+=i}return{startIndex:r,height:l,diffHeight:s}}function x(e,t,o,n,r){if(n){var l=n.scrollTop,s=o.scrollTop,i=o.count,u=o.groupItemCount,a=o.startIndex,p=o.endIndex,c=n.offsetHeight,f=0,d=0,y=0;if("number"==typeof e&&(f=Math.floor(l/e),d=Math.ceil(c/e)+f,y=l%e),"function"==typeof e){var v=h(i,l,u,e);f=v.startIndex>0?v.startIndex:0,y=v.diffHeight,d=h(i,c,u,e).startIndex+f+1}l===s&&f===a&&d===p||"function"==typeof t&&t(r,f,d,l,y)}}function m(e,t,o){var n=o.value,r=n.lineHeight,l=void 0===r?30:r,s=n.handleScrollCallback,i=n.pagination,u=void 0===i?{}:i,a=u.startIndex,p=u.endIndex,c=u.groupItemCount,f=u.count;x(l,s,{scrollTop:u.scrollTop,startIndex:a,endIndex:p,groupItemCount:c,count:f},t,e)}var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60;return o.throttle((function(e,t,o){return m(e,t,o)}),e)},g=null,T=function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:60;g||(g=b(n)),"function"==typeof g&&g.call(v,e,t,o)},P={mounted:function(e,t){var o=e.parentNode,n=t.value.throttleDelay;o.addEventListener("scroll",(function(e){T(e,o,t,n)}))},updated:function(e,t){var o=e.parentNode,n=t.value.throttleDelay;T(null,o,t,n)},unbind:function(e){if(e){var t=e.parentNode;if(!t)return;t.removeEventListener("scroll",b)}}},I=t.defineComponent({name:"BkVirtualRender",directives:{bkVirtualRender:P},props:y,emits:["content-scroll"],setup:function(e,o){var n=this,r=e.renderAs,l=e.contentAs,s=function(e){return"string"==typeof e?[e]:"object"!==f(e)||Array.isArray(e)?e:[e]};if(!e.enabled)return function(){var n,i,u,a,p,c,f,d,y;return t.h(r,{class:s(e.className)},[null!==(u=null===(i=(n=o.slots).beforeContent)||void 0===i?void 0:i.call(n))&&void 0!==u?u:"",t.h(l,{class:s(e.contentClassName),style:e.contentStyle},[null!==(c=null===(p=(a=o.slots).default)||void 0===p?void 0:p.call(a,{data:e.list}))&&void 0!==c?c:""]),null!==(y=null===(d=(f=o.slots).afterContent)||void 0===d?void 0:d.call(f))&&void 0!==y?y:""])};var i=t.ref(null),u=t.reactive({startIndex:0,endIndex:0,scrollTop:1,translateY:0,count:0,groupItemCount:e.groupItemCount}),a=function(e,t,n,r,l){u.startIndex=t,u.endIndex=n,u.scrollTop=r,u.translateY=l,o.emit("content-scroll",[e,u])};t.onMounted((function(){t.nextTick((function(){v(e.list),h()}))})),t.watch((function(){return e.list}),(function(){c(),h()}),{deep:!0}),t.watch((function(){return e.lineHeight}),(function(){c(),h()}));var c=function(){v(e.list)},d=t.reactive(t.ref(0)),y=t.reactive(t.ref(0)),v=function(t){if(d.value=Math.ceil((t||[]).length/e.groupItemCount),u.count=d.value,u.startIndex=0,u.endIndex=0,u.translateY=0,u.scrollTop=0,"string"==typeof e.abosuteHeight&&"auto"===e.abosuteHeight)if("function"==typeof e.lineHeight){y.value=0;for(var o=0,r=0;r<d.value;r++){var l=e.lineHeight.call(n,r,t.slice(r*e.groupItemCount,e.groupItemCount));o+="number"==typeof l?l:0}y.value=o}else y.value=e.lineHeight*d.value;else y.value=e.abosuteHeight},h=function(){var t=(i.value||{}).parentNode;x(e.lineHeight,a,u,t,null)},m=t.computed((function(){return(e.list||[]).map((function(e,t){return Object.assign(e,{$index:t})}))})),b=t.computed((function(){return m.value.slice(u.startIndex*e.groupItemCount,(u.endIndex+e.preloadItemCount)*e.groupItemCount)})),g=t.computed((function(){return"content"===e.scrollPosition?{top:"".concat(u.scrollTop+e.scrollOffsetTop,"px"),transform:"translateY(-".concat(u.translateY,"px)")}:{}})),T=t.computed((function(){return Object.assign({height:"number"==typeof e.height?"".concat(e.height,"px"):e.height,width:"number"==typeof e.width?"".concat(e.width,"px"):e.width,display:"inline-block"},"container"===e.scrollPosition?g.value:{})})),P=t.computed((function(){var t="number"==typeof e.abosuteHeight&&0===e.abosuteHeight;return{height:"".concat(y.value<e.minHeight?e.minHeight:y.value,"px"),display:t?"none":"block"}})),I=t.computed((function(){return["bk-virtual-render",e.scrollXName,e.scrollYName].concat(p(s(e.className)),["container"===e.scrollPosition?"bk-virtual-content":""])})),C=t.computed((function(){return["content"===e.scrollPosition?"bk-virtual-content":""].concat(p(s(e.contentClassName)))})),O=t.resolveDirective("bkVirtualRender"),H={lineHeight:e.lineHeight,handleScrollCallback:a,pagination:u,throttleDelay:e.throttleDelay};return function(){var n,s,u,a,p,c,f,d,y;return t.h(r||"div",{ref:i,class:I.value,style:T.value},[null!==(u=null===(s=(n=o.slots).beforeContent)||void 0===s?void 0:s.call(n))&&void 0!==u?u:"",t.withDirectives(t.h(l||"div",{class:C.value,style:Object.assign(Object.assign({},g.value),e.contentStyle)},[null!==(c=null===(p=(a=o.slots).default)||void 0===p?void 0:p.call(a,{data:b.value}))&&void 0!==c?c:""]),[[O,H]]),null!==(y=null===(d=(f=o.slots).afterContent)||void 0===d?void 0:d.call(f))&&void 0!==y?y:"",t.h("div",{class:["bk-virtual-section"],style:P.value})])}}}),C=o.withInstall(I);e.default=C,Object.defineProperty(e,"__esModule",{value:!0})}));
|
@@ -1,4 +1,5 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
+
onContentScroll: FunctionConstructor;
|
2
3
|
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
3
4
|
default: () => unknown[];
|
4
5
|
} & {
|
@@ -70,7 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
70
71
|
default: number;
|
71
72
|
} & {
|
72
73
|
default: number;
|
73
|
-
};
|
74
|
+
}; /** 指令触发Scroll事件,计算当前startIndex & endIndex & scrollTop & translateY */
|
74
75
|
preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
|
75
76
|
default: number;
|
76
77
|
} & {
|
@@ -106,63 +107,123 @@ declare const _default: import("vue").DefineComponent<{
|
|
106
107
|
};
|
107
108
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
108
109
|
[key: string]: any;
|
109
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "content-scroll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
110
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "content-scroll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
111
|
+
onContentScroll: FunctionConstructor;
|
112
|
+
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
113
|
+
default: () => unknown[];
|
114
|
+
} & {
|
115
|
+
default: () => unknown[];
|
116
|
+
};
|
117
|
+
enabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
118
|
+
default: boolean;
|
119
|
+
} & {
|
120
|
+
default: boolean;
|
121
|
+
};
|
122
|
+
lineHeight: import("vue-types").VueTypeDef<any> & {
|
123
|
+
default: any;
|
124
|
+
};
|
125
|
+
minHeight: import("vue-types").VueTypeValidableDef<number> & {
|
126
|
+
default: number;
|
127
|
+
} & {
|
128
|
+
default: number;
|
129
|
+
};
|
130
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
131
|
+
default: string | number;
|
132
|
+
};
|
133
|
+
width: import("vue-types").VueTypeDef<string | number> & {
|
134
|
+
default: string | number;
|
135
|
+
};
|
136
|
+
className: import("vue-types").VueTypeDef<string | string[] | {
|
135
137
|
[key: string]: any;
|
138
|
+
} | {
|
139
|
+
[key: string]: any;
|
140
|
+
}[]> & {
|
141
|
+
default: string | (() => {
|
142
|
+
[key: string]: any;
|
143
|
+
}) | (() => string[]) | (() => {
|
144
|
+
[key: string]: any;
|
145
|
+
}[]);
|
136
146
|
};
|
137
|
-
|
138
|
-
contentClassName: string | {
|
147
|
+
contentClassName: import("vue-types").VueTypeDef<string | string[] | {
|
139
148
|
[key: string]: any;
|
149
|
+
} | {
|
150
|
+
[key: string]: any;
|
151
|
+
}[]> & {
|
152
|
+
default: string | (() => {
|
153
|
+
[key: string]: any;
|
154
|
+
}) | (() => string[]) | (() => {
|
155
|
+
[key: string]: any;
|
156
|
+
}[]);
|
140
157
|
};
|
141
|
-
contentStyle: {
|
158
|
+
contentStyle: import("vue-types").VueTypeValidableDef<{
|
142
159
|
[key: string]: any;
|
160
|
+
}> & {
|
161
|
+
default: () => {
|
162
|
+
[key: string]: any;
|
163
|
+
};
|
164
|
+
} & {
|
165
|
+
default: () => {
|
166
|
+
[key: string]: any;
|
167
|
+
};
|
143
168
|
};
|
144
|
-
scrollXName: string
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
}
|
169
|
+
scrollXName: import("vue-types").VueTypeValidableDef<string> & {
|
170
|
+
default: string;
|
171
|
+
} & {
|
172
|
+
default: string;
|
173
|
+
};
|
174
|
+
scrollYName: import("vue-types").VueTypeValidableDef<string> & {
|
175
|
+
default: string;
|
176
|
+
} & {
|
177
|
+
default: string;
|
178
|
+
};
|
179
|
+
groupItemCount: import("vue-types").VueTypeValidableDef<number> & {
|
180
|
+
default: number;
|
181
|
+
} & {
|
182
|
+
default: number;
|
183
|
+
}; /** 指令触发Scroll事件,计算当前startIndex & endIndex & scrollTop & translateY */
|
184
|
+
preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
|
185
|
+
default: number;
|
186
|
+
} & {
|
187
|
+
default: number;
|
188
|
+
};
|
189
|
+
renderAs: import("vue-types").VueTypeValidableDef<string> & {
|
190
|
+
default: string;
|
191
|
+
} & {
|
192
|
+
default: string;
|
193
|
+
};
|
194
|
+
contentAs: import("vue-types").VueTypeValidableDef<string> & {
|
195
|
+
default: string;
|
196
|
+
} & {
|
197
|
+
default: string;
|
198
|
+
};
|
199
|
+
scrollOffsetTop: import("vue-types").VueTypeValidableDef<number> & {
|
200
|
+
default: number;
|
201
|
+
} & {
|
202
|
+
default: number;
|
203
|
+
};
|
204
|
+
scrollPosition: import("vue-types").VueTypeValidableDef<string> & {
|
205
|
+
default: string;
|
206
|
+
} & {
|
207
|
+
default: string;
|
208
|
+
};
|
209
|
+
abosuteHeight: import("vue-types").VueTypeDef<string | number> & {
|
210
|
+
default: string | number;
|
211
|
+
};
|
212
|
+
throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
|
213
|
+
default: number;
|
214
|
+
} & {
|
215
|
+
default: number;
|
216
|
+
};
|
217
|
+
}>>, {
|
157
218
|
enabled: boolean;
|
158
219
|
width: string | number;
|
159
220
|
height: string | number;
|
160
221
|
list: unknown[];
|
222
|
+
lineHeight: any;
|
223
|
+
minHeight: number;
|
161
224
|
className: string | {
|
162
225
|
[key: string]: any;
|
163
226
|
};
|
164
|
-
minHeight: number;
|
165
|
-
lineHeight: any;
|
166
227
|
contentClassName: string | {
|
167
228
|
[key: string]: any;
|
168
229
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "0.0.1-beta.
|
3
|
+
"version": "0.0.1-beta.19",
|
4
4
|
"workspaces": {
|
5
5
|
"packages": [
|
6
6
|
"packages/!(**.bak)*"
|
@@ -25,81 +25,81 @@
|
|
25
25
|
"generate:declation": "rimraf lib && tsc -p ./scripts/tsconfig.declaration.json"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
|
-
"@babel/core": "~7.
|
29
|
-
"@babel/eslint-parser": "~7.
|
30
|
-
"@babel/plugin-transform-runtime": "~7.
|
31
|
-
"@babel/plugin-transform-typescript": "~7.
|
32
|
-
"@babel/preset-env": "~7.
|
33
|
-
"@babel/preset-typescript": "~7.
|
34
|
-
"@commitlint/cli": "~
|
35
|
-
"@commitlint/config-conventional": "~
|
28
|
+
"@babel/core": "~7.17.9",
|
29
|
+
"@babel/eslint-parser": "~7.17.0",
|
30
|
+
"@babel/plugin-transform-runtime": "~7.17.0",
|
31
|
+
"@babel/plugin-transform-typescript": "~7.16.8",
|
32
|
+
"@babel/preset-env": "~7.16.11",
|
33
|
+
"@babel/preset-typescript": "~7.16.7",
|
34
|
+
"@commitlint/cli": "~16.2.3",
|
35
|
+
"@commitlint/config-conventional": "~16.2.1",
|
36
36
|
"@rollup/plugin-babel": "~5.3.0",
|
37
|
-
"@rollup/plugin-commonjs": "~
|
37
|
+
"@rollup/plugin-commonjs": "~21.0.3",
|
38
38
|
"@rollup/plugin-json": "~4.1.0",
|
39
|
-
"@rollup/plugin-node-resolve": "~13.
|
40
|
-
"@types/jest": "~
|
41
|
-
"@typescript-eslint/eslint-plugin": "~
|
42
|
-
"@typescript-eslint/parser": "~
|
43
|
-
"@vitejs/plugin-vue": "~
|
44
|
-
"@vitejs/plugin-vue-jsx": "~1.
|
45
|
-
"@vue/babel-plugin-jsx": "~1.
|
39
|
+
"@rollup/plugin-node-resolve": "~13.1.3",
|
40
|
+
"@types/jest": "~27.4.1",
|
41
|
+
"@typescript-eslint/eslint-plugin": "~5.18.0",
|
42
|
+
"@typescript-eslint/parser": "~5.18.0",
|
43
|
+
"@vitejs/plugin-vue": "~2.3.1",
|
44
|
+
"@vitejs/plugin-vue-jsx": "~1.3.9",
|
45
|
+
"@vue/babel-plugin-jsx": "~1.1.1",
|
46
46
|
"@vue/babel-preset-jsx": "~1.2.4",
|
47
|
-
"@vue/compiler-sfc": "~3.
|
48
|
-
"@vue/component-compiler-utils": "~3.
|
47
|
+
"@vue/compiler-sfc": "~3.2.31",
|
48
|
+
"@vue/component-compiler-utils": "~3.3.0",
|
49
49
|
"@vue/eslint-config-standard": "~6.1.0",
|
50
|
-
"@vue/eslint-config-typescript": "~
|
50
|
+
"@vue/eslint-config-typescript": "~10.0.0",
|
51
51
|
"@vue/test-utils": "~2.0.0-rc.12",
|
52
52
|
"acorn-jsx": "~5.3.1",
|
53
|
-
"babel-jest": "~27.
|
53
|
+
"babel-jest": "~27.5.1",
|
54
54
|
"chalk": "~4.1.2",
|
55
55
|
"clipboard": "~2.0.8",
|
56
56
|
"commitizen": "~4.2.4",
|
57
|
-
"conventional-changelog-cli": "~2.
|
57
|
+
"conventional-changelog-cli": "~2.2.2",
|
58
58
|
"cross-env": "~7.0.3",
|
59
59
|
"cz-lerna-changelog": "~2.0.3",
|
60
60
|
"eslint": "~7.32.0",
|
61
|
-
"eslint-config-tencent": "~1.0.
|
61
|
+
"eslint-config-tencent": "~1.0.4",
|
62
62
|
"eslint-plugin-codecc": "~0.0.4",
|
63
|
-
"eslint-plugin-import": "~2.
|
63
|
+
"eslint-plugin-import": "~2.26.0",
|
64
64
|
"eslint-plugin-node": "~11.1.0",
|
65
65
|
"eslint-plugin-promise": "~5.1.0",
|
66
66
|
"eslint-plugin-vue": "~7.15.1",
|
67
67
|
"highlight.js": "~11.5.0",
|
68
68
|
"husky": "~7.0.1",
|
69
|
-
"jest": "~27.
|
69
|
+
"jest": "~27.5.1",
|
70
70
|
"jest-transform-stub": "~2.0.0",
|
71
71
|
"lerna": "~4.0.0",
|
72
72
|
"less": "~4.1.1",
|
73
|
-
"lint-staged": "~
|
73
|
+
"lint-staged": "~12.3.7",
|
74
74
|
"markdown-it-container": "~3.0.0",
|
75
75
|
"normalize-wheel": "~1.0.1",
|
76
76
|
"ora": "~5.4.1",
|
77
|
-
"plop": "~
|
78
|
-
"postcss": "~8.
|
79
|
-
"postcss-less": "~
|
77
|
+
"plop": "~3.0.5",
|
78
|
+
"postcss": "~8.4.12",
|
79
|
+
"postcss-less": "~6.0.0",
|
80
80
|
"prismjs": "~1.27.0",
|
81
81
|
"rimraf": "~3.0.2",
|
82
|
-
"rollup": "~2.
|
82
|
+
"rollup": "~2.70.1",
|
83
83
|
"rollup-plugin-progress": "~1.1.2",
|
84
84
|
"rollup-plugin-svg": "~2.0.0",
|
85
85
|
"rollup-plugin-terser": "~7.0.2",
|
86
|
-
"rollup-plugin-typescript2": "~0.
|
87
|
-
"stylelint": "~
|
88
|
-
"stylelint-order": "~
|
89
|
-
"stylelint-scss": "~
|
90
|
-
"ts-jest": "~27.
|
91
|
-
"ts-node": "~10.
|
86
|
+
"rollup-plugin-typescript2": "~0.31.2",
|
87
|
+
"stylelint": "~14.6.1",
|
88
|
+
"stylelint-order": "~5.0.0",
|
89
|
+
"stylelint-scss": "~4.2.0",
|
90
|
+
"ts-jest": "~27.1.4",
|
91
|
+
"ts-node": "~10.7.0",
|
92
92
|
"ttypescript": "~1.5.12",
|
93
|
-
"typescript": "~4.3
|
94
|
-
"vite": "~2.
|
93
|
+
"typescript": "~4.6.3",
|
94
|
+
"vite": "~2.9.1",
|
95
95
|
"vite-plugin-md": "~0.12.4",
|
96
|
-
"vue": "^3",
|
97
|
-
"vue-jest": "~5.0.0-alpha.
|
98
|
-
"vue-router": "~4.0.
|
99
|
-
"vue-types": "~4.
|
96
|
+
"vue": "^3.2.0",
|
97
|
+
"vue-jest": "~5.0.0-alpha.10",
|
98
|
+
"vue-router": "~4.0.14",
|
99
|
+
"vue-types": "~4.1.1"
|
100
100
|
},
|
101
101
|
"peerDependencies": {
|
102
|
-
"vue": "3.2.
|
102
|
+
"vue": "^3.2.0"
|
103
103
|
},
|
104
104
|
"main": "dist/bkui-vue.umd.js",
|
105
105
|
"module": "dist/bkui-vue.esm.js",
|
@@ -118,9 +118,9 @@
|
|
118
118
|
}
|
119
119
|
},
|
120
120
|
"dependencies": {
|
121
|
-
"@popperjs/core": "~2.11.
|
122
|
-
"date-fns": "~2.
|
121
|
+
"@popperjs/core": "~2.11.5",
|
122
|
+
"date-fns": "~2.28.0",
|
123
123
|
"js-calendar": "~1.2.3",
|
124
|
-
"vue-types": "~4.
|
124
|
+
"vue-types": "~4.1.1"
|
125
125
|
}
|
126
126
|
}
|