@jetlinks-web/components 3.0.1-rc → 3.1.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 (294) hide show
  1. package/es/AutoComplete/AutoComplete.js +13 -9
  2. package/es/BadgeStatus/Badge.js +1 -2
  3. package/es/BadgeStatus/color.js +3 -3
  4. package/es/CardSelect/CardSelect.js +23 -13
  5. package/es/CardSelect/style/index.js +25 -1
  6. package/es/CheckButton/CheckButton.js +12 -4
  7. package/es/CheckButton/style/index.js +41 -1
  8. package/es/DragModal/DragModal.js +14 -8
  9. package/es/DragModal/style/index.js +64 -1
  10. package/es/EditTable/Body.js +10 -3
  11. package/es/EditTable/EditTable.js +13 -7
  12. package/es/EditTable/FormItem.js +18 -19
  13. package/es/EditTable/Header.js +16 -6
  14. package/es/EditTable/components/ContextMenu/Menu.js +11 -5
  15. package/es/EditTable/components/Search/search.js +1 -2
  16. package/es/EditTable/components/Search/sort.js +1 -3
  17. package/es/EditTable/group.js +23 -18
  18. package/es/EditTable/hooks/useValidate.js +1 -1
  19. package/es/EditTable/style/body.js +53 -0
  20. package/es/EditTable/style/form.js +24 -0
  21. package/es/EditTable/style/group.js +25 -0
  22. package/es/EditTable/style/header.js +58 -0
  23. package/es/EditTable/style/index.js +42 -1
  24. package/es/EditTable/style/menu.js +27 -0
  25. package/es/EditTable/style/table.js +46 -0
  26. package/es/EditTable/utils.js +30 -3
  27. package/es/Ellipsis/Ellipsis.js +10 -2
  28. package/es/Ellipsis/style/index.js +24 -1
  29. package/es/FullPage/FullPage.js +1 -2
  30. package/es/LocaleProvider/index.js +1 -2
  31. package/es/PermissionButton/index.js +6 -7
  32. package/es/ProLayout/Basic/BasicLayout.js +45 -41
  33. package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
  34. package/es/ProLayout/Basic/Header.js +3 -7
  35. package/es/ProLayout/Basic/HeaderStyle.js +10 -0
  36. package/es/ProLayout/PageContainer/index.js +21 -17
  37. package/es/ProLayout/PageContainer/style.js +46 -0
  38. package/es/ProLayout/SiderMenu/BaseMenu.js +18 -42
  39. package/es/ProLayout/SiderMenu/SiderMenu.js +24 -36
  40. package/es/ProLayout/SiderMenu/style.js +166 -0
  41. package/es/ProLayout/TopHeader/index.js +13 -12
  42. package/es/ProLayout/TopHeader/style.js +126 -0
  43. package/es/ProLayout/style/index.js +7 -1
  44. package/es/ProLayout/util.js +5 -5
  45. package/es/ProTable/Alert.js +12 -4
  46. package/es/ProTable/Content.js +166 -45
  47. package/es/ProTable/Header.js +21 -11
  48. package/es/ProTable/Pagination.js +28 -11
  49. package/es/ProTable/ProTable.js +104 -46
  50. package/es/ProTable/hooks/index.js +2 -0
  51. package/es/ProTable/hooks/useTableInject.js +5 -0
  52. package/es/ProTable/hooks/useTableSelection.js +95 -0
  53. package/es/ProTable/setting.js +24 -1
  54. package/es/ProTable/style/index.js +109 -1
  55. package/es/RadioButton/RadioButton.js +10 -4
  56. package/es/RadioButton/style/index.js +23 -1
  57. package/es/Scrollbar/Scrollbar.js +10 -3
  58. package/es/Scrollbar/Thumb.js +36 -25
  59. package/es/Scrollbar/style/index.js +63 -1
  60. package/es/Search/Advanced/History.js +23 -16
  61. package/es/Search/Advanced/SaveHistory.js +1 -2
  62. package/es/Search/Advanced/index.js +212 -292
  63. package/es/Search/Item.js +175 -415
  64. package/es/Search/Search.js +78 -172
  65. package/es/Search/hooks/index.js +108 -1
  66. package/es/Search/hooks/useRouteQuery.js +57 -0
  67. package/es/Search/setting.js +132 -14
  68. package/es/Search/style/index.js +4 -2
  69. package/es/Search/style/item.js +28 -0
  70. package/es/Search/style/search.js +133 -0
  71. package/es/Search/util.js +116 -124
  72. package/es/Skeleton/components/DashBoardCard.js +19 -12
  73. package/es/Skeleton/components/DashBoardChart.js +48 -45
  74. package/es/Skeleton/components/Detail.js +27 -21
  75. package/es/Skeleton/components/Drawer.js +23 -14
  76. package/es/Skeleton/components/Item.js +9 -1
  77. package/es/Skeleton/components/List.js +0 -1
  78. package/es/Skeleton/components/ListCard.js +20 -13
  79. package/es/Skeleton/components/ListCardItem.js +12 -13
  80. package/es/Skeleton/components/ListTable.js +19 -10
  81. package/es/Skeleton/components/Page.js +0 -1
  82. package/es/Skeleton/components/Tree.js +21 -14
  83. package/es/Skeleton/skeleton.js +17 -8
  84. package/es/Skeleton/style/index.js +132 -1
  85. package/es/Title/style/index.js +29 -1
  86. package/es/Title/title.js +13 -5
  87. package/es/ValueItem/ValueItem.js +44 -39
  88. package/es/VirtualTable/VirtualTable.js +398 -0
  89. package/es/VirtualTable/data.js +36 -0
  90. package/es/VirtualTable/index.js +5 -0
  91. package/es/VirtualTable/style/index.js +32 -0
  92. package/es/components.js +1 -4
  93. package/es/locale/en-US.js +6 -8
  94. package/es/locale/zh-CN.js +6 -8
  95. package/es/style/index.js +0 -3
  96. package/es/style/styleRegister.js +21 -0
  97. package/es/style/variable.js +4 -0
  98. package/es/style.js +0 -13
  99. package/lib/AutoComplete/AutoComplete.js +13 -9
  100. package/lib/BadgeStatus/Badge.js +1 -2
  101. package/lib/BadgeStatus/color.js +3 -3
  102. package/lib/CardSelect/CardSelect.js +23 -13
  103. package/lib/CardSelect/style/index.js +30 -1
  104. package/lib/CheckButton/CheckButton.js +12 -4
  105. package/lib/CheckButton/style/index.js +46 -1
  106. package/lib/DragModal/DragModal.js +14 -8
  107. package/lib/DragModal/style/index.js +69 -1
  108. package/lib/EditTable/Body.js +10 -3
  109. package/lib/EditTable/EditTable.js +13 -7
  110. package/lib/EditTable/FormItem.js +18 -19
  111. package/lib/EditTable/Header.js +16 -6
  112. package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
  113. package/lib/EditTable/components/Search/search.js +1 -2
  114. package/lib/EditTable/components/Search/sort.js +1 -3
  115. package/lib/EditTable/group.js +23 -18
  116. package/lib/EditTable/hooks/useValidate.js +1 -1
  117. package/lib/EditTable/style/body.js +60 -0
  118. package/lib/EditTable/style/form.js +31 -0
  119. package/lib/EditTable/style/group.js +32 -0
  120. package/lib/EditTable/style/header.js +65 -0
  121. package/lib/EditTable/style/index.js +47 -1
  122. package/lib/EditTable/style/menu.js +33 -0
  123. package/lib/EditTable/style/table.js +52 -0
  124. package/lib/EditTable/utils.js +31 -3
  125. package/lib/Ellipsis/Ellipsis.js +10 -2
  126. package/lib/Ellipsis/style/index.js +29 -1
  127. package/lib/FullPage/FullPage.js +1 -2
  128. package/lib/Icon/icon.js +1 -2
  129. package/lib/LocaleProvider/index.js +1 -2
  130. package/lib/PermissionButton/index.js +6 -7
  131. package/lib/ProLayout/Basic/BasicLayout.js +45 -42
  132. package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
  133. package/lib/ProLayout/Basic/Header.js +2 -6
  134. package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
  135. package/lib/ProLayout/PageContainer/index.js +19 -15
  136. package/lib/ProLayout/PageContainer/style.js +53 -0
  137. package/lib/ProLayout/SiderMenu/BaseMenu.js +19 -42
  138. package/lib/ProLayout/SiderMenu/SiderMenu.js +24 -37
  139. package/lib/ProLayout/SiderMenu/style.js +173 -0
  140. package/lib/ProLayout/TopHeader/index.js +14 -12
  141. package/lib/ProLayout/TopHeader/style.js +133 -0
  142. package/lib/ProLayout/style/index.js +12 -1
  143. package/lib/ProLayout/util.js +5 -5
  144. package/lib/ProTable/Alert.js +12 -4
  145. package/lib/ProTable/Content.js +166 -45
  146. package/lib/ProTable/Header.js +21 -11
  147. package/lib/ProTable/Pagination.js +28 -11
  148. package/lib/ProTable/ProTable.js +104 -46
  149. package/lib/ProTable/hooks/index.js +27 -0
  150. package/lib/ProTable/hooks/useTableInject.js +11 -0
  151. package/lib/ProTable/hooks/useTableSelection.js +102 -0
  152. package/lib/ProTable/setting.js +24 -1
  153. package/lib/ProTable/style/index.js +114 -1
  154. package/lib/RadioButton/RadioButton.js +10 -4
  155. package/lib/RadioButton/style/index.js +28 -1
  156. package/lib/Scrollbar/Scrollbar.js +10 -3
  157. package/lib/Scrollbar/Thumb.js +36 -25
  158. package/lib/Scrollbar/style/index.js +68 -1
  159. package/lib/Search/Advanced/History.js +23 -16
  160. package/lib/Search/Advanced/SaveHistory.js +1 -2
  161. package/lib/Search/Advanced/index.js +212 -292
  162. package/lib/Search/Item.js +175 -415
  163. package/lib/Search/Search.js +78 -172
  164. package/lib/Search/hooks/index.js +130 -1
  165. package/lib/Search/hooks/useRouteQuery.js +64 -0
  166. package/lib/Search/setting.js +133 -15
  167. package/lib/Search/style/index.js +9 -2
  168. package/lib/Search/style/item.js +35 -0
  169. package/lib/Search/style/search.js +140 -0
  170. package/lib/Search/util.js +116 -124
  171. package/lib/Skeleton/components/DashBoardCard.js +19 -12
  172. package/lib/Skeleton/components/DashBoardChart.js +48 -45
  173. package/lib/Skeleton/components/Detail.js +27 -21
  174. package/lib/Skeleton/components/Drawer.js +23 -14
  175. package/lib/Skeleton/components/Item.js +9 -1
  176. package/lib/Skeleton/components/List.js +0 -1
  177. package/lib/Skeleton/components/ListCard.js +20 -13
  178. package/lib/Skeleton/components/ListCardItem.js +12 -13
  179. package/lib/Skeleton/components/ListTable.js +19 -10
  180. package/lib/Skeleton/components/Page.js +0 -1
  181. package/lib/Skeleton/components/Tree.js +21 -14
  182. package/lib/Skeleton/skeleton.js +17 -8
  183. package/lib/Skeleton/style/index.js +137 -1
  184. package/lib/Title/style/index.js +34 -1
  185. package/lib/Title/title.js +13 -5
  186. package/lib/ValueItem/ValueItem.js +44 -39
  187. package/lib/VirtualTable/VirtualTable.js +398 -0
  188. package/lib/VirtualTable/data.js +43 -0
  189. package/lib/VirtualTable/index.js +12 -0
  190. package/lib/VirtualTable/style/index.js +39 -0
  191. package/lib/components.js +8 -30
  192. package/lib/index.js +1 -2
  193. package/lib/locale/en-US.js +6 -8
  194. package/lib/locale/zh-CN.js +6 -8
  195. package/lib/style/components.less +0 -1
  196. package/lib/style/index.js +1 -4
  197. package/lib/style/styleRegister.js +28 -0
  198. package/lib/style/variable.js +10 -0
  199. package/lib/style.js +1 -15
  200. package/package.json +170 -173
  201. package/es/AMap/Map.js +0 -133
  202. package/es/AMap/index.js +0 -5
  203. package/es/AMap/util.js +0 -56
  204. package/es/CardSelect/style/index.css +0 -24
  205. package/es/CardSelect/style/index.less +0 -26
  206. package/es/CheckButton/style/index.css +0 -37
  207. package/es/CheckButton/style/index.less +0 -40
  208. package/es/DragModal/style/index.css +0 -82
  209. package/es/DragModal/style/index.less +0 -97
  210. package/es/Echarts/Echarts.js +0 -48
  211. package/es/Echarts/index.js +0 -5
  212. package/es/EditTable/style/body.less +0 -66
  213. package/es/EditTable/style/form.less +0 -33
  214. package/es/EditTable/style/group.less +0 -32
  215. package/es/EditTable/style/header.less +0 -77
  216. package/es/EditTable/style/index.css +0 -267
  217. package/es/EditTable/style/index.less +0 -41
  218. package/es/EditTable/style/menu.less +0 -25
  219. package/es/EditTable/style/table.less +0 -47
  220. package/es/Ellipsis/style/index.css +0 -17
  221. package/es/Ellipsis/style/index.less +0 -20
  222. package/es/FlameGraph/FlameGraph.js +0 -136
  223. package/es/FlameGraph/index.js +0 -5
  224. package/es/FlameGraph/style/index.css +0 -43
  225. package/es/FlameGraph/style/index.js +0 -1
  226. package/es/FlameGraph/style/index.less +0 -52
  227. package/es/ProLayout/Basic/BasicLayout.less +0 -66
  228. package/es/ProLayout/Basic/Header.less +0 -8
  229. package/es/ProLayout/PageContainer/index.less +0 -103
  230. package/es/ProLayout/SiderMenu/index.less +0 -231
  231. package/es/ProLayout/TopHeader/index.less +0 -174
  232. package/es/ProLayout/style/default.less +0 -4
  233. package/es/ProLayout/style/style.less +0 -7
  234. package/es/ProTable/style/ProTable.less +0 -139
  235. package/es/RadioButton/style/index.css +0 -20
  236. package/es/RadioButton/style/index.less +0 -19
  237. package/es/Scrollbar/style/index.css +0 -65
  238. package/es/Scrollbar/style/index.less +0 -83
  239. package/es/Search/style/Item.less +0 -33
  240. package/es/Search/style/Search.less +0 -179
  241. package/es/Skeleton/style/Skeleton.less +0 -166
  242. package/es/Title/style/index.css +0 -27
  243. package/es/Title/style/index.less +0 -27
  244. package/es/style/index.css +0 -5375
  245. package/es/style/index.less +0 -14
  246. package/es/style/variable.css +0 -4
  247. package/es/style/variable.less +0 -4
  248. package/lib/AMap/Map.js +0 -133
  249. package/lib/AMap/index.js +0 -12
  250. package/lib/AMap/util.js +0 -62
  251. package/lib/CardSelect/style/index.css +0 -24
  252. package/lib/CardSelect/style/index.less +0 -26
  253. package/lib/CheckButton/style/index.css +0 -37
  254. package/lib/CheckButton/style/index.less +0 -40
  255. package/lib/DragModal/style/index.css +0 -82
  256. package/lib/DragModal/style/index.less +0 -97
  257. package/lib/Echarts/Echarts.js +0 -48
  258. package/lib/Echarts/index.js +0 -12
  259. package/lib/EditTable/style/body.less +0 -66
  260. package/lib/EditTable/style/form.less +0 -33
  261. package/lib/EditTable/style/group.less +0 -32
  262. package/lib/EditTable/style/header.less +0 -77
  263. package/lib/EditTable/style/index.css +0 -267
  264. package/lib/EditTable/style/index.less +0 -41
  265. package/lib/EditTable/style/menu.less +0 -25
  266. package/lib/EditTable/style/table.less +0 -47
  267. package/lib/Ellipsis/style/index.css +0 -17
  268. package/lib/Ellipsis/style/index.less +0 -20
  269. package/lib/FlameGraph/FlameGraph.js +0 -136
  270. package/lib/FlameGraph/index.js +0 -12
  271. package/lib/FlameGraph/style/index.css +0 -43
  272. package/lib/FlameGraph/style/index.js +0 -3
  273. package/lib/FlameGraph/style/index.less +0 -52
  274. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  275. package/lib/ProLayout/Basic/Header.less +0 -8
  276. package/lib/ProLayout/PageContainer/index.less +0 -103
  277. package/lib/ProLayout/SiderMenu/index.less +0 -231
  278. package/lib/ProLayout/TopHeader/index.less +0 -174
  279. package/lib/ProLayout/style/default.less +0 -4
  280. package/lib/ProLayout/style/style.less +0 -7
  281. package/lib/ProTable/style/ProTable.less +0 -139
  282. package/lib/RadioButton/style/index.css +0 -20
  283. package/lib/RadioButton/style/index.less +0 -19
  284. package/lib/Scrollbar/style/index.css +0 -65
  285. package/lib/Scrollbar/style/index.less +0 -83
  286. package/lib/Search/style/Item.less +0 -33
  287. package/lib/Search/style/Search.less +0 -179
  288. package/lib/Skeleton/style/Skeleton.less +0 -166
  289. package/lib/Title/style/index.css +0 -27
  290. package/lib/Title/style/index.less +0 -27
  291. package/lib/style/index.css +0 -5375
  292. package/lib/style/index.less +0 -14
  293. package/lib/style/variable.css +0 -4
  294. package/lib/style/variable.less +0 -4
