@jetlinks-web/components 2.6.12 → 3.0.1-rc

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 (68) hide show
  1. package/es/EditTable/components/Search/sort.js +1 -1
  2. package/es/FullPage/FullPage.js +1 -1
  3. package/es/ProTable/ProTable.js +8 -4
  4. package/es/Search/Advanced/SaveHistory.js +1 -1
  5. package/es/Search/Item.js +1 -1
  6. package/es/Skeleton/components/DashBoardCard.js +57 -0
  7. package/es/Skeleton/components/DashBoardChart.js +93 -0
  8. package/es/Skeleton/components/Detail.js +104 -0
  9. package/es/Skeleton/components/Drawer.js +82 -0
  10. package/es/Skeleton/components/Item.js +60 -0
  11. package/es/Skeleton/components/List.js +46 -0
  12. package/es/Skeleton/components/ListCard.js +56 -0
  13. package/es/Skeleton/components/ListCardItem.js +87 -0
  14. package/es/Skeleton/components/ListTable.js +67 -0
  15. package/es/Skeleton/components/Page.js +63 -0
  16. package/es/Skeleton/components/Search.js +54 -0
  17. package/es/Skeleton/components/Tree.js +65 -0
  18. package/es/Skeleton/index.js +15 -0
  19. package/es/Skeleton/skeleton.js +49 -0
  20. package/es/Skeleton/style/Skeleton.less +166 -0
  21. package/es/Skeleton/style/index.js +1 -0
  22. package/es/Title/style/index.css +4 -0
  23. package/es/Title/style/index.less +3 -1
  24. package/es/ValueItem/ValueItem.js +9 -57
  25. package/es/components.js +2 -2
  26. package/es/style/index.css +141 -4
  27. package/es/style/index.less +1 -1
  28. package/es/style.js +2 -2
  29. package/lib/EditTable/components/Search/sort.js +1 -1
  30. package/lib/FullPage/FullPage.js +1 -1
  31. package/lib/ProTable/ProTable.js +8 -4
  32. package/lib/Search/Advanced/SaveHistory.js +1 -1
  33. package/lib/Search/Item.js +1 -1
  34. package/lib/Skeleton/components/DashBoardCard.js +57 -0
  35. package/lib/Skeleton/components/DashBoardChart.js +93 -0
  36. package/lib/Skeleton/components/Detail.js +104 -0
  37. package/lib/Skeleton/components/Drawer.js +82 -0
  38. package/lib/Skeleton/components/Item.js +60 -0
  39. package/lib/Skeleton/components/List.js +46 -0
  40. package/lib/Skeleton/components/ListCard.js +56 -0
  41. package/lib/Skeleton/components/ListCardItem.js +87 -0
  42. package/lib/Skeleton/components/ListTable.js +67 -0
  43. package/lib/Skeleton/components/Page.js +63 -0
  44. package/lib/Skeleton/components/Search.js +54 -0
  45. package/lib/Skeleton/components/Tree.js +65 -0
  46. package/lib/Skeleton/index.js +75 -0
  47. package/lib/Skeleton/skeleton.js +49 -0
  48. package/lib/Skeleton/style/Skeleton.less +166 -0
  49. package/lib/Skeleton/style/index.js +3 -0
  50. package/lib/Title/style/index.css +4 -0
  51. package/lib/Title/style/index.less +3 -1
  52. package/lib/ValueItem/ValueItem.js +9 -57
  53. package/lib/components.js +7 -7
  54. package/lib/style/components.less +0 -1
  55. package/lib/style/index.css +141 -4
  56. package/lib/style/index.less +1 -1
  57. package/lib/style.js +2 -2
  58. package/package.json +173 -173
  59. package/es/MonacoEditor/Monaco.js +0 -242
  60. package/es/MonacoEditor/index.js +0 -5
  61. package/es/MonacoEditor/style/index.css +0 -4
  62. package/es/MonacoEditor/style/index.js +0 -1
  63. package/es/MonacoEditor/style/index.less +0 -4
  64. package/lib/MonacoEditor/Monaco.js +0 -242
  65. package/lib/MonacoEditor/index.js +0 -12
  66. package/lib/MonacoEditor/style/index.css +0 -4
  67. package/lib/MonacoEditor/style/index.js +0 -3
  68. package/lib/MonacoEditor/style/index.less +0 -4
