@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
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.topNavHeaderProps = exports.baseHeaderProps = exports.TopNavHeader = void 0;
|
|
8
|
-
var _vue = require("vue");
|
|
9
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _vue = require("vue");
|
|
10
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
12
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
13
|
var _vcResizeObserver = _interopRequireDefault(require("ant-design-vue/lib/vc-resize-observer"));
|
|
@@ -16,10 +17,8 @@ var _defaultSettings = require("../defaultSettings");
|
|
|
16
17
|
var _RouteContext = require("../RouteContext");
|
|
17
18
|
var _BaseMenu = _interopRequireDefault(require("../SiderMenu/BaseMenu"));
|
|
18
19
|
var _util = require("../util");
|
|
20
|
+
var _style = _interopRequireDefault(require("../style"));
|
|
19
21
|
var _excluded = ["rightContentRender"];
|
|
20
|
-
function _isSlot(s) {
|
|
21
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
|
|
22
|
-
}
|
|
23
22
|
var baseHeaderProps = exports.baseHeaderProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _defaultSettings.defaultSettingProps), {}, {
|
|
24
23
|
prefixCls: _vueTypes.default.string.def('ant-pro'),
|
|
25
24
|
collapsed: _vueTypes.default.looseBool,
|
|
@@ -104,6 +103,13 @@ var TopNavHeader = exports.TopNavHeader = function TopNavHeader(props) {
|
|
|
104
103
|
mode = props.mode;
|
|
105
104
|
var context = (0, _RouteContext.useRouteContext)();
|
|
106
105
|
var prefixCls = "".concat(propPrefixCls || _RouteContext.defaultPrefixCls, "-top-nav-header");
|
|
106
|
+
var stylePrefixCls = (0, _vue.computed)(function () {
|
|
107
|
+
return 'pro-layout';
|
|
108
|
+
});
|
|
109
|
+
var _useProLayoutStyle = (0, _style.default)(stylePrefixCls),
|
|
110
|
+
_useProLayoutStyle2 = (0, _slicedToArray2.default)(_useProLayoutStyle, 2),
|
|
111
|
+
wrapSSR = _useProLayoutStyle2[0],
|
|
112
|
+
hashId = _useProLayoutStyle2[1];
|
|
107
113
|
var headerDom = (0, _SiderMenu.defaultRenderLogoAndTitle)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
108
114
|
collapsed: false
|
|
109
115
|
}),
|
|
@@ -126,7 +132,7 @@ var TopNavHeader = exports.TopNavHeader = function TopNavHeader(props) {
|
|
|
126
132
|
return props.layout === 'mix' && props.splitMenus ? 'horizontal' : mode;
|
|
127
133
|
});
|
|
128
134
|
var className = (0, _vue.computed)(function () {
|
|
129
|
-
return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, prefixCls, true), "light", props.theme === 'light'), "dark", props.theme === 'dark');
|
|
135
|
+
return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, prefixCls, true), hashId.value, true), "light", props.theme === 'light'), "dark", props.theme === 'dark');
|
|
130
136
|
});
|
|
131
137
|
var paddingLeft = (0, _vue.computed)(function () {
|
|
132
138
|
return context.layoutType === _defaultSettings.LayoutType.PAD && props.collapsed ? context.headerLeftWidth + 'px' : 0;
|
|
@@ -146,11 +152,7 @@ var TopNavHeader = exports.TopNavHeader = function TopNavHeader(props) {
|
|
|
146
152
|
"class": "".concat(prefixCls, "-logo"),
|
|
147
153
|
"key": "logo",
|
|
148
154
|
"id": "logo"
|
|
149
|
-
},
|
|
150
|
-
default: function _default() {
|
|
151
|
-
return [headerDom];
|
|
152
|
-
}
|
|
153
|
-
})]), (0, _vue.createVNode)("div", {
|
|
155
|
+
}, [headerDom])]), (0, _vue.createVNode)("div", {
|
|
154
156
|
"style": {
|
|
155
157
|
flex: 1
|
|
156
158
|
},
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.genTopHeaderStyle = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var genTopHeaderStyle = exports.genTopHeaderStyle = function genTopHeaderStyle(config) {
|
|
10
|
+
var token = config.token;
|
|
11
|
+
var topNavHeaderCls = "".concat(token.antCls, "-pro-top-nav-header");
|
|
12
|
+
var proLayoutGlobalHeaderCls = "".concat(token.antCls, "-pro-global-header");
|
|
13
|
+
var proLayoutHeaderBg = token.colorBgContainer;
|
|
14
|
+
var proLayoutHeaderHoverBg = token.colorBgContainer;
|
|
15
|
+
var proLayoutHeaderBoxShadow = '0 1px 4px rgba(0, 21, 41, 0.08)';
|
|
16
|
+
return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, proLayoutGlobalHeaderCls, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
17
|
+
position: 'relative',
|
|
18
|
+
display: 'flex',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
height: '100%',
|
|
21
|
+
padding: '0 16px',
|
|
22
|
+
backgroundColor: proLayoutHeaderBg,
|
|
23
|
+
boxShadow: proLayoutHeaderBoxShadow,
|
|
24
|
+
'> *': {
|
|
25
|
+
height: '100%'
|
|
26
|
+
}
|
|
27
|
+
}, "".concat(proLayoutGlobalHeaderCls, "-coppapsed-button"), {
|
|
28
|
+
display: 'flex',
|
|
29
|
+
alignItems: 'center',
|
|
30
|
+
marginLeft: '16px',
|
|
31
|
+
fontSize: '20px'
|
|
32
|
+
}), "".concat(proLayoutGlobalHeaderCls, "-layout"), (0, _defineProperty2.default)({}, "".concat(proLayoutGlobalHeaderCls, "-layout-mix"), (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
33
|
+
backgroundColor: '#001529'
|
|
34
|
+
}, "".concat(proLayoutGlobalHeaderCls, "-logo"), {
|
|
35
|
+
'h1': {
|
|
36
|
+
color: '#fff'
|
|
37
|
+
}
|
|
38
|
+
}), '.anticon', {
|
|
39
|
+
color: '#fff'
|
|
40
|
+
}))), "".concat(proLayoutGlobalHeaderCls, "-logo"), {
|
|
41
|
+
position: 'relative',
|
|
42
|
+
overflow: 'hidden',
|
|
43
|
+
a: {
|
|
44
|
+
display: 'flex',
|
|
45
|
+
alignItems: 'center',
|
|
46
|
+
height: '100%',
|
|
47
|
+
img: {
|
|
48
|
+
height: '28px'
|
|
49
|
+
},
|
|
50
|
+
h1: {
|
|
51
|
+
height: '32px',
|
|
52
|
+
margin: '0 0 0 12px',
|
|
53
|
+
color: token.colorPrimary,
|
|
54
|
+
fontWeight: 600,
|
|
55
|
+
fontSize: '18px',
|
|
56
|
+
lineHeight: '32px'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}), "".concat(proLayoutGlobalHeaderCls, "-menu"), (0, _defineProperty2.default)({
|
|
60
|
+
'.anticon': {
|
|
61
|
+
marginRight: '8px'
|
|
62
|
+
}
|
|
63
|
+
}, "".concat(token.antCls, "-dropdown-menu-item"), {
|
|
64
|
+
minWidth: '160px'
|
|
65
|
+
})), '.dark', {
|
|
66
|
+
height: '48px',
|
|
67
|
+
'.action': (0, _defineProperty2.default)({
|
|
68
|
+
color: 'rgba(255, 255, 255, 0.85)',
|
|
69
|
+
'> i': {
|
|
70
|
+
color: 'rgba(255, 255, 255, 0.85)'
|
|
71
|
+
},
|
|
72
|
+
'&:hover,&.opend': {
|
|
73
|
+
background: token.colorPrimary
|
|
74
|
+
}
|
|
75
|
+
}, "".concat(token.antCls, "-badge"), {
|
|
76
|
+
color: 'rgba(255, 255, 255, 0.85)'
|
|
77
|
+
})
|
|
78
|
+
})), topNavHeaderCls, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
79
|
+
position: 'relative',
|
|
80
|
+
width: '100%',
|
|
81
|
+
height: '100%',
|
|
82
|
+
boxShadow: '0 1px 4px 0 rgba(0, 21, 41, 0.12)',
|
|
83
|
+
transition: 'background 0.3s, width 0.2s'
|
|
84
|
+
}, "".concat(token.antCls, "-menu"), {
|
|
85
|
+
backgroundColor: 'transparent'
|
|
86
|
+
}), '&.light', (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
87
|
+
backgroundColor: token.colorBgContainer
|
|
88
|
+
}, "".concat(topNavHeaderCls, "-logo"), {
|
|
89
|
+
h1: {
|
|
90
|
+
color: token.colorTextHeading
|
|
91
|
+
}
|
|
92
|
+
}), '.anticon', {
|
|
93
|
+
color: 'inherit'
|
|
94
|
+
})), "".concat(topNavHeaderCls, "-main"), (0, _defineProperty2.default)({
|
|
95
|
+
display: 'flex',
|
|
96
|
+
height: '100%',
|
|
97
|
+
paddingLeft: '16px'
|
|
98
|
+
}, "".concat(topNavHeaderCls, "-main-left"), {
|
|
99
|
+
display: 'flex',
|
|
100
|
+
minWidth: '192px'
|
|
101
|
+
})), '.anticon', {
|
|
102
|
+
color: '#fff'
|
|
103
|
+
}), "".concat(topNavHeaderCls, "-logo"), {
|
|
104
|
+
position: 'relative',
|
|
105
|
+
minWidth: '165px',
|
|
106
|
+
height: '100%',
|
|
107
|
+
overflow: 'hidden',
|
|
108
|
+
img: {
|
|
109
|
+
display: 'inline-block',
|
|
110
|
+
height: '32px',
|
|
111
|
+
verticalAlign: 'middle'
|
|
112
|
+
},
|
|
113
|
+
h1: {
|
|
114
|
+
display: 'inline-block',
|
|
115
|
+
margin: '0 0 0 12px',
|
|
116
|
+
color: token.colorPrimary,
|
|
117
|
+
fontWeight: 600,
|
|
118
|
+
fontSize: '16px',
|
|
119
|
+
verticalAlign: 'top'
|
|
120
|
+
}
|
|
121
|
+
}), "".concat(topNavHeaderCls, "-menu"), (0, _defineProperty2.default)({
|
|
122
|
+
minWidth: 0
|
|
123
|
+
}, "".concat(token.antCls, "-menu").concat(token.antCls, "-meu-horizontal"), (0, _defineProperty2.default)({
|
|
124
|
+
height: '100%',
|
|
125
|
+
border: 'none'
|
|
126
|
+
}, "".concat(token.antCls, "-menu-item"), (0, _defineProperty2.default)({
|
|
127
|
+
height: '100%'
|
|
128
|
+
}, "".concat(token.antCls, "-badge"), {
|
|
129
|
+
color: 'unset'
|
|
130
|
+
}))))), "".concat(token.antCls, "-pro-menu-popup"), (0, _defineProperty2.default)({}, "".concat(token.antCls, "-badge"), {
|
|
131
|
+
color: 'unset'
|
|
132
|
+
}));
|
|
133
|
+
};
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.defaultSettings = exports.defaultSettingProps = exports.LayoutType = void 0;
|
|
8
8
|
require("vue");
|
|
9
|
-
var _vueTypes = _interopRequireDefault(require("ant-design-vue/
|
|
9
|
+
var _vueTypes = _interopRequireDefault(require("ant-design-vue/es/_util/vue-types"));
|
|
10
10
|
var defaultSettings = exports.defaultSettings = {
|
|
11
11
|
theme: 'light',
|
|
12
12
|
layout: 'mix',
|
|
@@ -1,3 +1,14 @@
|
|
|
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 _styleRegister = _interopRequireDefault(require("../../style/styleRegister"));
|
|
9
|
+
var _BasicLayoutStyle = require("../Basic/BasicLayoutStyle");
|
|
10
|
+
var _HeaderStyle = require("../Basic/HeaderStyle");
|
|
11
|
+
var _style = require("../PageContainer/style");
|
|
12
|
+
var _style2 = require("../SiderMenu/style");
|
|
13
|
+
var _style3 = require("../TopHeader/style");
|
|
14
|
+
var _default = exports.default = (0, _styleRegister.default)([_BasicLayoutStyle.genBasicLayoutStyle, _HeaderStyle.genHeaderStyle, _style.genPageContainerStyle, _style2.genSiderMenuStyle, _style3.genTopHeaderStyle]);
|
package/lib/ProLayout/util.js
CHANGED
|
@@ -14,14 +14,14 @@ function clearMenuItem(menusData) {
|
|
|
14
14
|
return menusData.map(function (item) {
|
|
15
15
|
var _finalItem$meta;
|
|
16
16
|
var finalItem = (0, _objectSpread2.default)({}, item);
|
|
17
|
-
if ((_finalItem$meta = finalItem.meta)
|
|
17
|
+
if ((_finalItem$meta = finalItem.meta) !== null && _finalItem$meta !== void 0 && _finalItem$meta.hideInMenu) {
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
-
if (finalItem &&
|
|
20
|
+
if (finalItem && finalItem !== null && finalItem !== void 0 && finalItem.children) {
|
|
21
21
|
var _finalItem$meta2;
|
|
22
|
-
if (!((_finalItem$meta2 = finalItem.meta)
|
|
22
|
+
if (!((_finalItem$meta2 = finalItem.meta) !== null && _finalItem$meta2 !== void 0 && _finalItem$meta2.hideChildInMenu) && finalItem.children.some(function (child) {
|
|
23
23
|
var _child$meta;
|
|
24
|
-
return child && child.name && !((_child$meta = child.meta)
|
|
24
|
+
return child && child.name && !((_child$meta = child.meta) !== null && _child$meta !== void 0 && _child$meta.hideInMenu);
|
|
25
25
|
})) {
|
|
26
26
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
|
|
27
27
|
children: clearMenuItem(finalItem.children)
|
|
@@ -38,7 +38,7 @@ function flatMap(menusData) {
|
|
|
38
38
|
return menusData.map(function (item) {
|
|
39
39
|
var _finalItem$meta3;
|
|
40
40
|
var finalItem = (0, _objectSpread2.default)({}, item);
|
|
41
|
-
if (!finalItem.name || (
|
|
41
|
+
if (!finalItem.name || (_finalItem$meta3 = finalItem.meta) !== null && _finalItem$meta3 !== void 0 && _finalItem$meta3.hideInMenu) {
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
if (finalItem.children) {
|
package/lib/ProTable/Alert.js
CHANGED
|
@@ -20,19 +20,23 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
20
20
|
"computed": "setup-const",
|
|
21
21
|
"_alertProps": "setup-maybe-ref",
|
|
22
22
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
23
|
+
"useProTableStyle": "setup-maybe-ref",
|
|
23
24
|
"contextLocale": "setup-maybe-ref",
|
|
24
25
|
"props": "setup-reactive-const",
|
|
25
26
|
"emits": "setup-const",
|
|
27
|
+
"prefixCls": "setup-ref",
|
|
28
|
+
"wrapSSR": "setup-maybe-ref",
|
|
29
|
+
"hashId": "setup-maybe-ref",
|
|
26
30
|
"_message": "setup-ref",
|
|
27
31
|
"onClose": "setup-const"
|
|
28
32
|
} */
|
|
29
33
|
import { defineComponent as _defineComponent } from 'vue';
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
import { Alert, Button } from 'ant-design-vue/lib/';
|
|
34
|
+
import { unref as _unref, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
35
|
+
import { Alert, Button } from 'ant-design-vue';
|
|
33
36
|
import { computed } from "vue";
|
|
34
37
|
import { _alertProps } from "./setting";
|
|
35
38
|
import { useLocaleReceiver } from "../LocaleReciver/index";
|
|
39
|
+
import useProTableStyle from './style';
|
|
36
40
|
const __sfc_main__ = _defineComponent({
|
|
37
41
|
...{
|
|
38
42
|
name: 'Alert'
|
|
@@ -43,6 +47,8 @@ const __sfc_main__ = _defineComponent({
|
|
|
43
47
|
const [contextLocale] = useLocaleReceiver('ProTable');
|
|
44
48
|
const props = __props;
|
|
45
49
|
const emits = __emit;
|
|
50
|
+
const prefixCls = computed(() => 'pro-table');
|
|
51
|
+
const [wrapSSR, hashId] = useProTableStyle(prefixCls);
|
|
46
52
|
const _message = computed(() => {
|
|
47
53
|
let locale = _optionalChain([contextLocale, 'access', _2 => _2.value, 'optionalAccess', _3 => _3.alert, 'optionalAccess', _4 => _4.selectItem]) || '';
|
|
48
54
|
[_optionalChain([props, 'access', _5 => _5.rowSelection, 'optionalAccess', _6 => _6.selectedRowKeys, 'optionalAccess', _7 => _7.length]) || 0].forEach((item, index) => {
|
|
@@ -54,7 +60,9 @@ const __sfc_main__ = _defineComponent({
|
|
|
54
60
|
emits('close');
|
|
55
61
|
};
|
|
56
62
|
return (_ctx, _cache) => {
|
|
57
|
-
return (_openBlock(), _createElementBlock("div",
|
|
63
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
64
|
+
class: _normalizeClass(['jtable-alert', _unref(hashId)])
|
|
65
|
+
}, [
|
|
58
66
|
_renderSlot(_ctx.$slots, "default", {}, () => [
|
|
59
67
|
_createVNode(_unref(Alert), {
|
|
60
68
|
type: "info",
|
|
@@ -74,7 +82,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
74
82
|
_: 1 /* STABLE */
|
|
75
83
|
}, 8 /* PROPS */, ["message"])
|
|
76
84
|
])
|
|
77
|
-
]));
|
|
85
|
+
], 2 /* CLASS */));
|
|
78
86
|
};
|
|
79
87
|
}
|
|
80
88
|
});
|
package/lib/ProTable/Content.js
CHANGED
|
@@ -24,10 +24,14 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
24
24
|
"omit": "setup-maybe-ref",
|
|
25
25
|
"Empty": "setup-maybe-ref",
|
|
26
26
|
"useTableInject": "setup-maybe-ref",
|
|
27
|
+
"useProTableStyle": "setup-maybe-ref",
|
|
27
28
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
28
29
|
"props": "setup-reactive-const",
|
|
29
30
|
"slots": "setup-maybe-ref",
|
|
30
31
|
"contextLocale": "setup-maybe-ref",
|
|
32
|
+
"prefixCls": "setup-ref",
|
|
33
|
+
"wrapSSR": "setup-maybe-ref",
|
|
34
|
+
"hashId": "setup-maybe-ref",
|
|
31
35
|
"_rowSelection": "setup-maybe-ref",
|
|
32
36
|
"_columns": "setup-ref",
|
|
33
37
|
"_slots": "setup-ref",
|
|
@@ -40,27 +44,27 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
40
44
|
"handleCheckedAllChange": "setup-const"
|
|
41
45
|
} */
|
|
42
46
|
import { defineComponent as _defineComponent } from 'vue';
|
|
43
|
-
import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment,
|
|
44
|
-
const _hoisted_1 = {
|
|
45
|
-
const _hoisted_2 = {
|
|
47
|
+
import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, mergeProps as _mergeProps, renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, normalizeProps as _normalizeProps, createSlots as _createSlots, createBlock as _createBlock } from "vue";
|
|
48
|
+
const _hoisted_1 = {
|
|
46
49
|
key: 0,
|
|
47
50
|
class: "jtable-card"
|
|
48
51
|
};
|
|
49
|
-
const
|
|
52
|
+
const _hoisted_2 = {
|
|
50
53
|
key: 0,
|
|
51
54
|
style: { "margin-bottom": "10px" }
|
|
52
55
|
};
|
|
53
|
-
const
|
|
54
|
-
const
|
|
56
|
+
const _hoisted_3 = ["onClick"];
|
|
57
|
+
const _hoisted_4 = {
|
|
55
58
|
key: 2,
|
|
56
59
|
class: "j-table-empty"
|
|
57
60
|
};
|
|
58
61
|
import { useSlots, computed } from 'vue';
|
|
59
62
|
import { _contentProps } from "./setting";
|
|
60
|
-
import { Table } from 'ant-design-vue
|
|
63
|
+
import { Table } from 'ant-design-vue';
|
|
61
64
|
import { get, omit } from 'lodash-es';
|
|
62
65
|
import Empty from '../Empty';
|
|
63
66
|
import { useTableInject } from './hooks';
|
|
67
|
+
import useProTableStyle from './style';
|
|
64
68
|
import { useLocaleReceiver } from "../LocaleReciver";
|
|
65
69
|
const __sfc_main__ = _defineComponent({
|
|
66
70
|
...{
|
|
@@ -77,6 +81,8 @@ const __sfc_main__ = _defineComponent({
|
|
|
77
81
|
const props = __props;
|
|
78
82
|
const slots = useSlots();
|
|
79
83
|
const [contextLocale] = useLocaleReceiver('ProTable');
|
|
84
|
+
const prefixCls = computed(() => 'pro-table');
|
|
85
|
+
const [wrapSSR, hashId] = useProTableStyle(prefixCls);
|
|
80
86
|
const _rowSelection = useTableInject();
|
|
81
87
|
const _columns = computed(() => props.columns.filter((i) => !_optionalChain([i, 'optionalAccess', _2 => _2.hideInTable])));
|
|
82
88
|
const _slots = computed(() => {
|
|
@@ -118,11 +124,13 @@ const __sfc_main__ = _defineComponent({
|
|
|
118
124
|
};
|
|
119
125
|
return (_ctx, _cache) => {
|
|
120
126
|
const _component_a_checkbox = _resolveComponent("a-checkbox");
|
|
121
|
-
return (_openBlock(), _createElementBlock("div",
|
|
127
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
128
|
+
class: _normalizeClass(['jtable-box', _unref(hashId)])
|
|
129
|
+
}, [
|
|
122
130
|
(_ctx.mode === 'CARD')
|
|
123
|
-
? (_openBlock(), _createElementBlock("div",
|
|
131
|
+
? (_openBlock(), _createElementBlock("div", _hoisted_1, [
|
|
124
132
|
(__rowSelection.value && __rowSelection.value.type === 'checkbox')
|
|
125
|
-
? (_openBlock(), _createElementBlock("div",
|
|
133
|
+
? (_openBlock(), _createElementBlock("div", _hoisted_2, [
|
|
126
134
|
_createVNode(_component_a_checkbox, {
|
|
127
135
|
indeterminate: indeterminate.value,
|
|
128
136
|
checked: checkedAll.value,
|
|
@@ -147,11 +155,11 @@ const __sfc_main__ = _defineComponent({
|
|
|
147
155
|
key: item[props.rowKey],
|
|
148
156
|
onClick: ($event) => (onClick(item))
|
|
149
157
|
}, [
|
|
150
|
-
_renderSlot(_ctx.$slots, "card",
|
|
151
|
-
], 10 /* CLASS, PROPS */,
|
|
158
|
+
_renderSlot(_ctx.$slots, "card", _mergeProps({ ref_for: true }, item))
|
|
159
|
+
], 10 /* CLASS, PROPS */, _hoisted_3));
|
|
152
160
|
}), 128 /* KEYED_FRAGMENT */))
|
|
153
161
|
], 4 /* STYLE */))
|
|
154
|
-
: (_openBlock(), _createElementBlock("div",
|
|
162
|
+
: (_openBlock(), _createElementBlock("div", _hoisted_4, [
|
|
155
163
|
_renderSlot(_ctx.$slots, "emptyText", {}, () => [
|
|
156
164
|
_createVNode(_unref(Empty))
|
|
157
165
|
])
|
|
@@ -193,7 +201,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
193
201
|
};
|
|
194
202
|
})
|
|
195
203
|
]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["row-selection", "dataSource", "columns", "scroll", "class"]))
|
|
196
|
-
]));
|
|
204
|
+
], 2 /* CLASS */));
|
|
197
205
|
};
|
|
198
206
|
}
|
|
199
207
|
});
|
package/lib/ProTable/Header.js
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
/* Analyzed bindings: {
|
|
2
2
|
"initMode": "props",
|
|
3
|
+
"computed": "setup-const",
|
|
3
4
|
"RadioGroup": "setup-maybe-ref",
|
|
4
5
|
"RadioButton": "setup-maybe-ref",
|
|
5
6
|
"AIcon": "setup-maybe-ref",
|
|
6
7
|
"_headerProps": "setup-maybe-ref",
|
|
8
|
+
"useProTableStyle": "setup-maybe-ref",
|
|
7
9
|
"props": "setup-reactive-const",
|
|
8
|
-
"emits": "setup-const"
|
|
10
|
+
"emits": "setup-const",
|
|
11
|
+
"prefixCls": "setup-ref",
|
|
12
|
+
"wrapSSR": "setup-maybe-ref",
|
|
13
|
+
"hashId": "setup-maybe-ref"
|
|
9
14
|
} */
|
|
10
15
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
|
-
import {
|
|
12
|
-
const _hoisted_1 = { class: "jtable-body-header" };
|
|
13
|
-
const _hoisted_2 = { class: "jtable-body-header-
|
|
14
|
-
const _hoisted_3 = {
|
|
15
|
-
const _hoisted_4 = {
|
|
16
|
+
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass } from "vue";
|
|
17
|
+
const _hoisted_1 = { class: "jtable-body-header-left" };
|
|
18
|
+
const _hoisted_2 = { class: "jtable-body-header-right" };
|
|
19
|
+
const _hoisted_3 = {
|
|
16
20
|
key: 0,
|
|
17
21
|
class: "table-body-header-right-button"
|
|
18
22
|
};
|
|
19
|
-
import {
|
|
23
|
+
import { computed } from 'vue';
|
|
24
|
+
import { RadioGroup, RadioButton } from 'ant-design-vue';
|
|
20
25
|
import AIcon from '../Icon';
|
|
21
26
|
import { _headerProps } from './setting';
|
|
27
|
+
import useProTableStyle from './style';
|
|
22
28
|
const __sfc_main__ = _defineComponent({
|
|
23
29
|
...{
|
|
24
30
|
name: 'Header'
|
|
@@ -34,15 +40,19 @@ const __sfc_main__ = _defineComponent({
|
|
|
34
40
|
setup(__props, { emit: __emit }) {
|
|
35
41
|
const props = __props;
|
|
36
42
|
const emits = __emit;
|
|
43
|
+
const prefixCls = computed(() => 'pro-table');
|
|
44
|
+
const [wrapSSR, hashId] = useProTableStyle(prefixCls);
|
|
37
45
|
return (_ctx, _cache) => {
|
|
38
|
-
return (_openBlock(), _createElementBlock("div",
|
|
39
|
-
|
|
46
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
47
|
+
class: _normalizeClass(['jtable-body-header', _unref(hashId)])
|
|
48
|
+
}, [
|
|
49
|
+
_createElementVNode("div", _hoisted_1, [
|
|
40
50
|
_renderSlot(_ctx.$slots, "headerLeftRender")
|
|
41
51
|
]),
|
|
42
|
-
_createElementVNode("div",
|
|
52
|
+
_createElementVNode("div", _hoisted_2, [
|
|
43
53
|
_renderSlot(_ctx.$slots, "headerRightRender"),
|
|
44
54
|
(!__props.initMode)
|
|
45
|
-
? (_openBlock(), _createElementBlock("div",
|
|
55
|
+
? (_openBlock(), _createElementBlock("div", _hoisted_3, [
|
|
46
56
|
_createVNode(_unref(RadioGroup), {
|
|
47
57
|
value: _ctx.mode,
|
|
48
58
|
onChange: _cache[0] || (_cache[0] = (e) => emits('change', e))
|
|
@@ -66,7 +76,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
66
76
|
]))
|
|
67
77
|
: _createCommentVNode("v-if", true)
|
|
68
78
|
])
|
|
69
|
-
]));
|
|
79
|
+
], 2 /* CLASS */));
|
|
70
80
|
};
|
|
71
81
|
}
|
|
72
82
|
});
|
|
@@ -19,20 +19,24 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
19
19
|
"_paginationProps": "setup-maybe-ref",
|
|
20
20
|
"computed": "setup-const",
|
|
21
21
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
22
|
+
"useProTableStyle": "setup-maybe-ref",
|
|
22
23
|
"props": "setup-reactive-const",
|
|
23
24
|
"emits": "setup-const",
|
|
24
25
|
"contextLocale": "setup-maybe-ref",
|
|
26
|
+
"prefixCls": "setup-ref",
|
|
27
|
+
"wrapSSR": "setup-maybe-ref",
|
|
28
|
+
"hashId": "setup-maybe-ref",
|
|
25
29
|
"className": "setup-ref",
|
|
26
30
|
"_showTotal": "setup-const",
|
|
27
31
|
"onChange": "setup-const"
|
|
28
32
|
} */
|
|
29
33
|
import { defineComponent as _defineComponent } from 'vue';
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
import { Pagination } from 'ant-design-vue/lib/';
|
|
34
|
+
import { unref as _unref, renderSlot as _renderSlot, mergeProps as _mergeProps, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
35
|
+
import { Pagination } from 'ant-design-vue';
|
|
33
36
|
import { _paginationProps } from "./setting";
|
|
34
37
|
import { computed } from 'vue';
|
|
35
38
|
import { useLocaleReceiver } from "../LocaleReciver";
|
|
39
|
+
import useProTableStyle from './style';
|
|
36
40
|
const __sfc_main__ = _defineComponent({
|
|
37
41
|
...{
|
|
38
42
|
name: 'JPagination'
|
|
@@ -43,6 +47,8 @@ const __sfc_main__ = _defineComponent({
|
|
|
43
47
|
const props = __props;
|
|
44
48
|
const emits = __emit;
|
|
45
49
|
const [contextLocale] = useLocaleReceiver('ProTable');
|
|
50
|
+
const prefixCls = computed(() => 'pro-table');
|
|
51
|
+
const [wrapSSR, hashId] = useProTableStyle(prefixCls);
|
|
46
52
|
const className = computed(() => {
|
|
47
53
|
return {
|
|
48
54
|
'hide-content': !props.isShowContent,
|
|
@@ -62,7 +68,9 @@ const __sfc_main__ = _defineComponent({
|
|
|
62
68
|
emits('change', page, size);
|
|
63
69
|
};
|
|
64
70
|
return (_ctx, _cache) => {
|
|
65
|
-
return (_openBlock(), _createElementBlock("div",
|
|
71
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
72
|
+
class: _normalizeClass(['jtable-pagination', _unref(hashId)])
|
|
73
|
+
}, [
|
|
66
74
|
_renderSlot(_ctx.$slots, "default", {}, () => [
|
|
67
75
|
_createVNode(_unref(Pagination), _mergeProps(props, {
|
|
68
76
|
total: _ctx.total,
|
|
@@ -73,7 +81,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
73
81
|
onChange: onChange
|
|
74
82
|
}), null, 16 /* FULL_PROPS */, ["total", "pageSize", "current", "show-total", "class"])
|
|
75
83
|
])
|
|
76
|
-
]));
|
|
84
|
+
], 2 /* CLASS */));
|
|
77
85
|
};
|
|
78
86
|
}
|
|
79
87
|
});
|