@jetlinks-web/components 3.0.0-rc → 3.0.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 (286) 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 +3 -4
  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 +13 -37
  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 +108 -28
  47. package/es/ProTable/Header.js +21 -11
  48. package/es/ProTable/Pagination.js +12 -4
  49. package/es/ProTable/ProTable.js +42 -26
  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 +1 -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 +213 -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 +64 -0
  73. package/es/Skeleton/components/DashBoardChart.js +96 -0
  74. package/es/Skeleton/components/Detail.js +110 -0
  75. package/es/Skeleton/components/Drawer.js +91 -0
  76. package/es/Skeleton/components/Item.js +68 -0
  77. package/es/Skeleton/components/List.js +45 -0
  78. package/es/Skeleton/components/ListCard.js +63 -0
  79. package/es/Skeleton/components/ListCardItem.js +86 -0
  80. package/es/Skeleton/components/ListTable.js +76 -0
  81. package/es/Skeleton/components/Page.js +62 -0
  82. package/es/Skeleton/components/Search.js +54 -0
  83. package/es/Skeleton/components/Tree.js +72 -0
  84. package/es/Skeleton/index.js +15 -0
  85. package/es/Skeleton/skeleton.js +58 -0
  86. package/es/Skeleton/style/index.js +132 -0
  87. package/es/Title/style/index.js +29 -1
  88. package/es/Title/title.js +13 -5
  89. package/es/ValueItem/ValueItem.js +44 -39
  90. package/es/components.js +1 -4
  91. package/es/locale/en-US.js +3 -7
  92. package/es/locale/zh-CN.js +3 -7
  93. package/es/style/index.js +0 -3
  94. package/es/style/styleRegister.js +21 -0
  95. package/es/style/variable.js +4 -0
  96. package/es/style.js +0 -12
  97. package/lib/AutoComplete/AutoComplete.js +13 -9
  98. package/lib/BadgeStatus/Badge.js +1 -2
  99. package/lib/BadgeStatus/color.js +3 -3
  100. package/lib/CardSelect/CardSelect.js +23 -13
  101. package/lib/CardSelect/style/index.js +30 -1
  102. package/lib/CheckButton/CheckButton.js +12 -4
  103. package/lib/CheckButton/style/index.js +46 -1
  104. package/lib/DragModal/DragModal.js +14 -8
  105. package/lib/DragModal/style/index.js +69 -1
  106. package/lib/EditTable/Body.js +10 -3
  107. package/lib/EditTable/EditTable.js +13 -7
  108. package/lib/EditTable/FormItem.js +18 -19
  109. package/lib/EditTable/Header.js +16 -6
  110. package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
  111. package/lib/EditTable/components/Search/search.js +1 -2
  112. package/lib/EditTable/components/Search/sort.js +1 -3
  113. package/lib/EditTable/group.js +23 -18
  114. package/lib/EditTable/hooks/useValidate.js +1 -1
  115. package/lib/EditTable/style/body.js +60 -0
  116. package/lib/EditTable/style/form.js +31 -0
  117. package/lib/EditTable/style/group.js +32 -0
  118. package/lib/EditTable/style/header.js +65 -0
  119. package/lib/EditTable/style/index.js +47 -1
  120. package/lib/EditTable/style/menu.js +33 -0
  121. package/lib/EditTable/style/table.js +52 -0
  122. package/lib/EditTable/utils.js +31 -3
  123. package/lib/Ellipsis/Ellipsis.js +10 -2
  124. package/lib/Ellipsis/style/index.js +29 -1
  125. package/lib/FullPage/FullPage.js +1 -2
  126. package/lib/LocaleProvider/index.js +1 -2
  127. package/lib/PermissionButton/index.js +3 -4
  128. package/lib/ProLayout/Basic/BasicLayout.js +44 -40
  129. package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
  130. package/lib/ProLayout/Basic/Header.js +2 -6
  131. package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
  132. package/lib/ProLayout/PageContainer/index.js +19 -15
  133. package/lib/ProLayout/PageContainer/style.js +53 -0
  134. package/lib/ProLayout/SiderMenu/BaseMenu.js +14 -37
  135. package/lib/ProLayout/SiderMenu/SiderMenu.js +23 -35
  136. package/lib/ProLayout/SiderMenu/style.js +173 -0
  137. package/lib/ProLayout/TopHeader/index.js +14 -12
  138. package/lib/ProLayout/TopHeader/style.js +133 -0
  139. package/lib/ProLayout/style/index.js +12 -1
  140. package/lib/ProLayout/util.js +5 -5
  141. package/lib/ProTable/Alert.js +12 -4
  142. package/lib/ProTable/Content.js +108 -28
  143. package/lib/ProTable/Header.js +21 -11
  144. package/lib/ProTable/Pagination.js +12 -4
  145. package/lib/ProTable/ProTable.js +42 -26
  146. package/lib/ProTable/hooks/index.js +27 -0
  147. package/lib/ProTable/hooks/useTableInject.js +11 -0
  148. package/lib/ProTable/hooks/useTableSelection.js +102 -0
  149. package/lib/ProTable/setting.js +1 -1
  150. package/lib/ProTable/style/index.js +114 -1
  151. package/lib/RadioButton/RadioButton.js +10 -4
  152. package/lib/RadioButton/style/index.js +28 -1
  153. package/lib/Scrollbar/Scrollbar.js +10 -3
  154. package/lib/Scrollbar/Thumb.js +36 -25
  155. package/lib/Scrollbar/style/index.js +68 -1
  156. package/lib/Search/Advanced/History.js +23 -16
  157. package/lib/Search/Advanced/SaveHistory.js +1 -2
  158. package/lib/Search/Advanced/index.js +213 -292
  159. package/lib/Search/Item.js +175 -415
  160. package/lib/Search/Search.js +78 -172
  161. package/lib/Search/hooks/index.js +130 -1
  162. package/lib/Search/hooks/useRouteQuery.js +64 -0
  163. package/lib/Search/setting.js +133 -15
  164. package/lib/Search/style/index.js +9 -2
  165. package/lib/Search/style/item.js +35 -0
  166. package/lib/Search/style/search.js +140 -0
  167. package/lib/Search/util.js +116 -124
  168. package/lib/Skeleton/components/DashBoardCard.js +64 -0
  169. package/lib/Skeleton/components/DashBoardChart.js +96 -0
  170. package/lib/Skeleton/components/Detail.js +110 -0
  171. package/lib/Skeleton/components/Drawer.js +91 -0
  172. package/lib/Skeleton/components/Item.js +68 -0
  173. package/lib/Skeleton/components/List.js +45 -0
  174. package/lib/Skeleton/components/ListCard.js +63 -0
  175. package/lib/Skeleton/components/ListCardItem.js +86 -0
  176. package/lib/Skeleton/components/ListTable.js +76 -0
  177. package/lib/Skeleton/components/Page.js +62 -0
  178. package/lib/Skeleton/components/Search.js +54 -0
  179. package/lib/Skeleton/components/Tree.js +72 -0
  180. package/lib/Skeleton/index.js +75 -0
  181. package/lib/Skeleton/skeleton.js +58 -0
  182. package/lib/Skeleton/style/index.js +139 -0
  183. package/lib/Title/style/index.js +34 -1
  184. package/lib/Title/title.js +13 -5
  185. package/lib/ValueItem/ValueItem.js +44 -39
  186. package/lib/components.js +0 -21
  187. package/lib/locale/en-US.js +3 -7
  188. package/lib/locale/zh-CN.js +3 -7
  189. package/lib/style/components.less +0 -1
  190. package/lib/style/index.js +1 -4
  191. package/lib/style/styleRegister.js +28 -0
  192. package/lib/style/variable.js +10 -0
  193. package/lib/style.js +1 -14
  194. package/package.json +10 -13
  195. package/es/AMap/Map.js +0 -133
  196. package/es/AMap/index.js +0 -5
  197. package/es/AMap/util.js +0 -56
  198. package/es/CardSelect/style/index.css +0 -24
  199. package/es/CardSelect/style/index.less +0 -26
  200. package/es/CheckButton/style/index.css +0 -37
  201. package/es/CheckButton/style/index.less +0 -40
  202. package/es/DragModal/style/index.css +0 -82
  203. package/es/DragModal/style/index.less +0 -97
  204. package/es/Echarts/Echarts.js +0 -48
  205. package/es/Echarts/index.js +0 -5
  206. package/es/EditTable/style/body.less +0 -66
  207. package/es/EditTable/style/form.less +0 -33
  208. package/es/EditTable/style/group.less +0 -32
  209. package/es/EditTable/style/header.less +0 -77
  210. package/es/EditTable/style/index.css +0 -267
  211. package/es/EditTable/style/index.less +0 -41
  212. package/es/EditTable/style/menu.less +0 -25
  213. package/es/EditTable/style/table.less +0 -47
  214. package/es/Ellipsis/style/index.css +0 -17
  215. package/es/Ellipsis/style/index.less +0 -20
  216. package/es/FlameGraph/FlameGraph.js +0 -136
  217. package/es/FlameGraph/index.js +0 -5
  218. package/es/FlameGraph/style/index.css +0 -43
  219. package/es/FlameGraph/style/index.js +0 -1
  220. package/es/FlameGraph/style/index.less +0 -52
  221. package/es/ProLayout/Basic/BasicLayout.less +0 -66
  222. package/es/ProLayout/Basic/Header.less +0 -8
  223. package/es/ProLayout/PageContainer/index.less +0 -103
  224. package/es/ProLayout/SiderMenu/index.less +0 -231
  225. package/es/ProLayout/TopHeader/index.less +0 -174
  226. package/es/ProLayout/style/default.less +0 -4
  227. package/es/ProLayout/style/style.less +0 -7
  228. package/es/ProTable/style/ProTable.less +0 -139
  229. package/es/RadioButton/style/index.css +0 -20
  230. package/es/RadioButton/style/index.less +0 -19
  231. package/es/Scrollbar/style/index.css +0 -65
  232. package/es/Scrollbar/style/index.less +0 -83
  233. package/es/Search/style/Item.less +0 -33
  234. package/es/Search/style/Search.less +0 -179
  235. package/es/Title/style/index.css +0 -23
  236. package/es/Title/style/index.less +0 -25
  237. package/es/style/index.css +0 -5234
  238. package/es/style/index.less +0 -13
  239. package/es/style/variable.css +0 -4
  240. package/es/style/variable.less +0 -4
  241. package/lib/AMap/Map.js +0 -133
  242. package/lib/AMap/index.js +0 -12
  243. package/lib/AMap/util.js +0 -62
  244. package/lib/CardSelect/style/index.css +0 -24
  245. package/lib/CardSelect/style/index.less +0 -26
  246. package/lib/CheckButton/style/index.css +0 -37
  247. package/lib/CheckButton/style/index.less +0 -40
  248. package/lib/DragModal/style/index.css +0 -82
  249. package/lib/DragModal/style/index.less +0 -97
  250. package/lib/Echarts/Echarts.js +0 -48
  251. package/lib/Echarts/index.js +0 -12
  252. package/lib/EditTable/style/body.less +0 -66
  253. package/lib/EditTable/style/form.less +0 -33
  254. package/lib/EditTable/style/group.less +0 -32
  255. package/lib/EditTable/style/header.less +0 -77
  256. package/lib/EditTable/style/index.css +0 -267
  257. package/lib/EditTable/style/index.less +0 -41
  258. package/lib/EditTable/style/menu.less +0 -25
  259. package/lib/EditTable/style/table.less +0 -47
  260. package/lib/Ellipsis/style/index.css +0 -17
  261. package/lib/Ellipsis/style/index.less +0 -20
  262. package/lib/FlameGraph/FlameGraph.js +0 -136
  263. package/lib/FlameGraph/index.js +0 -12
  264. package/lib/FlameGraph/style/index.css +0 -43
  265. package/lib/FlameGraph/style/index.js +0 -3
  266. package/lib/FlameGraph/style/index.less +0 -52
  267. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  268. package/lib/ProLayout/Basic/Header.less +0 -8
  269. package/lib/ProLayout/PageContainer/index.less +0 -103
  270. package/lib/ProLayout/SiderMenu/index.less +0 -231
  271. package/lib/ProLayout/TopHeader/index.less +0 -174
  272. package/lib/ProLayout/style/default.less +0 -4
  273. package/lib/ProLayout/style/style.less +0 -7
  274. package/lib/ProTable/style/ProTable.less +0 -139
  275. package/lib/RadioButton/style/index.css +0 -20
  276. package/lib/RadioButton/style/index.less +0 -19
  277. package/lib/Scrollbar/style/index.css +0 -65
  278. package/lib/Scrollbar/style/index.less +0 -83
  279. package/lib/Search/style/Item.less +0 -33
  280. package/lib/Search/style/Search.less +0 -179
  281. package/lib/Title/style/index.css +0 -23
  282. package/lib/Title/style/index.less +0 -25
  283. package/lib/style/index.css +0 -5234
  284. package/lib/style/index.less +0 -13
  285. package/lib/style/variable.css +0 -4
  286. package/lib/style/variable.less +0 -4
