@jetlinks-web/components 2.7.0 → 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 (284) hide show
  1. package/es/AutoComplete/AutoComplete.js +2 -3
  2. package/es/BadgeStatus/Badge.js +2 -3
  3. package/es/CardSelect/CardSelect.js +23 -18
  4. package/es/CardSelect/style/index.js +25 -1
  5. package/es/CheckButton/CheckButton.js +12 -4
  6. package/es/CheckButton/style/index.js +41 -1
  7. package/es/ConfigProvider/index.js +1 -1
  8. package/es/DragModal/DragModal.js +15 -9
  9. package/es/DragModal/style/index.js +64 -1
  10. package/es/EditTable/Body.js +10 -3
  11. package/es/EditTable/EditTable.js +14 -8
  12. package/es/EditTable/FormItem.js +15 -10
  13. package/es/EditTable/Header.js +16 -6
  14. package/es/EditTable/components/ContextMenu/Menu.js +12 -6
  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 +24 -19
  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 +1 -1
  27. package/es/Ellipsis/Ellipsis.js +11 -3
  28. package/es/Ellipsis/style/index.js +24 -1
  29. package/es/Empty/Empty.js +1 -1
  30. package/es/FullPage/FullPage.js +1 -2
  31. package/es/LocaleProvider/index.js +1 -2
  32. package/es/PermissionButton/index.js +4 -5
  33. package/es/ProLayout/Basic/BasicLayout.js +46 -42
  34. package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
  35. package/es/ProLayout/Basic/Header.js +4 -8
  36. package/es/ProLayout/Basic/HeaderStyle.js +10 -0
  37. package/es/ProLayout/PageContainer/index.js +20 -16
  38. package/es/ProLayout/PageContainer/style.js +46 -0
  39. package/es/ProLayout/SiderMenu/BaseMenu.js +14 -37
  40. package/es/ProLayout/SiderMenu/SiderMenu.js +25 -36
  41. package/es/ProLayout/SiderMenu/style.js +166 -0
  42. package/es/ProLayout/TopHeader/index.js +12 -11
  43. package/es/ProLayout/TopHeader/style.js +126 -0
  44. package/es/ProLayout/style/index.js +7 -1
  45. package/es/ProLayout/util.js +5 -5
  46. package/es/ProTable/Alert.js +13 -5
  47. package/es/ProTable/Content.js +22 -14
  48. package/es/ProTable/Header.js +22 -12
  49. package/es/ProTable/Pagination.js +13 -5
  50. package/es/ProTable/ProTable.js +43 -27
  51. package/es/ProTable/setting.js +1 -1
  52. package/es/ProTable/style/index.js +109 -1
  53. package/es/RadioButton/RadioButton.js +10 -4
  54. package/es/RadioButton/style/index.js +23 -1
  55. package/es/Scrollbar/Scrollbar.js +10 -3
  56. package/es/Scrollbar/Thumb.js +36 -25
  57. package/es/Scrollbar/style/index.js +63 -1
  58. package/es/Search/Advanced/History.js +24 -17
  59. package/es/Search/Advanced/SaveHistory.js +2 -3
  60. package/es/Search/Advanced/index.js +213 -293
  61. package/es/Search/Item.js +175 -415
  62. package/es/Search/Search.js +78 -172
  63. package/es/Search/hooks/index.js +108 -1
  64. package/es/Search/hooks/useRouteQuery.js +57 -0
  65. package/es/Search/setting.js +132 -14
  66. package/es/Search/style/index.js +4 -2
  67. package/es/Search/style/item.js +28 -0
  68. package/es/Search/style/search.js +133 -0
  69. package/es/Search/util.js +116 -124
  70. package/es/Skeleton/components/DashBoardCard.js +64 -0
  71. package/es/Skeleton/components/DashBoardChart.js +96 -0
  72. package/es/Skeleton/components/Detail.js +110 -0
  73. package/es/Skeleton/components/Drawer.js +91 -0
  74. package/es/Skeleton/components/Item.js +68 -0
  75. package/es/Skeleton/components/List.js +45 -0
  76. package/es/Skeleton/components/ListCard.js +63 -0
  77. package/es/Skeleton/components/ListCardItem.js +86 -0
  78. package/es/Skeleton/components/ListTable.js +76 -0
  79. package/es/Skeleton/components/Page.js +62 -0
  80. package/es/Skeleton/components/Search.js +54 -0
  81. package/es/Skeleton/components/Tree.js +72 -0
  82. package/es/Skeleton/index.js +15 -0
  83. package/es/Skeleton/skeleton.js +58 -0
  84. package/es/Skeleton/style/index.js +132 -0
  85. package/es/Title/style/index.js +29 -1
  86. package/es/Title/title.js +13 -5
  87. package/es/ValueItem/ValueItem.js +29 -72
  88. package/es/components.js +0 -3
  89. package/es/locale/en-US.js +0 -7
  90. package/es/locale/zh-CN.js +0 -7
  91. package/es/style/index.js +0 -3
  92. package/es/style/styleRegister.js +21 -0
  93. package/es/style/variable.js +4 -0
  94. package/es/style.js +0 -12
  95. package/lib/AutoComplete/AutoComplete.js +1 -2
  96. package/lib/BadgeStatus/Badge.js +2 -3
  97. package/lib/CardSelect/CardSelect.js +23 -18
  98. package/lib/CardSelect/style/index.js +30 -1
  99. package/lib/CheckButton/CheckButton.js +12 -4
  100. package/lib/CheckButton/style/index.js +46 -1
  101. package/lib/ConfigProvider/context.js +1 -1
  102. package/lib/ConfigProvider/index.js +3 -3
  103. package/lib/DragModal/DragModal.js +15 -9
  104. package/lib/DragModal/style/index.js +69 -1
  105. package/lib/EditTable/Body.js +10 -3
  106. package/lib/EditTable/EditTable.js +13 -7
  107. package/lib/EditTable/FormItem.js +16 -11
  108. package/lib/EditTable/Header.js +16 -6
  109. package/lib/EditTable/components/ContextMenu/Menu.js +12 -6
  110. package/lib/EditTable/components/Search/search.js +1 -2
  111. package/lib/EditTable/components/Search/sort.js +1 -3
  112. package/lib/EditTable/group.js +24 -19
  113. package/lib/EditTable/hooks/useValidate.js +1 -1
  114. package/lib/EditTable/style/body.js +60 -0
  115. package/lib/EditTable/style/form.js +31 -0
  116. package/lib/EditTable/style/group.js +32 -0
  117. package/lib/EditTable/style/header.js +65 -0
  118. package/lib/EditTable/style/index.js +47 -1
  119. package/lib/EditTable/style/menu.js +33 -0
  120. package/lib/EditTable/style/table.js +52 -0
  121. package/lib/EditTable/utils.js +1 -1
  122. package/lib/Ellipsis/Ellipsis.js +11 -3
  123. package/lib/Ellipsis/style/index.js +29 -1
  124. package/lib/Empty/Empty.js +1 -1
  125. package/lib/FullPage/FullPage.js +1 -2
  126. package/lib/LocaleProvider/index.js +1 -2
  127. package/lib/PermissionButton/index.js +9 -10
  128. package/lib/ProLayout/Basic/BasicLayout.js +55 -51
  129. package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
  130. package/lib/ProLayout/Basic/Header.js +6 -10
  131. package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
  132. package/lib/ProLayout/PageContainer/index.js +24 -20
  133. package/lib/ProLayout/PageContainer/style.js +53 -0
  134. package/lib/ProLayout/SiderMenu/BaseMenu.js +18 -40
  135. package/lib/ProLayout/SiderMenu/SiderMenu.js +28 -39
  136. package/lib/ProLayout/SiderMenu/style.js +173 -0
  137. package/lib/ProLayout/TopHeader/index.js +12 -10
  138. package/lib/ProLayout/TopHeader/style.js +133 -0
  139. package/lib/ProLayout/defaultSettings.js +1 -1
  140. package/lib/ProLayout/style/index.js +12 -1
  141. package/lib/ProLayout/util.js +5 -5
  142. package/lib/ProTable/Alert.js +13 -5
  143. package/lib/ProTable/Content.js +22 -14
  144. package/lib/ProTable/Header.js +22 -12
  145. package/lib/ProTable/Pagination.js +13 -5
  146. package/lib/ProTable/ProTable.js +43 -27
  147. package/lib/ProTable/setting.js +3 -3
  148. package/lib/ProTable/style/index.js +114 -1
  149. package/lib/RadioButton/RadioButton.js +10 -4
  150. package/lib/RadioButton/style/index.js +28 -1
  151. package/lib/Scrollbar/Scrollbar.js +10 -3
  152. package/lib/Scrollbar/Thumb.js +36 -25
  153. package/lib/Scrollbar/style/index.js +68 -1
  154. package/lib/Search/Advanced/History.js +24 -17
  155. package/lib/Search/Advanced/SaveHistory.js +2 -3
  156. package/lib/Search/Advanced/index.js +213 -293
  157. package/lib/Search/Item.js +175 -415
  158. package/lib/Search/Search.js +78 -172
  159. package/lib/Search/hooks/index.js +130 -1
  160. package/lib/Search/hooks/useRouteQuery.js +64 -0
  161. package/lib/Search/setting.js +133 -15
  162. package/lib/Search/style/index.js +9 -2
  163. package/lib/Search/style/item.js +35 -0
  164. package/lib/Search/style/search.js +140 -0
  165. package/lib/Search/util.js +116 -124
  166. package/lib/Skeleton/components/DashBoardCard.js +64 -0
  167. package/lib/Skeleton/components/DashBoardChart.js +96 -0
  168. package/lib/Skeleton/components/Detail.js +110 -0
  169. package/lib/Skeleton/components/Drawer.js +91 -0
  170. package/lib/Skeleton/components/Item.js +68 -0
  171. package/lib/Skeleton/components/List.js +45 -0
  172. package/lib/Skeleton/components/ListCard.js +63 -0
  173. package/lib/Skeleton/components/ListCardItem.js +86 -0
  174. package/lib/Skeleton/components/ListTable.js +76 -0
  175. package/lib/Skeleton/components/Page.js +62 -0
  176. package/lib/Skeleton/components/Search.js +54 -0
  177. package/lib/Skeleton/components/Tree.js +72 -0
  178. package/lib/Skeleton/index.js +75 -0
  179. package/lib/Skeleton/skeleton.js +58 -0
  180. package/lib/Skeleton/style/index.js +139 -0
  181. package/lib/Title/style/index.js +34 -1
  182. package/lib/Title/title.js +13 -5
  183. package/lib/ValueItem/ValueItem.js +29 -72
  184. package/lib/components.js +0 -21
  185. package/lib/locale/en-US.js +0 -7
  186. package/lib/locale/zh-CN.js +0 -7
  187. package/lib/style/components.less +0 -1
  188. package/lib/style/index.js +1 -4
  189. package/lib/style/styleRegister.js +28 -0
  190. package/lib/style/variable.js +10 -0
  191. package/lib/style.js +1 -14
  192. package/package.json +13 -14
  193. package/es/AMap/Map.js +0 -133
  194. package/es/AMap/index.js +0 -5
  195. package/es/AMap/util.js +0 -56
  196. package/es/CardSelect/style/index.css +0 -24
  197. package/es/CardSelect/style/index.less +0 -26
  198. package/es/CheckButton/style/index.css +0 -37
  199. package/es/CheckButton/style/index.less +0 -40
  200. package/es/DragModal/style/index.css +0 -82
  201. package/es/DragModal/style/index.less +0 -97
  202. package/es/Echarts/Echarts.js +0 -48
  203. package/es/Echarts/index.js +0 -5
  204. package/es/EditTable/style/body.less +0 -66
  205. package/es/EditTable/style/form.less +0 -33
  206. package/es/EditTable/style/group.less +0 -32
  207. package/es/EditTable/style/header.less +0 -77
  208. package/es/EditTable/style/index.css +0 -267
  209. package/es/EditTable/style/index.less +0 -41
  210. package/es/EditTable/style/menu.less +0 -25
  211. package/es/EditTable/style/table.less +0 -47
  212. package/es/Ellipsis/style/index.css +0 -17
  213. package/es/Ellipsis/style/index.less +0 -20
  214. package/es/MonacoEditor/Monaco.js +0 -242
  215. package/es/MonacoEditor/index.js +0 -5
  216. package/es/MonacoEditor/style/index.css +0 -4
  217. package/es/MonacoEditor/style/index.js +0 -1
  218. package/es/MonacoEditor/style/index.less +0 -4
  219. package/es/ProLayout/Basic/BasicLayout.less +0 -66
  220. package/es/ProLayout/Basic/Header.less +0 -8
  221. package/es/ProLayout/PageContainer/index.less +0 -103
  222. package/es/ProLayout/SiderMenu/index.less +0 -231
  223. package/es/ProLayout/TopHeader/index.less +0 -174
  224. package/es/ProLayout/style/default.less +0 -4
  225. package/es/ProLayout/style/style.less +0 -7
  226. package/es/ProTable/style/ProTable.less +0 -141
  227. package/es/RadioButton/style/index.css +0 -20
  228. package/es/RadioButton/style/index.less +0 -19
  229. package/es/Scrollbar/style/index.css +0 -65
  230. package/es/Scrollbar/style/index.less +0 -83
  231. package/es/Search/style/Item.less +0 -33
  232. package/es/Search/style/Search.less +0 -179
  233. package/es/Title/style/index.css +0 -23
  234. package/es/Title/style/index.less +0 -25
  235. package/es/style/index.css +0 -5197
  236. package/es/style/index.less +0 -13
  237. package/es/style/variable.css +0 -4
  238. package/es/style/variable.less +0 -4
  239. package/lib/AMap/Map.js +0 -133
  240. package/lib/AMap/index.js +0 -12
  241. package/lib/AMap/util.js +0 -62
  242. package/lib/CardSelect/style/index.css +0 -24
  243. package/lib/CardSelect/style/index.less +0 -26
  244. package/lib/CheckButton/style/index.css +0 -37
  245. package/lib/CheckButton/style/index.less +0 -40
  246. package/lib/DragModal/style/index.css +0 -82
  247. package/lib/DragModal/style/index.less +0 -97
  248. package/lib/Echarts/Echarts.js +0 -48
  249. package/lib/Echarts/index.js +0 -12
  250. package/lib/EditTable/style/body.less +0 -66
  251. package/lib/EditTable/style/form.less +0 -33
  252. package/lib/EditTable/style/group.less +0 -32
  253. package/lib/EditTable/style/header.less +0 -77
  254. package/lib/EditTable/style/index.css +0 -267
  255. package/lib/EditTable/style/index.less +0 -41
  256. package/lib/EditTable/style/menu.less +0 -25
  257. package/lib/EditTable/style/table.less +0 -47
  258. package/lib/Ellipsis/style/index.css +0 -17
  259. package/lib/Ellipsis/style/index.less +0 -20
  260. package/lib/MonacoEditor/Monaco.js +0 -242
  261. package/lib/MonacoEditor/index.js +0 -12
  262. package/lib/MonacoEditor/style/index.css +0 -4
  263. package/lib/MonacoEditor/style/index.js +0 -3
  264. package/lib/MonacoEditor/style/index.less +0 -4
  265. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  266. package/lib/ProLayout/Basic/Header.less +0 -8
  267. package/lib/ProLayout/PageContainer/index.less +0 -103
  268. package/lib/ProLayout/SiderMenu/index.less +0 -231
  269. package/lib/ProLayout/TopHeader/index.less +0 -174
  270. package/lib/ProLayout/style/default.less +0 -4
  271. package/lib/ProLayout/style/style.less +0 -7
  272. package/lib/ProTable/style/ProTable.less +0 -141
  273. package/lib/RadioButton/style/index.css +0 -20
  274. package/lib/RadioButton/style/index.less +0 -19
  275. package/lib/Scrollbar/style/index.css +0 -65
  276. package/lib/Scrollbar/style/index.less +0 -83
  277. package/lib/Search/style/Item.less +0 -33
  278. package/lib/Search/style/Search.less +0 -179
  279. package/lib/Title/style/index.css +0 -23
  280. package/lib/Title/style/index.less +0 -25
  281. package/lib/style/index.css +0 -5197
  282. package/lib/style/index.less +0 -13
  283. package/lib/style/variable.css +0 -4
  284. 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__;