@jetlinks-web/components 2.7.0 → 3.0.0
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 +2 -3
- package/es/BadgeStatus/Badge.js +2 -3
- package/es/CardSelect/CardSelect.js +23 -18
- 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/ConfigProvider/index.js +1 -1
- package/es/DragModal/DragModal.js +15 -9
- package/es/DragModal/style/index.js +64 -1
- package/es/EditTable/Body.js +10 -3
- package/es/EditTable/EditTable.js +14 -8
- package/es/EditTable/FormItem.js +15 -10
- package/es/EditTable/Header.js +16 -6
- package/es/EditTable/components/ContextMenu/Menu.js +12 -6
- package/es/EditTable/components/Search/search.js +1 -2
- package/es/EditTable/components/Search/sort.js +1 -3
- package/es/EditTable/group.js +24 -19
- 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 +1 -1
- package/es/Ellipsis/Ellipsis.js +11 -3
- package/es/Ellipsis/style/index.js +24 -1
- package/es/Empty/Empty.js +1 -1
- package/es/FullPage/FullPage.js +1 -2
- package/es/LocaleProvider/index.js +1 -2
- package/es/PermissionButton/index.js +4 -5
- package/es/ProLayout/Basic/BasicLayout.js +46 -42
- package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
- package/es/ProLayout/Basic/Header.js +4 -8
- package/es/ProLayout/Basic/HeaderStyle.js +10 -0
- package/es/ProLayout/PageContainer/index.js +20 -16
- package/es/ProLayout/PageContainer/style.js +46 -0
- package/es/ProLayout/SiderMenu/BaseMenu.js +14 -37
- package/es/ProLayout/SiderMenu/SiderMenu.js +25 -36
- package/es/ProLayout/SiderMenu/style.js +166 -0
- package/es/ProLayout/TopHeader/index.js +12 -11
- 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 +13 -5
- package/es/ProTable/Content.js +22 -14
- package/es/ProTable/Header.js +22 -12
- package/es/ProTable/Pagination.js +13 -5
- package/es/ProTable/ProTable.js +43 -27
- 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 +24 -17
- package/es/Search/Advanced/SaveHistory.js +2 -3
- package/es/Search/Advanced/index.js +213 -293
- 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 +64 -0
- package/es/Skeleton/components/DashBoardChart.js +96 -0
- package/es/Skeleton/components/Detail.js +110 -0
- package/es/Skeleton/components/Drawer.js +91 -0
- package/es/Skeleton/components/Item.js +68 -0
- package/es/Skeleton/components/List.js +45 -0
- package/es/Skeleton/components/ListCard.js +63 -0
- package/es/Skeleton/components/ListCardItem.js +86 -0
- package/es/Skeleton/components/ListTable.js +76 -0
- package/es/Skeleton/components/Page.js +62 -0
- package/es/Skeleton/components/Search.js +54 -0
- package/es/Skeleton/components/Tree.js +72 -0
- package/es/Skeleton/index.js +15 -0
- package/es/Skeleton/skeleton.js +58 -0
- package/es/Skeleton/style/index.js +132 -0
- package/es/Title/style/index.js +29 -1
- package/es/Title/title.js +13 -5
- package/es/ValueItem/ValueItem.js +29 -72
- package/es/components.js +0 -3
- package/es/locale/en-US.js +0 -7
- package/es/locale/zh-CN.js +0 -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 -12
- package/lib/AutoComplete/AutoComplete.js +1 -2
- package/lib/BadgeStatus/Badge.js +2 -3
- package/lib/CardSelect/CardSelect.js +23 -18
- 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/ConfigProvider/context.js +1 -1
- package/lib/ConfigProvider/index.js +3 -3
- package/lib/DragModal/DragModal.js +15 -9
- 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 +16 -11
- package/lib/EditTable/Header.js +16 -6
- package/lib/EditTable/components/ContextMenu/Menu.js +12 -6
- package/lib/EditTable/components/Search/search.js +1 -2
- package/lib/EditTable/components/Search/sort.js +1 -3
- package/lib/EditTable/group.js +24 -19
- 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 +1 -1
- package/lib/Ellipsis/Ellipsis.js +11 -3
- package/lib/Ellipsis/style/index.js +29 -1
- package/lib/Empty/Empty.js +1 -1
- package/lib/FullPage/FullPage.js +1 -2
- package/lib/LocaleProvider/index.js +1 -2
- package/lib/PermissionButton/index.js +9 -10
- package/lib/ProLayout/Basic/BasicLayout.js +55 -51
- package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
- package/lib/ProLayout/Basic/Header.js +6 -10
- package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
- package/lib/ProLayout/PageContainer/index.js +24 -20
- package/lib/ProLayout/PageContainer/style.js +53 -0
- package/lib/ProLayout/SiderMenu/BaseMenu.js +18 -40
- package/lib/ProLayout/SiderMenu/SiderMenu.js +28 -39
- package/lib/ProLayout/SiderMenu/style.js +173 -0
- package/lib/ProLayout/TopHeader/index.js +12 -10
- package/lib/ProLayout/TopHeader/style.js +133 -0
- package/lib/ProLayout/defaultSettings.js +1 -1
- package/lib/ProLayout/style/index.js +12 -1
- package/lib/ProLayout/util.js +5 -5
- package/lib/ProTable/Alert.js +13 -5
- package/lib/ProTable/Content.js +22 -14
- package/lib/ProTable/Header.js +22 -12
- package/lib/ProTable/Pagination.js +13 -5
- package/lib/ProTable/ProTable.js +43 -27
- package/lib/ProTable/setting.js +3 -3
- 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 +24 -17
- package/lib/Search/Advanced/SaveHistory.js +2 -3
- package/lib/Search/Advanced/index.js +213 -293
- 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 +64 -0
- package/lib/Skeleton/components/DashBoardChart.js +96 -0
- package/lib/Skeleton/components/Detail.js +110 -0
- package/lib/Skeleton/components/Drawer.js +91 -0
- package/lib/Skeleton/components/Item.js +68 -0
- package/lib/Skeleton/components/List.js +45 -0
- package/lib/Skeleton/components/ListCard.js +63 -0
- package/lib/Skeleton/components/ListCardItem.js +86 -0
- package/lib/Skeleton/components/ListTable.js +76 -0
- package/lib/Skeleton/components/Page.js +62 -0
- package/lib/Skeleton/components/Search.js +54 -0
- package/lib/Skeleton/components/Tree.js +72 -0
- package/lib/Skeleton/index.js +75 -0
- package/lib/Skeleton/skeleton.js +58 -0
- package/lib/Skeleton/style/index.js +139 -0
- package/lib/Title/style/index.js +34 -1
- package/lib/Title/title.js +13 -5
- package/lib/ValueItem/ValueItem.js +29 -72
- package/lib/components.js +0 -21
- package/lib/locale/en-US.js +0 -7
- package/lib/locale/zh-CN.js +0 -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 -14
- package/package.json +13 -14
- 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/MonacoEditor/Monaco.js +0 -242
- package/es/MonacoEditor/index.js +0 -5
- package/es/MonacoEditor/style/index.css +0 -4
- package/es/MonacoEditor/style/index.js +0 -1
- package/es/MonacoEditor/style/index.less +0 -4
- 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 -141
- 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/Title/style/index.css +0 -23
- package/es/Title/style/index.less +0 -25
- package/es/style/index.css +0 -5197
- package/es/style/index.less +0 -13
- 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/MonacoEditor/Monaco.js +0 -242
- package/lib/MonacoEditor/index.js +0 -12
- package/lib/MonacoEditor/style/index.css +0 -4
- package/lib/MonacoEditor/style/index.js +0 -3
- package/lib/MonacoEditor/style/index.less +0 -4
- 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 -141
- 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/Title/style/index.css +0 -23
- package/lib/Title/style/index.less +0 -25
- package/lib/style/index.css +0 -5197
- package/lib/style/index.less +0 -13
- package/lib/style/variable.css +0 -4
- package/lib/style/variable.less +0 -4
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* Analyzed bindings: {
|
|
2
|
+
"active": "props",
|
|
3
|
+
"loading": "props",
|
|
4
|
+
"Item": "setup-const",
|
|
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"
|
|
11
|
+
} */
|
|
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" };
|
|
15
|
+
import Item from "./Item.js";
|
|
16
|
+
import { computed } from "vue";
|
|
17
|
+
import useSkeletonStyle from '../style';
|
|
18
|
+
const __sfc_main__ = Object.assign({
|
|
19
|
+
name: 'JSkeletonListTable'
|
|
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
|
+
const prefixCls = computed(() => 'j-skeleton');
|
|
34
|
+
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
37
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
38
|
+
}, [
|
|
39
|
+
_createElementVNode("div", _hoisted_1, [
|
|
40
|
+
_createVNode(Item, {
|
|
41
|
+
active: __props.active,
|
|
42
|
+
width: "100px"
|
|
43
|
+
}, null, 8 /* PROPS */, ["active"]),
|
|
44
|
+
_createVNode(Item, {
|
|
45
|
+
active: __props.active,
|
|
46
|
+
width: "100px"
|
|
47
|
+
}, null, 8 /* PROPS */, ["active"])
|
|
48
|
+
]),
|
|
49
|
+
_createElementVNode("div", _hoisted_2, [
|
|
50
|
+
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(10, (item) => {
|
|
51
|
+
return _createElementVNode("div", {
|
|
52
|
+
key: item,
|
|
53
|
+
class: _normalizeClass(["j-skeleton-table-cell", { 'j-skeleton-table-header': item === 1 }])
|
|
54
|
+
}, [
|
|
55
|
+
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(4, (i) => {
|
|
56
|
+
return _createElementVNode("div", {
|
|
57
|
+
class: _normalizeClass({ 'j-skeleton-table-action': i === 4 })
|
|
58
|
+
}, [
|
|
59
|
+
(i !== 4 || item === 1)
|
|
60
|
+
? (_openBlock(), _createBlock(Item, {
|
|
61
|
+
key: 0,
|
|
62
|
+
active: __props.active
|
|
63
|
+
}, null, 8 /* PROPS */, ["active"]))
|
|
64
|
+
: (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, _renderList(3, (_i) => {
|
|
65
|
+
return _createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]);
|
|
66
|
+
}), 64 /* STABLE_FRAGMENT */))
|
|
67
|
+
], 2 /* CLASS */);
|
|
68
|
+
}), 64 /* STABLE_FRAGMENT */))
|
|
69
|
+
], 2 /* CLASS */);
|
|
70
|
+
}), 64 /* STABLE_FRAGMENT */))
|
|
71
|
+
])
|
|
72
|
+
], 2 /* CLASS */));
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
export default __sfc_main__;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* Analyzed bindings: {
|
|
2
|
+
"type": "props",
|
|
3
|
+
"active": "props",
|
|
4
|
+
"loading": "props",
|
|
5
|
+
"List": "setup-const",
|
|
6
|
+
"Detail": "setup-const",
|
|
7
|
+
"props": "setup-reactive-const"
|
|
8
|
+
} */
|
|
9
|
+
import { renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from "vue";
|
|
10
|
+
const _hoisted_1 = { style: { "padding": "24px", "background-color": "#ffffff", "height": "100%" } };
|
|
11
|
+
import List from "./List.js";
|
|
12
|
+
import Detail from "./Detail.js";
|
|
13
|
+
const __sfc_main__ = Object.assign({
|
|
14
|
+
name: 'JSkeletonPage'
|
|
15
|
+
}, {
|
|
16
|
+
props: {
|
|
17
|
+
type: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: 'list', // detail
|
|
20
|
+
},
|
|
21
|
+
active: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true,
|
|
24
|
+
},
|
|
25
|
+
loading: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true,
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(__props) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return (_openBlock(), _createElementBlock("div", _hoisted_1, [
|
|
34
|
+
(__props.type === 'list')
|
|
35
|
+
? (_openBlock(), _createBlock(List, {
|
|
36
|
+
key: 0,
|
|
37
|
+
loading: __props.loading,
|
|
38
|
+
active: ""
|
|
39
|
+
}, {
|
|
40
|
+
default: _withCtx(() => [
|
|
41
|
+
_renderSlot(_ctx.$slots, "default")
|
|
42
|
+
]),
|
|
43
|
+
_: 3 /* FORWARDED */
|
|
44
|
+
}, 8 /* PROPS */, ["loading"]))
|
|
45
|
+
: _createCommentVNode("v-if", true),
|
|
46
|
+
(__props.type === 'detail')
|
|
47
|
+
? (_openBlock(), _createBlock(Detail, {
|
|
48
|
+
key: 1,
|
|
49
|
+
loading: __props.loading,
|
|
50
|
+
active: ""
|
|
51
|
+
}, {
|
|
52
|
+
default: _withCtx(() => [
|
|
53
|
+
_renderSlot(_ctx.$slots, "default")
|
|
54
|
+
]),
|
|
55
|
+
_: 3 /* FORWARDED */
|
|
56
|
+
}, 8 /* PROPS */, ["loading"]))
|
|
57
|
+
: _renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
58
|
+
]));
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
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,72 @@
|
|
|
1
|
+
/* Analyzed bindings: {
|
|
2
|
+
"active": "props",
|
|
3
|
+
"loading": "props",
|
|
4
|
+
"Item": "setup-const",
|
|
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"
|
|
11
|
+
} */
|
|
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" };
|
|
14
|
+
const _hoisted_2 = { class: "j-skeleton-flex" };
|
|
15
|
+
const _hoisted_3 = { class: "j-skeleton-flex" };
|
|
16
|
+
const _hoisted_4 = { class: "j-skeleton-flex" };
|
|
17
|
+
import Item from "./Item.js";
|
|
18
|
+
import { computed } from "vue";
|
|
19
|
+
import useSkeletonStyle from '../style';
|
|
20
|
+
const __sfc_main__ = Object.assign({
|
|
21
|
+
name: 'JSkeletonTree'
|
|
22
|
+
}, {
|
|
23
|
+
props: {
|
|
24
|
+
active: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true,
|
|
27
|
+
},
|
|
28
|
+
loading: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: true,
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
setup(__props) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const prefixCls = computed(() => 'j-skeleton');
|
|
36
|
+
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return (!__props.loading)
|
|
39
|
+
? _renderSlot(_ctx.$slots, "default", { key: 0 })
|
|
40
|
+
: (_openBlock(), _createElementBlock("div", {
|
|
41
|
+
key: 1,
|
|
42
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
43
|
+
}, [
|
|
44
|
+
_createElementVNode("div", _hoisted_1, [
|
|
45
|
+
_createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"])
|
|
46
|
+
]),
|
|
47
|
+
_createElementVNode("div", _hoisted_2, [
|
|
48
|
+
_createVNode(Item, {
|
|
49
|
+
active: __props.active,
|
|
50
|
+
width: "100px"
|
|
51
|
+
}, null, 8 /* PROPS */, ["active"])
|
|
52
|
+
]),
|
|
53
|
+
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(6, (item) => {
|
|
54
|
+
return _createElementVNode("div", _hoisted_3, [
|
|
55
|
+
_createVNode(Item, {
|
|
56
|
+
active: __props.active,
|
|
57
|
+
size: "small"
|
|
58
|
+
}, null, 8 /* PROPS */, ["active"])
|
|
59
|
+
]);
|
|
60
|
+
}), 64 /* STABLE_FRAGMENT */)),
|
|
61
|
+
_createElementVNode("div", _hoisted_4, [
|
|
62
|
+
_createVNode(Item, {
|
|
63
|
+
active: __props.active,
|
|
64
|
+
size: "small",
|
|
65
|
+
width: "140px"
|
|
66
|
+
}, null, 8 /* PROPS */, ["active"])
|
|
67
|
+
])
|
|
68
|
+
], 2 /* CLASS */));
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
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,58 @@
|
|
|
1
|
+
/* Analyzed bindings: {
|
|
2
|
+
"active": "props",
|
|
3
|
+
"loading": "props",
|
|
4
|
+
"Item": "setup-const",
|
|
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"
|
|
11
|
+
} */
|
|
12
|
+
import { unref as _unref, renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
|
|
13
|
+
const _hoisted_1 = { class: "j-skeleton-flex-column" };
|
|
14
|
+
import Item from "./components/Item.js";
|
|
15
|
+
import { computed } from "vue";
|
|
16
|
+
import useSkeletonStyle from './style';
|
|
17
|
+
const __sfc_main__ = Object.assign({
|
|
18
|
+
name: 'JSkeleton'
|
|
19
|
+
}, {
|
|
20
|
+
props: {
|
|
21
|
+
active: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true,
|
|
24
|
+
},
|
|
25
|
+
loading: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true,
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(__props) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
const prefixCls = computed(() => 'j-skeleton');
|
|
33
|
+
const [wrapSSR, hashId] = useSkeletonStyle(prefixCls);
|
|
34
|
+
return (_ctx, _cache) => {
|
|
35
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
36
|
+
class: _normalizeClass(['j-skeleton', _unref(hashId)])
|
|
37
|
+
}, [
|
|
38
|
+
(!__props.loading)
|
|
39
|
+
? _renderSlot(_ctx.$slots, "default", { key: 0 })
|
|
40
|
+
: _createCommentVNode("v-if", true),
|
|
41
|
+
_createElementVNode("div", _hoisted_1, [
|
|
42
|
+
_createVNode(Item, {
|
|
43
|
+
active: __props.active,
|
|
44
|
+
width: "40%"
|
|
45
|
+
}, null, 8 /* PROPS */, ["active"]),
|
|
46
|
+
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(3, (item) => {
|
|
47
|
+
return _createVNode(Item, { active: __props.active }, null, 8 /* PROPS */, ["active"]);
|
|
48
|
+
}), 64 /* STABLE_FRAGMENT */)),
|
|
49
|
+
_createVNode(Item, {
|
|
50
|
+
active: __props.active,
|
|
51
|
+
width: "80%"
|
|
52
|
+
}, null, 8 /* PROPS */, ["active"])
|
|
53
|
+
])
|
|
54
|
+
], 2 /* CLASS */));
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export default __sfc_main__;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
+
var _antDesignVue = require("ant-design-vue");
|
|
11
|
+
var _styleRegister = _interopRequireDefault(require("../../style/styleRegister"));
|
|
12
|
+
var JSkeletonSizeLg = '36px';
|
|
13
|
+
var JSkeletonSizeSm = '16px';
|
|
14
|
+
var JSkeletonSize = '24px';
|
|
15
|
+
var JSkeletonBorderRadius = '8px';
|
|
16
|
+
var JSkeletonBg = '#f0f2f5';
|
|
17
|
+
var JSkeletonBg1 = '#e6e8eb';
|
|
18
|
+
var JSkeletonBorder = "4px solid ".concat(JSkeletonBg);
|
|
19
|
+
var JSkeletonFlex = {
|
|
20
|
+
display: 'flex',
|
|
21
|
+
gap: '24px',
|
|
22
|
+
marginBottom: '16px'
|
|
23
|
+
};
|
|
24
|
+
//动画
|
|
25
|
+
var waveKeyframes = new _antDesignVue.Keyframes('wave', {
|
|
26
|
+
'0%': {
|
|
27
|
+
backgroundPosition: '200% 0'
|
|
28
|
+
},
|
|
29
|
+
'100%': {
|
|
30
|
+
backgroundPosition: '-200% 0'
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
var genSkeletonStyle = function genSkeletonStyle(config) {
|
|
34
|
+
var _$concat6;
|
|
35
|
+
var componentCls = config.componentCls,
|
|
36
|
+
token = config.token;
|
|
37
|
+
return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(componentCls, "-flex"), JSkeletonFlex), "".concat(componentCls, "-flex-between"), (0, _objectSpread2.default)((0, _objectSpread2.default)({}, JSkeletonFlex), {}, {
|
|
38
|
+
background: JSkeletonBg,
|
|
39
|
+
height: JSkeletonSize,
|
|
40
|
+
borderRadius: JSkeletonBorderRadius
|
|
41
|
+
})), "".concat(componentCls, "-flex-column"), (0, _objectSpread2.default)((0, _objectSpread2.default)({}, JSkeletonFlex), {}, {
|
|
42
|
+
justifyContent: 'space-between'
|
|
43
|
+
})), "".concat(componentCls), (_$concat6 = {
|
|
44
|
+
height: '100%'
|
|
45
|
+
}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_$concat6, "".concat(componentCls, "-item"), {
|
|
46
|
+
background: 'linear-gradient(90deg, ${JSkeletonBg} 25%, ${JSkeletonBg1} 50%, ${JSkeletonBg} 75%)',
|
|
47
|
+
backgroundSize: '400% 100%',
|
|
48
|
+
borderRadius: JSkeletonBorderRadius,
|
|
49
|
+
height: JSkeletonSize
|
|
50
|
+
}), "".concat(componentCls, "-item-active"), {
|
|
51
|
+
animationName: waveKeyframes,
|
|
52
|
+
animationDuration: '1.8s',
|
|
53
|
+
animationIterationCount: 'infinite',
|
|
54
|
+
animationTimingFunction: 'ease-in-out'
|
|
55
|
+
}), "".concat(componentCls, "-item-lg"), {
|
|
56
|
+
height: JSkeletonSizeLg
|
|
57
|
+
}), "".concat(componentCls, "-item-sm"), {
|
|
58
|
+
height: JSkeletonSizeSm
|
|
59
|
+
}), "".concat(componentCls, "-dashboard-card"), (0, _objectSpread2.default)((0, _objectSpread2.default)({}, JSkeletonFlex), {}, {
|
|
60
|
+
border: JSkeletonBorder,
|
|
61
|
+
borderRadius: JSkeletonBorderRadius,
|
|
62
|
+
height: '100%',
|
|
63
|
+
padding: '24px',
|
|
64
|
+
flexDirection: 'column'
|
|
65
|
+
})), "".concat(componentCls, "-tabs"), {
|
|
66
|
+
display: 'flex',
|
|
67
|
+
gap: '16px',
|
|
68
|
+
margin: '60px 0 20px 0',
|
|
69
|
+
borderBottom: JSkeletonBorder,
|
|
70
|
+
padding: '16px 0'
|
|
71
|
+
}), "".concat(componentCls, "-desc"), (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
72
|
+
display: 'flex',
|
|
73
|
+
flexDirection: 'column',
|
|
74
|
+
marginBottom: '24px'
|
|
75
|
+
}, "".concat(componentCls, "-desc-content"), {
|
|
76
|
+
display: 'grid',
|
|
77
|
+
gridTemplateColumns: 'repeat(3, 1fr)',
|
|
78
|
+
gap: '36px',
|
|
79
|
+
margin: '24px 0 0 0'
|
|
80
|
+
}), "".concat(componentCls, "-desc-item"), {
|
|
81
|
+
display: 'flex',
|
|
82
|
+
gap: '16px'
|
|
83
|
+
})), "".concat(componentCls, "-box"), {
|
|
84
|
+
borderBottom: JSkeletonBorder,
|
|
85
|
+
padding: '16px 0'
|
|
86
|
+
}), "".concat(componentCls, "-table-cell"), {
|
|
87
|
+
display: 'grid',
|
|
88
|
+
gridTemplateColumns: 'repeat(auto-fit, minmax(0, 1fr)) 200px',
|
|
89
|
+
gap: '24px',
|
|
90
|
+
padding: '12px 6px',
|
|
91
|
+
borderRadius: '8px'
|
|
92
|
+
}), "".concat(componentCls, "-table-header"), {
|
|
93
|
+
backgroundColor: 'lightgrey'
|
|
94
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_$concat6, "".concat(componentCls, "-table-action"), {
|
|
95
|
+
width: '200px',
|
|
96
|
+
display: 'grid',
|
|
97
|
+
gridTemplateColumns: 'repeat(auto-fit, minmax(0, 1fr))',
|
|
98
|
+
gap: '24px'
|
|
99
|
+
}), "".concat(componentCls, "-cards"), {
|
|
100
|
+
display: 'grid',
|
|
101
|
+
gridTemplateColumns: 'repeat(3, 1fr)',
|
|
102
|
+
gap: '16px'
|
|
103
|
+
}), "".concat(componentCls, "-card"), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(componentCls, "-card-content"), (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
104
|
+
display: 'flex',
|
|
105
|
+
gap: '16px',
|
|
106
|
+
border: '2px solid #f0f2f5',
|
|
107
|
+
borderRadius: '8px',
|
|
108
|
+
padding: '24px',
|
|
109
|
+
marginBottom: '16px'
|
|
110
|
+
}, "".concat(componentCls, "-image"), {
|
|
111
|
+
width: '100px',
|
|
112
|
+
height: '100px'
|
|
113
|
+
}), "".concat(componentCls, "-right"), (0, _defineProperty2.default)({
|
|
114
|
+
flex: 1,
|
|
115
|
+
minWidth: '200px'
|
|
116
|
+
}, "".concat(componentCls, "-right-content"), (0, _defineProperty2.default)({
|
|
117
|
+
display: 'flex',
|
|
118
|
+
gap: '16px',
|
|
119
|
+
marginTop: '16px'
|
|
120
|
+
}, "".concat(componentCls, "-right-item"), {
|
|
121
|
+
flex: 1,
|
|
122
|
+
minWidth: '100px',
|
|
123
|
+
display: 'flex',
|
|
124
|
+
flexDirection: 'column',
|
|
125
|
+
gap: '16px'
|
|
126
|
+
})))), "".concat(componentCls, "-action"), {
|
|
127
|
+
display: 'flex',
|
|
128
|
+
justifyContent: 'flex-end',
|
|
129
|
+
gap: '16px',
|
|
130
|
+
'.btn': {
|
|
131
|
+
flex: 1,
|
|
132
|
+
minWidth: '100px'
|
|
133
|
+
},
|
|
134
|
+
'.delete': {
|
|
135
|
+
flex: '0 0 100px'
|
|
136
|
+
}
|
|
137
|
+
}))));
|
|
138
|
+
};
|
|
139
|
+
var _default = exports.default = (0, _styleRegister.default)([genSkeletonStyle]);
|
package/lib/Title/style/index.js
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _styleRegister = _interopRequireDefault(require("../../style/styleRegister"));
|
|
10
|
+
var genTitleStyle = function genTitleStyle(config) {
|
|
11
|
+
var componentCls = config.componentCls,
|
|
12
|
+
token = config.token;
|
|
13
|
+
return (0, _defineProperty2.default)({}, componentCls, (0, _defineProperty2.default)({
|
|
14
|
+
display: 'flex',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
width: '100%',
|
|
17
|
+
marginBottom: '16px'
|
|
18
|
+
}, "".concat(componentCls, "-content"), {
|
|
19
|
+
position: 'relative',
|
|
20
|
+
paddingLeft: '10px',
|
|
21
|
+
color: 'rgba(0, 0, 0, 0.8)',
|
|
22
|
+
fontWeight: 600,
|
|
23
|
+
lineHeight: 1,
|
|
24
|
+
'&::before': {
|
|
25
|
+
position: 'absolute',
|
|
26
|
+
top: 0,
|
|
27
|
+
left: 0,
|
|
28
|
+
width: 4,
|
|
29
|
+
height: '100%',
|
|
30
|
+
background: '#1890ff',
|
|
31
|
+
borderRadius: '0 3px 3px 0',
|
|
32
|
+
content: '""'
|
|
33
|
+
}
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
var _default = exports.default = (0, _styleRegister.default)([genTitleStyle]);
|
package/lib/Title/title.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
/* Analyzed bindings: {
|
|
2
2
|
"data": "props",
|
|
3
3
|
"style": "props",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"computed": "setup-const",
|
|
5
|
+
"useTitleStyle": "setup-maybe-ref",
|
|
6
|
+
"props": "setup-reactive-const",
|
|
7
|
+
"prefixCls": "setup-ref",
|
|
8
|
+
"wrapSSR": "setup-maybe-ref",
|
|
9
|
+
"hashId": "setup-maybe-ref"
|
|
6
10
|
} */
|
|
7
|
-
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
11
|
+
import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
8
12
|
const _hoisted_1 = { class: "j-title-content" };
|
|
13
|
+
import { computed } from 'vue';
|
|
14
|
+
import useTitleStyle from './style';
|
|
9
15
|
const __sfc_main__ = Object.assign({
|
|
10
16
|
name: 'JTitle'
|
|
11
17
|
}, {
|
|
@@ -21,14 +27,16 @@ const __sfc_main__ = Object.assign({
|
|
|
21
27
|
},
|
|
22
28
|
setup(__props) {
|
|
23
29
|
const props = __props;
|
|
30
|
+
const prefixCls = computed(() => 'j-title');
|
|
31
|
+
const [wrapSSR, hashId] = useTitleStyle(prefixCls);
|
|
24
32
|
return (_ctx, _cache) => {
|
|
25
33
|
return (_openBlock(), _createElementBlock("div", {
|
|
26
|
-
class:
|
|
34
|
+
class: _normalizeClass(['j-title', _unref(hashId)]),
|
|
27
35
|
style: _normalizeStyle(__props.style)
|
|
28
36
|
}, [
|
|
29
37
|
_createElementVNode("div", _hoisted_1, _toDisplayString(__props.data), 1 /* TEXT */),
|
|
30
38
|
_renderSlot(_ctx.$slots, "extra")
|
|
31
|
-
],
|
|
39
|
+
], 6 /* CLASS, STYLE */));
|
|
32
40
|
};
|
|
33
41
|
}
|
|
34
42
|
});
|