@@ -0,0 +1,110 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "loading": "props",
4
+ "Item": "setup-const",
5
+ "computed": "setup-const",
6
+ "useSkeletonStyle": "setup-maybe-ref",
7
+ "props": "setup-reactive-const",
8
+ "prefixCls": "setup-ref",
9
+ "wrapSSR": "setup-maybe-ref",
10
+ "hashId": "setup-maybe-ref"
11
+ } */
12
+ import { renderSlot as _renderSlot, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass } from "vue";
13
+ const _hoisted_1 = { class: "j-skeleton-flex" };
14
+ const _hoisted_2 = { class: "j-skeleton-flex" };
15
+ const _hoisted_3 = { class: "j-skeleton-tabs" };
16
+ const _hoisted_4 = { class: "j-skeleton-desc-content" };
17
+ import Item from "./Item.js";
18
+ import { computed } from "vue";
19
+ import useSkeletonStyle from '../style';
20
+ const __sfc_main__ = Object.assign({
21
+ name: 'JSkeletonDetail'
22
+ }, {
23
+ props: {
24
+ active: {
25
+ type: Boolean,
26
+ default: true,
27
+ },
28
+ loading: {
29
+ type: Boolean,
30
+ default: true,
31
+ }
32
+ },
33
+ setup(__props) {
34
+ const props = __props;
35
+ const prefixCls = computed(() => 'j-skeleton');
36
+ const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
37
+ return (_ctx, _cache) => {
38
+ return (!__props.loading)
39
+ ? _renderSlot(_ctx.$slots, "default", { key: 0 })
40
+ : (_openBlock(), _createElementBlock("div", {
41
+ key: 1,
42
+ class: _normalizeClass(['j-skeleton', _unref(hashId)])
43
+ }, [
44
+ _createElementVNode("div", _hoisted_1, [
45
+ _createVNode(Item, {
46
+ active: __props.active,
47
+ width: "40%"
48
+ }, null, 8 /* PROPS */, ["active"])
49
+ ]),
50
+ _createElementVNode("div", _hoisted_2, [
51
+ _createVNode(Item, {
52
+ active: __props.active,
53
+ size: "small",
54
+ width: "15%"
55
+ }, null, 8 /* PROPS */, ["active"]),
56
+ _createVNode(Item, {
57
+ active: __props.active,
58
+ size: "small",
59
+ width: "15%"
60
+ }, null, 8 /* PROPS */, ["active"])
61
+ ]),
62
+ _createElementVNode("div", _hoisted_3, [
63
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(5, (item) => {
64
+ return _createElementVNode("div", {
65
+ key: item,
66
+ class: "j-skeleton-flex"
67
+ }, [
68
+ _createVNode(Item, {
69
+ active: __props.active,
70
+ size: "small",
71
+ width: "80px"
72
+ }, null, 8 /* PROPS */, ["active"])
73
+ ]);
74
+ }), 64 /* STABLE_FRAGMENT */))
75
+ ]),
76
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(2, (item) => {
77
+ return _createElementVNode("div", {
78
+ class: "j-skeleton-desc",
79
+ key: item
80
+ }, [
81
+ _cache[0] || (_cache[0] = _createElementVNode("div", {
82
+ class: "j-skeleton-item j-skeleton-item-large",
83
+ style: { "width": "300px" }
84
+ }, null, -1 /* HOISTED */)),
85
+ _createElementVNode("div", _hoisted_4, [
86
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (i) => {
87
+ return _createElementVNode("div", {
88
+ class: "j-skeleton-desc-item",
89
+ key: i
90
+ }, [
91
+ _createVNode(Item, {
92
+ active: __props.active,
93
+ size: "small",
94
+ width: "40%"
95
+ }, null, 8 /* PROPS */, ["active"]),
96
+ _createVNode(Item, {
97
+ active: __props.active,
98
+ size: "small",
99
+ width: "60%"
100
+ }, null, 8 /* PROPS */, ["active"])
101
+ ]);
102
+ }), 64 /* STABLE_FRAGMENT */))
103
+ ])
104
+ ]);
105
+ }), 64 /* STABLE_FRAGMENT */))
106
+ ], 2 /* CLASS */));
107
+ };
108
+ }
109
+ });
110
+ export default __sfc_main__;
@@ -0,0 +1,91 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "loading": "props",
4
+ "Item": "setup-const",
5
+ "computed": "setup-const",
6
+ "useSkeletonStyle": "setup-maybe-ref",
7
+ "props": "setup-reactive-const",
8
+ "prefixCls": "setup-ref",
9
+ "wrapSSR": "setup-maybe-ref",
10
+ "hashId": "setup-maybe-ref"
11
+ } */
12
+ import { renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass } from "vue";
13
+ const _hoisted_1 = { class: "j-skeleton-box" };
14
+ const _hoisted_2 = { class: "j-skeleton-desc" };
15
+ const _hoisted_3 = { style: { "margin-top": "16px" } };
16
+ const _hoisted_4 = {
17
+ class: "j-skeleton-desc-content",
18
+ style: { "grid-template-columns": "repeat(2, 1fr)" }
19
+ };
20
+ import Item from "./Item.js";
21
+ import { computed } from "vue";
22
+ import useSkeletonStyle from '../style';
23
+ const __sfc_main__ = Object.assign({
24
+ name: 'JSkeletonDrawer'
25
+ }, {
26
+ props: {
27
+ active: {
28
+ type: Boolean,
29
+ default: true,
30
+ },
31
+ loading: {
32
+ type: Boolean,
33
+ default: true,
34
+ }
35
+ },
36
+ setup(__props) {
37
+ const props = __props;
38
+ const prefixCls = computed(() => 'j-skeleton');
39
+ const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
40
+ return (_ctx, _cache) => {
41
+ return (_openBlock(), _createElementBlock(_Fragment, null, [
42
+ (!__props.loading)
43
+ ? _renderSlot(_ctx.$slots, "default", { key: 0 })
44
+ : _createCommentVNode("v-if", true),
45
+ _createElementVNode("div", {
46
+ class: _normalizeClass(['j-skeleton', _unref(hashId)])
47
+ }, [
48
+ _createVNode(Item, {
49
+ active: __props.active,
50
+ width: "70%"
51
+ }, null, 8 /* PROPS */, ["active"]),
52
+ _createElementVNode("div", _hoisted_1, [
53
+ _createVNode(Item, {
54
+ active: __props.active,
55
+ size: "small",
56
+ width: "35%"
57
+ }, null, 8 /* PROPS */, ["active"])
58
+ ]),
59
+ _createElementVNode("div", _hoisted_2, [
60
+ _createElementVNode("div", _hoisted_3, [
61
+ _createVNode(Item, {
62
+ active: __props.active,
63
+ width: "300px"
64
+ }, null, 8 /* PROPS */, ["active"])
65
+ ]),
66
+ _createElementVNode("div", _hoisted_4, [
67
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (i) => {
68
+ return _createElementVNode("div", {
69
+ class: "j-skeleton-desc-item",
70
+ key: i
71
+ }, [
72
+ _createVNode(Item, {
73
+ active: __props.active,
74
+ size: "small",
75
+ width: "40%"
76
+ }, null, 8 /* PROPS */, ["active"]),
77
+ _createVNode(Item, {
78
+ active: __props.active,
79
+ size: "small",
80
+ width: "60%"
81
+ }, null, 8 /* PROPS */, ["active"])
82
+ ]);
83
+ }), 64 /* STABLE_FRAGMENT */))
84
+ ])
85
+ ])
86
+ ], 2 /* CLASS */)
87
+ ], 64 /* STABLE_FRAGMENT */));
88
+ };
89
+ }
90
+ });
91
+ export default __sfc_main__;
@@ -0,0 +1,68 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "size": "props",
4
+ "width": "props",
5
+ "computed": "setup-const",
6
+ "useSkeletonStyle": "setup-maybe-ref",
7
+ "props": "setup-reactive-const",
8
+ "_className": "setup-ref",
9
+ "sizeStyle": "setup-ref",
10
+ "prefixCls": "setup-ref",
11
+ "wrapSSR": "setup-maybe-ref",
12
+ "hashId": "setup-maybe-ref"
13
+ } */
14
+ import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
15
+ import { computed } from 'vue';
16
+ import useSkeletonStyle from '../style';
17
+ const __sfc_main__ = {
18
+ props: {
19
+ active: {
20
+ type: Boolean,
21
+ default: true,
22
+ },
23
+ size: {
24
+ type: [String, Number],
25
+ default: 'default',
26
+ },
27
+ width: {
28
+ type: [String, Number],
29
+ default: '100%',
30
+ }
31
+ },
32
+ setup(__props) {
33
+ const props = __props;
34
+ const _className = computed(() => {
35
+ const { active, size } = props;
36
+ return {
37
+ 'j-skeleton-item': true,
38
+ 'j-skeleton-item-active': active,
39
+ 'j-skeleton-item-lg': size === 'large',
40
+ 'j-skeleton-item-sm': size === 'small',
41
+ [hashId.value]: true
42
+ };
43
+ });
44
+ const sizeStyle = computed(() => {
45
+ const { size, width } = props;
46
+ if (typeof size === 'number') {
47
+ return {
48
+ height: `${size}px`,
49
+ width: `${width}px`,
50
+ };
51
+ }
52
+ else {
53
+ return {
54
+ width: typeof size === 'number' ? `${width}px` : width,
55
+ };
56
+ }
57
+ });
58
+ const prefixCls = computed(() => 'j-skeleton');
59
+ const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
60
+ return (_ctx, _cache) => {
61
+ return (_openBlock(), _createElementBlock("div", {
62
+ class: _normalizeClass(_className.value),
63
+ style: _normalizeStyle(sizeStyle.value)
64
+ }, null, 6 /* CLASS, STYLE */));
65
+ };
66
+ }
67
+ };
68
+ export default __sfc_main__;
@@ -0,0 +1,45 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "loading": "props",
4
+ "mode": "props",
5
+ "ListCard": "setup-const",
6
+ "ListTable": "setup-const",
7
+ "Search": "setup-const",
8
+ "props": "setup-reactive-const"
9
+ } */
10
+ import { renderSlot as _renderSlot, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
11
+ import ListCard from "./ListCard.js";
12
+ import ListTable from "./ListTable.js";
13
+ import Search from "./Search.js";
14
+ const __sfc_main__ = Object.assign({
15
+ name: 'JSkeletonList'
16
+ }, {
17
+ props: {
18
+ active: {
19
+ type: Boolean,
20
+ default: true,
21
+ },
22
+ loading: {
23
+ type: Boolean,
24
+ default: true,
25
+ },
26
+ mode: {
27
+ type: [String, undefined],
28
+ default: 'TABLE',
29
+ },
30
+ },
31
+ setup(__props) {
32
+ const props = __props;
33
+ return (_ctx, _cache) => {
34
+ return (!__props.loading)
35
+ ? _renderSlot(_ctx.$slots, "default", { key: 0 })
36
+ : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
37
+ _createVNode(Search, { active: "" }),
38
+ (__props.mode !== 'TABLE')
39
+ ? (_openBlock(), _createBlock(ListCard, { key: 0 }))
40
+ : (_openBlock(), _createBlock(ListTable, { key: 1 }))
41
+ ], 64 /* STABLE_FRAGMENT */));
42
+ };
43
+ }
44
+ });
45
+ export default __sfc_main__;
@@ -0,0 +1,63 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "loading": "props",
4
+ "Item": "setup-const",
5
+ "ListCardItem": "setup-const",
6
+ "computed": "setup-const",
7
+ "useSkeletonStyle": "setup-maybe-ref",
8
+ "props": "setup-reactive-const",
9
+ "prefixCls": "setup-ref",
10
+ "wrapSSR": "setup-maybe-ref",
11
+ "hashId": "setup-maybe-ref"
12
+ } */
13
+ import { renderSlot as _renderSlot, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass } from "vue";
14
+ const _hoisted_1 = { class: "j-skeleton-flex" };
15
+ const _hoisted_2 = { class: "j-skeleton-cards" };
16
+ import Item from "./Item.js";
17
+ import ListCardItem from "./ListCardItem.js";
18
+ import { computed } from "vue";
19
+ import useSkeletonStyle from '../style';
20
+ const __sfc_main__ = Object.assign({
21
+ name: 'JSkeletonListCard'
22
+ }, {
23
+ props: {
24
+ active: {
25
+ type: Boolean,
26
+ default: true,
27
+ },
28
+ loading: {
29
+ type: Boolean,
30
+ default: true,
31
+ }
32
+ },
33
+ setup(__props) {
34
+ const props = __props;
35
+ const prefixCls = computed(() => 'j-skeleton');
36
+ const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
37
+ return (_ctx, _cache) => {
38
+ return (!__props.loading)
39
+ ? _renderSlot(_ctx.$slots, "default", { key: 0 })
40
+ : (_openBlock(), _createElementBlock("div", {
41
+ key: 1,
42
+ class: _normalizeClass(['j-skeleton', _unref(hashId)])
43
+ }, [
44
+ _createElementVNode("div", _hoisted_1, [
45
+ _createVNode(Item, {
46
+ active: __props.active,
47
+ width: "100px"
48
+ }, null, 8 /* PROPS */, ["active"]),
49
+ _createVNode(Item, {
50
+ active: __props.active,
51
+ width: "100px"
52
+ }, null, 8 /* PROPS */, ["active"])
53
+ ]),
54
+ _createElementVNode("div", _hoisted_2, [
55
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(9, (item) => {
56
+ return _createVNode(ListCardItem, { key: item });
57
+ }), 64 /* STABLE_FRAGMENT */))
58
+ ])
59
+ ], 2 /* CLASS */));
60
+ };
61
+ }
62
+ });
63
+ export default __sfc_main__;
@@ -0,0 +1,86 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "loading": "props",
4
+ "Item": "setup-const",
5
+ "props": "setup-reactive-const"
6
+ } */
7
+ import { createElementVNode as _createElementVNode, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
8
+ const _hoisted_1 = { class: "j-skeleton-card" };
9
+ const _hoisted_2 = { class: "j-skeleton-card-content" };
10
+ const _hoisted_3 = { class: "j-skeleton-right" };
11
+ const _hoisted_4 = { style: { "margin-bottom": "16px" } };
12
+ const _hoisted_5 = { class: "j-skeleton-right-content" };
13
+ const _hoisted_6 = { class: "j-skeleton-right-content-item" };
14
+ const _hoisted_7 = { class: "j-skeleton-right-content-item" };
15
+ const _hoisted_8 = { class: "j-skeleton-action" };
16
+ import Item from "./Item.js";
17
+ const __sfc_main__ = {
18
+ props: {
19
+ active: {
20
+ type: Boolean,
21
+ default: true,
22
+ },
23
+ loading: {
24
+ type: Boolean,
25
+ default: true,
26
+ }
27
+ },
28
+ setup(__props) {
29
+ const props = __props;
30
+ return (_ctx, _cache) => {
31
+ return (_openBlock(), _createElementBlock("div", _hoisted_1, [
32
+ _createElementVNode("div", _hoisted_2, [
33
+ _cache[0] || (_cache[0] = _createElementVNode("div", { class: "j-skeleton-item j-skeleton-image" }, null, -1 /* HOISTED */)),
34
+ _createElementVNode("div", _hoisted_3, [
35
+ _createElementVNode("div", _hoisted_4, [
36
+ _createVNode(Item, {
37
+ active: __props.active,
38
+ size: "small",
39
+ width: "200px"
40
+ }, null, 8 /* PROPS */, ["active"])
41
+ ]),
42
+ _createVNode(Item, {
43
+ active: __props.active,
44
+ width: "50%"
45
+ }, null, 8 /* PROPS */, ["active"]),
46
+ _createElementVNode("div", _hoisted_5, [
47
+ _createElementVNode("div", _hoisted_6, [
48
+ _createVNode(Item, {
49
+ active: __props.active,
50
+ size: "small",
51
+ width: "100%"
52
+ }, null, 8 /* PROPS */, ["active"]),
53
+ _createVNode(Item, {
54
+ active: __props.active,
55
+ size: "small",
56
+ width: "90%"
57
+ }, null, 8 /* PROPS */, ["active"])
58
+ ]),
59
+ _createElementVNode("div", _hoisted_7, [
60
+ _createVNode(Item, {
61
+ active: __props.active,
62
+ size: "small",
63
+ width: "100%"
64
+ }, null, 8 /* PROPS */, ["active"]),
65
+ _createVNode(Item, {
66
+ active: __props.active,
67
+ size: "small",
68
+ width: "90%"
69
+ }, null, 8 /* PROPS */, ["active"])
70
+ ])
71
+ ])
72
+ ])
73
+ ]),
74
+ _createElementVNode("div", _hoisted_8, [
75
+ _createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]),
76
+ _createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]),
77
+ _createVNode(Item, {
78
+ active: __props.active,
79
+ width: "100px"
80
+ }, null, 8 /* PROPS */, ["active"])
81
+ ])
82
+ ]));
83
+ };
84
+ }
85
+ };
86
+ export default __sfc_main__;
@@ -0,0 +1,76 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "loading": "props",
4
+ "Item": "setup-const",
5
+ "computed": "setup-const",
6
+ "useSkeletonStyle": "setup-maybe-ref",
7
+ "props": "setup-reactive-const",
8
+ "prefixCls": "setup-ref",
9
+ "wrapSSR": "setup-maybe-ref",
10
+ "hashId": "setup-maybe-ref"
11
+ } */
12
+ import { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, normalizeClass as _normalizeClass } from "vue";
13
+ const _hoisted_1 = { class: "j-skeleton-flex" };
14
+ const _hoisted_2 = { class: "j-skeleton-table" };
15
+ import Item from "./Item.js";
16
+ import { computed } from "vue";
17
+ import useSkeletonStyle from '../style';
18
+ const __sfc_main__ = Object.assign({
19
+ name: 'JSkeletonListTable'
20
+ }, {
21
+ props: {
22
+ active: {
23
+ type: Boolean,
24
+ default: true,
25
+ },
26
+ loading: {
27
+ type: Boolean,
28
+ default: true,
29
+ }
30
+ },
31
+ setup(__props) {
32
+ const props = __props;
33
+ const prefixCls = computed(() => 'j-skeleton');
34
+ const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
35
+ return (_ctx, _cache) => {
36
+ return (_openBlock(), _createElementBlock("div", {
37
+ class: _normalizeClass(['j-skeleton', _unref(hashId)])
38
+ }, [
39
+ _createElementVNode("div", _hoisted_1, [
40
+ _createVNode(Item, {
41
+ active: __props.active,
42
+ width: "100px"
43
+ }, null, 8 /* PROPS */, ["active"]),
44
+ _createVNode(Item, {
45
+ active: __props.active,
46
+ width: "100px"
47
+ }, null, 8 /* PROPS */, ["active"])
48
+ ]),
49
+ _createElementVNode("div", _hoisted_2, [
50
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (item) => {
51
+ return _createElementVNode("div", {
52
+ key: item,
53
+ class: _normalizeClass(["j-skeleton-table-cell", { 'j-skeleton-table-header': item === 1 }])
54
+ }, [
55
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(4, (i) => {
56
+ return _createElementVNode("div", {
57
+ class: _normalizeClass({ 'j-skeleton-table-action': i === 4 })
58
+ }, [
59
+ (i !== 4 || item === 1)
60
+ ? (_openBlock(), _createBlock(Item, {
61
+ key: 0,
62
+ active: __props.active
63
+ }, null, 8 /* PROPS */, ["active"]))
64
+ : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, _renderList(3, (_i) => {
65
+ return _createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]);
66
+ }), 64 /* STABLE_FRAGMENT */))
67
+ ], 2 /* CLASS */);
68
+ }), 64 /* STABLE_FRAGMENT */))
69
+ ], 2 /* CLASS */);
70
+ }), 64 /* STABLE_FRAGMENT */))
71
+ ])
72
+ ], 2 /* CLASS */));
73
+ };
74
+ }
75
+ });
76
+ export default __sfc_main__;
@@ -0,0 +1,62 @@
1
+ /* Analyzed bindings: {
2
+ "type": "props",
3
+ "active": "props",
4
+ "loading": "props",
5
+ "List": "setup-const",
6
+ "Detail": "setup-const",
7
+ "props": "setup-reactive-const"
8
+ } */
9
+ import { renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from "vue";
10
+ const _hoisted_1 = { style: { "padding": "24px", "background-color": "#ffffff", "height": "100%" } };
11
+ import List from "./List.js";
12
+ import Detail from "./Detail.js";
13
+ const __sfc_main__ = Object.assign({
14
+ name: 'JSkeletonPage'
15
+ }, {
16
+ props: {
17
+ type: {
18
+ type: String,
19
+ default: 'list', // detail
20
+ },
21
+ active: {
22
+ type: Boolean,
23
+ default: true,
24
+ },
25
+ loading: {
26
+ type: Boolean,
27
+ default: true,
28
+ }
29
+ },
30
+ setup(__props) {
31
+ const props = __props;
32
+ return (_ctx, _cache) => {
33
+ return (_openBlock(), _createElementBlock("div", _hoisted_1, [
34
+ (__props.type === 'list')
35
+ ? (_openBlock(), _createBlock(List, {
36
+ key: 0,
37
+ loading: __props.loading,
38
+ active: ""
39
+ }, {
40
+ default: _withCtx(() => [
41
+ _renderSlot(_ctx.$slots, "default")
42
+ ]),
43
+ _: 3 /* FORWARDED */
44
+ }, 8 /* PROPS */, ["loading"]))
45
+ : _createCommentVNode("v-if", true),
46
+ (__props.type === 'detail')
47
+ ? (_openBlock(), _createBlock(Detail, {
48
+ key: 1,
49
+ loading: __props.loading,
50
+ active: ""
51
+ }, {
52
+ default: _withCtx(() => [
53
+ _renderSlot(_ctx.$slots, "default")
54
+ ]),
55
+ _: 3 /* FORWARDED */
56
+ }, 8 /* PROPS */, ["loading"]))
57
+ : _renderSlot(_ctx.$slots, "default", { key: 2 })
58
+ ]));
59
+ };
60
+ }
61
+ });
62
+ export default __sfc_main__;
@@ -0,0 +1,54 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "Item": "setup-const",
4
+ "props": "setup-reactive-const"
5
+ } */
6
+ import { createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
7
+ const _hoisted_1 = { class: "j-skeleton-flex-between" };
8
+ const _hoisted_2 = { class: "j-skeleton-flex" };
9
+ const _hoisted_3 = { class: "j-skeleton-flex" };
10
+ import Item from "./Item.js";
11
+ const __sfc_main__ = {
12
+ props: {
13
+ active: {
14
+ type: Boolean,
15
+ default: true,
16
+ }
17
+ },
18
+ setup(__props) {
19
+ const props = __props;
20
+ return (_ctx, _cache) => {
21
+ return (_openBlock(), _createElementBlock("div", _hoisted_1, [
22
+ _createElementVNode("div", _hoisted_2, [
23
+ _createVNode(Item, {
24
+ active: __props.active,
25
+ width: "120px"
26
+ }, null, 8 /* PROPS */, ["active"]),
27
+ _createVNode(Item, {
28
+ active: __props.active,
29
+ width: "120px"
30
+ }, null, 8 /* PROPS */, ["active"]),
31
+ _createVNode(Item, {
32
+ active: __props.active,
33
+ width: "300px"
34
+ }, null, 8 /* PROPS */, ["active"])
35
+ ]),
36
+ _createElementVNode("div", _hoisted_3, [
37
+ _createVNode(Item, {
38
+ active: __props.active,
39
+ width: "100px"
40
+ }, null, 8 /* PROPS */, ["active"]),
41
+ _createVNode(Item, {
42
+ active: __props.active,
43
+ width: "100px"
44
+ }, null, 8 /* PROPS */, ["active"]),
45
+ _createVNode(Item, {
46
+ active: __props.active,
47
+ width: "100px"
48
+ }, null, 8 /* PROPS */, ["active"])
49
+ ])
50
+ ]));
51
+ };
52
+ }
53
+ };
54
+ export default __sfc_main__;