@@ -0,0 +1,398 @@
1
+ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
2
+ const op = ops[i];
3
+ const fn = ops[i + 1];
4
+ i += 2;
5
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
6
+ return undefined;
7
+ }
8
+ if (op === 'access' || op === 'optionalAccess') {
9
+ lastAccessLHS = value;
10
+ value = fn(value);
11
+ }
12
+ else if (op === 'call' || op === 'optionalCall') {
13
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
14
+ lastAccessLHS = undefined;
15
+ }
16
+ } return value; }
17
+ /* Analyzed bindings: {
18
+ "dataSource": "props",
19
+ "columns": "props",
20
+ "expandedRowKeys": "props",
21
+ "rowSelection": "props",
22
+ "rowKey": "props",
23
+ "height": "props",
24
+ "findAllChildren": "setup-maybe-ref",
25
+ "flattenTree": "setup-maybe-ref",
26
+ "isNumber": "setup-maybe-ref",
27
+ "map": "setup-maybe-ref",
28
+ "omit": "setup-maybe-ref",
29
+ "h": "setup-const",
30
+ "computed": "setup-const",
31
+ "ref": "setup-const",
32
+ "watch": "setup-const",
33
+ "onMounted": "setup-const",
34
+ "nextTick": "setup-const",
35
+ "Table": "setup-maybe-ref",
36
+ "Checkbox": "setup-maybe-ref",
37
+ "AIcon": "setup-maybe-ref",
38
+ "useVirtualTableStyle": "setup-maybe-ref",
39
+ "useLocaleReceiver": "setup-maybe-ref",
40
+ "props": "setup-reactive-const",
41
+ "emits": "setup-const",
42
+ "prefixCls": "setup-ref",
43
+ "wrapSSR": "setup-maybe-ref",
44
+ "hashId": "setup-maybe-ref",
45
+ "contextLocale": "setup-maybe-ref",
46
+ "container": "setup-ref",
47
+ "rowHeights": "setup-ref",
48
+ "prefixSum": "setup-ref",
49
+ "start": "setup-ref",
50
+ "end": "setup-ref",
51
+ "offsetY": "setup-ref",
52
+ "buffer": "literal-const",
53
+ "selectedAll": "setup-ref",
54
+ "visibleNodes": "setup-ref",
55
+ "flattenData": "setup-ref",
56
+ "firstColumn": "setup-ref",
57
+ "totalHeight": "setup-ref",
58
+ "visibleRows": "setup-ref",
59
+ "_indeterminate": "setup-ref",
60
+ "viewportHeight": "setup-ref",
61
+ "_columns": "setup-ref",
62
+ "_rowSelection": "setup-ref",
63
+ "onSelectedAllChange": "setup-const",
64
+ "onScroll": "setup-const",
65
+ "toggleExpand": "setup-const",
66
+ "updatePrefixSum": "setup-const",
67
+ "updateVisibleNodes": "setup-const"
68
+ } */
69
+ import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, renderSlot as _renderSlot, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeStyle as _normalizeStyle, Fragment as _Fragment, normalizeClass as _normalizeClass } from "vue";
70
+ const _hoisted_1 = { class: "virtual-table-header" };
71
+ const _hoisted_2 = {
72
+ key: 0,
73
+ class: "virtual-table-all-selected"
74
+ };
75
+ const _hoisted_3 = ["onClick"];
76
+ import { findAllChildren, flattenTree } from "./data";
77
+ import { isNumber, map, omit } from "lodash-es";
78
+ import { h, computed, ref, watch, onMounted, nextTick } from 'vue';
79
+ import { Table, Checkbox } from 'ant-design-vue';
80
+ import AIcon from '../Icon';
81
+ import useVirtualTableStyle from './style';
82
+ import { useLocaleReceiver } from "../LocaleReciver";
83
+ const buffer = 5;
84
+ const __sfc_main__ = Object.assign({
85
+ name: 'JVirtualTable'
86
+ }, {
87
+ props: {
88
+ dataSource: {
89
+ type: Array,
90
+ default: () => []
91
+ },
92
+ columns: {
93
+ type: Array,
94
+ default: () => []
95
+ },
96
+ expandedRowKeys: {
97
+ type: Array,
98
+ default: () => []
99
+ },
100
+ rowSelection: {
101
+ type: Object
102
+ },
103
+ rowKey: {
104
+ type: [String, Function],
105
+ default: 'id',
106
+ },
107
+ height: {
108
+ type: Number,
109
+ default: 500
110
+ }
111
+ },
112
+ emits: ['update:expandedRowKeys'],
113
+ setup(__props, { emit: __emit }) {
114
+ const props = __props;
115
+ const emits = __emit;
116
+ const prefixCls = computed(() => 'virtual-table');
117
+ const [wrapSSR, hashId] = useVirtualTableStyle(prefixCls);
118
+ const [contextLocale] = useLocaleReceiver('ProTable');
119
+ const container = ref(null);
120
+ const rowHeights = ref([]);
121
+ const prefixSum = ref([]);
122
+ const start = ref(0);
123
+ const end = ref(15);
124
+ const offsetY = ref(0);
125
+ const selectedAll = ref(false);
126
+ // 被展开的所有数据
127
+ const visibleNodes = ref([]);
128
+ const flattenData = ref([]);
129
+ const firstColumn = computed(() => props.columns[0]);
130
+ const totalHeight = computed(() => prefixSum.value.length ? prefixSum.value[prefixSum.value.length - 1] : 0);
131
+ const visibleRows = computed(() => visibleNodes.value.slice(start.value, end.value));
132
+ const _indeterminate = computed(() => !selectedAll.value && _optionalChain([props, 'access', _2 => _2.rowSelection, 'optionalAccess', _3 => _3.selectedRowKeys, 'optionalAccess', _4 => _4.length]) > 0);
133
+ const viewportHeight = computed(() => props.height || 500);
134
+ const _columns = computed(() => {
135
+ const arr = [];
136
+ if (props.rowSelection) {
137
+ const _width = props.rowSelection.columnWidth || 32;
138
+ arr.push({
139
+ key: '__selection__',
140
+ title: contextLocale.value.select.all,
141
+ dataIndex: '__selection__',
142
+ width: isNumber(_width) ? `${_width}px` : _width,
143
+ customHeaderCell: (props) => {
144
+ return {
145
+ class: 'ant-table-selection-column',
146
+ };
147
+ }
148
+ }); //
149
+ }
150
+ arr.push(...props.columns);
151
+ return arr;
152
+ });
153
+ const _rowSelection = computed(() => {
154
+ return props.rowSelection ? {
155
+ ...props.rowSelection,
156
+ onSelect: (record, selected, selectedRows, nativeEvent) => {
157
+ const _selectedRowKeys = props.rowSelection.selectedRowKeys || [];
158
+ const _set = new Set([..._selectedRowKeys]);
159
+ if (props.rowSelection.type === 'radio') {
160
+ _set.clear();
161
+ _set.add(record[props.rowKey]);
162
+ }
163
+ else {
164
+ const _checkStrictly = props.rowSelection.checkStrictly !== undefined ? props.rowSelection.checkStrictly : true;
165
+ let __arr = [];
166
+ if (_checkStrictly) { // 需要获取子
167
+ __arr = [record[props.rowKey]];
168
+ }
169
+ else {
170
+ __arr = map(findAllChildren(flattenData.value, record[props.rowKey]), props.rowKey);
171
+ __arr.push(record[props.rowKey]);
172
+ }
173
+ if (selected) {
174
+ __arr.forEach(i => _set.add(i));
175
+ }
176
+ else {
177
+ __arr.forEach(i => _set.delete(i));
178
+ }
179
+ }
180
+ const _selectedRows = flattenData.value.filter(i => _set.has(i[props.rowKey])).map(item => omit(item, ['expanded', 'hasChildren', 'visible']));
181
+ if (props.rowSelection.onSelect) {
182
+ props.rowSelection.onSelect(record, selected, _selectedRows, nativeEvent);
183
+ }
184
+ if (props.rowSelection.onChange) {
185
+ props.rowSelection.onChange([..._set], _selectedRows);
186
+ }
187
+ },
188
+ onChange: () => {
189
+ },
190
+ onSelectAll: () => {
191
+ },
192
+ onSelectNone: () => {
193
+ if (props.rowSelection.onSelectNone) {
194
+ props.rowSelection.onSelectNone();
195
+ }
196
+ }
197
+ } : undefined;
198
+ });
199
+ const onSelectedAllChange = (e) => {
200
+ const selected = e.target.checked;
201
+ const arr = flattenData.value.map(i => omit(i, ['expanded', 'hasChildren', 'visible']));
202
+ const _checked = selected;
203
+ const _selectedRowKeys = _checked ? map(arr, props.rowKey) : [];
204
+ if (props.rowSelection.onSelectAll) {
205
+ props.rowSelection.onSelectAll(_checked, _checked ? arr : []);
206
+ }
207
+ if (props.rowSelection.onChange) {
208
+ props.rowSelection.onChange(_selectedRowKeys, _checked ? arr : []);
209
+ }
210
+ };
211
+ const onScroll = (e) => {
212
+ const scrollTop = e.target.scrollTop;
213
+ const vh = viewportHeight.value || 500;
214
+ // 二分查找
215
+ let low = 0, high = prefixSum.value.length - 1;
216
+ while (low < high) {
217
+ let mid = Math.floor((low + high) / 2);
218
+ if (prefixSum.value[mid] <= scrollTop)
219
+ low = mid + 1;
220
+ else
221
+ high = mid;
222
+ }
223
+ start.value = Math.max(0, low - 1);
224
+ // 计算 end
225
+ let y = prefixSum.value[start.value] || 0;
226
+ let i = start.value;
227
+ while (i < visibleNodes.value.length && y < scrollTop + vh) {
228
+ y += rowHeights.value[i] || 40;
229
+ i++;
230
+ }
231
+ end.value = Math.min(i + buffer, visibleNodes.value.length);
232
+ offsetY.value = prefixSum.value[start.value - 1] || 0;
233
+ };
234
+ const toggleExpand = (row) => {
235
+ row.expanded = !row.expanded;
236
+ const stack = [...flattenData.value.filter(n => n.parentId === row[props.rowKey])];
237
+ while (stack.length) {
238
+ const child = stack.pop();
239
+ child.visible = row.expanded;
240
+ if (!child.visible) {
241
+ child.expanded = false;
242
+ }
243
+ if (!row.expanded && child.hasChildren) {
244
+ stack.push(...flattenData.value.filter(n => n.parentId === child[props.rowKey]));
245
+ }
246
+ }
247
+ updateVisibleNodes();
248
+ };
249
+ const updatePrefixSum = () => {
250
+ rowHeights.value = visibleNodes.value.map(() => 40); // 默认行高
251
+ prefixSum.value = [];
252
+ let sum = 0;
253
+ for (let h of rowHeights.value) {
254
+ sum += h;
255
+ prefixSum.value.push(sum);
256
+ }
257
+ };
258
+ const updateVisibleNodes = () => {
259
+ visibleNodes.value = flattenData.value.filter(i => i.visible);
260
+ updatePrefixSum();
261
+ nextTick(() => onScroll({ target: container.value }));
262
+ };
263
+ watch(() => [JSON.stringify(props.dataSource), JSON.stringify(props.expandedRowKeys)], () => {
264
+ flattenData.value = flattenTree(props.dataSource, 0, null);
265
+ flattenData.value.forEach(i => {
266
+ if (props.expandedRowKeys.includes(i[props.rowKey])) {
267
+ toggleExpand(i);
268
+ // i.expanded = true
269
+ }
270
+ });
271
+ updateVisibleNodes();
272
+ }, {
273
+ immediate: true
274
+ });
275
+ // watch(() => props.expandedRowKeys, () => {
276
+ // flattenData.value.forEach(i => {
277
+ // if (props.expandedRowKeys.includes(i[props.rowKey])) {
278
+ // toggleExpand(i)
279
+ // // i.expanded = true
280
+ // }
281
+ // })
282
+ // updateVisibleNodes()
283
+ // }, {
284
+ // immediate: true
285
+ // })
286
+ watch(() => _optionalChain([props, 'access', _5 => _5.rowSelection, 'optionalAccess', _6 => _6.selectedRowKeys]), (val) => {
287
+ if (val) {
288
+ selectedAll.value = val.length > 0 && flattenData.value.length === val.length;
289
+ }
290
+ }, {
291
+ immediate: true
292
+ });
293
+ onMounted(() => {
294
+ updateVisibleNodes();
295
+ });
296
+ return (_ctx, _cache) => {
297
+ return (_openBlock(), _createElementBlock("div", {
298
+ class: _normalizeClass(['virtual-table-wrapper', _unref(hashId)])
299
+ }, [
300
+ _createElementVNode("div", _hoisted_1, [
301
+ _createVNode(_unref(Table), {
302
+ columns: _columns.value,
303
+ pagination: false,
304
+ rowKey: __props.rowKey,
305
+ "data-source": [],
306
+ components: {
307
+ body: {
308
+ wrapper: () => h('div')
309
+ },
310
+ }
311
+ }, {
312
+ headerCell: _withCtx(({ column, title }) => [
313
+ (column.key === '__selection__')
314
+ ? (_openBlock(), _createElementBlock("span", _hoisted_2, [
315
+ (__props.rowSelection.type !== 'radio' && !__props.rowSelection.hideSelectAll)
316
+ ? (_openBlock(), _createBlock(_unref(Checkbox), {
317
+ key: 0,
318
+ checked: selectedAll.value,
319
+ "onUpdate:checked": _cache[0] || (_cache[0] = $event => ((selectedAll).value = $event)),
320
+ onChange: onSelectedAllChange,
321
+ indeterminate: _indeterminate.value,
322
+ disabled: visibleRows.value.length === 0
323
+ }, null, 8 /* PROPS */, ["checked", "indeterminate", "disabled"]))
324
+ : _createCommentVNode("v-if", true),
325
+ _createElementVNode("span", null, _toDisplayString(_optionalChain([__props, 'access', _7 => _7.rowSelection, 'optionalAccess', _8 => _8.columnTitle])), 1 /* TEXT */)
326
+ ]))
327
+ : _renderSlot(_ctx.$slots, "headerCell", {
328
+ key: 1,
329
+ title: title,
330
+ column: column
331
+ }, () => [
332
+ _createTextVNode(_toDisplayString(title), 1 /* TEXT */)
333
+ ])
334
+ ]),
335
+ _: 3 /* FORWARDED */
336
+ }, 8 /* PROPS */, ["columns", "rowKey", "components"])
337
+ ]),
338
+ _createElementVNode("div", {
339
+ class: "virtual-table-body",
340
+ ref_key: "container",
341
+ ref: container,
342
+ onScroll: onScroll,
343
+ style: _normalizeStyle({ height: `${viewportHeight.value}px` })
344
+ }, [
345
+ _createElementVNode("div", {
346
+ class: "virtual-table-height",
347
+ style: _normalizeStyle({ height: totalHeight.value + 'px' })
348
+ }, null, 4 /* STYLE */),
349
+ _createElementVNode("div", {
350
+ class: "virtual-table-visible-box",
351
+ style: _normalizeStyle({ transform: `translateY(${offsetY.value}px)`, position: 'absolute', top: 0, left: 0, right: 0 })
352
+ }, [
353
+ _createVNode(_unref(Table), {
354
+ columns: __props.columns,
355
+ rowKey: __props.rowKey,
356
+ "data-source": visibleRows.value,
357
+ showHeader: false,
358
+ pagination: false,
359
+ rowSelection: _rowSelection.value
360
+ }, {
361
+ bodyCell: _withCtx(({ text, record, index, column }) => [
362
+ (column.dataIndex === firstColumn.value.dataIndex || column.key === firstColumn.value.key)
363
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
364
+ _createElementVNode("span", {
365
+ class: "ant-table-row-indent indent-level-3",
366
+ style: _normalizeStyle({ paddingLeft: `${record.level * 15}px` })
367
+ }, null, 4 /* STYLE */),
368
+ _createElementVNode("span", {
369
+ class: "virtual-table-row-expand-icon",
370
+ onClick: $event => (toggleExpand(record))
371
+ }, [
372
+ (record.hasChildren)
373
+ ? (_openBlock(), _createBlock(_unref(AIcon), {
374
+ key: 0,
375
+ type: !record.expanded ? 'PlusSquareOutlined' : 'MinusSquareOutlined'
376
+ }, null, 8 /* PROPS */, ["type"]))
377
+ : _createCommentVNode("v-if", true)
378
+ ], 8 /* PROPS */, _hoisted_3)
379
+ ], 64 /* STABLE_FRAGMENT */))
380
+ : _createCommentVNode("v-if", true),
381
+ _renderSlot(_ctx.$slots, "bodyCell", {
382
+ text: text,
383
+ record: record,
384
+ index: index,
385
+ column: column
386
+ }, () => [
387
+ _createTextVNode(_toDisplayString(text || '--'), 1 /* TEXT */)
388
+ ])
389
+ ]),
390
+ _: 3 /* FORWARDED */
391
+ }, 8 /* PROPS */, ["columns", "rowKey", "data-source", "rowSelection"])
392
+ ], 4 /* STYLE */)
393
+ ], 36 /* STYLE, NEED_HYDRATION */)
394
+ ], 2 /* CLASS */));
395
+ };
396
+ }
397
+ });
398
+ export default __sfc_main__;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.flattenTree = exports.findAllChildren = void 0;
8
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
10
+ var _lodashEs = require("lodash");
11
+ // 扁平化数据
12
+
13
+ var _flattenTree = exports.flattenTree = function flattenTree(tree) {
14
+ var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
15
+ var parentId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
16
+ return tree.flatMap(function (item) {
17
+ var _item$children;
18
+ var flatNode = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodashEs.omit)(item, 'children')), {}, {
19
+ level: level,
20
+ parentId: parentId,
21
+ expanded: false,
22
+ hasChildren: ((_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) > 0,
23
+ visible: level === 0
24
+ });
25
+ var children = item.children ? _flattenTree(item.children, level + 1, item.id) : [];
26
+ return [flatNode].concat((0, _toConsumableArray2.default)(children));
27
+ });
28
+ };
29
+ var findAllChildren = exports.findAllChildren = function findAllChildren() {
30
+ var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
31
+ var parentId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
32
+ var result = [];
33
+ function recursive(pid) {
34
+ data.forEach(function (item) {
35
+ if (item.parentId === pid) {
36
+ result.push(item);
37
+ recursive(item.id); // 递归查找这个子节点的孩子
38
+ }
39
+ });
40
+ }
41
+ recursive(parentId);
42
+ return result;
43
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _VirtualTable = _interopRequireDefault(require("./VirtualTable.js"));
9
+ _VirtualTable.default.install = function (app) {
10
+ app.component(_VirtualTable.default.name, _VirtualTable.default);
11
+ };
12
+ var _default = exports.default = _VirtualTable.default;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _styleRegister = _interopRequireDefault(require("../../style/styleRegister"));
9
+ var genVirtualTableStyle = function genVirtualTableStyle() {
10
+ return {
11
+ '.virtual-table-wrapper': {
12
+ display: 'flex',
13
+ 'flex-direction': 'column',
14
+ '.virtual-table-header': {
15
+ '.ant-table': {
16
+ '.ant-table-container': {
17
+ '.ant-table-content': {
18
+ '.ant-table-tbody': {
19
+ display: 'none'
20
+ }
21
+ }
22
+ }
23
+ }
24
+ },
25
+ '.virtual-table-body': {
26
+ 'overflow-y': 'auto',
27
+ position: 'relative',
28
+ 'min-height': '100px'
29
+ },
30
+ '.virtual-table-row-expand-icon': {
31
+ 'margin-right': '8px',
32
+ 'font-size': 'relative',
33
+ width: '16px',
34
+ display: 'inline-block'
35
+ }
36
+ }
37
+ };
38
+ };
39
+ var _default = exports.default = (0, _styleRegister.default)([genVirtualTableStyle]);
package/lib/components.js CHANGED
@@ -53,12 +53,6 @@ Object.defineProperty(exports, "DragModal", {
53
53
  return _DragModal.default;
54
54
  }
55
55
  });
