@meethive/components 0.0.13 → 0.0.15
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/Body.js +108 -24
- package/es/EditTable/EditTable.js +111 -35
- package/es/EditTable/FormItem.js +46 -18
- package/es/EditTable/Group.js +167 -53
- package/es/EditTable/Header.js +79 -21
- package/es/EditTable/components/ContextMenu/Menu.js +79 -29
- package/es/EditTable/components/Search/Search.js +132 -33
- package/es/EditTable/components/Search/Sort.js +91 -32
- package/es/FullPage/FullPage.js +23 -9
- package/es/Icon/Icon.js +43 -23
- package/es/Markdown/Markdown.js +9 -4
- package/es/RadioButton/RadioButton.js +31 -12
- package/es/Skeleton/Skeleton.js +33 -9
- package/es/Skeleton/components/DashBoardCard.js +40 -9
- package/es/Skeleton/components/DashBoardChart.js +67 -9
- package/es/Skeleton/components/Detail.js +75 -9
- package/es/Skeleton/components/Drawer.js +59 -9
- package/es/Skeleton/components/Item.js +17 -7
- package/es/Skeleton/components/List.js +27 -11
- package/es/Skeleton/components/ListCard.js +36 -10
- package/es/Skeleton/components/ListCardItem.js +71 -8
- package/es/Skeleton/components/ListTable.js +53 -9
- package/es/Skeleton/components/Page.js +40 -10
- package/es/Skeleton/components/Search.js +39 -8
- package/es/Skeleton/components/Tree.js +46 -9
- package/es/TimeFormat/TimeFormat.js +18 -9
- package/es/Title/Title.js +22 -10
- package/es/ValueItem/ValueItem.js +171 -43
- package/lib/EditTable/Body.js +108 -24
- package/lib/EditTable/EditTable.js +111 -35
- package/lib/EditTable/FormItem.js +46 -18
- package/lib/EditTable/Group.js +167 -53
- package/lib/EditTable/Header.js +79 -21
- package/lib/EditTable/components/ContextMenu/Menu.js +79 -29
- package/lib/EditTable/components/Search/Search.js +132 -33
- package/lib/EditTable/components/Search/Sort.js +91 -32
- package/lib/FullPage/FullPage.js +23 -9
- package/lib/Icon/Icon.js +43 -23
- package/lib/Markdown/Markdown.js +9 -4
- package/lib/RadioButton/RadioButton.js +31 -12
- package/lib/Skeleton/Skeleton.js +33 -9
- package/lib/Skeleton/components/DashBoardCard.js +40 -9
- package/lib/Skeleton/components/DashBoardChart.js +67 -9
- package/lib/Skeleton/components/Detail.js +75 -9
- package/lib/Skeleton/components/Drawer.js +59 -9
- package/lib/Skeleton/components/Item.js +17 -7
- package/lib/Skeleton/components/List.js +27 -11
- package/lib/Skeleton/components/ListCard.js +36 -10
- package/lib/Skeleton/components/ListCardItem.js +71 -8
- package/lib/Skeleton/components/ListTable.js +53 -9
- package/lib/Skeleton/components/Page.js +40 -10
- package/lib/Skeleton/components/Search.js +39 -8
- package/lib/Skeleton/components/Tree.js +46 -9
- package/lib/TimeFormat/TimeFormat.js +18 -9
- package/lib/Title/Title.js +22 -10
- package/lib/ValueItem/ValueItem.js +171 -43
- package/package.json +9 -9
|
@@ -1,26 +1,57 @@
|
|
|
1
|
-
import { defineComponent
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { renderSlot as _renderSlot, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "j-skeleton-dashboard-card"
|
|
5
|
+
};
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
style: {
|
|
8
|
+
"min-height": "0",
|
|
9
|
+
"flex": "1"
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
import { computed } from 'vue';
|
|
2
13
|
import Item from './Item.js';
|
|
3
14
|
import useSkeletonStyle from '../style';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Item
|
|
15
|
+
const __sfc_main__ = _defineComponent({
|
|
16
|
+
...{
|
|
17
|
+
name: 'JSkeletonDashboardCard'
|
|
8
18
|
},
|
|
19
|
+
__name: 'DashBoardCard',
|
|
9
20
|
props: {
|
|
10
21
|
active: {
|
|
11
22
|
type: Boolean,
|
|
23
|
+
required: false,
|
|
12
24
|
default: true
|
|
13
25
|
},
|
|
14
26
|
loading: {
|
|
15
27
|
type: Boolean,
|
|
28
|
+
required: false,
|
|
16
29
|
default: true
|
|
17
30
|
}
|
|
18
31
|
},
|
|
19
|
-
setup(
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const props = __props;
|
|
20
34
|
const prefixCls = computed(() => 'j-skeleton');
|
|
21
35
|
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
22
|
-
return {
|
|
23
|
-
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return !__props.loading ? _renderSlot(_ctx.$slots, "default", {
|
|
38
|
+
key: 0
|
|
39
|
+
}) : (_openBlock(), _createElementBlock("div", {
|
|
40
|
+
key: 1,
|
|
41
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
42
|
+
}, [_createElementVNode("div", _hoisted_1, [_createVNode(Item, {
|
|
43
|
+
active: __props.active,
|
|
44
|
+
width: "50%"
|
|
45
|
+
}, null, 8 /* PROPS */, ["active"]), _createElementVNode("div", _hoisted_2, [_createVNode(Item, {
|
|
46
|
+
active: __props.active,
|
|
47
|
+
size: "large",
|
|
48
|
+
width: "120px"
|
|
49
|
+
}, null, 8 /* PROPS */, ["active"])]), _createVNode(Item, {
|
|
50
|
+
active: __props.active,
|
|
51
|
+
size: "small",
|
|
52
|
+
width: "100%"
|
|
53
|
+
}, null, 8 /* PROPS */, ["active"])])], 2 /* CLASS */));
|
|
24
54
|
};
|
|
25
55
|
}
|
|
26
|
-
});
|
|
56
|
+
});
|
|
57
|
+
export default __sfc_main__;
|
|
@@ -1,26 +1,84 @@
|
|
|
1
|
-
import { defineComponent
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "j-skeleton-dashboard-card"
|
|
5
|
+
};
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
class: "j-skeleton-flex-between"
|
|
8
|
+
};
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
style: {
|
|
11
|
+
"width": "100%",
|
|
12
|
+
"height": "200px"
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const _hoisted_4 = {
|
|
16
|
+
viewBox: "0 0 800 200",
|
|
17
|
+
preserveAspectRatio: "none",
|
|
18
|
+
style: {
|
|
19
|
+
"width": "100%",
|
|
20
|
+
"height": "100%",
|
|
21
|
+
"display": "block"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
import { computed } from 'vue';
|
|
2
25
|
import Item from './Item.js';
|
|
3
26
|
import useSkeletonStyle from '../style';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Item
|
|
27
|
+
const __sfc_main__ = _defineComponent({
|
|
28
|
+
...{
|
|
29
|
+
name: 'JSkeletonDashboardChart'
|
|
8
30
|
},
|
|
31
|
+
__name: 'DashBoardChart',
|
|
9
32
|
props: {
|
|
10
33
|
active: {
|
|
11
34
|
type: Boolean,
|
|
35
|
+
required: false,
|
|
12
36
|
default: true
|
|
13
37
|
},
|
|
14
38
|
loading: {
|
|
15
39
|
type: Boolean,
|
|
40
|
+
required: false,
|
|
16
41
|
default: true
|
|
17
42
|
}
|
|
18
43
|
},
|
|
19
|
-
setup(
|
|
44
|
+
setup(__props) {
|
|
45
|
+
const props = __props;
|
|
20
46
|
const prefixCls = computed(() => 'j-skeleton');
|
|
21
47
|
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
22
|
-
return {
|
|
23
|
-
|
|
48
|
+
return (_ctx, _cache) => {
|
|
49
|
+
return !__props.loading ? _renderSlot(_ctx.$slots, "default", {
|
|
50
|
+
key: 0
|
|
51
|
+
}) : (_openBlock(), _createElementBlock("div", {
|
|
52
|
+
key: 1,
|
|
53
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
54
|
+
}, [_createElementVNode("div", _hoisted_1, [_createElementVNode("div", _hoisted_2, [_createVNode(Item, {
|
|
55
|
+
active: __props.active,
|
|
56
|
+
width: "200px"
|
|
57
|
+
}, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
|
|
58
|
+
active: __props.active,
|
|
59
|
+
width: "150px"
|
|
60
|
+
}, null, 8 /* PROPS */, ["active"])]), _createElementVNode("div", _hoisted_3, [(_openBlock(), _createElementBlock("svg", _hoisted_4, [_createCommentVNode(" 坐标轴(4px宽度,#f0f2f5颜色) "), _cache[0] || (_cache[0] = _createElementVNode("path", {
|
|
61
|
+
d: "M0 150 L800 150",
|
|
62
|
+
stroke: "#f0f2f5",
|
|
63
|
+
"stroke-width": "4",
|
|
64
|
+
"stroke-opacity": "0.8"
|
|
65
|
+
}, null, -1 /* CACHED */)), _createCommentVNode(" X轴 "), _cache[1] || (_cache[1] = _createElementVNode("path", {
|
|
66
|
+
d: "M0 150 L0 50",
|
|
67
|
+
stroke: "#f0f2f5",
|
|
68
|
+
"stroke-width": "4",
|
|
69
|
+
"stroke-opacity": "0.8"
|
|
70
|
+
}, null, -1 /* CACHED */)), _createCommentVNode(" Y轴 "), _createCommentVNode(" 两条曲线 "), _cache[2] || (_cache[2] = _createElementVNode("path", {
|
|
71
|
+
d: "M0 100 C200 30, 600 170, 800 100",
|
|
72
|
+
stroke: "#f0f2f5",
|
|
73
|
+
fill: "none",
|
|
74
|
+
"stroke-width": "4"
|
|
75
|
+
}, null, -1 /* CACHED */)), _cache[3] || (_cache[3] = _createElementVNode("path", {
|
|
76
|
+
d: "M0 120 C200 60, 600 140, 800 80",
|
|
77
|
+
stroke: "#f0f2f5",
|
|
78
|
+
fill: "none",
|
|
79
|
+
"stroke-width": "4"
|
|
80
|
+
}, null, -1 /* CACHED */))]))])])], 2 /* CLASS */));
|
|
24
81
|
};
|
|
25
82
|
}
|
|
26
|
-
});
|
|
83
|
+
});
|
|
84
|
+
export default __sfc_main__;
|
|
@@ -1,26 +1,92 @@
|
|
|
1
|
-
import { defineComponent
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
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";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "j-skeleton-flex"
|
|
5
|
+
};
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
class: "j-skeleton-flex"
|
|
8
|
+
};
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
class: "j-skeleton-tabs"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_4 = {
|
|
13
|
+
class: "j-skeleton-desc-content"
|
|
14
|
+
};
|
|
15
|
+
import { computed } from 'vue';
|
|
2
16
|
import Item from './Item.js';
|
|
3
17
|
import useSkeletonStyle from '../style';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Item
|
|
18
|
+
const __sfc_main__ = _defineComponent({
|
|
19
|
+
...{
|
|
20
|
+
name: 'JSkeletonDetail'
|
|
8
21
|
},
|
|
22
|
+
__name: 'Detail',
|
|
9
23
|
props: {
|
|
10
24
|
active: {
|
|
11
25
|
type: Boolean,
|
|
26
|
+
required: false,
|
|
12
27
|
default: true
|
|
13
28
|
},
|
|
14
29
|
loading: {
|
|
15
30
|
type: Boolean,
|
|
31
|
+
required: false,
|
|
16
32
|
default: true
|
|
17
33
|
}
|
|
18
34
|
},
|
|
19
|
-
setup(
|
|
35
|
+
setup(__props) {
|
|
36
|
+
const props = __props;
|
|
20
37
|
const prefixCls = computed(() => 'j-skeleton');
|
|
21
38
|
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
22
|
-
return {
|
|
23
|
-
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return !__props.loading ? _renderSlot(_ctx.$slots, "default", {
|
|
41
|
+
key: 0
|
|
42
|
+
}) : (_openBlock(), _createElementBlock("div", {
|
|
43
|
+
key: 1,
|
|
44
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
45
|
+
}, [_createElementVNode("div", _hoisted_1, [_createVNode(Item, {
|
|
46
|
+
active: __props.active,
|
|
47
|
+
width: "40%"
|
|
48
|
+
}, null, 8 /* PROPS */, ["active"])]), _createElementVNode("div", _hoisted_2, [_createVNode(Item, {
|
|
49
|
+
active: __props.active,
|
|
50
|
+
size: "small",
|
|
51
|
+
width: "15%"
|
|
52
|
+
}, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
|
|
53
|
+
active: __props.active,
|
|
54
|
+
size: "small",
|
|
55
|
+
width: "15%"
|
|
56
|
+
}, null, 8 /* PROPS */, ["active"])]), _createElementVNode("div", _hoisted_3, [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(5, item => {
|
|
57
|
+
return _createElementVNode("div", {
|
|
58
|
+
key: item,
|
|
59
|
+
class: "j-skeleton-flex"
|
|
60
|
+
}, [_createVNode(Item, {
|
|
61
|
+
active: __props.active,
|
|
62
|
+
size: "small",
|
|
63
|
+
width: "80px"
|
|
64
|
+
}, null, 8 /* PROPS */, ["active"])]);
|
|
65
|
+
}), 64 /* STABLE_FRAGMENT */))]), (_openBlock(), _createElementBlock(_Fragment, null, _renderList(2, item => {
|
|
66
|
+
return _createElementVNode("div", {
|
|
67
|
+
key: item,
|
|
68
|
+
class: "j-skeleton-desc"
|
|
69
|
+
}, [_cache[0] || (_cache[0] = _createElementVNode("div", {
|
|
70
|
+
class: "j-skeleton-item j-skeleton-item-large",
|
|
71
|
+
style: {
|
|
72
|
+
"width": "300px"
|
|
73
|
+
}
|
|
74
|
+
}, null, -1 /* CACHED */)), _createElementVNode("div", _hoisted_4, [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, i => {
|
|
75
|
+
return _createElementVNode("div", {
|
|
76
|
+
key: i,
|
|
77
|
+
class: "j-skeleton-desc-item"
|
|
78
|
+
}, [_createVNode(Item, {
|
|
79
|
+
active: __props.active,
|
|
80
|
+
size: "small",
|
|
81
|
+
width: "40%"
|
|
82
|
+
}, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
|
|
83
|
+
active: __props.active,
|
|
84
|
+
size: "small",
|
|
85
|
+
width: "60%"
|
|
86
|
+
}, null, 8 /* PROPS */, ["active"])]);
|
|
87
|
+
}), 64 /* STABLE_FRAGMENT */))])]);
|
|
88
|
+
}), 64 /* STABLE_FRAGMENT */))], 2 /* CLASS */));
|
|
24
89
|
};
|
|
25
90
|
}
|
|
26
|
-
});
|
|
91
|
+
});
|
|
92
|
+
export default __sfc_main__;
|
|
@@ -1,26 +1,76 @@
|
|
|
1
|
-
import { defineComponent
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
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";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "j-skeleton-box"
|
|
5
|
+
};
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
class: "j-skeleton-desc"
|
|
8
|
+
};
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
style: {
|
|
11
|
+
"margin-top": "16px"
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_4 = {
|
|
15
|
+
class: "j-skeleton-desc-content",
|
|
16
|
+
style: {
|
|
17
|
+
"grid-template-columns": "repeat(2, 1fr)"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
import { computed } from 'vue';
|
|
2
21
|
import Item from './Item.js';
|
|
3
22
|
import useSkeletonStyle from '../style';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Item
|
|
23
|
+
const __sfc_main__ = _defineComponent({
|
|
24
|
+
...{
|
|
25
|
+
name: 'JSkeletonDrawer'
|
|
8
26
|
},
|
|
27
|
+
__name: 'Drawer',
|
|
9
28
|
props: {
|
|
10
29
|
active: {
|
|
11
30
|
type: Boolean,
|
|
31
|
+
required: false,
|
|
12
32
|
default: true
|
|
13
33
|
},
|
|
14
34
|
loading: {
|
|
15
35
|
type: Boolean,
|
|
36
|
+
required: false,
|
|
16
37
|
default: true
|
|
17
38
|
}
|
|
18
39
|
},
|
|
19
|
-
setup(
|
|
40
|
+
setup(__props) {
|
|
41
|
+
const props = __props;
|
|
20
42
|
const prefixCls = computed(() => 'j-skeleton');
|
|
21
43
|
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
22
|
-
return {
|
|
23
|
-
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return _openBlock(), _createElementBlock(_Fragment, null, [!__props.loading ? _renderSlot(_ctx.$slots, "default", {
|
|
46
|
+
key: 0
|
|
47
|
+
}) : _createCommentVNode("v-if", true), _createElementVNode("div", {
|
|
48
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
49
|
+
}, [_createVNode(Item, {
|
|
50
|
+
active: __props.active,
|
|
51
|
+
width: "70%"
|
|
52
|
+
}, null, 8 /* PROPS */, ["active"]), _createElementVNode("div", _hoisted_1, [_createVNode(Item, {
|
|
53
|
+
active: __props.active,
|
|
54
|
+
size: "small",
|
|
55
|
+
width: "35%"
|
|
56
|
+
}, null, 8 /* PROPS */, ["active"])]), _createElementVNode("div", _hoisted_2, [_createElementVNode("div", _hoisted_3, [_createVNode(Item, {
|
|
57
|
+
active: __props.active,
|
|
58
|
+
width: "300px"
|
|
59
|
+
}, null, 8 /* PROPS */, ["active"])]), _createElementVNode("div", _hoisted_4, [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, i => {
|
|
60
|
+
return _createElementVNode("div", {
|
|
61
|
+
key: i,
|
|
62
|
+
class: "j-skeleton-desc-item"
|
|
63
|
+
}, [_createVNode(Item, {
|
|
64
|
+
active: __props.active,
|
|
65
|
+
size: "small",
|
|
66
|
+
width: "40%"
|
|
67
|
+
}, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
|
|
68
|
+
active: __props.active,
|
|
69
|
+
size: "small",
|
|
70
|
+
width: "60%"
|
|
71
|
+
}, null, 8 /* PROPS */, ["active"])]);
|
|
72
|
+
}), 64 /* STABLE_FRAGMENT */))])])], 2 /* CLASS */)], 64 /* STABLE_FRAGMENT */);
|
|
24
73
|
};
|
|
25
74
|
}
|
|
26
|
-
});
|
|
75
|
+
});
|
|
76
|
+
export default __sfc_main__;
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { defineComponent
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
3
|
+
import { computed } from 'vue';
|
|
2
4
|
import useSkeletonStyle from '../style';
|
|
3
|
-
|
|
5
|
+
const __sfc_main__ = _defineComponent({
|
|
6
|
+
__name: 'Item',
|
|
4
7
|
props: {
|
|
5
8
|
active: {
|
|
6
9
|
type: Boolean,
|
|
10
|
+
required: false,
|
|
7
11
|
default: true
|
|
8
12
|
},
|
|
9
13
|
size: {
|
|
10
14
|
type: [String, Number],
|
|
15
|
+
required: false,
|
|
11
16
|
default: 'default'
|
|
12
17
|
},
|
|
13
18
|
width: {
|
|
14
19
|
type: [String, Number],
|
|
20
|
+
required: false,
|
|
15
21
|
default: '100%'
|
|
16
22
|
}
|
|
17
23
|
},
|
|
18
|
-
setup(
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const props = __props;
|
|
19
26
|
const prefixCls = computed(() => 'j-skeleton');
|
|
20
27
|
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
21
28
|
const _className = computed(() => {
|
|
@@ -47,9 +54,12 @@ export default defineComponent({
|
|
|
47
54
|
};
|
|
48
55
|
}
|
|
49
56
|
});
|
|
50
|
-
return {
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return _openBlock(), _createElementBlock("div", {
|
|
59
|
+
class: _normalizeClass(_className.value),
|
|
60
|
+
style: _normalizeStyle(sizeStyle.value)
|
|
61
|
+
}, null, 6 /* CLASS, STYLE */);
|
|
53
62
|
};
|
|
54
63
|
}
|
|
55
|
-
});
|
|
64
|
+
});
|
|
65
|
+
export default __sfc_main__;
|
|
@@ -1,29 +1,45 @@
|
|
|
1
|
-
import { defineComponent } from 'vue';
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { renderSlot as _renderSlot, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
|
|
2
3
|
import ListCard from './ListCard.js';
|
|
3
4
|
import ListTable from './ListTable.js';
|
|
4
5
|
import Search from './Search.js';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
ListCard,
|
|
9
|
-
ListTable,
|
|
10
|
-
Search
|
|
6
|
+
const __sfc_main__ = _defineComponent({
|
|
7
|
+
...{
|
|
8
|
+
name: 'JSkeletonList'
|
|
11
9
|
},
|
|
10
|
+
__name: 'List',
|
|
12
11
|
props: {
|
|
13
12
|
active: {
|
|
14
13
|
type: Boolean,
|
|
14
|
+
required: false,
|
|
15
15
|
default: true
|
|
16
16
|
},
|
|
17
17
|
loading: {
|
|
18
18
|
type: Boolean,
|
|
19
|
+
required: false,
|
|
19
20
|
default: true
|
|
20
21
|
},
|
|
21
22
|
mode: {
|
|
22
|
-
type:
|
|
23
|
+
type: String,
|
|
24
|
+
required: false,
|
|
23
25
|
default: 'TABLE'
|
|
24
26
|
}
|
|
25
27
|
},
|
|
26
|
-
setup(
|
|
27
|
-
|
|
28
|
+
setup(__props) {
|
|
29
|
+
const props = __props;
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return !__props.loading ? _renderSlot(_ctx.$slots, "default", {
|
|
32
|
+
key: 0
|
|
33
|
+
}) : (_openBlock(), _createElementBlock(_Fragment, {
|
|
34
|
+
key: 1
|
|
35
|
+
}, [_createVNode(Search, {
|
|
36
|
+
active: ""
|
|
37
|
+
}), __props.mode !== 'TABLE' ? (_openBlock(), _createBlock(ListCard, {
|
|
38
|
+
key: 0
|
|
39
|
+
})) : (_openBlock(), _createBlock(ListTable, {
|
|
40
|
+
key: 1
|
|
41
|
+
}))], 64 /* STABLE_FRAGMENT */));
|
|
42
|
+
};
|
|
28
43
|
}
|
|
29
|
-
});
|
|
44
|
+
});
|
|
45
|
+
export default __sfc_main__;
|
|
@@ -1,28 +1,54 @@
|
|
|
1
|
-
import { defineComponent
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
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";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "j-skeleton-flex"
|
|
5
|
+
};
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
class: "j-skeleton-cards"
|
|
8
|
+
};
|
|
9
|
+
import { computed } from 'vue';
|
|
2
10
|
import Item from './Item.js';
|
|
3
11
|
import ListCardItem from './ListCardItem.js';
|
|
4
12
|
import useSkeletonStyle from '../style';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Item,
|
|
9
|
-
ListCardItem
|
|
13
|
+
const __sfc_main__ = _defineComponent({
|
|
14
|
+
...{
|
|
15
|
+
name: 'JSkeletonListCard'
|
|
10
16
|
},
|
|
17
|
+
__name: 'ListCard',
|
|
11
18
|
props: {
|
|
12
19
|
active: {
|
|
13
20
|
type: Boolean,
|
|
21
|
+
required: false,
|
|
14
22
|
default: true
|
|
15
23
|
},
|
|
16
24
|
loading: {
|
|
17
25
|
type: Boolean,
|
|
26
|
+
required: false,
|
|
18
27
|
default: true
|
|
19
28
|
}
|
|
20
29
|
},
|
|
21
|
-
setup(
|
|
30
|
+
setup(__props) {
|
|
31
|
+
const props = __props;
|
|
22
32
|
const prefixCls = computed(() => 'j-skeleton');
|
|
23
33
|
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
24
|
-
return {
|
|
25
|
-
|
|
34
|
+
return (_ctx, _cache) => {
|
|
35
|
+
return !__props.loading ? _renderSlot(_ctx.$slots, "default", {
|
|
36
|
+
key: 0
|
|
37
|
+
}) : (_openBlock(), _createElementBlock("div", {
|
|
38
|
+
key: 1,
|
|
39
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
40
|
+
}, [_createElementVNode("div", _hoisted_1, [_createVNode(Item, {
|
|
41
|
+
active: __props.active,
|
|
42
|
+
width: "100px"
|
|
43
|
+
}, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
|
|
44
|
+
active: __props.active,
|
|
45
|
+
width: "100px"
|
|
46
|
+
}, null, 8 /* PROPS */, ["active"])]), _createElementVNode("div", _hoisted_2, [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(9, item => {
|
|
47
|
+
return _createVNode(ListCardItem, {
|
|
48
|
+
key: item
|
|
49
|
+
});
|
|
50
|
+
}), 64 /* STABLE_FRAGMENT */))])], 2 /* CLASS */));
|
|
26
51
|
};
|
|
27
52
|
}
|
|
28
|
-
});
|
|
53
|
+
});
|
|
54
|
+
export default __sfc_main__;
|
|
@@ -1,20 +1,83 @@
|
|
|
1
|
-
import { defineComponent } from 'vue';
|
|
1
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
+
import { createElementVNode as _createElementVNode, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "j-skeleton-card"
|
|
5
|
+
};
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
class: "j-skeleton-card-content"
|
|
8
|
+
};
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
class: "j-skeleton-right"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_4 = {
|
|
13
|
+
style: {
|
|
14
|
+
"margin-bottom": "16px"
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const _hoisted_5 = {
|
|
18
|
+
class: "j-skeleton-right-content"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_6 = {
|
|
21
|
+
class: "j-skeleton-right-content-item"
|
|
22
|
+
};
|
|
23
|
+
const _hoisted_7 = {
|
|
24
|
+
class: "j-skeleton-right-content-item"
|
|
25
|
+
};
|
|
26
|
+
const _hoisted_8 = {
|
|
27
|
+
class: "j-skeleton-action"
|
|
28
|
+
};
|
|
2
29
|
import Item from './Item.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Item
|
|
6
|
-
},
|
|
30
|
+
const __sfc_main__ = _defineComponent({
|
|
31
|
+
__name: 'ListCardItem',
|
|
7
32
|
props: {
|
|
8
33
|
active: {
|
|
9
34
|
type: Boolean,
|
|
35
|
+
required: false,
|
|
10
36
|
default: true
|
|
11
37
|
},
|
|
12
38
|
loading: {
|
|
13
39
|
type: Boolean,
|
|
40
|
+
required: false,
|
|
14
41
|
default: true
|
|
15
42
|
}
|
|
16
43
|
},
|
|
17
|
-
setup(
|
|
18
|
-
|
|
44
|
+
setup(__props) {
|
|
45
|
+
const props = __props;
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return _openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("div", _hoisted_2, [_cache[0] || (_cache[0] = _createElementVNode("div", {
|
|
48
|
+
class: "j-skeleton-item j-skeleton-image"
|
|
49
|
+
}, null, -1 /* CACHED */)), _createElementVNode("div", _hoisted_3, [_createElementVNode("div", _hoisted_4, [_createVNode(Item, {
|
|
50
|
+
active: __props.active,
|
|
51
|
+
size: "small",
|
|
52
|
+
width: "200px"
|
|
53
|
+
}, null, 8 /* PROPS */, ["active"])]), _createVNode(Item, {
|
|
54
|
+
active: __props.active,
|
|
55
|
+
width: "50%"
|
|
56
|
+
}, null, 8 /* PROPS */, ["active"]), _createElementVNode("div", _hoisted_5, [_createElementVNode("div", _hoisted_6, [_createVNode(Item, {
|
|
57
|
+
active: __props.active,
|
|
58
|
+
size: "small",
|
|
59
|
+
width: "100%"
|
|
60
|
+
}, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
|
|
61
|
+
active: __props.active,
|
|
62
|
+
size: "small",
|
|
63
|
+
width: "90%"
|
|
64
|
+
}, null, 8 /* PROPS */, ["active"])]), _createElementVNode("div", _hoisted_7, [_createVNode(Item, {
|
|
65
|
+
active: __props.active,
|
|
66
|
+
size: "small",
|
|
67
|
+
width: "100%"
|
|
68
|
+
}, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
|
|
69
|
+
active: __props.active,
|
|
70
|
+
size: "small",
|
|
71
|
+
width: "90%"
|
|
72
|
+
}, null, 8 /* PROPS */, ["active"])])])])]), _createElementVNode("div", _hoisted_8, [_createVNode(Item, {
|
|
73
|
+
active: __props.active
|
|
74
|
+
}, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
|
|
75
|
+
active: __props.active
|
|
76
|
+
}, null, 8 /* PROPS */, ["active"]), _createVNode(Item, {
|
|
77
|
+
active: __props.active,
|
|
78
|
+
width: "100px"
|
|
79
|
+
}, null, 8 /* PROPS */, ["active"])])]);
|
|
80
|
+
};
|
|
19
81
|
}
|
|
20
|
-
});
|
|
82
|
+
});
|
|
83
|
+
export default __sfc_main__;
|