@@ -0,0 +1,104 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "loading": "props",
4
+ "Item": "setup-const",
5
+ "defineOptions": "setup-const",
6
+ "props": "setup-reactive-const"
7
+ } */
8
+ import { renderSlot as _renderSlot, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
9
+ const _hoisted_1 = {
10
+ key: 1,
11
+ class: "j-skeleton"
12
+ };
13
+ const _hoisted_2 = { class: "j-skeleton-flex" };
14
+ const _hoisted_3 = { class: "j-skeleton-flex" };
15
+ const _hoisted_4 = { class: "j-skeleton-tabs" };
16
+ const _hoisted_5 = /*#__PURE__*/ _createElementVNode("div", {
17
+ class: "j-skeleton-item j-skeleton-item-large",
18
+ style: { "width": "300px" }
19
+ }, null, -1 /* HOISTED */);
20
+ const _hoisted_6 = { class: "j-skeleton-desc-content" };
21
+ import Item from "./Item.js";
22
+ const __sfc_main__ = Object.assign({
23
+ name: 'JSkeletonDetail'
24
+ }, {
25
+ props: {
26
+ active: {
27
+ type: Boolean,
28
+ default: true,
29
+ },
30
+ loading: {
31
+ type: Boolean,
32
+ default: true,
33
+ }
34
+ },
35
+ setup(__props) {
36
+ const props = __props;
37
+ return (_ctx, _cache) => {
38
+ return (!__props.loading)
39
+ ? _renderSlot(_ctx.$slots, "default", { key: 0 })
40
+ : (_openBlock(), _createElementBlock("div", _hoisted_1, [
41
+ _createElementVNode("div", _hoisted_2, [
42
+ _createVNode(Item, {
43
+ active: __props.active,
44
+ width: "40%"
45
+ }, null, 8 /* PROPS */, ["active"])
46
+ ]),
47
+ _createElementVNode("div", _hoisted_3, [
48
+ _createVNode(Item, {
49
+ active: __props.active,
50
+ size: "small",
51
+ width: "15%"
52
+ }, null, 8 /* PROPS */, ["active"]),
53
+ _createVNode(Item, {
54
+ active: __props.active,
55
+ size: "small",
56
+ width: "15%"
57
+ }, null, 8 /* PROPS */, ["active"])
58
+ ]),
59
+ _createElementVNode("div", _hoisted_4, [
60
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(5, (item) => {
61
+ return _createElementVNode("div", {
62
+ key: item,
63
+ class: "j-skeleton-flex"
64
+ }, [
65
+ _createVNode(Item, {
66
+ active: __props.active,
67
+ size: "small",
68
+ width: "80px"
69
+ }, null, 8 /* PROPS */, ["active"])
70
+ ]);
71
+ }), 64 /* STABLE_FRAGMENT */))
72
+ ]),
73
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(2, (item) => {
74
+ return _createElementVNode("div", {
75
+ class: "j-skeleton-desc",
76
+ key: item
77
+ }, [
78
+ _hoisted_5,
79
+ _createElementVNode("div", _hoisted_6, [
80
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (i) => {
81
+ return _createElementVNode("div", {
82
+ class: "j-skeleton-desc-item",
83
+ key: i
84
+ }, [
85
+ _createVNode(Item, {
86
+ active: __props.active,
87
+ size: "small",
88
+ width: "40%"
89
+ }, null, 8 /* PROPS */, ["active"]),
90
+ _createVNode(Item, {
91
+ active: __props.active,
92
+ size: "small",
93
+ width: "60%"
94
+ }, null, 8 /* PROPS */, ["active"])
95
+ ]);
96
+ }), 64 /* STABLE_FRAGMENT */))
97
+ ])
98
+ ]);
99
+ }), 64 /* STABLE_FRAGMENT */))
100
+ ]));
101
+ };
102
+ }
103
+ });
104
+ export default __sfc_main__;
@@ -0,0 +1,82 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "loading": "props",
4
+ "Item": "setup-const",
5
+ "defineOptions": "setup-const",
6
+ "props": "setup-reactive-const"
7
+ } */
8
+ import { renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
9
+ const _hoisted_1 = { class: "j-skeleton" };
10
+ const _hoisted_2 = { class: "j-skeleton-box" };
11
+ const _hoisted_3 = { class: "j-skeleton-desc" };
12
+ const _hoisted_4 = { style: { "margin-top": "16px" } };
13
+ const _hoisted_5 = {
14
+ class: "j-skeleton-desc-content",
15
+ style: { "grid-template-columns": "repeat(2, 1fr)" }
16
+ };
17
+ import Item from "./Item.js";
18
+ const __sfc_main__ = Object.assign({
19
+ name: 'JSkeletonDrawer'
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
+ return (_ctx, _cache) => {
34
+ return (_openBlock(), _createElementBlock(_Fragment, null, [
35
+ (!__props.loading)
36
+ ? _renderSlot(_ctx.$slots, "default", { key: 0 })
37
+ : _createCommentVNode("v-if", true),
38
+ _createElementVNode("div", _hoisted_1, [
39
+ _createVNode(Item, {
40
+ active: __props.active,
41
+ width: "70%"
42
+ }, null, 8 /* PROPS */, ["active"]),
43
+ _createElementVNode("div", _hoisted_2, [
44
+ _createVNode(Item, {
45
+ active: __props.active,
46
+ size: "small",
47
+ width: "35%"
48
+ }, null, 8 /* PROPS */, ["active"])
49
+ ]),
50
+ _createElementVNode("div", _hoisted_3, [
51
+ _createElementVNode("div", _hoisted_4, [
52
+ _createVNode(Item, {
53
+ active: __props.active,
54
+ width: "300px"
55
+ }, null, 8 /* PROPS */, ["active"])
56
+ ]),
57
+ _createElementVNode("div", _hoisted_5, [
58
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (i) => {
59
+ return _createElementVNode("div", {
60
+ class: "j-skeleton-desc-item",
61
+ key: i
62
+ }, [
63
+ _createVNode(Item, {
64
+ active: __props.active,
65
+ size: "small",
66
+ width: "40%"
67
+ }, null, 8 /* PROPS */, ["active"]),
68
+ _createVNode(Item, {
69
+ active: __props.active,
70
+ size: "small",
71
+ width: "60%"
72
+ }, null, 8 /* PROPS */, ["active"])
73
+ ]);
74
+ }), 64 /* STABLE_FRAGMENT */))
75
+ ])
76
+ ])
77
+ ])
78
+ ], 64 /* STABLE_FRAGMENT */));
79
+ };
80
+ }
81
+ });
82
+ export default __sfc_main__;
@@ -0,0 +1,60 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "size": "props",
4
+ "width": "props",
5
+ "computed": "setup-const",
6
+ "props": "setup-reactive-const",
7
+ "_className": "setup-ref",
8
+ "sizeStyle": "setup-ref"
9
+ } */
10
+ import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
11
+ import { computed } from 'vue';
12
+ const __sfc_main__ = {
13
+ props: {
14
+ active: {
15
+ type: Boolean,
16
+ default: true,
17
+ },
18
+ size: {
19
+ type: [String, Number],
20
+ default: 'default',
21
+ },
22
+ width: {
23
+ type: [String, Number],
24
+ default: '100%',
25
+ }
26
+ },
27
+ setup(__props) {
28
+ const props = __props;
29
+ const _className = computed(() => {
30
+ const { active, size } = props;
31
+ return {
32
+ 'j-skeleton-item': true,
33
+ 'j-skeleton-item-active': active,
34
+ 'j-skeleton-item-lg': size === 'large',
35
+ 'j-skeleton-item-sm': size === 'small',
36
+ };
37
+ });
38
+ const sizeStyle = computed(() => {
39
+ const { size, width } = props;
40
+ if (typeof size === 'number') {
41
+ return {
42
+ height: `${size}px`,
43
+ width: `${width}px`,
44
+ };
45
+ }
46
+ else {
47
+ return {
48
+ width: typeof size === 'number' ? `${width}px` : width,
49
+ };
50
+ }
51
+ });
52
+ return (_ctx, _cache) => {
53
+ return (_openBlock(), _createElementBlock("div", {
54
+ class: _normalizeClass(_className.value),
55
+ style: _normalizeStyle(sizeStyle.value)
56
+ }, null, 6 /* CLASS, STYLE */));
57
+ };
58
+ }
59
+ };
60
+ export default __sfc_main__;
@@ -0,0 +1,46 @@
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
+ "defineOptions": "setup-const",
9
+ "props": "setup-reactive-const"
10
+ } */
11
+ import { renderSlot as _renderSlot, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
12
+ import ListCard from "./ListCard.js";
13
+ import ListTable from "./ListTable.js";
14
+ import Search from "./Search.js";
15
+ const __sfc_main__ = Object.assign({
16
+ name: 'JSkeletonList'
17
+ }, {
18
+ props: {
19
+ active: {
20
+ type: Boolean,
21
+ default: true,
22
+ },
23
+ loading: {
24
+ type: Boolean,
25
+ default: true,
26
+ },
27
+ mode: {
28
+ type: [String, undefined],
29
+ default: 'TABLE',
30
+ },
31
+ },
32
+ setup(__props) {
33
+ const props = __props;
34
+ return (_ctx, _cache) => {
35
+ return (!__props.loading)
36
+ ? _renderSlot(_ctx.$slots, "default", { key: 0 })
37
+ : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
38
+ _createVNode(Search, { active: "" }),
39
+ (__props.mode !== 'TABLE')
40
+ ? (_openBlock(), _createBlock(ListCard, { key: 0 }))
41
+ : (_openBlock(), _createBlock(ListTable, { key: 1 }))
42
+ ], 64 /* STABLE_FRAGMENT */));
43
+ };
44
+ }
45
+ });
46
+ export default __sfc_main__;
@@ -0,0 +1,56 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "loading": "props",
4
+ "Item": "setup-const",
5
+ "ListCardItem": "setup-const",
6
+ "defineOptions": "setup-const",
7
+ "props": "setup-reactive-const"
8
+ } */
9
+ import { renderSlot as _renderSlot, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
10
+ const _hoisted_1 = {
11
+ key: 1,
12
+ class: "j-skeleton"
13
+ };
14
+ const _hoisted_2 = { class: "j-skeleton-flex" };
15
+ const _hoisted_3 = { class: "j-skeleton-cards" };
16
+ import Item from "./Item.js";
17
+ import ListCardItem from "./ListCardItem.js";
18
+ const __sfc_main__ = Object.assign({
19
+ name: 'JSkeletonListCard'
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
+ return (_ctx, _cache) => {
34
+ return (!__props.loading)
35
+ ? _renderSlot(_ctx.$slots, "default", { key: 0 })
36
+ : (_openBlock(), _createElementBlock("div", _hoisted_1, [
37
+ _createElementVNode("div", _hoisted_2, [
38
+ _createVNode(Item, {
39
+ active: __props.active,
40
+ width: "100px"
41
+ }, null, 8 /* PROPS */, ["active"]),
42
+ _createVNode(Item, {
43
+ active: __props.active,
44
+ width: "100px"
45
+ }, null, 8 /* PROPS */, ["active"])
46
+ ]),
47
+ _createElementVNode("div", _hoisted_3, [
48
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(9, (item) => {
49
+ return _createVNode(ListCardItem, { key: item });
50
+ }), 64 /* STABLE_FRAGMENT */))
51
+ ])
52
+ ]));
53
+ };
54
+ }
55
+ });
56
+ export default __sfc_main__;
@@ -0,0 +1,87 @@
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 = /*#__PURE__*/ _createElementVNode("div", { class: "j-skeleton-item j-skeleton-image" }, null, -1 /* HOISTED */);
11
+ const _hoisted_4 = { class: "j-skeleton-right" };
12
+ const _hoisted_5 = { style: { "margin-bottom": "16px" } };
13
+ const _hoisted_6 = { class: "j-skeleton-right-content" };
14
+ const _hoisted_7 = { class: "j-skeleton-right-content-item" };
15
+ const _hoisted_8 = { class: "j-skeleton-right-content-item" };
16
+ const _hoisted_9 = { class: "j-skeleton-action" };
17
+ import Item from "./Item.js";
18
+ const __sfc_main__ = {
19
+ props: {
20
+ active: {
21
+ type: Boolean,
22
+ default: true,
23
+ },
24
+ loading: {
25
+ type: Boolean,
26
+ default: true,
27
+ }
28
+ },
29
+ setup(__props) {
30
+ const props = __props;
31
+ return (_ctx, _cache) => {
32
+ return (_openBlock(), _createElementBlock("div", _hoisted_1, [
33
+ _createElementVNode("div", _hoisted_2, [
34
+ _hoisted_3,
35
+ _createElementVNode("div", _hoisted_4, [
36
+ _createElementVNode("div", _hoisted_5, [
37
+ _createVNode(Item, {
38
+ active: __props.active,
39
+ size: "small",
40
+ width: "200px"
41
+ }, null, 8 /* PROPS */, ["active"])
42
+ ]),
43
+ _createVNode(Item, {
44
+ active: __props.active,
45
+ width: "50%"
46
+ }, null, 8 /* PROPS */, ["active"]),
47
+ _createElementVNode("div", _hoisted_6, [
48
+ _createElementVNode("div", _hoisted_7, [
49
+ _createVNode(Item, {
50
+ active: __props.active,
51
+ size: "small",
52
+ width: "100%"
53
+ }, null, 8 /* PROPS */, ["active"]),
54
+ _createVNode(Item, {
55
+ active: __props.active,
56
+ size: "small",
57
+ width: "90%"
58
+ }, null, 8 /* PROPS */, ["active"])
59
+ ]),
60
+ _createElementVNode("div", _hoisted_8, [
61
+ _createVNode(Item, {
62
+ active: __props.active,
63
+ size: "small",
64
+ width: "100%"
65
+ }, null, 8 /* PROPS */, ["active"]),
66
+ _createVNode(Item, {
67
+ active: __props.active,
68
+ size: "small",
69
+ width: "90%"
70
+ }, null, 8 /* PROPS */, ["active"])
71
+ ])
72
+ ])
73
+ ])
74
+ ]),
75
+ _createElementVNode("div", _hoisted_9, [
76
+ _createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]),
77
+ _createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]),
78
+ _createVNode(Item, {
79
+ active: __props.active,
80
+ width: "100px"
81
+ }, null, 8 /* PROPS */, ["active"])
82
+ ])
83
+ ]));
84
+ };
85
+ }
86
+ };
87
+ export default __sfc_main__;
@@ -0,0 +1,67 @@
1
+ /* Analyzed bindings: {
2
+ "active": "props",
3
+ "loading": "props",
4
+ "Item": "setup-const",
5
+ "defineOptions": "setup-const",
6
+ "props": "setup-reactive-const"
7
+ } */
8
+ import { 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";
9
+ const _hoisted_1 = { class: "j-skeleton" };
10
+ const _hoisted_2 = { class: "j-skeleton-flex" };
11
+ const _hoisted_3 = { class: "j-skeleton-table" };
12
+ import Item from "./Item.js";
13
+ const __sfc_main__ = Object.assign({
14
+ name: 'JSkeletonListTable'
15
+ }, {
16
+ props: {
17
+ active: {
18
+ type: Boolean,
19
+ default: true,
20
+ },
21
+ loading: {
22
+ type: Boolean,
23
+ default: true,
24
+ }
25
+ },
26
+ setup(__props) {
27
+ const props = __props;
28
+ return (_ctx, _cache) => {
29
+ return (_openBlock(), _createElementBlock("div", _hoisted_1, [
30
+ _createElementVNode("div", _hoisted_2, [
31
+ _createVNode(Item, {
32
+ active: __props.active,
33
+ width: "100px"
34
+ }, null, 8 /* PROPS */, ["active"]),
35
+ _createVNode(Item, {
36
+ active: __props.active,
37
+ width: "100px"
38
+ }, null, 8 /* PROPS */, ["active"])
39
+ ]),
40
+ _createElementVNode("div", _hoisted_3, [
41
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (item) => {
42
+ return _createElementVNode("div", {
43
+ key: item,
44
+ class: _normalizeClass(["j-skeleton-table-cell", { 'j-skeleton-table-header': item === 1 }])
45
+ }, [
46
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(4, (i) => {
47
+ return _createElementVNode("div", {
48
+ class: _normalizeClass({ 'j-skeleton-table-action': i === 4 })
49
+ }, [
50
+ (i !== 4 || item === 1)
51
+ ? (_openBlock(), _createBlock(Item, {
52
+ key: 0,
53
+ active: __props.active
54
+ }, null, 8 /* PROPS */, ["active"]))
55
+ : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, _renderList(3, (_i) => {
56
+ return _createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]);
57
+ }), 64 /* STABLE_FRAGMENT */))
58
+ ], 2 /* CLASS */);
59
+ }), 64 /* STABLE_FRAGMENT */))
60
+ ], 2 /* CLASS */);
61
+ }), 64 /* STABLE_FRAGMENT */))
62
+ ])
63
+ ]));
64
+ };
65
+ }
66
+ });
67
+ export default __sfc_main__;
@@ -0,0 +1,63 @@
1
+ /* Analyzed bindings: {
2
+ "type": "props",
3
+ "active": "props",
4
+ "loading": "props",
5
+ "List": "setup-const",
6
+ "Detail": "setup-const",
7
+ "defineOptions": "setup-const",
8
+ "props": "setup-reactive-const"
9
+ } */
10
+ import { renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from "vue";
11
+ const _hoisted_1 = { style: { "padding": "24px", "background-color": "#ffffff", "height": "100%" } };
12
+ import List from "./List.js";
13
+ import Detail from "./Detail.js";
14
+ const __sfc_main__ = Object.assign({
15
+ name: 'JSkeletonPage'
16
+ }, {
17
+ props: {
18
+ type: {
19
+ type: String,
20
+ default: 'list', // detail
21
+ },
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
+ return (_ctx, _cache) => {
34
+ return (_openBlock(), _createElementBlock("div", _hoisted_1, [
35
+ (__props.type === 'list')
36
+ ? (_openBlock(), _createBlock(List, {
37
+ key: 0,
38
+ loading: __props.loading,
39
+ active: ""
40
+ }, {
41
+ default: _withCtx(() => [
42
+ _renderSlot(_ctx.$slots, "default")
43
+ ]),
44
+ _: 3 /* FORWARDED */
45
+ }, 8 /* PROPS */, ["loading"]))
46
+ : _createCommentVNode("v-if", true),
47
+ (__props.type === 'detail')
48
+ ? (_openBlock(), _createBlock(Detail, {
49
+ key: 1,
50
+ loading: __props.loading,
51
+ active: ""
52
+ }, {
53
+ default: _withCtx(() => [
54
+ _renderSlot(_ctx.$slots, "default")
55
+ ]),
56
+ _: 3 /* FORWARDED */
57
+ }, 8 /* PROPS */, ["loading"]))
58
+ : _renderSlot(_ctx.$slots, "default", { key: 2 })
59
+ ]));
60
+ };
61
+ }
62
+ });
63
+ 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__;