@opentiny/vue-renderless 3.18.5 → 3.19.0

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 (122) hide show
  1. package/action-menu/index.js +2 -2
  2. package/action-menu/vue.js +2 -2
  3. package/anchor/index.js +8 -6
  4. package/anchor/vue.js +1 -1
  5. package/badge/index.js +4 -3
  6. package/base-select/index.js +3 -3
  7. package/breadcrumb-item/vue.js +1 -1
  8. package/bulletin-board/index.js +1 -1
  9. package/button/index.js +1 -1
  10. package/button-group/index.js +6 -1
  11. package/carousel-item/index.js +1 -1
  12. package/cascader/vue.js +17 -4
  13. package/chart-core/deps/utils.js +1 -1
  14. package/checkbox/index.js +1 -1
  15. package/common/deps/dom.js +9 -1
  16. package/common/deps/useWindowSize.js +23 -0
  17. package/common/deps/vue-popper.js +1 -1
  18. package/common/index.js +2 -2
  19. package/common/prop-util.js +43 -0
  20. package/common/runtime.js +1 -1
  21. package/crop/index.js +14 -22
  22. package/crop/vue.js +33 -29
  23. package/date-panel/index.js +13 -2
  24. package/date-panel/vue.js +16 -10
  25. package/dialog-select/index.js +78 -0
  26. package/dialog-select/vue.js +28 -6
  27. package/drawer/index.js +14 -1
  28. package/drawer/vue.js +4 -3
  29. package/dropdown-item/index.js +2 -2
  30. package/dropdown-item/vue.js +9 -6
  31. package/espace/index.js +1 -1
  32. package/fall-menu/index.js +5 -1
  33. package/fall-menu/vue.js +15 -2
  34. package/filter-box/vue.js +5 -2
  35. package/floatbar/index.js +1 -1
  36. package/fluent-editor/options.js +26 -24
  37. package/form/index.js +7 -4
  38. package/form/vue.js +1 -1
  39. package/grid/plugins/export.js +1 -1
  40. package/grid/utils/dom.js +3 -1
  41. package/guide/index.js +17 -2
  42. package/guide/vue.js +5 -3
  43. package/image-viewer/vue.js +1 -1
  44. package/input/index.js +6 -7
  45. package/input/vue.js +10 -11
  46. package/ip-address/index.js +0 -10
  47. package/ip-address/vue.js +2 -5
  48. package/load-list/index.js +43 -0
  49. package/load-list/vue.js +69 -0
  50. package/locales/index.js +1 -5
  51. package/logout/index.js +1 -1
  52. package/milestone/index.js +55 -8
  53. package/milestone/vue.js +16 -3
  54. package/modal/index.js +6 -6
  55. package/modal/vue.js +4 -3
  56. package/nav-menu/index.js +1 -1
  57. package/package.json +1 -1
  58. package/pager/index.js +25 -0
  59. package/pager/vue.js +18 -4
  60. package/picker/index.js +3 -3
  61. package/picker/vue.js +1 -1
  62. package/popeditor/index.js +12 -1
  63. package/popeditor/vue.js +9 -5
  64. package/rich-text/table-module.js +4 -3
  65. package/roles/index.js +1 -1
  66. package/select/index.js +6 -6
  67. package/select/vue.js +2 -1
  68. package/selected-box/vue.js +2 -1
  69. package/slider/index.js +2 -2
  70. package/slider-button-group/vue.js +3 -2
  71. package/split/vue.js +4 -2
  72. package/sticky/index.js +89 -0
  73. package/sticky/vue.js +74 -0
  74. package/tabbar-item/vue.js +1 -1
  75. package/tall-storage/index.js +1 -1
  76. package/time/vue.js +2 -1
  77. package/time-range/vue.js +4 -1
  78. package/time-spinner/index.js +4 -1
  79. package/toggle-menu/index.js +1 -1
  80. package/transfer-panel/vue.js +7 -6
  81. package/tree/index.js +17 -7
  82. package/tree/vue.js +10 -6
  83. package/tree-node/index.js +2 -2
  84. package/tree-node/vue.js +6 -2
  85. package/types/action-menu.type.d.ts +1 -1
  86. package/types/alert.type.d.ts +2 -0
  87. package/types/anchor.type.d.ts +5 -1
  88. package/types/badge.type.d.ts +1 -1
  89. package/types/button-group.type.d.ts +3 -0
  90. package/types/button.type.d.ts +1 -1
  91. package/types/date-picker.type.d.ts +3 -0
  92. package/types/drawer.type.d.ts +5 -1
  93. package/types/{dropdown-item.type-16d59fd0.d.ts → dropdown-item.type-c9badbc1.d.ts} +2 -2
  94. package/types/dropdown-item.type.d.ts +1 -1
  95. package/types/dropdown-menu.type.d.ts +1 -1
  96. package/types/fall-menu.type.d.ts +1 -0
  97. package/types/file-upload.type.d.ts +1 -1
  98. package/types/image.type.d.ts +4 -0
  99. package/types/input.type.d.ts +8 -4
  100. package/types/load-list.type.d.ts +58 -0
  101. package/types/milestone.type.d.ts +27 -1
  102. package/types/modal.type.d.ts +3 -2
  103. package/types/pager.type.d.ts +5 -1
  104. package/types/picker.type.d.ts +3 -0
  105. package/types/popover.type.d.ts +1 -1
  106. package/types/search.type.d.ts +0 -3
  107. package/types/steps.type.d.ts +1 -0
  108. package/types/tag.type.d.ts +1 -0
  109. package/types/tooltip.type.d.ts +3 -0
  110. package/types/transfer.type.d.ts +3 -3
  111. package/types/tree-menu.type.d.ts +8 -0
  112. package/types/upload-dragger.type.d.ts +1 -1
  113. package/types/{upload-list.type-4194f534.d.ts → upload-list.type-26173587.d.ts} +11 -3
  114. package/types/upload-list.type.d.ts +1 -1
  115. package/types/upload.type.d.ts +1 -1
  116. package/types/user-contact.type.d.ts +127 -1
  117. package/types/user-head.type.d.ts +1 -4
  118. package/upload-list/vue.js +7 -7
  119. package/virtual-scroll-box/index.js +294 -0
  120. package/virtual-scroll-box/vue.js +43 -0
  121. package/virtual-tree/index.js +168 -0
  122. package/virtual-tree/vue.js +53 -0