56
- Object.defineProperty(exports, "Echarts", {
57
- enumerable: true,
58
- get: function get() {
59
- return _Echarts.default;
60
- }
61
- });
62
56
  Object.defineProperty(exports, "EditTable", {
63
57
  enumerable: true,
64
58
  get: function get() {
@@ -77,24 +71,12 @@ Object.defineProperty(exports, "Empty", {
77
71
  return _Empty.default;
78
72
  }
79
73
  });
80
- Object.defineProperty(exports, "FlameGraph", {
81
- enumerable: true,
82
- get: function get() {
83
- return _FlameGraph.default;
84
- }
85
- });
86
74
  Object.defineProperty(exports, "FullPage", {
87
75
  enumerable: true,
88
76
  get: function get() {
89
77
  return _FullPage.default;
90
78
  }
91
79
  });
92
- Object.defineProperty(exports, "Map", {
93
- enumerable: true,
94
- get: function get() {
95
- return _AMap.default;
96
- }
97
- });
98
80
  Object.defineProperty(exports, "Markdown", {
99
81
  enumerable: true,
100
82
  get: function get() {
@@ -137,12 +119,6 @@ Object.defineProperty(exports, "Search", {
137
119
  return _Search.default;
138
120
  }
139
121
  });
140
- Object.defineProperty(exports, "Skeleton", {
141
- enumerable: true,
142
- get: function get() {
143
- return _Skeleton.default;
144
- }
145
- });
146
122
  Object.defineProperty(exports, "TimeFormat", {
147
123
  enumerable: true,
148
124
  get: function get() {
@@ -161,12 +137,16 @@ Object.defineProperty(exports, "ValueItem", {
161
137
  return _ValueItem.default;
162
138
  }
163
139
  });
164
- var _AMap = _interopRequireDefault(require("./AMap"));
140
+ Object.defineProperty(exports, "VirtualTable", {
141
+ enumerable: true,
142
+ get: function get() {
143
+ return _VirtualTable.default;
144
+ }
145
+ });
165
146
  var _BadgeStatus = _interopRequireDefault(require("./BadgeStatus"));
166
147
  var _CardSelect = _interopRequireDefault(require("./CardSelect"));
167
148
  var _CheckButton = _interopRequireDefault(require("./CheckButton"));
168
149
  var _ConfigProvider = _interopRequireDefault(require("./ConfigProvider"));
169
- var _Echarts = _interopRequireDefault(require("./Echarts"));
170
150
  var _Ellipsis = _interopRequireDefault(require("./Ellipsis"));
171
151
  var _Empty = _interopRequireDefault(require("./Empty"));
172
152
  var _FullPage = _interopRequireDefault(require("./FullPage"));
@@ -183,7 +163,5 @@ var _EditTable = _interopRequireDefault(require("./EditTable"));
183
163
  var _Markdown = _interopRequireDefault(require("./Markdown"));
184
164
  var _AutoComplete = _interopRequireDefault(require("./AutoComplete"));
185
165
  var _Title = _interopRequireDefault(require("./Title"));
186
- var _FlameGraph = _interopRequireDefault(require("./FlameGraph"));
187
- var _Skeleton = _interopRequireDefault(require("./Skeleton"));
188
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
189
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
166
+ var _VirtualTable = _interopRequireDefault(require("./VirtualTable"));
167
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
package/lib/index.js CHANGED
@@ -20,8 +20,7 @@ Object.keys(components).forEach(function (key) {
20
20
  }
21
21
  });
22
22
  });
23
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
24
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
25
24
  /*eslint import/namespace: ['error', { allowComputed: true }]*/
26
25
 
27
26
  var install = exports.install = function install(app) {
@@ -52,11 +52,16 @@ var _default = exports.default = {
52
52
  },
53
53
  ProTable: {
54
54
  pagination: {
55
- total: 'Articles {0} - {1}/Total of {2}'
55
+ page: 'Articles {0} - {1}/Total of',
56
+ total: '',
57
+ lastPage: 'It is already the last page'
56
58
  },
57
59
  alert: {
58
60
  cancelChoose: 'Cancel selection',
59
61
  selectItem: 'Select {0} items'
62
+ },
63
+ select: {
64
+ all: 'Select all'
60
65
  }
61
66
  },
62
67
  ProLayout: {
@@ -64,9 +69,6 @@ var _default = exports.default = {
64
69
  back: 'Back'
65
70
  }
66
71
  },
67
- AMap: {
68
- description: 'Please configure the Amap key for Gaode'
69
- },
70
72
  EditTable: {
71
73
  serial: 'Serial',
72
74
  columns: {
@@ -120,9 +122,5 @@ var _default = exports.default = {
120
122
  },
121
123
  PermissionButton: {
122
124
  hasPermission: 'No permission, please contact the administrator'
123
- },
124
- FlameGraph: {
125
- placeholder: 'Please input',
126
- revert: 'Revert'
127
125
  }
128
126
  };
@@ -52,11 +52,16 @@ var _default = exports.default = {
52
52
  },
53
53
  ProTable: {
54
54
  pagination: {
55
- total: "\u7B2C {0} - {1} \u6761/\u603B\u5171 {2} \u6761"
55
+ page: "\u7B2C {0} - {1} \u6761/\u603B\u5171",
56
+ total: '条',
57
+ lastPage: '已是最后一页'
56
58
  },
57
59
  alert: {
58
60
  cancelChoose: '取消选择',
59
61
  selectItem: '已选择 {0} 项'
62
+ },
63
+ select: {
64
+ all: '全选'
60
65
  }
61
66
  },
62
67
  ProLayout: {
@@ -64,9 +69,6 @@ var _default = exports.default = {
64
69
  back: '返回'
65
70
  }
66
71
  },
67
- AMap: {
68
- description: '请配置高德地图key'
69
- },
70
72
  EditTable: {
71
73
  serial: '序号',
72
74
  columns: {
@@ -120,9 +122,5 @@ var _default = exports.default = {
120
122
  },
121
123
  PermissionButton: {
122
124
  hasPermission: '暂无权限,请联系管理员'
123
- },
124
- FlameGraph: {
125
- placeholder: '请输入',
126
- revert: '反转'
127
125
  }
128
126
  };
@@ -3,7 +3,6 @@
3
3
  @import "../DragModal/style/index-pure.less";
4
4
  @import "../EditTable/style/index-pure.less";
5
5
  @import "../Ellipsis/style/index-pure.less";
6
- @import "../FlameGraph/style/index-pure.less";
7
6
  @import "../RadioButton/style/index-pure.less";
8
7
  @import "../Scrollbar/style/index-pure.less";
9
8
  @import "../Title/style/index-pure.less";