bkui-vue 0.0.2-beta.7 → 0.0.2-beta.70

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.
Files changed (237) hide show
  1. package/dist/index.cjs.js +80 -72
  2. package/dist/index.esm.js +16503 -15864
  3. package/dist/index.umd.js +80 -72
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.d.ts +1 -1
  15. package/lib/affix/index.d.ts +4 -4
  16. package/lib/alert/alert.css +7 -0
  17. package/lib/alert/alert.d.ts +5 -5
  18. package/lib/alert/alert.less +16 -6
  19. package/lib/alert/alert.variable.css +7 -0
  20. package/lib/alert/index.d.ts +10 -10
  21. package/lib/animate-number/index.d.ts +1 -1
  22. package/lib/backtop/index.d.ts +1 -1
  23. package/lib/badge/badge.d.ts +2 -2
  24. package/lib/badge/index.d.ts +7 -7
  25. package/lib/breadcrumb/index.d.ts +2 -2
  26. package/lib/button/button.css +20 -0
  27. package/lib/button/button.less +105 -94
  28. package/lib/button/button.variable.css +20 -0
  29. package/lib/button/index.d.ts +2 -2
  30. package/lib/card/card.d.ts +1 -1
  31. package/lib/card/index.d.ts +4 -4
  32. package/lib/cascader/cascader.d.ts +1 -0
  33. package/lib/cascader/index.d.ts +5 -2
  34. package/lib/cascader/index.js +1 -1
  35. package/lib/cascader/interface.d.ts +1 -1
  36. package/lib/checkbox/checkbox-group.d.ts +6 -3
  37. package/lib/checkbox/checkbox.d.ts +4 -4
  38. package/lib/checkbox/index.d.ts +22 -19
  39. package/lib/checkbox/index.js +1 -1
  40. package/lib/code-diff/index.d.ts +1 -1
  41. package/lib/collapse/index.d.ts +2 -2
  42. package/lib/collapse-transition/index.d.ts +128 -2
  43. package/lib/collapse-transition/index.js +1 -1
  44. package/lib/color-picker/color-picker.d.ts +16 -0
  45. package/lib/color-picker/components/recommend-colors.d.ts +16 -0
  46. package/lib/color-picker/index.d.ts +19 -1
  47. package/lib/color-picker/index.js +1 -1
  48. package/lib/components.d.ts +1 -1
  49. package/lib/config-provider/config-provider.d.ts +3 -0
  50. package/lib/config-provider/index.d.ts +5 -1
  51. package/lib/config-provider/index.js +1 -1
  52. package/lib/config-provider/token.d.ts +1 -0
  53. package/lib/config-provider/use-global-config.d.ts +2 -0
  54. package/lib/config-provider/use-prefix.d.ts +2 -0
  55. package/lib/container/index.d.ts +2 -2
  56. package/lib/container/index.js +1 -1
  57. package/lib/date-picker/date-picker.d.ts +3 -1
  58. package/lib/date-picker/index.d.ts +12 -5
  59. package/lib/date-picker/index.js +1 -1
  60. package/lib/date-picker/panel/date-range.d.ts +2 -1
  61. package/lib/dialog/index.d.ts +1 -1
  62. package/lib/directives/index.js +1 -1
  63. package/lib/directives/tooltips.d.ts +3 -2
  64. package/lib/divider/index.d.ts +1 -1
  65. package/lib/dropdown/dropdown.css +1 -0
  66. package/lib/dropdown/dropdown.d.ts +1 -1
  67. package/lib/dropdown/dropdown.variable.css +1 -0
  68. package/lib/dropdown/index.d.ts +7 -7
  69. package/lib/exception/index.d.ts +2 -2
  70. package/lib/fixed-navbar/index.d.ts +1 -1
  71. package/lib/form/index.d.ts +3 -3
  72. package/lib/form/index.js +1 -1
  73. package/lib/hooks.d.ts +1 -1
  74. package/lib/hooks.js +1 -1
  75. package/lib/icon/assistant.d.ts +4 -0
  76. package/lib/icon/assistant.js +1 -0
  77. package/lib/icon/index.d.ts +1 -0
  78. package/lib/icon/index.js +1 -1
  79. package/lib/image/index.d.ts +1 -1
  80. package/lib/image/index.js +1 -1
  81. package/lib/info-box/index.js +1 -1
  82. package/lib/input/index.d.ts +146 -50
  83. package/lib/input/index.js +2 -1
  84. package/lib/input/index.js.LICENSE.txt +1 -0
  85. package/lib/input/input.css +22 -6
  86. package/lib/input/input.d.ts +100 -11
  87. package/lib/input/input.less +37 -14
  88. package/lib/input/input.variable.css +22 -6
  89. package/lib/input/util.d.ts +6 -0
  90. package/lib/link/index.d.ts +4 -4
  91. package/lib/link/link.d.ts +1 -1
  92. package/lib/loading/index.d.ts +2 -2
  93. package/lib/locale/index.js +1 -1
  94. package/lib/locale/lang/en.d.ts +1 -0
  95. package/lib/menu/index.d.ts +2 -2
  96. package/lib/message/index.js +1 -1
  97. package/lib/message/message.css +18 -8
  98. package/lib/message/message.less +65 -53
  99. package/lib/message/message.variable.css +18 -8
  100. package/lib/message/messageConstructor.d.ts +30 -8
  101. package/lib/modal/index.d.ts +2 -2
  102. package/lib/modal/index.js +1 -1
  103. package/lib/navigation/index.d.ts +4 -1
  104. package/lib/navigation/index.js +1 -1
  105. package/lib/navigation/navigation.d.ts +1 -0
  106. package/lib/notify/index.js +1 -1
  107. package/lib/notify/notifyConstructor.d.ts +1 -1
  108. package/lib/overflow-title/components/overflow-title.d.ts +257 -1
  109. package/lib/overflow-title/index.d.ts +387 -2
  110. package/lib/overflow-title/index.js +1 -1
  111. package/lib/overflow-title/props.d.ts +129 -0
  112. package/lib/pagination/index.d.ts +2 -2
  113. package/lib/plugin-popover/index.js +1 -1
  114. package/lib/pop-confirm/index.d.ts +1 -1
  115. package/lib/popover/const.d.ts +22 -9
  116. package/lib/popover/content.d.ts +33 -0
  117. package/lib/popover/index.d.ts +154 -61
  118. package/lib/popover/index.js +1 -1
  119. package/lib/popover/popover.css +1 -0
  120. package/lib/popover/popover.d.ts +64 -23
  121. package/lib/popover/popover.less +3 -2
  122. package/lib/popover/popover.variable.css +1 -0
  123. package/lib/popover/props.d.ts +29 -4
  124. package/lib/popover/use-floating.d.ts +2 -2
  125. package/lib/popover/use-popover-init.d.ts +2 -1
  126. package/lib/popover2/index.d.ts +1 -1
  127. package/lib/preset.d.ts +2 -0
  128. package/lib/process/index.d.ts +1 -1
  129. package/lib/progress/index.d.ts +1 -1
  130. package/lib/radio/index.d.ts +23 -23
  131. package/lib/radio/radio-button.d.ts +4 -4
  132. package/lib/radio/radio-group.d.ts +4 -4
  133. package/lib/radio/radio.d.ts +4 -4
  134. package/lib/rate/index.d.ts +8 -4
  135. package/lib/rate/index.js +1 -1
  136. package/lib/rate/rate.d.ts +2 -1
  137. package/lib/resize-layout/index.d.ts +4 -4
  138. package/lib/resize-layout/index.js +1 -1
  139. package/lib/resize-layout/resize-layout.css +12 -0
  140. package/lib/resize-layout/resize-layout.d.ts +1 -1
  141. package/lib/resize-layout/resize-layout.less +12 -0
  142. package/lib/resize-layout/resize-layout.variable.css +12 -0
  143. package/lib/search-select/index.d.ts +62 -29
  144. package/lib/search-select/index.js +1 -1
  145. package/lib/search-select/input.d.ts +5 -1
  146. package/lib/search-select/menu.d.ts +33 -2
  147. package/lib/search-select/search-select.css +31 -11
  148. package/lib/search-select/search-select.d.ts +23 -20
  149. package/lib/search-select/search-select.less +29 -10
  150. package/lib/search-select/search-select.variable.css +31 -11
  151. package/lib/search-select/selected.d.ts +5 -1
  152. package/lib/search-select/utils.d.ts +13 -5
  153. package/lib/select/index.d.ts +180 -84
  154. package/lib/select/index.js +1 -1
  155. package/lib/select/option.d.ts +11 -0
  156. package/lib/select/select.css +9 -1
  157. package/lib/select/select.d.ts +75 -37
  158. package/lib/select/select.less +11 -1
  159. package/lib/select/select.variable.css +9 -1
  160. package/lib/select/selectTagInput.d.ts +8 -5
  161. package/lib/shared/helper.d.ts +1 -1
  162. package/lib/shared/index.js +1 -1
  163. package/lib/shared/mask-manager.d.ts +3 -4
  164. package/lib/shared/pop-manager.d.ts +6 -2
  165. package/lib/shared/popover.d.ts +2 -2
  166. package/lib/shared/vue-types.d.ts +3 -2
  167. package/lib/sideslider/index.d.ts +1 -1
  168. package/lib/slider/index.d.ts +1 -1
  169. package/lib/slider/index.js +1 -1
  170. package/lib/steps/index.d.ts +1 -1
  171. package/lib/steps/index.js +1 -1
  172. package/lib/styles/mixins/popper.less +6 -5
  173. package/lib/swiper/index.d.ts +1 -1
  174. package/lib/swiper/index.js +1 -1
  175. package/lib/swiper/swiper.css +0 -6
  176. package/lib/swiper/swiper.less +0 -8
  177. package/lib/swiper/swiper.variable.css +0 -6
  178. package/lib/switcher/index.d.ts +30 -16
  179. package/lib/switcher/index.js +1 -1
  180. package/lib/switcher/switcher.d.ts +74 -5
  181. package/lib/tab/index.d.ts +3 -3
  182. package/lib/tab/tab-nav.d.ts +12 -2
  183. package/lib/tab/tab-panel.d.ts +1 -1
  184. package/lib/table/components/table-cell.d.ts +22 -15
  185. package/lib/table/components/table-column.d.ts +153 -219
  186. package/lib/table/const.d.ts +16 -54
  187. package/lib/table/events.d.ts +180 -0
  188. package/lib/table/index.d.ts +712 -425
  189. package/lib/table/index.js +1 -1
  190. package/lib/table/plugins/head-filter.css +3 -0
  191. package/lib/table/plugins/head-filter.d.ts +3 -7
  192. package/lib/table/plugins/head-filter.less +3 -0
  193. package/lib/table/plugins/head-filter.variable.css +3 -0
  194. package/lib/table/plugins/head-sort.d.ts +3 -7
  195. package/lib/table/plugins/settings.d.ts +12 -26
  196. package/lib/table/plugins/use-column-resize.d.ts +1 -1
  197. package/lib/table/plugins/use-fixed-column.d.ts +3 -2
  198. package/lib/table/props.d.ts +200 -174
  199. package/lib/table/render.d.ts +6 -4
  200. package/lib/table/table.css +88 -5
  201. package/lib/table/table.d.ts +203 -90
  202. package/lib/table/table.less +79 -8
  203. package/lib/table/table.variable.css +88 -5
  204. package/lib/table/use-column.d.ts +51 -1
  205. package/lib/table/use-common.d.ts +21 -14
  206. package/lib/table/utils.d.ts +8 -12
  207. package/lib/table-column/index.d.ts +234 -527
  208. package/lib/table-column/index.js +1 -1
  209. package/lib/tag/index.d.ts +10 -10
  210. package/lib/tag/index.js +1 -1
  211. package/lib/tag/tag.d.ts +5 -5
  212. package/lib/tag-input/index.d.ts +49 -13
  213. package/lib/tag-input/index.js +1 -1
  214. package/lib/tag-input/tag-input.css +6 -1
  215. package/lib/tag-input/tag-input.d.ts +46 -10
  216. package/lib/tag-input/tag-input.less +9 -4
  217. package/lib/tag-input/tag-input.variable.css +6 -1
  218. package/lib/tag-input/tag-props.d.ts +16 -4
  219. package/lib/time-picker/index.d.ts +1 -1
  220. package/lib/timeline/index.d.ts +1 -1
  221. package/lib/transfer/index.d.ts +1 -1
  222. package/lib/tree/constant.d.ts +2 -2
  223. package/lib/tree/index.d.ts +37 -7
  224. package/lib/tree/index.js +1 -1
  225. package/lib/tree/props.d.ts +8 -1
  226. package/lib/tree/tree.d.ts +20 -2
  227. package/lib/tree/use-node-action.d.ts +3 -2
  228. package/lib/tree/use-node-attribute.d.ts +15 -8
  229. package/lib/tree/use-tree-init.d.ts +1 -2
  230. package/lib/tree/util.d.ts +7 -2
  231. package/lib/upload/index.d.ts +1 -1
  232. package/lib/virtual-render/index.d.ts +31 -1
  233. package/lib/virtual-render/index.js +1 -1
  234. package/lib/virtual-render/props.d.ts +11 -0
  235. package/lib/virtual-render/virtual-render.d.ts +18 -0
  236. package/lib/volar.components.d.ts +24 -24
  237. package/package.json +17 -16