@@ -0,0 +1,53 @@
1
+ import "../chunk-G2ADBYYC.js";
2
+ import {
3
+ computeState,
4
+ shouldRender,
5
+ onVsBoxChange,
6
+ onTreeChange,
7
+ getTreeInstance,
8
+ keepExpandStatus,
9
+ keepScrollTop,
10
+ refresh
11
+ } from "./index";
12
+ const api = [
13
+ "state",
14
+ "onVsBoxChange",
15
+ "onTreeChange",
16
+ "getTreeInstance",
17
+ "keepExpandStatus",
18
+ "keepScrollTop",
19
+ "refresh"
20
+ ];
21
+ const renderless = (props, { reactive, watch, provide }, { nextTick, vm }) => {
22
+ const api2 = {};
23
+ const state = reactive({
24
+ expandeds: [],
25
+ treeOptions: {},
26
+ treeEvents: {},
27
+ vsBoxOptions: {},
28
+ renderRows: [],
29
+ treeStyle: {}
30
+ });
31
+ Object.assign(api2, {
32
+ state,
33
+ computeState: computeState({ props, state }),
34
+ shouldRender: shouldRender(state),
35
+ onVsBoxChange: onVsBoxChange({ props, state }),
36
+ onTreeChange: onTreeChange({ nextTick, props, state, vm }),
37
+ getTreeInstance: getTreeInstance(vm),
38
+ keepExpandStatus: keepExpandStatus(state),
39
+ keepScrollTop: keepScrollTop(state),
40
+ refresh: refresh({ api: api2, state, vm })
41
+ });
42
+ provide("TreeAdapter", { shouldRender: api2.shouldRender });
43
+ watch(
44
+ () => props.treeOp.data,
45
+ () => api2.refresh(),
46
+ { immediate: true }
47
+ );
48
+ return api2;
49
+ };
50
+ export {
51
+ api,
52
+ renderless
53
+ };