@jetlinks-web/components 3.0.0-rc → 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.
- package/es/EditTable/components/Search/sort.js +1 -1
- package/es/FullPage/FullPage.js +1 -1
- package/es/ProTable/ProTable.js +8 -4
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Advanced/index.js +7 -6
- package/es/Search/Item.js +1 -1
- package/es/Skeleton/components/DashBoardCard.js +57 -0
- package/es/Skeleton/components/DashBoardChart.js +93 -0
- package/es/Skeleton/components/Detail.js +104 -0
- package/es/Skeleton/components/Drawer.js +82 -0
- package/es/Skeleton/components/Item.js +60 -0
- package/es/Skeleton/components/List.js +46 -0
- package/es/Skeleton/components/ListCard.js +56 -0
- package/es/Skeleton/components/ListCardItem.js +87 -0
- package/es/Skeleton/components/ListTable.js +67 -0
- package/es/Skeleton/components/Page.js +63 -0
- package/es/Skeleton/components/Search.js +54 -0
- package/es/Skeleton/components/Tree.js +65 -0
- package/es/Skeleton/index.js +15 -0
- package/es/Skeleton/skeleton.js +49 -0
- package/es/Skeleton/style/Skeleton.less +166 -0
- package/es/Skeleton/style/index.js +1 -0
- package/es/Title/style/index.css +4 -0
- package/es/Title/style/index.less +3 -1
- package/es/components.js +2 -1
- package/es/style/index.css +141 -0
- package/es/style/index.less +1 -0
- package/es/style.js +2 -1
- package/lib/EditTable/components/Search/sort.js +1 -1
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/ProTable/ProTable.js +8 -4
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Advanced/index.js +7 -6
- package/lib/Search/Item.js +1 -1
- package/lib/Skeleton/components/DashBoardCard.js +57 -0
- package/lib/Skeleton/components/DashBoardChart.js +93 -0
- package/lib/Skeleton/components/Detail.js +104 -0
- package/lib/Skeleton/components/Drawer.js +82 -0
- package/lib/Skeleton/components/Item.js +60 -0
- package/lib/Skeleton/components/List.js +46 -0
- package/lib/Skeleton/components/ListCard.js +56 -0
- package/lib/Skeleton/components/ListCardItem.js +87 -0
- package/lib/Skeleton/components/ListTable.js +67 -0
- package/lib/Skeleton/components/Page.js +63 -0
- package/lib/Skeleton/components/Search.js +54 -0
- package/lib/Skeleton/components/Tree.js +65 -0
- package/lib/Skeleton/index.js +75 -0
- package/lib/Skeleton/skeleton.js +49 -0
- package/lib/Skeleton/style/Skeleton.less +166 -0
- package/lib/Skeleton/style/index.js +3 -0
- package/lib/Title/style/index.css +4 -0
- package/lib/Title/style/index.less +3 -1
- package/lib/components.js +7 -0
- package/lib/style/index.css +141 -0
- package/lib/style/index.less +1 -0
- package/lib/style.js +2 -1
- package/package.json +173 -173
|
@@ -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__;
|
|
@@ -0,0 +1,65 @@
|
|
|
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-flex" };
|
|
16
|
+
const _hoisted_5 = { class: "j-skeleton-flex" };
|
|
17
|
+
import Item from "./Item.js";
|
|
18
|
+
const __sfc_main__ = Object.assign({
|
|
19
|
+
name: 'JSkeletonTree'
|
|
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, { active: __props.active }, null, 8 /* PROPS */, ["active"])
|
|
39
|
+
]),
|
|
40
|
+
_createElementVNode("div", _hoisted_3, [
|
|
41
|
+
_createVNode(Item, {
|
|
42
|
+
active: __props.active,
|
|
43
|
+
width: "100px"
|
|
44
|
+
}, null, 8 /* PROPS */, ["active"])
|
|
45
|
+
]),
|
|
46
|
+
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(6, (item) => {
|
|
47
|
+
return _createElementVNode("div", _hoisted_4, [
|
|
48
|
+
_createVNode(Item, {
|
|
49
|
+
active: __props.active,
|
|
50
|
+
size: "small"
|
|
51
|
+
}, null, 8 /* PROPS */, ["active"])
|
|
52
|
+
]);
|
|
53
|
+
}), 64 /* STABLE_FRAGMENT */)),
|
|
54
|
+
_createElementVNode("div", _hoisted_5, [
|
|
55
|
+
_createVNode(Item, {
|
|
56
|
+
active: __props.active,
|
|
57
|
+
size: "small",
|
|
58
|
+
width: "140px"
|
|
59
|
+
}, null, 8 /* PROPS */, ["active"])
|
|
60
|
+
])
|
|
61
|
+
]));
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export default __sfc_main__;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "JSkeletonDashboardCard", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _DashBoardCard.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "JSkeletonDashboardChart", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _DashBoardChart.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "JSkeletonDetail", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _Detail.default;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "JSkeletonDrawer", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function get() {
|
|
28
|
+
return _Drawer.default;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "JSkeletonList", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function get() {
|
|
34
|
+
return _List.default;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "JSkeletonListCard", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function get() {
|
|
40
|
+
return _ListCard.default;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "JSkeletonListTable", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _ListTable.default;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "JSkeletonPage", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function get() {
|
|
52
|
+
return _Page.default;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "JSkeletonTree", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function get() {
|
|
58
|
+
return _Tree.default;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
exports.default = void 0;
|
|
62
|
+
var _ListTable = _interopRequireDefault(require("./components/ListTable.js"));
|
|
63
|
+
var _ListCard = _interopRequireDefault(require("./components/ListCard.js"));
|
|
64
|
+
var _Tree = _interopRequireDefault(require("./components/Tree.js"));
|
|
65
|
+
var _Detail = _interopRequireDefault(require("./components/Detail.js"));
|
|
66
|
+
var _Drawer = _interopRequireDefault(require("./components/Drawer.js"));
|
|
67
|
+
var _DashBoardCard = _interopRequireDefault(require("./components/DashBoardCard.js"));
|
|
68
|
+
var _DashBoardChart = _interopRequireDefault(require("./components/DashBoardChart.js"));
|
|
69
|
+
var _List = _interopRequireDefault(require("./components/List.js"));
|
|
70
|
+
var _Page = _interopRequireDefault(require("./components/Page.js"));
|
|
71
|
+
var _skeleton = _interopRequireDefault(require("./skeleton.js"));
|
|
72
|
+
_skeleton.default.install = function (app) {
|
|
73
|
+
app.component(_skeleton.default.name, _skeleton.default);
|
|
74
|
+
};
|
|
75
|
+
var _default = exports.default = _skeleton.default;
|
|
@@ -0,0 +1,49 @@
|
|
|
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, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode } from "vue";
|
|
9
|
+
const _hoisted_1 = { class: "j-skeleton" };
|
|
10
|
+
const _hoisted_2 = { class: "j-skeleton-flex-column" };
|
|
11
|
+
import Item from "./components/Item.js";
|
|
12
|
+
const __sfc_main__ = Object.assign({
|
|
13
|
+
name: 'JSkeleton'
|
|
14
|
+
}, {
|
|
15
|
+
props: {
|
|
16
|
+
active: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: true,
|
|
19
|
+
},
|
|
20
|
+
loading: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: true,
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return (_openBlock(), _createElementBlock("div", _hoisted_1, [
|
|
29
|
+
(!__props.loading)
|
|
30
|
+
? _renderSlot(_ctx.$slots, "default", { key: 0 })
|
|
31
|
+
: _createCommentVNode("v-if", true),
|
|
32
|
+
_createElementVNode("div", _hoisted_2, [
|
|
33
|
+
_createVNode(Item, {
|
|
34
|
+
active: __props.active,
|
|
35
|
+
width: "40%"
|
|
36
|
+
}, null, 8 /* PROPS */, ["active"]),
|
|
37
|
+
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(3, (item) => {
|
|
38
|
+
return _createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]);
|
|
39
|
+
}), 64 /* STABLE_FRAGMENT */)),
|
|
40
|
+
_createVNode(Item, {
|
|
41
|
+
active: __props.active,
|
|
42
|
+
width: "80%"
|
|
43
|
+
}, null, 8 /* PROPS */, ["active"])
|
|
44
|
+
])
|
|
45
|
+
]));
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export default __sfc_main__;
|