@@ -10,6 +10,7 @@ declare const BkVirtualRender: {
10
10
  list?: unknown[];
11
11
  lineHeight?: any;
12
12
  minHeight?: number;
13
+ wrapperStyle?: any;
13
14
  className?: string | {
14
15
  [key: string]: any;
15
16
  };
@@ -32,10 +33,11 @@ declare const BkVirtualRender: {
32
33
  throttleDelay?: number;
33
34
  rowKey?: string;
34
35
  keepAlive?: boolean;
36
+ autoReset?: boolean;
35
37
  class?: unknown;
36
38
  style?: unknown;
37
- key?: string | number | symbol;
38
39
  ref?: import("vue").VNodeRef;
40
+ key?: string | number | symbol;
39
41
  ref_for?: boolean;
40
42
  ref_key?: string;
41
43
  };
@@ -177,6 +179,14 @@ declare const BkVirtualRender: {
177
179
  } & {
178
180
  default: boolean;
179
181
  };
182
+ autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
183
+ default: boolean;
184
+ } & {
185
+ default: boolean;
186
+ };
187
+ wrapperStyle: import("vue-types").VueTypeValidableDef<any> & {
188
+ default: any;
189
+ };
180
190
  }>> & {
181
191
  [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
182
192
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -188,6 +198,7 @@ declare const BkVirtualRender: {
188
198
  list: unknown[];
189
199
  lineHeight: any;
190
200
  minHeight: number;
201
+ wrapperStyle: any;
191
202
  className: string | {
192
203
  [key: string]: any;
193
204
  };
@@ -210,6 +221,7 @@ declare const BkVirtualRender: {
210
221
  throttleDelay: number;
211
222
  rowKey: string;
212
223
  keepAlive: boolean;
224
+ autoReset: boolean;
213
225
  }, {}, string, import("vue").SlotsType<{
214
226
  default?: any;
215
227
  beforeContent?: any;
@@ -357,6 +369,14 @@ declare const BkVirtualRender: {
357
369
  } & {
358
370
  default: boolean;
359
371
  };
372
+ autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
373
+ default: boolean;
374
+ } & {
375
+ default: boolean;
376
+ };
377
+ wrapperStyle: import("vue-types").VueTypeValidableDef<any> & {
378
+ default: any;
379
+ };
360
380
  }>> & {
361
381
  [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
362
382
  } & import("vue").ShallowUnwrapRef<() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -487,6 +507,14 @@ declare const BkVirtualRender: {
487
507
  } & {
488
508
  default: boolean;
489
509
  };
510
+ autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
511
+ default: boolean;
512
+ } & {
513
+ default: boolean;
514
+ };
515
+ wrapperStyle: import("vue-types").VueTypeValidableDef<any> & {
516
+ default: any;
517
+ };
490
518
  }>> & {
491
519
  [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
492
520
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -498,6 +526,7 @@ declare const BkVirtualRender: {
498
526
  list: unknown[];
499
527
  lineHeight: any;
500
528
  minHeight: number;
529
+ wrapperStyle: any;
501
530
  className: string | {
502
531
  [key: string]: any;
503
532
  };
@@ -520,6 +549,7 @@ declare const BkVirtualRender: {
520
549
  throttleDelay: number;
521
550
  rowKey: string;
522
551
  keepAlive: boolean;
552
+ autoReset: boolean;
523
553
  }, {}, string, import("vue").SlotsType<{
524
554
  default?: any;
525
555
  beforeContent?: any;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("lodash"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","lodash"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("lodash")):t(e["../shared"],e.vue,e["../config-provider"],e.lodash);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r)=>(()=>{"use strict";var n={2717:e=>{e.exports=o},4212:t=>{t.exports=e},467:e=>{e.exports=r},748:e=>{e.exports=t}},l={};function i(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{i.r(s),i.d(s,{default:()=>g});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function o(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}}(e)||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.")}()}function r(e){return r="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},r(e)}var n=i(748),l=i(2717),a={onContentScroll:Function},u=Object.assign({list:e.PropTypes.array.def([]),enabled:e.PropTypes.bool.def(!0),scrollEvent:e.PropTypes.bool.def(!1),lineHeight:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.func]).def(30),minHeight:e.PropTypes.number.def(30),height:e.PropTypes.oneOfType([e.PropTypes.string.def("100%"),e.PropTypes.number]).def("100%"),width:e.PropTypes.oneOfType([e.PropTypes.string.def("100%"),e.PropTypes.number]).def("100%"),className:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.object,e.PropTypes.arrayOf(e.PropTypes.object),e.PropTypes.string]).def(""),contentClassName:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.object,e.PropTypes.arrayOf(e.PropTypes.object),e.PropTypes.string]).def(""),contentStyle:e.PropTypes.object.def({}),scrollXName:e.PropTypes.string.def((0,e.resolveClassName)("F-scroll-x")),scrollYName:e.PropTypes.string.def((0,e.resolveClassName)("F-scroll-y")),groupItemCount:e.PropTypes.number.def(1),preloadItemCount:e.PropTypes.number.def(1),renderAs:e.PropTypes.string.def("div"),contentAs:e.PropTypes.string.def("div"),scrollOffsetTop:e.PropTypes.number.def(0),scrollPosition:e.PropTypes.string.def("content"),abosuteHeight:e.PropTypes.oneOfType([e.PropTypes.string.def("auto"),e.PropTypes.number]).def("auto"),throttleDelay:e.PropTypes.number.def(60),rowKey:e.PropTypes.string.def(void 0),keepAlive:e.PropTypes.bool.def(!1)},a),c=i(467);function p(e,t,o,r){for(var n=0,l=0,i=0,s=0;n<e;n++){if(l+(s=r(n,[n*o,(n+1)*o,"virtual"]))>t){i=t-l;break}l+=s}return{startIndex:n,height:l,diffHeight:i}}function f(e,t,o,r,n){if(r){var l=r.scrollTop,i=r.scrollLeft,s=o.scrollTop,a=o.count,u=o.groupItemCount,c=o.startIndex,f=o.endIndex,d=o.scrollLeft,v=r.offsetHeight,y=0,g=0,h=0;if("number"==typeof e&&(y=Math.floor(l/e),g=Math.ceil(v/e)+y,h=l%e),"function"==typeof e){var m=p(a,l,u,e);y=m.startIndex>0?m.startIndex:0,h=m.diffHeight,g=p(a,v,u,e).startIndex+y+1}if(l!==s||y!==c||g!==f||d!==i){var b=r.scrollHeight-r.offsetHeight-r.scrollTop;"function"==typeof t&&t(n,y,g,l,h,i,{bottom:b>=0?b:0})}}}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60;return(0,c.throttle)((function(e,t,o){return function(e,t,o){var r=o.value,n=r.lineHeight,l=void 0===n?30:n,i=r.handleScrollCallback,s=r.pagination,a=void 0===s?{}:s;if(r.onlyScroll){var u=t.scrollTop,c=t.scrollLeft,p=t.scrollHeight-t.offsetHeight-t.scrollTop;i(e,null,null,u,u,c,{bottom:p>=0?p:0})}else{var d=a.startIndex,v=a.endIndex,y=a.groupItemCount,g=a.count;f(l,i,{scrollTop:a.scrollTop,startIndex:d,endIndex:v,groupItemCount:y,count:g,scrollLeft:a.scrollLeft},t,e)}}(e,t,o)}),e)};const v={mounted:function(e,t){var o=e.parentNode,r=t.value.throttleDelay;o.addEventListener("scroll",(function(e){!function(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:60;Reflect.apply(d(r),void 0,[e,t,o])}(e,o,t,r)}))},unbind:function(e){if(e){var t=e.parentNode;if(!t)return;t.removeEventListener("scroll",d)}}},y=(0,n.defineComponent)({name:"VirtualRender",directives:{bkVirtualRender:v},props:u,emits:["content-scroll"],slots:Object,setup:function(e,t){var i=this,s=e.renderAs,a=e.contentAs,u=function(e){return"string"==typeof e?[e]:"object"!==r(e)||Array.isArray(e)?e:[e]};if(!e.enabled){var c=function(e,t){var o=e.renderAs,r=e.contentAs,l=(0,n.resolveDirective)("bkVirtualRender"),i={lineHeight:e.lineHeight,handleScrollCallback:function(e,o,r,n,l,i,s){t.emit("content-scroll",[e,{translateY:l,translateX:i,pos:s}])},pagination:{},throttleDelay:e.throttleDelay,onlyScroll:e.scrollEvent},s=(0,n.ref)(null);return t.expose({scrollTo:function(e){var t=e.left,o=void 0===t?0:t,r=e.top,n=void 0===r?0:r;s.value.scrollTo(o,n)}}),{rendAsTag:function(){var a,u,c,p,f,d,v,y,g,h,m,b;return(0,n.h)(o,{class:e.className,ref:s},[null!==(c=null===(u=(a=t.slots).beforeContent)||void 0===u?void 0:u.call(a))&&void 0!==c?c:"",(0,n.withDirectives)((0,n.h)(r,{class:e.contentClassName,style:e.contentStyle},[null!==(d=null===(f=(p=t.slots).default)||void 0===f?void 0:f.call(p,{data:e.list}))&&void 0!==d?d:""]),[[l,i]]),null!==(g=null===(y=(v=t.slots).afterContent)||void 0===y?void 0:y.call(v))&&void 0!==g?g:"",null!==(b=null===(m=(h=t.slots).afterSection)||void 0===m?void 0:m.call(h))&&void 0!==b?b:""])}}}(e,t);return c.rendAsTag}var p=(0,n.ref)(null),d=(0,n.reactive)({startIndex:0,endIndex:0,scrollTop:1,scrollLeft:0,translateY:0,translateX:0,count:0,pos:{},groupItemCount:e.groupItemCount}),v=function(e,o,r,n,l,i,s){d.startIndex=o,d.endIndex=r,d.scrollTop=n,d.translateY=l,d.translateX=i,d.scrollLeft=i,d.pos=s,t.emit("content-scroll",[e,d])};(0,n.onMounted)((function(){(0,n.nextTick)((function(){m(e.list),b()}))})),(0,n.watch)((function(){return e.list}),(function(){var t;t={left:d.scrollLeft,top:d.scrollTop},y(),b(),e.keepAlive&&w(t)}),{deep:!0}),(0,n.watch)((function(){return e.lineHeight}),(function(){y(),b()}));var y=function(){m(e.list)},g=(0,n.ref)(0),h=(0,n.ref)(0),m=function(t){if(g.value=Math.ceil((t||[]).length/e.groupItemCount),d.count=g.value,d.startIndex=0,d.endIndex=0,d.translateY=0,d.scrollTop=0,"string"==typeof e.abosuteHeight&&"auto"===e.abosuteHeight)if("function"==typeof e.lineHeight){h.value=0;for(var o=0,r=0;r<g.value;r++){var n=e.lineHeight.call(i,r,t.slice(r*e.groupItemCount,e.groupItemCount));o+="number"==typeof n?n:0}h.value=o}else h.value=e.lineHeight*g.value;else h.value=e.abosuteHeight},b=function(){var t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,top:0},r=null===(t=p.value)||void 0===t?void 0:t.parentNode;f(e.lineHeight,v,d,r,null),o&&p.value&&w(o)},T=(0,n.computed)((function(){return void 0!==e.rowKey?e.list:(e.list||[]).map((function(e,t){return Object.assign(Object.assign({},e),{$index:t})}))})),P=(0,n.computed)((function(){return T.value.slice(d.startIndex*e.groupItemCount,(d.endIndex+e.preloadItemCount)*e.groupItemCount)})),x=(0,n.computed)((function(){return"content"===e.scrollPosition?{top:"".concat(d.scrollTop+e.scrollOffsetTop,"px"),transform:"translateY(-".concat(d.translateY,"px)")}:{}})),I=(0,n.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?x.value:{})})),C=(0,n.computed)((function(){var t="number"==typeof e.abosuteHeight&&0===e.abosuteHeight;return{height:"".concat(h.value<e.minHeight?e.minHeight:h.value,"px"),display:t?"none":"block"}})),H=(0,l.usePrefix)().resolveClassName,O=(0,n.computed)((function(){return[H("virtual-render"),e.scrollXName,e.scrollYName].concat(o(u(e.className)),["container"===e.scrollPosition?H("virtual-content"):""])})),S=(0,n.computed)((function(){return["content"===e.scrollPosition?H("virtual-content"):""].concat(o(u(e.contentClassName)))})),j=(0,n.resolveDirective)("bkVirtualRender"),A={lineHeight:e.lineHeight,handleScrollCallback:v,pagination:d,throttleDelay:e.throttleDelay},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,top:0},t=e.left,o=e.top;p.value.scrollTo(t,o)};return t.expose({reset:function(){y(),b()},scrollTo:w}),function(){var o,r,l,i,u,c,f,d,v,y,g,h;return(0,n.h)(s||"div",{ref:p,class:O.value,style:I.value},[null!==(l=null===(r=(o=t.slots).beforeContent)||void 0===r?void 0:r.call(o))&&void 0!==l?l:"",(0,n.withDirectives)((0,n.h)(a||"div",{class:S.value,style:Object.assign(Object.assign({},x.value),e.contentStyle)},[null!==(c=null===(u=(i=t.slots).default)||void 0===u?void 0:u.call(i,{data:P.value}))&&void 0!==c?c:""]),[[j,A]]),null!==(v=null===(d=(f=t.slots).afterContent)||void 0===d?void 0:d.call(f))&&void 0!==v?v:"",(0,n.h)("div",{class:[H("virtual-section")],style:C.value}),null!==(h=null===(g=(y=t.slots).afterSection)||void 0===g?void 0:g.call(y))&&void 0!==h?h:""])}}}),g=(0,e.withInstall)(y)})(),s})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("lodash"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","lodash"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("lodash")):t(e["../shared"],e.vue,e["../config-provider"],e.lodash);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r)=>(()=>{"use strict";var n={2717:e=>{e.exports=o},4212:t=>{t.exports=e},467:e=>{e.exports=r},748:e=>{e.exports=t}},l={};function i(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{i.r(s),i.d(s,{default:()=>h});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function o(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,o){if(e){if("string"==typeof e)return t(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,o):void 0}}(e)||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.")}()}function r(e){return r="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},r(e)}var n=i(748),l=i(2717),a={onContentScroll:Function},u=Object.assign({list:e.PropTypes.array.def([]),enabled:e.PropTypes.bool.def(!0),scrollEvent:e.PropTypes.bool.def(!1),lineHeight:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.func]).def(30),minHeight:e.PropTypes.number.def(30),height:e.PropTypes.oneOfType([e.PropTypes.string.def("100%"),e.PropTypes.number]).def("100%"),width:e.PropTypes.oneOfType([e.PropTypes.string.def("100%"),e.PropTypes.number]).def("100%"),className:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.object,e.PropTypes.arrayOf(e.PropTypes.object),e.PropTypes.string]).def(""),contentClassName:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.object,e.PropTypes.arrayOf(e.PropTypes.object),e.PropTypes.string]).def(""),contentStyle:e.PropTypes.object.def({}),scrollXName:e.PropTypes.string.def((0,e.resolveClassName)("F-scroll-x")),scrollYName:e.PropTypes.string.def((0,e.resolveClassName)("F-scroll-y")),groupItemCount:e.PropTypes.number.def(1),preloadItemCount:e.PropTypes.number.def(1),renderAs:e.PropTypes.string.def("div"),contentAs:e.PropTypes.string.def("div"),scrollOffsetTop:e.PropTypes.number.def(0),scrollPosition:e.PropTypes.string.def("content"),abosuteHeight:e.PropTypes.oneOfType([e.PropTypes.string.def("auto"),e.PropTypes.number]).def("auto"),throttleDelay:e.PropTypes.number.def(60),rowKey:e.PropTypes.string.def(void 0),keepAlive:e.PropTypes.bool.def(!1),autoReset:e.PropTypes.bool.def(!0),wrapperStyle:e.PropTypes.any.def({})},a),c=i(467);function p(e,t,o,r){for(var n=0,l=0,i=0,s=0;n<e;n++){if(l+(s=r(n,[n*o,(n+1)*o,"virtual"]))>t){i=t-l;break}l+=s}return{startIndex:n,height:l,diffHeight:i}}function f(e,t,o,r,n){if(r){var l=r.scrollTop,i=r.scrollLeft,s=o.scrollTop,a=o.count,u=o.groupItemCount,c=o.startIndex,f=o.endIndex,d=o.scrollLeft,v=r.offsetHeight,y=0,h=0,g=0;if("number"==typeof e&&(y=Math.floor(l/e),h=Math.ceil(v/e)+y,g=l%e),"function"==typeof e){var m=p(a,l,u,e);y=m.startIndex>0?m.startIndex:0,g=m.diffHeight,h=p(a,v,u,e).startIndex+y+1}if(l!==s||y!==c||h!==f||d!==i){var b=r.scrollHeight-r.offsetHeight-r.scrollTop;"function"==typeof t&&t(n,y,h,l,g,i,{bottom:b>=0?b:0})}}}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60;return(0,c.throttle)((function(e,t,o){return function(e,t,o){var r=o.value,n=r.lineHeight,l=void 0===n?30:n,i=r.handleScrollCallback,s=r.pagination,a=void 0===s?{}:s;if(r.onlyScroll){var u=t.scrollTop,c=t.scrollLeft,p=t.scrollHeight-t.offsetHeight-t.scrollTop;i(e,null,null,u,u,c,{bottom:p>=0?p:0})}else{var d=a.startIndex,v=a.endIndex,y=a.groupItemCount,h=a.count;f(l,i,{scrollTop:a.scrollTop,startIndex:d,endIndex:v,groupItemCount:y,count:h,scrollLeft:a.scrollLeft},t,e)}}(e,t,o)}),e)};const v={mounted:function(e,t){var o=e.parentNode,r=t.value.throttleDelay;o.addEventListener("scroll",(function(e){!function(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:60;Reflect.apply(d(r),void 0,[e,t,o])}(e,o,t,r)}))},unbind:function(e){if(e){var t=e.parentNode;if(!t)return;t.removeEventListener("scroll",d)}}},y=(0,n.defineComponent)({name:"VirtualRender",directives:{bkVirtualRender:v},props:u,emits:["content-scroll"],slots:Object,setup:function(e,t){var i=this,s=e.renderAs,a=e.contentAs,u=function(e){return"string"==typeof e?[e]:"object"!==r(e)||Array.isArray(e)?e:[e]};if(!e.enabled){var c=function(e,t){var o=e.renderAs,r=e.contentAs,l=(0,n.resolveDirective)("bkVirtualRender"),i={lineHeight:e.lineHeight,handleScrollCallback:function(e,o,r,n,l,i,s){t.emit("content-scroll",[e,{translateY:l,translateX:i,pos:s}])},pagination:{},throttleDelay:e.throttleDelay,onlyScroll:e.scrollEvent},s=(0,n.ref)(null),a=(0,n.computed)((function(){var t="number"==typeof e.height?"".concat(e.height,"px"):e.height;return Object.assign({height:t,width:"number"==typeof e.width?"".concat(e.width,"px"):e.width,display:"inline-block",maxHeight:t},e.wrapperStyle)}));return t.expose({scrollTo:function(e){var t=e.left,o=void 0===t?0:t,r=e.top,n=void 0===r?0:r;s.value.scrollTo(o,n)}}),{rendAsTag:function(){var u,c,p,f,d,v,y,h,g,m,b,T;return(0,n.h)(o,{class:e.className,style:a.value,ref:s},[null!==(p=null===(c=(u=t.slots).beforeContent)||void 0===c?void 0:c.call(u))&&void 0!==p?p:"",(0,n.withDirectives)((0,n.h)(r,{class:e.contentClassName,style:e.contentStyle},[null!==(v=null===(d=(f=t.slots).default)||void 0===d?void 0:d.call(f,{data:e.list}))&&void 0!==v?v:""]),[[l,i]]),null!==(g=null===(h=(y=t.slots).afterContent)||void 0===h?void 0:h.call(y))&&void 0!==g?g:"",null!==(T=null===(b=(m=t.slots).afterSection)||void 0===b?void 0:b.call(m))&&void 0!==T?T:""])}}}(e,t);return c.rendAsTag}var p=(0,n.ref)(null),d=(0,n.reactive)({startIndex:0,endIndex:0,scrollTop:1,scrollLeft:0,translateY:0,translateX:0,count:0,pos:{},groupItemCount:e.groupItemCount}),v=function(e,o,r,n,l,i,s){d.startIndex=o,d.endIndex=r,d.scrollTop=n,d.translateY=l,d.translateX=i,d.scrollLeft=i,d.pos=s,t.emit("content-scroll",[e,d])};(0,n.onMounted)((function(){(0,n.nextTick)((function(){m(e.list),b()}))})),(0,n.watch)((function(){return e.list}),(function(){var t;t={left:d.scrollLeft,top:d.scrollTop},y(),b(),e.keepAlive&&A(t)}),{deep:!0}),(0,n.watch)((function(){return e.lineHeight}),(function(){y(),b()}));var y=function(){m(e.list)},h=(0,n.ref)(0),g=(0,n.ref)(0),m=function(t){if(h.value=Math.ceil((t||[]).length/e.groupItemCount),d.count=h.value,d.startIndex=0,d.endIndex=0,d.translateY=0,d.scrollTop=0,"string"==typeof e.abosuteHeight&&"auto"===e.abosuteHeight)if("function"==typeof e.lineHeight){g.value=0;for(var o=0,r=0;r<h.value;r++){var n=e.lineHeight.call(i,r,t.slice(r*e.groupItemCount,e.groupItemCount));o+="number"==typeof n?n:0}g.value=o}else g.value=e.lineHeight*h.value;else g.value=e.abosuteHeight},b=function(){var t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,top:0},r=null===(t=p.value)||void 0===t?void 0:t.parentNode;f(e.lineHeight,v,d,r,null),o&&p.value&&e.autoReset&&A(o)},T=(0,n.computed)((function(){return void 0!==e.rowKey?e.list:(e.list||[]).map((function(e,t){return Object.assign(Object.assign({},e),{$index:t})}))})),P=(0,n.computed)((function(){return T.value.slice(d.startIndex*e.groupItemCount,(d.endIndex+e.preloadItemCount)*e.groupItemCount)})),x=(0,n.computed)((function(){return"content"===e.scrollPosition?{top:"".concat(d.scrollTop+e.scrollOffsetTop,"px"),transform:"translateY(-".concat(d.translateY,"px)")}:{}})),I=(0,n.computed)((function(){var t="number"==typeof e.height?"".concat(e.height,"px"):e.height;return Object.assign(Object.assign({height:t,width:"number"==typeof e.width?"".concat(e.width,"px"):e.width,display:"inline-block",maxHeight:t},"container"===e.scrollPosition?x.value:{}),e.wrapperStyle)})),C=(0,n.computed)((function(){var t="number"==typeof e.abosuteHeight&&0===e.abosuteHeight;return{height:"".concat(g.value<e.minHeight?e.minHeight:g.value,"px"),display:t?"none":"block"}})),H=(0,l.usePrefix)().resolveClassName,S=(0,n.computed)((function(){return[H("virtual-render"),e.scrollXName,e.scrollYName].concat(o(u(e.className)),["container"===e.scrollPosition?H("virtual-content"):""])})),O=(0,n.computed)((function(){return["content"===e.scrollPosition?H("virtual-content"):""].concat(o(u(e.contentClassName)))})),j=(0,n.resolveDirective)("bkVirtualRender"),w={lineHeight:e.lineHeight,handleScrollCallback:v,pagination:d,throttleDelay:e.throttleDelay},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,top:0},t=e.left,o=e.top;p.value.scrollTo(t,o)};return t.expose({reset:function(){y(),b()},scrollTo:A}),function(){var o,r,l,i,u,c,f,d,v,y,h,g;return(0,n.h)(s||"div",{ref:p,class:S.value,style:I.value},[null!==(l=null===(r=(o=t.slots).beforeContent)||void 0===r?void 0:r.call(o))&&void 0!==l?l:"",(0,n.withDirectives)((0,n.h)(a||"div",{class:O.value,style:Object.assign(Object.assign({},x.value),e.contentStyle)},[null!==(c=null===(u=(i=t.slots).default)||void 0===u?void 0:u.call(i,{data:P.value}))&&void 0!==c?c:""]),[[j,w]]),null!==(v=null===(d=(f=t.slots).afterContent)||void 0===d?void 0:d.call(f))&&void 0!==v?v:"",(0,n.h)("div",{class:[H("virtual-section")],style:C.value}),null!==(g=null===(h=(y=t.slots).afterSection)||void 0===h?void 0:h.call(y))&&void 0!==g?g:""])}}}),h=(0,e.withInstall)(y)})(),s})()));
