@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,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,15 @@
|
|
|
1
|
+
import JSkeletonListTable from './components/ListTable.js';
|
|
2
|
+
import JSkeletonListCard from './components/ListCard.js';
|
|
3
|
+
import JSkeletonTree from './components/Tree.js';
|
|
4
|
+
import JSkeletonDetail from './components/Detail.js';
|
|
5
|
+
import JSkeletonDrawer from './components/Drawer.js';
|
|
6
|
+
import JSkeletonDashboardCard from './components/DashBoardCard.js';
|
|
7
|
+
import JSkeletonDashboardChart from './components/DashBoardChart.js';
|
|
8
|
+
import JSkeletonList from './components/List.js';
|
|
9
|
+
import JSkeletonPage from './components/Page.js';
|
|
10
|
+
import Skeleton from './skeleton.js';
|
|
11
|
+
export { JSkeletonDashboardCard, JSkeletonDashboardChart, JSkeletonListTable, JSkeletonListCard, JSkeletonPage, JSkeletonTree, JSkeletonDetail, JSkeletonDrawer, JSkeletonList };
|
|
12
|
+
Skeleton.install = function (app) {
|
|
13
|
+
app.component(Skeleton.name, Skeleton);
|
|
14
|
+
};
|
|
15
|
+
export default Skeleton;
|
|
@@ -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__;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
@j-skeleton-size-lg: 36px;
|
|
2
|
+
@j-skeleton-size-sm: 16px;
|
|
3
|
+
@j-skeleton-size: 24px;
|
|
4
|
+
@j-skeleton-border-radius: 8px;
|
|
5
|
+
@j-skeleton-bg: #f0f2f5;
|
|
6
|
+
@j-skeleton-bg-1: #e6e8eb;
|
|
7
|
+
@j-skeleton-border: 4px solid @j-skeleton-bg;
|
|
8
|
+
|
|
9
|
+
.j-skeleton-flex {
|
|
10
|
+
display: flex;
|
|
11
|
+
gap: 24px;
|
|
12
|
+
margin-bottom: 16px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.j-skeleton-flex-between {
|
|
16
|
+
.j-skeleton-flex();
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.j-skeleton-flex-column {
|
|
22
|
+
.j-skeleton-flex();
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.j-skeleton {
|
|
27
|
+
height: 100%;
|
|
28
|
+
&-item {
|
|
29
|
+
background: linear-gradient(90deg, @j-skeleton-bg 25%, @j-skeleton-bg-1 50%, @j-skeleton-bg 75%);
|
|
30
|
+
background-size: 400% 100%;
|
|
31
|
+
border-radius: @j-skeleton-border-radius;
|
|
32
|
+
height: @j-skeleton-size;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-item-active {
|
|
36
|
+
animation: wave 1.8s ease-in-out infinite;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-item-lg {
|
|
40
|
+
height: @j-skeleton-size-lg;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-item-sm {
|
|
44
|
+
height: @j-skeleton-size-sm;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@keyframes wave {
|
|
48
|
+
0% { background-position: 200% 0 }
|
|
49
|
+
100% { background-position: -200% 0 }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-dashboard-card {
|
|
53
|
+
.j-skeleton-flex();
|
|
54
|
+
border: @j-skeleton-border;
|
|
55
|
+
border-radius: @j-skeleton-border-radius;
|
|
56
|
+
height: 100%;
|
|
57
|
+
padding: 24px;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-tabs {
|
|
62
|
+
display: flex;
|
|
63
|
+
gap: 16px;
|
|
64
|
+
margin: 60px 0 20px 0;
|
|
65
|
+
border-bottom: @j-skeleton-border;
|
|
66
|
+
padding: 16px 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-desc {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
margin-bottom: 24px;
|
|
73
|
+
|
|
74
|
+
&-content {
|
|
75
|
+
display: grid;
|
|
76
|
+
grid-template-columns: repeat(3, 1fr);
|
|
77
|
+
gap: 36px;
|
|
78
|
+
margin-top: 24px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-item {
|
|
82
|
+
display: flex;
|
|
83
|
+
gap: 16px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-box {
|
|
88
|
+
border-bottom: @j-skeleton-border;
|
|
89
|
+
padding: 16px 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-table-cell {
|
|
93
|
+
display: grid;
|
|
94
|
+
grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) 200px;
|
|
95
|
+
gap: 24px;
|
|
96
|
+
padding: 12px 6px;
|
|
97
|
+
border-radius: 8px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-table-header {
|
|
101
|
+
background-color: lightgrey;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-table-action {
|
|
105
|
+
width: 200px;
|
|
106
|
+
display: grid;
|
|
107
|
+
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
108
|
+
gap: 24px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-cards {
|
|
112
|
+
display: grid;
|
|
113
|
+
grid-template-columns: repeat(3, 1fr);
|
|
114
|
+
gap: 16px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-card {
|
|
118
|
+
.j-skeleton-card-content {
|
|
119
|
+
display: flex;
|
|
120
|
+
gap: 16px;
|
|
121
|
+
border: 2px solid #f0f2f5;
|
|
122
|
+
border-radius: 8px;
|
|
123
|
+
padding: 24px;
|
|
124
|
+
margin-bottom: 16px;
|
|
125
|
+
|
|
126
|
+
.j-skeleton-image {
|
|
127
|
+
width: 100px;
|
|
128
|
+
height: 100px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.j-skeleton-right {
|
|
132
|
+
flex: 1;
|
|
133
|
+
min-width: 200px;
|
|
134
|
+
|
|
135
|
+
.j-skeleton-right-content {
|
|
136
|
+
display: flex;
|
|
137
|
+
gap: 16px;
|
|
138
|
+
margin-top: 16px;
|
|
139
|
+
|
|
140
|
+
.j-skeleton-right-content-item {
|
|
141
|
+
flex: 1;
|
|
142
|
+
min-width: 100px;
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
gap: 16px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.j-skeleton-action {
|
|
152
|
+
display: flex;
|
|
153
|
+
justify-content: flex-end;
|
|
154
|
+
gap: 16px;
|
|
155
|
+
|
|
156
|
+
.btn {
|
|
157
|
+
flex: 1;
|
|
158
|
+
min-width: 100px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.delete {
|
|
162
|
+
flex: 0 0 100px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './Skeleton.less';
|
package/es/Title/style/index.css
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2
|
+
/* stylelint-disable no-duplicate-selectors */
|
|
3
|
+
/* stylelint-disable */
|
|
4
|
+
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
1
5
|
.j-title {
|
|
2
6
|
display: flex;
|
|
3
7
|
align-items: center;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import 'ant-design-vue/es/style/themes/index.less';
|
|
2
|
+
|
|
1
3
|
.j-title {
|
|
2
4
|
display: flex;
|
|
3
5
|
align-items: center;
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
left: 0;
|
|
18
20
|
width: 4px;
|
|
19
21
|
height: 100%;
|
|
20
|
-
background-color:
|
|
22
|
+
background-color: @primary-color;
|
|
21
23
|
border-radius: 0 3px 3px 0;
|
|
22
24
|
content: ' ';
|
|
23
25
|
}
|
package/es/components.js
CHANGED
|
@@ -20,4 +20,5 @@ export { default as EditTable } from './EditTable';
|
|
|
20
20
|
export { default as Markdown } from './Markdown';
|
|
21
21
|
export { default as AutoComplete } from './AutoComplete';
|
|
22
22
|
export { default as Title } from './Title';
|
|
23
|
-
export { default as FlameGraph } from './FlameGraph';
|
|
23
|
+
export { default as FlameGraph } from './FlameGraph';
|
|
24
|
+
export { default as Skeleton } from './Skeleton';
|