@jetlinks-web/components 3.0.1-rc → 3.0.1
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/AutoComplete/AutoComplete.js +13 -9
- package/es/BadgeStatus/Badge.js +1 -2
- package/es/BadgeStatus/color.js +3 -3
- package/es/CardSelect/CardSelect.js +23 -13
- package/es/CardSelect/style/index.js +25 -1
- package/es/CheckButton/CheckButton.js +12 -4
- package/es/CheckButton/style/index.js +41 -1
- package/es/DragModal/DragModal.js +14 -8
- package/es/DragModal/style/index.js +64 -1
- package/es/EditTable/Body.js +10 -3
- package/es/EditTable/EditTable.js +13 -7
- package/es/EditTable/FormItem.js +18 -19
- package/es/EditTable/Header.js +16 -6
- package/es/EditTable/components/ContextMenu/Menu.js +11 -5
- package/es/EditTable/components/Search/search.js +1 -2
- package/es/EditTable/components/Search/sort.js +1 -3
- package/es/EditTable/group.js +23 -18
- package/es/EditTable/hooks/useValidate.js +1 -1
- package/es/EditTable/style/body.js +53 -0
- package/es/EditTable/style/form.js +24 -0
- package/es/EditTable/style/group.js +25 -0
- package/es/EditTable/style/header.js +58 -0
- package/es/EditTable/style/index.js +42 -1
- package/es/EditTable/style/menu.js +27 -0
- package/es/EditTable/style/table.js +46 -0
- package/es/EditTable/utils.js +30 -3
- package/es/Ellipsis/Ellipsis.js +10 -2
- package/es/Ellipsis/style/index.js +24 -1
- package/es/FullPage/FullPage.js +1 -2
- package/es/LocaleProvider/index.js +1 -2
- package/es/PermissionButton/index.js +6 -7
- package/es/ProLayout/Basic/BasicLayout.js +45 -41
- package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
- package/es/ProLayout/Basic/Header.js +3 -7
- package/es/ProLayout/Basic/HeaderStyle.js +10 -0
- package/es/ProLayout/PageContainer/index.js +21 -17
- package/es/ProLayout/PageContainer/style.js +46 -0
- package/es/ProLayout/SiderMenu/BaseMenu.js +18 -42
- package/es/ProLayout/SiderMenu/SiderMenu.js +24 -36
- package/es/ProLayout/SiderMenu/style.js +166 -0
- package/es/ProLayout/TopHeader/index.js +13 -12
- package/es/ProLayout/TopHeader/style.js +126 -0
- package/es/ProLayout/style/index.js +7 -1
- package/es/ProLayout/util.js +5 -5
- package/es/ProTable/Alert.js +12 -4
- package/es/ProTable/Content.js +108 -28
- package/es/ProTable/Header.js +21 -11
- package/es/ProTable/Pagination.js +12 -4
- package/es/ProTable/ProTable.js +46 -34
- package/es/ProTable/hooks/index.js +2 -0
- package/es/ProTable/hooks/useTableInject.js +5 -0
- package/es/ProTable/hooks/useTableSelection.js +95 -0
- package/es/ProTable/setting.js +1 -1
- package/es/ProTable/style/index.js +109 -1
- package/es/RadioButton/RadioButton.js +10 -4
- package/es/RadioButton/style/index.js +23 -1
- package/es/Scrollbar/Scrollbar.js +10 -3
- package/es/Scrollbar/Thumb.js +36 -25
- package/es/Scrollbar/style/index.js +63 -1
- package/es/Search/Advanced/History.js +23 -16
- package/es/Search/Advanced/SaveHistory.js +1 -2
- package/es/Search/Advanced/index.js +212 -292
- package/es/Search/Item.js +175 -415
- package/es/Search/Search.js +78 -172
- package/es/Search/hooks/index.js +108 -1
- package/es/Search/hooks/useRouteQuery.js +57 -0
- package/es/Search/setting.js +132 -14
- package/es/Search/style/index.js +4 -2
- package/es/Search/style/item.js +28 -0
- package/es/Search/style/search.js +133 -0
- package/es/Search/util.js +116 -124
- package/es/Skeleton/components/DashBoardCard.js +19 -12
- package/es/Skeleton/components/DashBoardChart.js +48 -45
- package/es/Skeleton/components/Detail.js +27 -21
- package/es/Skeleton/components/Drawer.js +23 -14
- package/es/Skeleton/components/Item.js +9 -1
- package/es/Skeleton/components/List.js +0 -1
- package/es/Skeleton/components/ListCard.js +20 -13
- package/es/Skeleton/components/ListCardItem.js +12 -13
- package/es/Skeleton/components/ListTable.js +19 -10
- package/es/Skeleton/components/Page.js +0 -1
- package/es/Skeleton/components/Tree.js +21 -14
- package/es/Skeleton/skeleton.js +17 -8
- package/es/Skeleton/style/index.js +132 -1
- package/es/Title/style/index.js +29 -1
- package/es/Title/title.js +13 -5
- package/es/ValueItem/ValueItem.js +44 -39
- package/es/components.js +1 -5
- package/es/locale/en-US.js +3 -7
- package/es/locale/zh-CN.js +3 -7
- package/es/style/index.js +0 -3
- package/es/style/styleRegister.js +21 -0
- package/es/style/variable.js +4 -0
- package/es/style.js +0 -13
- package/lib/AutoComplete/AutoComplete.js +13 -9
- package/lib/BadgeStatus/Badge.js +1 -2
- package/lib/BadgeStatus/color.js +3 -3
- package/lib/CardSelect/CardSelect.js +23 -13
- package/lib/CardSelect/style/index.js +30 -1
- package/lib/CheckButton/CheckButton.js +12 -4
- package/lib/CheckButton/style/index.js +46 -1
- package/lib/DragModal/DragModal.js +14 -8
- package/lib/DragModal/style/index.js +69 -1
- package/lib/EditTable/Body.js +10 -3
- package/lib/EditTable/EditTable.js +13 -7
- package/lib/EditTable/FormItem.js +18 -19
- package/lib/EditTable/Header.js +16 -6
- package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
- package/lib/EditTable/components/Search/search.js +1 -2
- package/lib/EditTable/components/Search/sort.js +1 -3
- package/lib/EditTable/group.js +23 -18
- package/lib/EditTable/hooks/useValidate.js +1 -1
- package/lib/EditTable/style/body.js +60 -0
- package/lib/EditTable/style/form.js +31 -0
- package/lib/EditTable/style/group.js +32 -0
- package/lib/EditTable/style/header.js +65 -0
- package/lib/EditTable/style/index.js +47 -1
- package/lib/EditTable/style/menu.js +33 -0
- package/lib/EditTable/style/table.js +52 -0
- package/lib/EditTable/utils.js +31 -3
- package/lib/Ellipsis/Ellipsis.js +10 -2
- package/lib/Ellipsis/style/index.js +29 -1
- package/lib/FullPage/FullPage.js +1 -2
- package/lib/Icon/icon.js +1 -2
- package/lib/LocaleProvider/index.js +1 -2
- package/lib/PermissionButton/index.js +6 -7
- package/lib/ProLayout/Basic/BasicLayout.js +45 -42
- package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
- package/lib/ProLayout/Basic/Header.js +2 -6
- package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
- package/lib/ProLayout/PageContainer/index.js +19 -15
- package/lib/ProLayout/PageContainer/style.js +53 -0
- package/lib/ProLayout/SiderMenu/BaseMenu.js +19 -42
- package/lib/ProLayout/SiderMenu/SiderMenu.js +24 -37
- package/lib/ProLayout/SiderMenu/style.js +173 -0
- package/lib/ProLayout/TopHeader/index.js +14 -12
- package/lib/ProLayout/TopHeader/style.js +133 -0
- package/lib/ProLayout/style/index.js +12 -1
- package/lib/ProLayout/util.js +5 -5
- package/lib/ProTable/Alert.js +12 -4
- package/lib/ProTable/Content.js +108 -28
- package/lib/ProTable/Header.js +21 -11
- package/lib/ProTable/Pagination.js +12 -4
- package/lib/ProTable/ProTable.js +46 -34
- package/lib/ProTable/hooks/index.js +27 -0
- package/lib/ProTable/hooks/useTableInject.js +11 -0
- package/lib/ProTable/hooks/useTableSelection.js +102 -0
- package/lib/ProTable/setting.js +1 -1
- package/lib/ProTable/style/index.js +114 -1
- package/lib/RadioButton/RadioButton.js +10 -4
- package/lib/RadioButton/style/index.js +28 -1
- package/lib/Scrollbar/Scrollbar.js +10 -3
- package/lib/Scrollbar/Thumb.js +36 -25
- package/lib/Scrollbar/style/index.js +68 -1
- package/lib/Search/Advanced/History.js +23 -16
- package/lib/Search/Advanced/SaveHistory.js +1 -2
- package/lib/Search/Advanced/index.js +212 -292
- package/lib/Search/Item.js +175 -415
- package/lib/Search/Search.js +78 -172
- package/lib/Search/hooks/index.js +130 -1
- package/lib/Search/hooks/useRouteQuery.js +64 -0
- package/lib/Search/setting.js +133 -15
- package/lib/Search/style/index.js +9 -2
- package/lib/Search/style/item.js +35 -0
- package/lib/Search/style/search.js +140 -0
- package/lib/Search/util.js +116 -124
- package/lib/Skeleton/components/DashBoardCard.js +19 -12
- package/lib/Skeleton/components/DashBoardChart.js +48 -45
- package/lib/Skeleton/components/Detail.js +27 -21
- package/lib/Skeleton/components/Drawer.js +23 -14
- package/lib/Skeleton/components/Item.js +9 -1
- package/lib/Skeleton/components/List.js +0 -1
- package/lib/Skeleton/components/ListCard.js +20 -13
- package/lib/Skeleton/components/ListCardItem.js +12 -13
- package/lib/Skeleton/components/ListTable.js +19 -10
- package/lib/Skeleton/components/Page.js +0 -1
- package/lib/Skeleton/components/Tree.js +21 -14
- package/lib/Skeleton/skeleton.js +17 -8
- package/lib/Skeleton/style/index.js +137 -1
- package/lib/Title/style/index.js +34 -1
- package/lib/Title/title.js +13 -5
- package/lib/ValueItem/ValueItem.js +44 -39
- package/lib/components.js +1 -30
- package/lib/index.js +1 -2
- package/lib/locale/en-US.js +3 -7
- package/lib/locale/zh-CN.js +3 -7
- package/lib/style/components.less +0 -1
- package/lib/style/index.js +1 -4
- package/lib/style/styleRegister.js +28 -0
- package/lib/style/variable.js +10 -0
- package/lib/style.js +1 -15
- package/package.json +170 -173
- package/es/AMap/Map.js +0 -133
- package/es/AMap/index.js +0 -5
- package/es/AMap/util.js +0 -56
- package/es/CardSelect/style/index.css +0 -24
- package/es/CardSelect/style/index.less +0 -26
- package/es/CheckButton/style/index.css +0 -37
- package/es/CheckButton/style/index.less +0 -40
- package/es/DragModal/style/index.css +0 -82
- package/es/DragModal/style/index.less +0 -97
- package/es/Echarts/Echarts.js +0 -48
- package/es/Echarts/index.js +0 -5
- package/es/EditTable/style/body.less +0 -66
- package/es/EditTable/style/form.less +0 -33
- package/es/EditTable/style/group.less +0 -32
- package/es/EditTable/style/header.less +0 -77
- package/es/EditTable/style/index.css +0 -267
- package/es/EditTable/style/index.less +0 -41
- package/es/EditTable/style/menu.less +0 -25
- package/es/EditTable/style/table.less +0 -47
- package/es/Ellipsis/style/index.css +0 -17
- package/es/Ellipsis/style/index.less +0 -20
- package/es/FlameGraph/FlameGraph.js +0 -136
- package/es/FlameGraph/index.js +0 -5
- package/es/FlameGraph/style/index.css +0 -43
- package/es/FlameGraph/style/index.js +0 -1
- package/es/FlameGraph/style/index.less +0 -52
- package/es/ProLayout/Basic/BasicLayout.less +0 -66
- package/es/ProLayout/Basic/Header.less +0 -8
- package/es/ProLayout/PageContainer/index.less +0 -103
- package/es/ProLayout/SiderMenu/index.less +0 -231
- package/es/ProLayout/TopHeader/index.less +0 -174
- package/es/ProLayout/style/default.less +0 -4
- package/es/ProLayout/style/style.less +0 -7
- package/es/ProTable/style/ProTable.less +0 -139
- package/es/RadioButton/style/index.css +0 -20
- package/es/RadioButton/style/index.less +0 -19
- package/es/Scrollbar/style/index.css +0 -65
- package/es/Scrollbar/style/index.less +0 -83
- package/es/Search/style/Item.less +0 -33
- package/es/Search/style/Search.less +0 -179
- package/es/Skeleton/style/Skeleton.less +0 -166
- package/es/Title/style/index.css +0 -27
- package/es/Title/style/index.less +0 -27
- package/es/style/index.css +0 -5375
- package/es/style/index.less +0 -14
- package/es/style/variable.css +0 -4
- package/es/style/variable.less +0 -4
- package/lib/AMap/Map.js +0 -133
- package/lib/AMap/index.js +0 -12
- package/lib/AMap/util.js +0 -62
- package/lib/CardSelect/style/index.css +0 -24
- package/lib/CardSelect/style/index.less +0 -26
- package/lib/CheckButton/style/index.css +0 -37
- package/lib/CheckButton/style/index.less +0 -40
- package/lib/DragModal/style/index.css +0 -82
- package/lib/DragModal/style/index.less +0 -97
- package/lib/Echarts/Echarts.js +0 -48
- package/lib/Echarts/index.js +0 -12
- package/lib/EditTable/style/body.less +0 -66
- package/lib/EditTable/style/form.less +0 -33
- package/lib/EditTable/style/group.less +0 -32
- package/lib/EditTable/style/header.less +0 -77
- package/lib/EditTable/style/index.css +0 -267
- package/lib/EditTable/style/index.less +0 -41
- package/lib/EditTable/style/menu.less +0 -25
- package/lib/EditTable/style/table.less +0 -47
- package/lib/Ellipsis/style/index.css +0 -17
- package/lib/Ellipsis/style/index.less +0 -20
- package/lib/FlameGraph/FlameGraph.js +0 -136
- package/lib/FlameGraph/index.js +0 -12
- package/lib/FlameGraph/style/index.css +0 -43
- package/lib/FlameGraph/style/index.js +0 -3
- package/lib/FlameGraph/style/index.less +0 -52
- package/lib/ProLayout/Basic/BasicLayout.less +0 -66
- package/lib/ProLayout/Basic/Header.less +0 -8
- package/lib/ProLayout/PageContainer/index.less +0 -103
- package/lib/ProLayout/SiderMenu/index.less +0 -231
- package/lib/ProLayout/TopHeader/index.less +0 -174
- package/lib/ProLayout/style/default.less +0 -4
- package/lib/ProLayout/style/style.less +0 -7
- package/lib/ProTable/style/ProTable.less +0 -139
- package/lib/RadioButton/style/index.css +0 -20
- package/lib/RadioButton/style/index.less +0 -19
- package/lib/Scrollbar/style/index.css +0 -65
- package/lib/Scrollbar/style/index.less +0 -83
- package/lib/Search/style/Item.less +0 -33
- package/lib/Search/style/Search.less +0 -179
- package/lib/Skeleton/style/Skeleton.less +0 -166
- package/lib/Title/style/index.css +0 -27
- package/lib/Title/style/index.less +0 -27
- package/lib/style/index.css +0 -5375
- package/lib/style/index.less +0 -14
- package/lib/style/variable.css +0 -4
- package/lib/style/variable.less +0 -4
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
"active": "props",
|
|
3
3
|
"loading": "props",
|
|
4
4
|
"Item": "setup-const",
|
|
5
|
-
"
|
|
5
|
+
"computed": "setup-const",
|
|
6
|
+
"useSkeletonStyle": "setup-maybe-ref",
|
|
7
|
+
"prefixCls": "setup-ref",
|
|
8
|
+
"wrapSSR": "setup-maybe-ref",
|
|
9
|
+
"hashId": "setup-maybe-ref",
|
|
6
10
|
"props": "setup-reactive-const"
|
|
7
11
|
} */
|
|
8
|
-
import { renderSlot as _renderSlot, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
9
|
-
const _hoisted_1 = {
|
|
10
|
-
|
|
11
|
-
class: "j-skeleton"
|
|
12
|
-
};
|
|
13
|
-
const _hoisted_2 = { class: "j-skeleton-dashboard-card" };
|
|
14
|
-
const _hoisted_3 = { style: { "min-height": "0", "flex": "1" } };
|
|
12
|
+
import { renderSlot as _renderSlot, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
13
|
+
const _hoisted_1 = { class: "j-skeleton-dashboard-card" };
|
|
14
|
+
const _hoisted_2 = { style: { "min-height": "0", "flex": "1" } };
|
|
15
15
|
import Item from './Item.js';
|
|
16
|
+
import { computed } from "vue";
|
|
17
|
+
import useSkeletonStyle from '../style';
|
|
16
18
|
const __sfc_main__ = Object.assign({
|
|
17
19
|
name: 'JSkeletonDashboardCard'
|
|
18
20
|
}, {
|
|
@@ -27,17 +29,22 @@ const __sfc_main__ = Object.assign({
|
|
|
27
29
|
}
|
|
28
30
|
},
|
|
29
31
|
setup(__props) {
|
|
32
|
+
const prefixCls = computed(() => 'j-skeleton');
|
|
33
|
+
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
30
34
|
const props = __props;
|
|
31
35
|
return (_ctx, _cache) => {
|
|
32
36
|
return (!__props.loading)
|
|
33
37
|
? _renderSlot(_ctx.$slots, "default", { key: 0 })
|
|
34
|
-
: (_openBlock(), _createElementBlock("div",
|
|
35
|
-
|
|
38
|
+
: (_openBlock(), _createElementBlock("div", {
|
|
39
|
+
key: 1,
|
|
40
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
41
|
+
}, [
|
|
42
|
+
_createElementVNode("div", _hoisted_1, [
|
|
36
43
|
_createVNode(Item, {
|
|
37
44
|
active: __props.active,
|
|
38
45
|
width: "50%"
|
|
39
46
|
}, null, 8 /* PROPS */, ["active"]),
|
|
40
|
-
_createElementVNode("div",
|
|
47
|
+
_createElementVNode("div", _hoisted_2, [
|
|
41
48
|
_createVNode(Item, {
|
|
42
49
|
active: __props.active,
|
|
43
50
|
size: "large",
|
|
@@ -50,7 +57,7 @@ const __sfc_main__ = Object.assign({
|
|
|
50
57
|
width: "100%"
|
|
51
58
|
}, null, 8 /* PROPS */, ["active"])
|
|
52
59
|
])
|
|
53
|
-
]));
|
|
60
|
+
], 2 /* CLASS */));
|
|
54
61
|
};
|
|
55
62
|
}
|
|
56
63
|
});
|
|
@@ -2,47 +2,25 @@
|
|
|
2
2
|
"active": "props",
|
|
3
3
|
"loading": "props",
|
|
4
4
|
"Item": "setup-const",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"computed": "setup-const",
|
|
6
|
+
"useSkeletonStyle": "setup-maybe-ref",
|
|
7
|
+
"props": "setup-reactive-const",
|
|
8
|
+
"prefixCls": "setup-ref",
|
|
9
|
+
"wrapSSR": "setup-maybe-ref",
|
|
10
|
+
"hashId": "setup-maybe-ref"
|
|
7
11
|
} */
|
|
8
|
-
import { renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
9
|
-
const _hoisted_1 = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const _hoisted_2 = { class: "j-skeleton-dashboard-card" };
|
|
14
|
-
const _hoisted_3 = { class: "j-skeleton-flex-between" };
|
|
15
|
-
const _hoisted_4 = { style: { "width": "100%", "height": "200px" } };
|
|
16
|
-
const _hoisted_5 = {
|
|
12
|
+
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";
|
|
13
|
+
const _hoisted_1 = { class: "j-skeleton-dashboard-card" };
|
|
14
|
+
const _hoisted_2 = { class: "j-skeleton-flex-between" };
|
|
15
|
+
const _hoisted_3 = { style: { "width": "100%", "height": "200px" } };
|
|
16
|
+
const _hoisted_4 = {
|
|
17
17
|
viewBox: "0 0 800 200",
|
|
18
18
|
preserveAspectRatio: "none",
|
|
19
19
|
style: { "width": "100%", "height": "100%", "display": "block" }
|
|
20
20
|
};
|
|
21
|
-
const _hoisted_6 = /*#__PURE__*/ _createElementVNode("path", {
|
|
22
|
-
d: "M0 150 L800 150",
|
|
23
|
-
stroke: "#f0f2f5",
|
|
24
|
-
"stroke-width": "4",
|
|
25
|
-
"stroke-opacity": "0.8"
|
|
26
|
-
}, null, -1 /* HOISTED */);
|
|
27
|
-
const _hoisted_7 = /*#__PURE__*/ _createElementVNode("path", {
|
|
28
|
-
d: "M0 150 L0 50",
|
|
29
|
-
stroke: "#f0f2f5",
|
|
30
|
-
"stroke-width": "4",
|
|
31
|
-
"stroke-opacity": "0.8"
|
|
32
|
-
}, null, -1 /* HOISTED */);
|
|
33
|
-
const _hoisted_8 = /*#__PURE__*/ _createElementVNode("path", {
|
|
34
|
-
d: "M0 100 C200 30, 600 170, 800 100",
|
|
35
|
-
stroke: "#f0f2f5",
|
|
36
|
-
fill: "none",
|
|
37
|
-
"stroke-width": "4"
|
|
38
|
-
}, null, -1 /* HOISTED */);
|
|
39
|
-
const _hoisted_9 = /*#__PURE__*/ _createElementVNode("path", {
|
|
40
|
-
d: "M0 120 C200 60, 600 140, 800 80",
|
|
41
|
-
stroke: "#f0f2f5",
|
|
42
|
-
fill: "none",
|
|
43
|
-
"stroke-width": "4"
|
|
44
|
-
}, null, -1 /* HOISTED */);
|
|
45
21
|
import Item from './Item.js';
|
|
22
|
+
import { computed } from "vue";
|
|
23
|
+
import useSkeletonStyle from '../style';
|
|
46
24
|
const __sfc_main__ = Object.assign({
|
|
47
25
|
name: 'JSkeletonDashboardChart'
|
|
48
26
|
}, {
|
|
@@ -58,12 +36,17 @@ const __sfc_main__ = Object.assign({
|
|
|
58
36
|
},
|
|
59
37
|
setup(__props) {
|
|
60
38
|
const props = __props;
|
|
39
|
+
const prefixCls = computed(() => 'j-skeleton');
|
|
40
|
+
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
61
41
|
return (_ctx, _cache) => {
|
|
62
42
|
return (!__props.loading)
|
|
63
43
|
? _renderSlot(_ctx.$slots, "default", { key: 0 })
|
|
64
|
-
: (_openBlock(), _createElementBlock("div",
|
|
65
|
-
|
|
66
|
-
|
|
44
|
+
: (_openBlock(), _createElementBlock("div", {
|
|
45
|
+
key: 1,
|
|
46
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
47
|
+
}, [
|
|
48
|
+
_createElementVNode("div", _hoisted_1, [
|
|
49
|
+
_createElementVNode("div", _hoisted_2, [
|
|
67
50
|
_createVNode(Item, {
|
|
68
51
|
active: __props.active,
|
|
69
52
|
width: "200px"
|
|
@@ -73,20 +56,40 @@ const __sfc_main__ = Object.assign({
|
|
|
73
56
|
width: "150px"
|
|
74
57
|
}, null, 8 /* PROPS */, ["active"])
|
|
75
58
|
]),
|
|
76
|
-
_createElementVNode("div",
|
|
77
|
-
(_openBlock(), _createElementBlock("svg",
|
|
59
|
+
_createElementVNode("div", _hoisted_3, [
|
|
60
|
+
(_openBlock(), _createElementBlock("svg", _hoisted_4, [
|
|
78
61
|
_createCommentVNode(" 坐标轴(4px宽度,#f0f2f5颜色) "),
|
|
79
|
-
|
|
62
|
+
_cache[0] || (_cache[0] = _createElementVNode("path", {
|
|
63
|
+
d: "M0 150 L800 150",
|
|
64
|
+
stroke: "#f0f2f5",
|
|
65
|
+
"stroke-width": "4",
|
|
66
|
+
"stroke-opacity": "0.8"
|
|
67
|
+
}, null, -1 /* CACHED */)),
|
|
80
68
|
_createCommentVNode(" X轴 "),
|
|
81
|
-
|
|
69
|
+
_cache[1] || (_cache[1] = _createElementVNode("path", {
|
|
70
|
+
d: "M0 150 L0 50",
|
|
71
|
+
stroke: "#f0f2f5",
|
|
72
|
+
"stroke-width": "4",
|
|
73
|
+
"stroke-opacity": "0.8"
|
|
74
|
+
}, null, -1 /* CACHED */)),
|
|
82
75
|
_createCommentVNode(" Y轴 "),
|
|
83
76
|
_createCommentVNode(" 两条曲线 "),
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
_cache[2] || (_cache[2] = _createElementVNode("path", {
|
|
78
|
+
d: "M0 100 C200 30, 600 170, 800 100",
|
|
79
|
+
stroke: "#f0f2f5",
|
|
80
|
+
fill: "none",
|
|
81
|
+
"stroke-width": "4"
|
|
82
|
+
}, null, -1 /* CACHED */)),
|
|
83
|
+
_cache[3] || (_cache[3] = _createElementVNode("path", {
|
|
84
|
+
d: "M0 120 C200 60, 600 140, 800 80",
|
|
85
|
+
stroke: "#f0f2f5",
|
|
86
|
+
fill: "none",
|
|
87
|
+
"stroke-width": "4"
|
|
88
|
+
}, null, -1 /* CACHED */))
|
|
86
89
|
]))
|
|
87
90
|
])
|
|
88
91
|
])
|
|
89
|
-
]));
|
|
92
|
+
], 2 /* CLASS */));
|
|
90
93
|
};
|
|
91
94
|
}
|
|
92
95
|
});
|
|
@@ -2,23 +2,21 @@
|
|
|
2
2
|
"active": "props",
|
|
3
3
|
"loading": "props",
|
|
4
4
|
"Item": "setup-const",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"computed": "setup-const",
|
|
6
|
+
"useSkeletonStyle": "setup-maybe-ref",
|
|
7
|
+
"props": "setup-reactive-const",
|
|
8
|
+
"prefixCls": "setup-ref",
|
|
9
|
+
"wrapSSR": "setup-maybe-ref",
|
|
10
|
+
"hashId": "setup-maybe-ref"
|
|
7
11
|
} */
|
|
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
|
-
};
|
|
12
|
+
import { renderSlot as _renderSlot, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass } from "vue";
|
|
13
|
+
const _hoisted_1 = { class: "j-skeleton-flex" };
|
|
13
14
|
const _hoisted_2 = { class: "j-skeleton-flex" };
|
|
14
|
-
const _hoisted_3 = { class: "j-skeleton-
|
|
15
|
-
const _hoisted_4 = { class: "j-skeleton-
|
|
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" };
|
|
15
|
+
const _hoisted_3 = { class: "j-skeleton-tabs" };
|
|
16
|
+
const _hoisted_4 = { class: "j-skeleton-desc-content" };
|
|
21
17
|
import Item from "./Item.js";
|
|
18
|
+
import { computed } from "vue";
|
|
19
|
+
import useSkeletonStyle from '../style';
|
|
22
20
|
const __sfc_main__ = Object.assign({
|
|
23
21
|
name: 'JSkeletonDetail'
|
|
24
22
|
}, {
|
|
@@ -34,17 +32,22 @@ const __sfc_main__ = Object.assign({
|
|
|
34
32
|
},
|
|
35
33
|
setup(__props) {
|
|
36
34
|
const props = __props;
|
|
35
|
+
const prefixCls = computed(() => 'j-skeleton');
|
|
36
|
+
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
37
37
|
return (_ctx, _cache) => {
|
|
38
38
|
return (!__props.loading)
|
|
39
39
|
? _renderSlot(_ctx.$slots, "default", { key: 0 })
|
|
40
|
-
: (_openBlock(), _createElementBlock("div",
|
|
41
|
-
|
|
40
|
+
: (_openBlock(), _createElementBlock("div", {
|
|
41
|
+
key: 1,
|
|
42
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
43
|
+
}, [
|
|
44
|
+
_createElementVNode("div", _hoisted_1, [
|
|
42
45
|
_createVNode(Item, {
|
|
43
46
|
active: __props.active,
|
|
44
47
|
width: "40%"
|
|
45
48
|
}, null, 8 /* PROPS */, ["active"])
|
|
46
49
|
]),
|
|
47
|
-
_createElementVNode("div",
|
|
50
|
+
_createElementVNode("div", _hoisted_2, [
|
|
48
51
|
_createVNode(Item, {
|
|
49
52
|
active: __props.active,
|
|
50
53
|
size: "small",
|
|
@@ -56,7 +59,7 @@ const __sfc_main__ = Object.assign({
|
|
|
56
59
|
width: "15%"
|
|
57
60
|
}, null, 8 /* PROPS */, ["active"])
|
|
58
61
|
]),
|
|
59
|
-
_createElementVNode("div",
|
|
62
|
+
_createElementVNode("div", _hoisted_3, [
|
|
60
63
|
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(5, (item) => {
|
|
61
64
|
return _createElementVNode("div", {
|
|
62
65
|
key: item,
|
|
@@ -75,8 +78,11 @@ const __sfc_main__ = Object.assign({
|
|
|
75
78
|
class: "j-skeleton-desc",
|
|
76
79
|
key: item
|
|
77
80
|
}, [
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
_cache[0] || (_cache[0] = _createElementVNode("div", {
|
|
82
|
+
class: "j-skeleton-item j-skeleton-item-large",
|
|
83
|
+
style: { "width": "300px" }
|
|
84
|
+
}, null, -1 /* CACHED */)),
|
|
85
|
+
_createElementVNode("div", _hoisted_4, [
|
|
80
86
|
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (i) => {
|
|
81
87
|
return _createElementVNode("div", {
|
|
82
88
|
class: "j-skeleton-desc-item",
|
|
@@ -97,7 +103,7 @@ const __sfc_main__ = Object.assign({
|
|
|
97
103
|
])
|
|
98
104
|
]);
|
|
99
105
|
}), 64 /* STABLE_FRAGMENT */))
|
|
100
|
-
]));
|
|
106
|
+
], 2 /* CLASS */));
|
|
101
107
|
};
|
|
102
108
|
}
|
|
103
109
|
});
|
|
@@ -2,19 +2,24 @@
|
|
|
2
2
|
"active": "props",
|
|
3
3
|
"loading": "props",
|
|
4
4
|
"Item": "setup-const",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"computed": "setup-const",
|
|
6
|
+
"useSkeletonStyle": "setup-maybe-ref",
|
|
7
|
+
"props": "setup-reactive-const",
|
|
8
|
+
"prefixCls": "setup-ref",
|
|
9
|
+
"wrapSSR": "setup-maybe-ref",
|
|
10
|
+
"hashId": "setup-maybe-ref"
|
|
7
11
|
} */
|
|
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-
|
|
11
|
-
const _hoisted_3 = {
|
|
12
|
-
const _hoisted_4 = {
|
|
13
|
-
const _hoisted_5 = {
|
|
12
|
+
import { renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass } from "vue";
|
|
13
|
+
const _hoisted_1 = { class: "j-skeleton-box" };
|
|
14
|
+
const _hoisted_2 = { class: "j-skeleton-desc" };
|
|
15
|
+
const _hoisted_3 = { style: { "margin-top": "16px" } };
|
|
16
|
+
const _hoisted_4 = {
|
|
14
17
|
class: "j-skeleton-desc-content",
|
|
15
18
|
style: { "grid-template-columns": "repeat(2, 1fr)" }
|
|
16
19
|
};
|
|
17
20
|
import Item from "./Item.js";
|
|
21
|
+
import { computed } from "vue";
|
|
22
|
+
import useSkeletonStyle from '../style';
|
|
18
23
|
const __sfc_main__ = Object.assign({
|
|
19
24
|
name: 'JSkeletonDrawer'
|
|
20
25
|
}, {
|
|
@@ -30,31 +35,35 @@ const __sfc_main__ = Object.assign({
|
|
|
30
35
|
},
|
|
31
36
|
setup(__props) {
|
|
32
37
|
const props = __props;
|
|
38
|
+
const prefixCls = computed(() => 'j-skeleton');
|
|
39
|
+
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
33
40
|
return (_ctx, _cache) => {
|
|
34
41
|
return (_openBlock(), _createElementBlock(_Fragment, null, [
|
|
35
42
|
(!__props.loading)
|
|
36
43
|
? _renderSlot(_ctx.$slots, "default", { key: 0 })
|
|
37
44
|
: _createCommentVNode("v-if", true),
|
|
38
|
-
_createElementVNode("div",
|
|
45
|
+
_createElementVNode("div", {
|
|
46
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
47
|
+
}, [
|
|
39
48
|
_createVNode(Item, {
|
|
40
49
|
active: __props.active,
|
|
41
50
|
width: "70%"
|
|
42
51
|
}, null, 8 /* PROPS */, ["active"]),
|
|
43
|
-
_createElementVNode("div",
|
|
52
|
+
_createElementVNode("div", _hoisted_1, [
|
|
44
53
|
_createVNode(Item, {
|
|
45
54
|
active: __props.active,
|
|
46
55
|
size: "small",
|
|
47
56
|
width: "35%"
|
|
48
57
|
}, null, 8 /* PROPS */, ["active"])
|
|
49
58
|
]),
|
|
50
|
-
_createElementVNode("div",
|
|
51
|
-
_createElementVNode("div",
|
|
59
|
+
_createElementVNode("div", _hoisted_2, [
|
|
60
|
+
_createElementVNode("div", _hoisted_3, [
|
|
52
61
|
_createVNode(Item, {
|
|
53
62
|
active: __props.active,
|
|
54
63
|
width: "300px"
|
|
55
64
|
}, null, 8 /* PROPS */, ["active"])
|
|
56
65
|
]),
|
|
57
|
-
_createElementVNode("div",
|
|
66
|
+
_createElementVNode("div", _hoisted_4, [
|
|
58
67
|
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (i) => {
|
|
59
68
|
return _createElementVNode("div", {
|
|
60
69
|
class: "j-skeleton-desc-item",
|
|
@@ -74,7 +83,7 @@ const __sfc_main__ = Object.assign({
|
|
|
74
83
|
}), 64 /* STABLE_FRAGMENT */))
|
|
75
84
|
])
|
|
76
85
|
])
|
|
77
|
-
])
|
|
86
|
+
], 2 /* CLASS */)
|
|
78
87
|
], 64 /* STABLE_FRAGMENT */));
|
|
79
88
|
};
|
|
80
89
|
}
|
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
"size": "props",
|
|
4
4
|
"width": "props",
|
|
5
5
|
"computed": "setup-const",
|
|
6
|
+
"useSkeletonStyle": "setup-maybe-ref",
|
|
6
7
|
"props": "setup-reactive-const",
|
|
7
8
|
"_className": "setup-ref",
|
|
8
|
-
"sizeStyle": "setup-ref"
|
|
9
|
+
"sizeStyle": "setup-ref",
|
|
10
|
+
"prefixCls": "setup-ref",
|
|
11
|
+
"wrapSSR": "setup-maybe-ref",
|
|
12
|
+
"hashId": "setup-maybe-ref"
|
|
9
13
|
} */
|
|
10
14
|
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
11
15
|
import { computed } from 'vue';
|
|
16
|
+
import useSkeletonStyle from '../style';
|
|
12
17
|
const __sfc_main__ = {
|
|
13
18
|
props: {
|
|
14
19
|
active: {
|
|
@@ -33,6 +38,7 @@ const __sfc_main__ = {
|
|
|
33
38
|
'j-skeleton-item-active': active,
|
|
34
39
|
'j-skeleton-item-lg': size === 'large',
|
|
35
40
|
'j-skeleton-item-sm': size === 'small',
|
|
41
|
+
[hashId.value]: true
|
|
36
42
|
};
|
|
37
43
|
});
|
|
38
44
|
const sizeStyle = computed(() => {
|
|
@@ -49,6 +55,8 @@ const __sfc_main__ = {
|
|
|
49
55
|
};
|
|
50
56
|
}
|
|
51
57
|
});
|
|
58
|
+
const prefixCls = computed(() => 'j-skeleton');
|
|
59
|
+
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
52
60
|
return (_ctx, _cache) => {
|
|
53
61
|
return (_openBlock(), _createElementBlock("div", {
|
|
54
62
|
class: _normalizeClass(_className.value),
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"ListCard": "setup-const",
|
|
6
6
|
"ListTable": "setup-const",
|
|
7
7
|
"Search": "setup-const",
|
|
8
|
-
"defineOptions": "setup-const",
|
|
9
8
|
"props": "setup-reactive-const"
|
|
10
9
|
} */
|
|
11
10
|
import { renderSlot as _renderSlot, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
|
|
@@ -3,18 +3,20 @@
|
|
|
3
3
|
"loading": "props",
|
|
4
4
|
"Item": "setup-const",
|
|
5
5
|
"ListCardItem": "setup-const",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"computed": "setup-const",
|
|
7
|
+
"useSkeletonStyle": "setup-maybe-ref",
|
|
8
|
+
"props": "setup-reactive-const",
|
|
9
|
+
"prefixCls": "setup-ref",
|
|
10
|
+
"wrapSSR": "setup-maybe-ref",
|
|
11
|
+
"hashId": "setup-maybe-ref"
|
|
8
12
|
} */
|
|
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
|
-
|
|
12
|
-
class: "j-skeleton"
|
|
13
|
-
};
|
|
14
|
-
const _hoisted_2 = { class: "j-skeleton-flex" };
|
|
15
|
-
const _hoisted_3 = { class: "j-skeleton-cards" };
|
|
13
|
+
import { renderSlot as _renderSlot, unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass } from "vue";
|
|
14
|
+
const _hoisted_1 = { class: "j-skeleton-flex" };
|
|
15
|
+
const _hoisted_2 = { class: "j-skeleton-cards" };
|
|
16
16
|
import Item from "./Item.js";
|
|
17
17
|
import ListCardItem from "./ListCardItem.js";
|
|
18
|
+
import { computed } from "vue";
|
|
19
|
+
import useSkeletonStyle from '../style';
|
|
18
20
|
const __sfc_main__ = Object.assign({
|
|
19
21
|
name: 'JSkeletonListCard'
|
|
20
22
|
}, {
|
|
@@ -30,11 +32,16 @@ const __sfc_main__ = Object.assign({
|
|
|
30
32
|
},
|
|
31
33
|
setup(__props) {
|
|
32
34
|
const props = __props;
|
|
35
|
+
const prefixCls = computed(() => 'j-skeleton');
|
|
36
|
+
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
33
37
|
return (_ctx, _cache) => {
|
|
34
38
|
return (!__props.loading)
|
|
35
39
|
? _renderSlot(_ctx.$slots, "default", { key: 0 })
|
|
36
|
-
: (_openBlock(), _createElementBlock("div",
|
|
37
|
-
|
|
40
|
+
: (_openBlock(), _createElementBlock("div", {
|
|
41
|
+
key: 1,
|
|
42
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
43
|
+
}, [
|
|
44
|
+
_createElementVNode("div", _hoisted_1, [
|
|
38
45
|
_createVNode(Item, {
|
|
39
46
|
active: __props.active,
|
|
40
47
|
width: "100px"
|
|
@@ -44,12 +51,12 @@ const __sfc_main__ = Object.assign({
|
|
|
44
51
|
width: "100px"
|
|
45
52
|
}, null, 8 /* PROPS */, ["active"])
|
|
46
53
|
]),
|
|
47
|
-
_createElementVNode("div",
|
|
54
|
+
_createElementVNode("div", _hoisted_2, [
|
|
48
55
|
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(9, (item) => {
|
|
49
56
|
return _createVNode(ListCardItem, { key: item });
|
|
50
57
|
}), 64 /* STABLE_FRAGMENT */))
|
|
51
58
|
])
|
|
52
|
-
]));
|
|
59
|
+
], 2 /* CLASS */));
|
|
53
60
|
};
|
|
54
61
|
}
|
|
55
62
|
});
|
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
import { createElementVNode as _createElementVNode, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
8
8
|
const _hoisted_1 = { class: "j-skeleton-card" };
|
|
9
9
|
const _hoisted_2 = { class: "j-skeleton-card-content" };
|
|
10
|
-
const _hoisted_3 =
|
|
11
|
-
const _hoisted_4 = {
|
|
12
|
-
const _hoisted_5 = {
|
|
13
|
-
const _hoisted_6 = { class: "j-skeleton-right-content" };
|
|
10
|
+
const _hoisted_3 = { class: "j-skeleton-right" };
|
|
11
|
+
const _hoisted_4 = { style: { "margin-bottom": "16px" } };
|
|
12
|
+
const _hoisted_5 = { class: "j-skeleton-right-content" };
|
|
13
|
+
const _hoisted_6 = { class: "j-skeleton-right-content-item" };
|
|
14
14
|
const _hoisted_7 = { class: "j-skeleton-right-content-item" };
|
|
15
|
-
const _hoisted_8 = { class: "j-skeleton-
|
|
16
|
-
const _hoisted_9 = { class: "j-skeleton-action" };
|
|
15
|
+
const _hoisted_8 = { class: "j-skeleton-action" };
|
|
17
16
|
import Item from "./Item.js";
|
|
18
17
|
const __sfc_main__ = {
|
|
19
18
|
props: {
|
|
@@ -31,9 +30,9 @@ const __sfc_main__ = {
|
|
|
31
30
|
return (_ctx, _cache) => {
|
|
32
31
|
return (_openBlock(), _createElementBlock("div", _hoisted_1, [
|
|
33
32
|
_createElementVNode("div", _hoisted_2, [
|
|
34
|
-
|
|
35
|
-
_createElementVNode("div",
|
|
36
|
-
_createElementVNode("div",
|
|
33
|
+
_cache[0] || (_cache[0] = _createElementVNode("div", { class: "j-skeleton-item j-skeleton-image" }, null, -1 /* CACHED */)),
|
|
34
|
+
_createElementVNode("div", _hoisted_3, [
|
|
35
|
+
_createElementVNode("div", _hoisted_4, [
|
|
37
36
|
_createVNode(Item, {
|
|
38
37
|
active: __props.active,
|
|
39
38
|
size: "small",
|
|
@@ -44,8 +43,8 @@ const __sfc_main__ = {
|
|
|
44
43
|
active: __props.active,
|
|
45
44
|
width: "50%"
|
|
46
45
|
}, null, 8 /* PROPS */, ["active"]),
|
|
47
|
-
_createElementVNode("div",
|
|
48
|
-
_createElementVNode("div",
|
|
46
|
+
_createElementVNode("div", _hoisted_5, [
|
|
47
|
+
_createElementVNode("div", _hoisted_6, [
|
|
49
48
|
_createVNode(Item, {
|
|
50
49
|
active: __props.active,
|
|
51
50
|
size: "small",
|
|
@@ -57,7 +56,7 @@ const __sfc_main__ = {
|
|
|
57
56
|
width: "90%"
|
|
58
57
|
}, null, 8 /* PROPS */, ["active"])
|
|
59
58
|
]),
|
|
60
|
-
_createElementVNode("div",
|
|
59
|
+
_createElementVNode("div", _hoisted_7, [
|
|
61
60
|
_createVNode(Item, {
|
|
62
61
|
active: __props.active,
|
|
63
62
|
size: "small",
|
|
@@ -72,7 +71,7 @@ const __sfc_main__ = {
|
|
|
72
71
|
])
|
|
73
72
|
])
|
|
74
73
|
]),
|
|
75
|
-
_createElementVNode("div",
|
|
74
|
+
_createElementVNode("div", _hoisted_8, [
|
|
76
75
|
_createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]),
|
|
77
76
|
_createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]),
|
|
78
77
|
_createVNode(Item, {
|
|
@@ -2,14 +2,19 @@
|
|
|
2
2
|
"active": "props",
|
|
3
3
|
"loading": "props",
|
|
4
4
|
"Item": "setup-const",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"computed": "setup-const",
|
|
6
|
+
"useSkeletonStyle": "setup-maybe-ref",
|
|
7
|
+
"props": "setup-reactive-const",
|
|
8
|
+
"prefixCls": "setup-ref",
|
|
9
|
+
"wrapSSR": "setup-maybe-ref",
|
|
10
|
+
"hashId": "setup-maybe-ref"
|
|
7
11
|
} */
|
|
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-
|
|
11
|
-
const _hoisted_3 = { class: "j-skeleton-table" };
|
|
12
|
+
import { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, normalizeClass as _normalizeClass } from "vue";
|
|
13
|
+
const _hoisted_1 = { class: "j-skeleton-flex" };
|
|
14
|
+
const _hoisted_2 = { class: "j-skeleton-table" };
|
|
12
15
|
import Item from "./Item.js";
|
|
16
|
+
import { computed } from "vue";
|
|
17
|
+
import useSkeletonStyle from '../style';
|
|
13
18
|
const __sfc_main__ = Object.assign({
|
|
14
19
|
name: 'JSkeletonListTable'
|
|
15
20
|
}, {
|
|
@@ -25,9 +30,13 @@ const __sfc_main__ = Object.assign({
|
|
|
25
30
|
},
|
|
26
31
|
setup(__props) {
|
|
27
32
|
const props = __props;
|
|
33
|
+
const prefixCls = computed(() => 'j-skeleton');
|
|
34
|
+
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
28
35
|
return (_ctx, _cache) => {
|
|
29
|
-
return (_openBlock(), _createElementBlock("div",
|
|
30
|
-
|
|
36
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
37
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
38
|
+
}, [
|
|
39
|
+
_createElementVNode("div", _hoisted_1, [
|
|
31
40
|
_createVNode(Item, {
|
|
32
41
|
active: __props.active,
|
|
33
42
|
width: "100px"
|
|
@@ -37,7 +46,7 @@ const __sfc_main__ = Object.assign({
|
|
|
37
46
|
width: "100px"
|
|
38
47
|
}, null, 8 /* PROPS */, ["active"])
|
|
39
48
|
]),
|
|
40
|
-
_createElementVNode("div",
|
|
49
|
+
_createElementVNode("div", _hoisted_2, [
|
|
41
50
|
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (item) => {
|
|
42
51
|
return _createElementVNode("div", {
|
|
43
52
|
key: item,
|
|
@@ -60,7 +69,7 @@ const __sfc_main__ = Object.assign({
|
|
|
60
69
|
], 2 /* CLASS */);
|
|
61
70
|
}), 64 /* STABLE_FRAGMENT */))
|
|
62
71
|
])
|
|
63
|
-
]));
|
|
72
|
+
], 2 /* CLASS */));
|
|
64
73
|
};
|
|
65
74
|
}
|
|
66
75
|
});
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
"loading": "props",
|
|
5
5
|
"List": "setup-const",
|
|
6
6
|
"Detail": "setup-const",
|
|
7
|
-
"defineOptions": "setup-const",
|
|
8
7
|
"props": "setup-reactive-const"
|
|
9
8
|
} */
|
|
10
9
|
import { renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from "vue";
|