@@ -177,5 +177,16 @@ export declare const virtualRenderProps: {
177
177
  } & {
178
178
  default: boolean;
179
179
  };
180
+ /**
181
+ * 数据监听改变时,是否自动重置位置到[0, 0]
182
+ */
183
+ autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
184
+ default: boolean;
185
+ } & {
186
+ default: boolean;
187
+ };
188
+ wrapperStyle: import("vue-types").VueTypeValidableDef<any> & {
189
+ default: any;
190
+ };
180
191
  };
181
192
  export type VirtualRenderProps = Readonly<ExtractPropTypes<typeof virtualRenderProps>>;
@@ -126,6 +126,14 @@ declare const _default: import("vue").DefineComponent<{
126
126
  } & {
127
127
  default: boolean;
128
128
  };
129
+ autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
130
+ default: boolean;
131
+ } & {
132
+ default: boolean;
133
+ };
134
+ wrapperStyle: import("vue-types").VueTypeValidableDef<any> & {
135
+ default: any;
136
+ };
129
137
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
130
138
  [key: string]: any;
131
139
  }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -250,6 +258,14 @@ declare const _default: import("vue").DefineComponent<{
250
258
  } & {
251
259
  default: boolean;
252
260
  };
261
+ autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
262
+ default: boolean;
263
+ } & {
264
+ default: boolean;
265
+ };
266
+ wrapperStyle: import("vue-types").VueTypeValidableDef<any> & {
267
+ default: any;
268
+ };
253
269
  }>> & {
254
270
  [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
255
271
  }, {
@@ -259,6 +275,7 @@ declare const _default: import("vue").DefineComponent<{
259
275
  list: unknown[];
260
276
  lineHeight: any;
261
277
  minHeight: number;
278
+ wrapperStyle: any;
262
279
  className: string | {
263
280
  [key: string]: any;
264
281
  };
@@ -281,6 +298,7 @@ declare const _default: import("vue").DefineComponent<{
281
298
  throttleDelay: number;
282
299
  rowKey: string;
283
300
  keepAlive: boolean;
301
+ autoReset: boolean;
284
302
  }, SlotsType<{
285
303
  default?: any;
286
304
  beforeContent?: any;
@@ -1,28 +1,28 @@
1
1
  /*
2
- * Tencent is pleased to support the open source community by making
3
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4
- *
5
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
6
- *
7
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
8
- *
9
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
10
- *
11
- * ---------------------------------------------------
12
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
13
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
14
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
15
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16
- *
17
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
18
- * the Software.
19
- *
20
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
21
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
23
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
- * IN THE SOFTWARE.
25
- */
2
+ * Tencent is pleased to support the open source community by making
3
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4
+ *
5
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
6
+ *
7
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
8
+ *
9
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
10
+ *
11
+ * ---------------------------------------------------
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
13
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
14
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
15
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16
+ *
17
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
18
+ * the Software.
19
+ *
20
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
21
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
23
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
+ * IN THE SOFTWARE.
25
+ */
26
26
  declare module '@vue/runtime-core' {
27
27
  interface GlobalComponents {
28
28
  BkBreadcrumbItem: typeof import('./breadcrumb/breadcrumb-item').default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.2-beta.7",
3
+ "version": "0.0.2-beta.70",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",
@@ -49,8 +49,8 @@
49
49
  "@types/lodash": "~4.14.196",
50
50
  "@types/node": "~20.4.5",
51
51
  "@types/postcss-less": "~4.0.2",
52
- "@typescript-eslint/eslint-plugin": "~5.19.0",
53
- "@typescript-eslint/parser": "~5.19.0",
52
+ "@typescript-eslint/eslint-plugin": "^5.20.0",
53
+ "@typescript-eslint/parser": "^5.20.0",
54
54
  "@vitejs/plugin-vue": "~4.2.3",
55
55
  "@vitejs/plugin-vue-jsx": "~3.0.1",
56
56
  "@vue/babel-plugin-jsx": "~1.1.5",
@@ -65,15 +65,14 @@
65
65
  "cross-env": "~7.0.3",
66
66
  "css-loader": "~6.8.1",
67
67
  "cz-lerna-changelog": "~2.0.3",
68
- "eslint": "~8.46.0",
68
+ "eslint": "8.26.0",
69
+ "eslint-config-prettier": "^9.0.0",
69
70
  "eslint-config-tencent": "~1.0.4",
70
- "eslint-plugin-codecc": "~0.2.0",
71
+ "eslint-plugin-codecc": "~0.3.0",
71
72
  "eslint-plugin-import": "~2.28.0",
72
- "eslint-plugin-node": "~11.1.0",
73
- "eslint-plugin-prettier": "~4.0.0",
74
- "eslint-plugin-promise": "~6.1.1",
75
- "eslint-plugin-simple-import-sort": "~7.0.0",
76
- "eslint-plugin-vue": "~8.6.0",
73
+ "eslint-plugin-prettier": "~5.0.0",
74
+ "eslint-plugin-simple-import-sort": "~10.0.0",
75
+ "eslint-plugin-vue": "~9.17.0",
77
76
  "highlight.js": "~11.8.0",
78
77
  "husky": "~7.0.1",
79
78
  "jest": "~29.6.2",
@@ -89,21 +88,23 @@
89
88
  "postcss": "~8.4.27",
90
89
  "postcss-html": "~1.5.0",
91
90
  "postcss-less": "~6.0.0",
92
- "prettier": "~2.6.2",
91
+ "prettier": "~3.0.3",
93
92
  "prismjs": "~1.29.0",
94
93
  "resize-observer-polyfill": "~1.5.1",
95
94
  "rimraf": "~5.0.1",
96
- "stylelint": "~14.6.1",
97
- "stylelint-config-recommended-vue": "~1.5.0",
98
- "stylelint-order": "~5.0.0",
99
- "stylelint-scss": "~4.2.0",
95
+ "stylelint": "^15.10.3",
96
+ "stylelint-config-recess-order": "^4.3.0",
97
+ "stylelint-config-recommended-vue": "1.5.0",
98
+ "stylelint-config-standard": "^34.0.0",
99
+ "stylelint-order": "^6.0.3",
100
+ "stylelint-scss": "^5.1.0",
100
101
  "ts-jest": "~29.1.1",
101
102
  "ts-node": "~10.9.1",
102
103
  "typescript": "~4.9.5",
103
104
  "vite": "~4.4.7",
104
105
  "vite-plugin-vue-markdown": "~0.23.7",
105
106
  "vue": "~3.3.4",
106
- "vue-eslint-parser": "~8.3.0",
107
+ "vue-eslint-parser": "~9.3.1",
107
108
  "vue-i18n": "~9.2.2",
108
109
  "vue-router": "~4.2.4",
109
110
  "vue-types": "~4.1.1"