@jetlinks-web/components 2.6.20 → 2.6.22
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/AMap/Map.js +1 -2
- package/es/AutoComplete/AutoComplete.js +2 -3
- package/es/BadgeStatus/Badge.js +2 -3
- package/es/CardSelect/CardSelect.js +1 -2
- package/es/CheckButton/CheckButton.js +1 -2
- package/es/ConfigProvider/index.js +1 -1
- package/es/DragModal/DragModal.js +1 -2
- package/es/Echarts/Echarts.js +1 -2
- package/es/EditTable/EditTable.js +5 -7
- package/es/EditTable/FormItem.js +0 -1
- package/es/EditTable/Header.js +5 -3
- package/es/EditTable/components/ContextMenu/Menu.js +2 -3
- package/es/EditTable/components/Search/search.js +1 -2
- package/es/EditTable/components/Search/sort.js +1 -3
- package/es/EditTable/group.js +8 -11
- package/es/EditTable/hooks/useValidate.js +1 -1
- package/es/Ellipsis/Ellipsis.js +1 -1
- package/es/Empty/Empty.js +1 -1
- package/es/FlameGraph/FlameGraph.js +2 -2
- 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 +36 -41
- package/es/ProLayout/Basic/Header.js +4 -8
- package/es/ProLayout/PageContainer/index.js +11 -15
- package/es/ProLayout/SiderMenu/BaseMenu.js +14 -38
- package/es/ProLayout/SiderMenu/SiderMenu.js +15 -35
- package/es/ProLayout/TopHeader/index.js +2 -10
- package/es/ProLayout/util.js +5 -5
- package/es/ProTable/Alert.js +1 -1
- package/es/ProTable/Content.js +35 -19
- package/es/ProTable/Header.js +1 -1
- package/es/ProTable/Pagination.js +1 -1
- package/es/ProTable/ProTable.js +1 -1
- package/es/ProTable/setting.js +1 -1
- package/es/RadioButton/RadioButton.js +0 -1
- package/es/Search/Advanced/History.js +1 -1
- package/es/Search/Advanced/SaveHistory.js +2 -3
- package/es/Search/Advanced/index.js +1 -1
- package/es/Search/Item.js +2 -3
- package/es/Search/Search.js +1 -1
- package/es/Title/title.js +0 -1
- package/es/ValueItem/ValueItem.js +1 -1
- package/lib/AMap/Map.js +1 -2
- package/lib/AutoComplete/AutoComplete.js +1 -2
- package/lib/BadgeStatus/Badge.js +2 -3
- package/lib/CardSelect/CardSelect.js +1 -2
- package/lib/CheckButton/CheckButton.js +1 -2
- package/lib/ConfigProvider/context.js +1 -1
- package/lib/ConfigProvider/index.js +3 -3
- package/lib/DragModal/DragModal.js +1 -2
- package/lib/Echarts/Echarts.js +1 -2
- package/lib/EditTable/EditTable.js +4 -6
- package/lib/EditTable/FormItem.js +1 -2
- package/lib/EditTable/Header.js +5 -3
- package/lib/EditTable/components/ContextMenu/Menu.js +2 -3
- package/lib/EditTable/components/Search/search.js +1 -2
- package/lib/EditTable/components/Search/sort.js +1 -3
- package/lib/EditTable/group.js +8 -11
- package/lib/EditTable/hooks/useValidate.js +1 -1
- package/lib/Ellipsis/Ellipsis.js +1 -1
- package/lib/Empty/Empty.js +1 -1
- package/lib/FlameGraph/FlameGraph.js +2 -2
- package/lib/FullPage/FullPage.js +1 -2
- package/lib/LocaleProvider/index.js +1 -2
- package/lib/PermissionButton/index.js +10 -10
- package/lib/ProLayout/Basic/BasicLayout.js +45 -50
- package/lib/ProLayout/Basic/Header.js +6 -10
- package/lib/ProLayout/PageContainer/index.js +16 -20
- package/lib/ProLayout/SiderMenu/BaseMenu.js +18 -41
- package/lib/ProLayout/SiderMenu/SiderMenu.js +18 -38
- package/lib/ProLayout/TopHeader/index.js +4 -11
- package/lib/ProLayout/defaultSettings.js +1 -1
- package/lib/ProLayout/util.js +5 -5
- package/lib/ProTable/Alert.js +1 -1
- package/lib/ProTable/Content.js +35 -19
- package/lib/ProTable/Header.js +1 -1
- package/lib/ProTable/Pagination.js +1 -1
- package/lib/ProTable/ProTable.js +1 -1
- package/lib/ProTable/setting.js +3 -3
- package/lib/RadioButton/RadioButton.js +0 -1
- package/lib/Search/Advanced/History.js +1 -1
- package/lib/Search/Advanced/SaveHistory.js +2 -3
- package/lib/Search/Advanced/index.js +1 -1
- package/lib/Search/Item.js +2 -3
- package/lib/Search/Search.js +1 -1
- package/lib/Title/title.js +0 -1
- package/lib/ValueItem/ValueItem.js +1 -1
- package/package.json +1 -1
- 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/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/style/index.css +0 -43
- package/es/FlameGraph/style/index.less +0 -52
- package/es/MonacoEditor/style/index.css +0 -4
- 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 -138
- 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 -5237
- package/es/style/variable.css +0 -4
- package/es/style/variable.less +0 -4
- 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/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/style/index.css +0 -43
- package/lib/FlameGraph/style/index.less +0 -52
- package/lib/MonacoEditor/style/index.css +0 -4
- 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 -138
- 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/components.less +0 -10
- package/lib/style/index.css +0 -5237
- package/lib/style/variable.css +0 -4
- package/lib/style/variable.less +0 -4
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { createVNode as _createVNode, Fragment as _Fragment
|
|
1
|
+
import { createVNode as _createVNode, Fragment as _Fragment } from "vue";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import { baseHeaderProps, TopNavHeader } from '../TopHeader';
|
|
5
5
|
import PropTypes from 'ant-design-vue/es/_util/vue-types';
|
|
6
6
|
import { defineComponent, computed, toRefs } from 'vue';
|
|
7
7
|
import { useRouteContext } from '../RouteContext';
|
|
8
|
-
import { Layout } from 'ant-design-vue/es';
|
|
8
|
+
import { Layout } from 'ant-design-vue/es/';
|
|
9
9
|
import { LayoutType } from "../defaultSettings";
|
|
10
|
-
function _isSlot(s) {
|
|
11
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !_isVNode(s);
|
|
12
|
-
}
|
|
13
10
|
export var headerViewProps = _objectSpread(_objectSpread({}, baseHeaderProps), {}, {
|
|
14
11
|
headerRender: {
|
|
15
12
|
type: [Object, Function, Boolean],
|
|
@@ -77,7 +74,6 @@ export default defineComponent({
|
|
|
77
74
|
return 0;
|
|
78
75
|
});
|
|
79
76
|
return function () {
|
|
80
|
-
var _slot;
|
|
81
77
|
return _createVNode(_Fragment, null, [needFixedHeader.value && _createVNode(Layout.Header, {
|
|
82
78
|
"style": {
|
|
83
79
|
height: "".concat(headerHeight.value, "px"),
|
|
@@ -94,9 +90,9 @@ export default defineComponent({
|
|
|
94
90
|
right: right.value
|
|
95
91
|
},
|
|
96
92
|
"class": className.value
|
|
97
|
-
},
|
|
93
|
+
}, {
|
|
98
94
|
default: function _default() {
|
|
99
|
-
return [
|
|
95
|
+
return [renderContent()];
|
|
100
96
|
}
|
|
101
97
|
})]);
|
|
102
98
|
};
|
|
@@ -2,22 +2,19 @@ import { Fragment as _Fragment } from "vue";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
import { createVNode as _createVNode
|
|
5
|
+
import { createVNode as _createVNode } from "vue";
|
|
6
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
7
|
var _excluded = ["title", "tabList", "tabActiveKey", "content", "pageHeaderRender", "header", "extraContent", "prefixedClassName", "prefixCls", "fixedHeader", "showBack"];
|
|
8
8
|
import { withInstall } from 'ant-design-vue/es/_util/type';
|
|
9
|
-
import { Affix, Spin, PageHeader, Tabs, Button } from 'ant-design-vue/es';
|
|
9
|
+
import { Affix, Spin, PageHeader, Tabs, Button } from 'ant-design-vue/es/';
|
|
10
10
|
import { defineComponent, unref, toRefs, computed } from 'vue';
|
|
11
|
-
import { pageHeaderProps } from
|
|
11
|
+
import { pageHeaderProps } from "ant-design-vue/es/page-header";
|
|
12
12
|
import { useRouteContext } from '../RouteContext';
|
|
13
13
|
import { getSlotVNode } from '../util';
|
|
14
|
-
import
|
|
14
|
+
import "ant-design-vue/es/_util/type";
|
|
15
15
|
import 'ant-design-vue/es/_util/vue-types';
|
|
16
16
|
import { LayoutType } from "../defaultSettings";
|
|
17
17
|
import { useLocaleReceiver } from "../../LocaleReciver";
|
|
18
|
-
function _isSlot(s) {
|
|
19
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !_isVNode(s);
|
|
20
|
-
}
|
|
21
18
|
export var pageHeaderTabConfig = {
|
|
22
19
|
/**
|
|
23
20
|
* @name tabs 的列表
|
|
@@ -153,7 +150,6 @@ var renderFooter = function renderFooter(props) {
|
|
|
153
150
|
}, [item.tab]);
|
|
154
151
|
};
|
|
155
152
|
if (tabList && tabList.length) {
|
|
156
|
-
var _slot;
|
|
157
153
|
return _createVNode(Tabs, _objectSpread({
|
|
158
154
|
"class": "page-container-tabs",
|
|
159
155
|
"activeKey": tabActiveKey,
|
|
@@ -163,14 +159,14 @@ var renderFooter = function renderFooter(props) {
|
|
|
163
159
|
}
|
|
164
160
|
},
|
|
165
161
|
"tabBarExtraContent": tabBarExtraContent
|
|
166
|
-
}, tabProps),
|
|
167
|
-
return _createVNode(Tabs.TabPane, _objectSpread(_objectSpread({}, item), {}, {
|
|
168
|
-
"tab": tabPane(item),
|
|
169
|
-
"key": item.key
|
|
170
|
-
}), null);
|
|
171
|
-
})) ? _slot : {
|
|
162
|
+
}, tabProps), {
|
|
172
163
|
default: function _default() {
|
|
173
|
-
return [
|
|
164
|
+
return [tabList.map(function (item) {
|
|
165
|
+
return _createVNode(Tabs.TabPane, _objectSpread(_objectSpread({}, item), {}, {
|
|
166
|
+
"tab": tabPane(item),
|
|
167
|
+
"key": item.key
|
|
168
|
+
}), null);
|
|
169
|
+
})];
|
|
174
170
|
}
|
|
175
171
|
});
|
|
176
172
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import { isVNode as _isVNode } from "vue";
|
|
3
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
4
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
@@ -10,12 +9,8 @@ import { defineComponent, getCurrentInstance, isVNode, resolveComponent, watchEf
|
|
|
10
9
|
import { defaultPrefixCls } from '../RouteContext';
|
|
11
10
|
import IconFont from '../../Icon';
|
|
12
11
|
import { regular } from '@jetlinks-web/utils';
|
|
13
|
-
import { Menu } from 'ant-design-vue/es';
|
|
12
|
+
import { Menu } from 'ant-design-vue/es/';
|
|
14
13
|
import { createFromIconfontCN } from '@ant-design/icons-vue';
|
|
15
|
-
import 'ant-design-vue/es/_util/vue-types';
|
|
16
|
-
function _isSlot(s) {
|
|
17
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !_isVNode(s);
|
|
18
|
-
}
|
|
19
14
|
export var baseMenuProps = _objectSpread(_objectSpread({}, defaultSettingProps), {}, {
|
|
20
15
|
prefixCls: {
|
|
21
16
|
type: String,
|
|
@@ -119,8 +114,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(_props, ctx) {
|
|
|
119
114
|
});
|
|
120
115
|
_defineProperty(this, "getSubMenuOrItem", function (item) {
|
|
121
116
|
var _item$meta, _item$meta2, _item$meta7, _item$meta8;
|
|
122
|
-
if (Array.isArray(item.children) && item.children.length > 0 && !(item
|
|
123
|
-
var _slot;
|
|
117
|
+
if (Array.isArray(item.children) && item.children.length > 0 && !(item !== null && item !== void 0 && (_item$meta = item.meta) !== null && _item$meta !== void 0 && _item$meta.hideInMenu) && !(item !== null && item !== void 0 && (_item$meta2 = item.meta) !== null && _item$meta2 !== void 0 && _item$meta2.hideChildrenInMenu)) {
|
|
124
118
|
var _item$meta3, _item$meta4, _item$meta5, _item$meta6;
|
|
125
119
|
if (_this.props.subMenuItemRender) {
|
|
126
120
|
var subMenuItemRender = withCtx(_this.props.subMenuItemRender, _this.ctx);
|
|
@@ -133,21 +127,13 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(_props, ctx) {
|
|
|
133
127
|
prefixCls = _this$props.prefixCls,
|
|
134
128
|
locale = _this$props.locale;
|
|
135
129
|
var menuTitle = locale && locale((_item$meta3 = item.meta) === null || _item$meta3 === void 0 ? void 0 : _item$meta3.title) || ((_item$meta4 = item.meta) === null || _item$meta4 === void 0 ? void 0 : _item$meta4.title);
|
|
136
|
-
var defaultTitle = (
|
|
130
|
+
var defaultTitle = (_item$meta5 = item.meta) !== null && _item$meta5 !== void 0 && _item$meta5.icon ? _createVNode("span", {
|
|
137
131
|
"class": "".concat(prefixCls, "-menu-item")
|
|
138
132
|
}, [_createVNode("span", {
|
|
139
133
|
"class": "".concat(prefixCls, "-menu-item-title")
|
|
140
|
-
},
|
|
141
|
-
default: function _default() {
|
|
142
|
-
return [menuTitle];
|
|
143
|
-
}
|
|
144
|
-
})]) : _createVNode("span", {
|
|
134
|
+
}, [menuTitle])]) : _createVNode("span", {
|
|
145
135
|
"class": "".concat(prefixCls, "-menu-item")
|
|
146
|
-
},
|
|
147
|
-
default: function _default() {
|
|
148
|
-
return [menuTitle];
|
|
149
|
-
}
|
|
150
|
-
});
|
|
136
|
+
}, [menuTitle]);
|
|
151
137
|
return _createVNode(Menu.SubMenu, {
|
|
152
138
|
"title": defaultTitle,
|
|
153
139
|
"key": item.path,
|
|
@@ -156,9 +142,9 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(_props, ctx) {
|
|
|
156
142
|
"iconUrl": _this.props.iconfontUrl,
|
|
157
143
|
"icon": (_item$meta6 = item.meta) === null || _item$meta6 === void 0 ? void 0 : _item$meta6.icon
|
|
158
144
|
}, null)
|
|
159
|
-
},
|
|
145
|
+
}, {
|
|
160
146
|
default: function _default() {
|
|
161
|
-
return [
|
|
147
|
+
return [_this.getNavMenuItems(item.children)];
|
|
162
148
|
}
|
|
163
149
|
});
|
|
164
150
|
}
|
|
@@ -175,14 +161,13 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(_props, ctx) {
|
|
|
175
161
|
"disabled": (_item$meta7 = item.meta) === null || _item$meta7 === void 0 ? void 0 : _item$meta7.disabled,
|
|
176
162
|
"danger": (_item$meta8 = item.meta) === null || _item$meta8 === void 0 ? void 0 : _item$meta8.danger,
|
|
177
163
|
"key": item.path
|
|
178
|
-
},
|
|
164
|
+
}, {
|
|
179
165
|
default: function _default() {
|
|
180
166
|
return [title];
|
|
181
167
|
}
|
|
182
168
|
});
|
|
183
169
|
});
|
|
184
170
|
_defineProperty(this, "getMenuItem", function (item) {
|
|
185
|
-
var _slot2;
|
|
186
171
|
var _item$meta9, _item$meta10, _item$meta11, _item$meta12, _item$meta13;
|
|
187
172
|
var meta = _objectSpread({}, item.meta);
|
|
188
173
|
var target = meta.target || null;
|
|
@@ -205,27 +190,19 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(_props, ctx) {
|
|
|
205
190
|
"icon": (_item$meta10 = item.meta) === null || _item$meta10 === void 0 ? void 0 : _item$meta10.icon
|
|
206
191
|
}, null) || undefined;
|
|
207
192
|
var menuTitle = locale && locale((_item$meta11 = item.meta) === null || _item$meta11 === void 0 ? void 0 : _item$meta11.title) || ((_item$meta12 = item.meta) === null || _item$meta12 === void 0 ? void 0 : _item$meta12.title);
|
|
208
|
-
var defaultTitle = (
|
|
193
|
+
var defaultTitle = (_item$meta13 = item.meta) !== null && _item$meta13 !== void 0 && _item$meta13.icon ? _createVNode(CustomTag, _objectSpread(_objectSpread(_objectSpread({}, attrs), props), {}, {
|
|
209
194
|
"class": "".concat(prefixCls, "-menu-item")
|
|
210
195
|
}), {
|
|
211
196
|
default: function _default() {
|
|
212
197
|
return [icon, _createVNode("span", {
|
|
213
198
|
"class": "".concat(prefixCls, "-menu-item-title")
|
|
214
|
-
},
|
|
215
|
-
default: function _default() {
|
|
216
|
-
return [menuTitle];
|
|
217
|
-
}
|
|
218
|
-
})];
|
|
199
|
+
}, [menuTitle])];
|
|
219
200
|
}
|
|
220
201
|
}) : _createVNode(CustomTag, _objectSpread(_objectSpread(_objectSpread({}, attrs), props), {}, {
|
|
221
202
|
"class": "".concat(prefixCls, "-menu-item")
|
|
222
|
-
}),
|
|
223
|
-
default: function _default() {
|
|
224
|
-
return [menuTitle];
|
|
225
|
-
}
|
|
226
|
-
})) ? _slot2 : {
|
|
203
|
+
}), {
|
|
227
204
|
default: function _default() {
|
|
228
|
-
return [
|
|
205
|
+
return [_createVNode("span", null, [menuTitle])];
|
|
229
206
|
}
|
|
230
207
|
});
|
|
231
208
|
return [defaultTitle, icon];
|
|
@@ -263,7 +240,6 @@ export default defineComponent({
|
|
|
263
240
|
emit('click', args);
|
|
264
241
|
};
|
|
265
242
|
return function () {
|
|
266
|
-
var _slot3;
|
|
267
243
|
return _createVNode(Menu, _objectSpread({
|
|
268
244
|
"key": "Menu",
|
|
269
245
|
"inlineIndent": 16,
|
|
@@ -274,9 +250,9 @@ export default defineComponent({
|
|
|
274
250
|
"onOpenChange": handleOpenChange,
|
|
275
251
|
"onSelect": handleSelect,
|
|
276
252
|
"onClick": handleClick
|
|
277
|
-
}, props.menuProps),
|
|
253
|
+
}, props.menuProps), {
|
|
278
254
|
default: function _default() {
|
|
279
|
-
return [
|
|
255
|
+
return [menuUtil.getNavMenuItems(props.menuData)];
|
|
280
256
|
}
|
|
281
257
|
});
|
|
282
258
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import { createVNode as _createVNode,
|
|
3
|
+
import { createVNode as _createVNode, createTextVNode as _createTextVNode, Fragment as _Fragment } from "vue";
|
|
4
4
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
5
|
-
import { LayoutSider as Sider, Menu, Tooltip } from 'ant-design-vue/es';
|
|
5
|
+
import { LayoutSider as Sider, Menu, Tooltip } from 'ant-design-vue/es/';
|
|
6
6
|
import BaseMenu, { baseMenuProps } from './BaseMenu';
|
|
7
7
|
import { defaultSettingProps, LayoutType } from '../defaultSettings';
|
|
8
8
|
import PropTypes from 'ant-design-vue/es/_util/vue-types';
|
|
@@ -10,9 +10,6 @@ import IconFont from '../../Icon';
|
|
|
10
10
|
import { useRouteContext } from '../RouteContext';
|
|
11
11
|
import { computed, unref } from 'vue';
|
|
12
12
|
import "../typings";
|
|
13
|
-
function _isSlot(s) {
|
|
14
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !_isVNode(s);
|
|
15
|
-
}
|
|
16
13
|
export var siderMenuProps = _objectSpread(_objectSpread(_objectSpread({}, defaultSettingProps), baseMenuProps), {}, {
|
|
17
14
|
logo: {
|
|
18
15
|
type: [Object, String, Function],
|
|
@@ -145,11 +142,7 @@ export var defaultRenderLogoAndTitle = function defaultRenderLogoAndTitle(props)
|
|
|
145
142
|
if (layout === 'mix' && renderFunction === false) {
|
|
146
143
|
return null;
|
|
147
144
|
}
|
|
148
|
-
var titleDom = _createVNode("h1", null,
|
|
149
|
-
default: function _default() {
|
|
150
|
-
return [title];
|
|
151
|
-
}
|
|
152
|
-
});
|
|
145
|
+
var titleDom = _createVNode("h1", null, [title]);
|
|
153
146
|
if (renderKey === 'menuHeaderRender') {
|
|
154
147
|
return null;
|
|
155
148
|
}
|
|
@@ -159,11 +152,7 @@ export var defaultRenderLogoAndTitle = function defaultRenderLogoAndTitle(props)
|
|
|
159
152
|
return renderFunction(logoDom, props.collapsed ? null : titleDom, props);
|
|
160
153
|
}
|
|
161
154
|
if (Array.isArray(renderFunction)) {
|
|
162
|
-
return _createVNode(_Fragment, null,
|
|
163
|
-
default: function _default() {
|
|
164
|
-
return [renderFunction];
|
|
165
|
-
}
|
|
166
|
-
});
|
|
155
|
+
return _createVNode(_Fragment, null, [renderFunction]);
|
|
167
156
|
}
|
|
168
157
|
return _createVNode("a", null, [logoDom, props.collapsed ? null : titleDom]);
|
|
169
158
|
};
|
|
@@ -175,7 +164,6 @@ export var defaultRenderCollapsedButton = function defaultRenderCollapsedButton(
|
|
|
175
164
|
}, null);
|
|
176
165
|
};
|
|
177
166
|
var SiderMenu = function SiderMenu(props) {
|
|
178
|
-
var _slot;
|
|
179
167
|
var collapsed = props.collapsed,
|
|
180
168
|
siderWidth = props.siderWidth,
|
|
181
169
|
breakpoint = props.breakpoint,
|
|
@@ -276,17 +264,9 @@ var SiderMenu = function SiderMenu(props) {
|
|
|
276
264
|
"onClick": props.layout !== 'mix' ? props.onMenuHeaderClick : undefined,
|
|
277
265
|
"id": "logo",
|
|
278
266
|
"style": props === null || props === void 0 ? void 0 : props.logoStyle
|
|
279
|
-
},
|
|
280
|
-
default: function _default() {
|
|
281
|
-
return [headerDom];
|
|
282
|
-
}
|
|
283
|
-
}), extraDom && _createVNode("div", {
|
|
267
|
+
}, [headerDom]), extraDom && _createVNode("div", {
|
|
284
268
|
"class": _defineProperty(_defineProperty({}, "".concat(baseClassName, "-extra"), true), "".concat(baseClassName, "-extra-no-logo"), !headerDom)
|
|
285
|
-
},
|
|
286
|
-
default: function _default() {
|
|
287
|
-
return [extraDom];
|
|
288
|
-
}
|
|
289
|
-
}), _createVNode("div", {
|
|
269
|
+
}, [extraDom]), _createVNode("div", {
|
|
290
270
|
"class": "".concat(baseClassName, "-body"),
|
|
291
271
|
"style": "flex: 1; overflow: hidden auto;"
|
|
292
272
|
}, [props.layoutType !== LayoutType.CARD ? menuContentRender && menuContentRender(props, defaultMenuDom) || defaultMenuDom : null]), _createVNode("div", {
|
|
@@ -303,17 +283,17 @@ var SiderMenu = function SiderMenu(props) {
|
|
|
303
283
|
props.onCollapse(!props.collapsed);
|
|
304
284
|
}
|
|
305
285
|
}
|
|
306
|
-
}, _isSlot(_slot = _createVNode(Menu.Item, {
|
|
307
|
-
"key": 'collapsed-button',
|
|
308
|
-
"class": "".concat(baseClassName, "-collapsed-button"),
|
|
309
|
-
"title": false
|
|
310
286
|
}, {
|
|
311
287
|
default: function _default() {
|
|
312
|
-
return [
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
288
|
+
return [_createVNode(Menu.Item, {
|
|
289
|
+
"key": 'collapsed-button',
|
|
290
|
+
"class": "".concat(baseClassName, "-collapsed-button"),
|
|
291
|
+
"title": false
|
|
292
|
+
}, {
|
|
293
|
+
default: function _default() {
|
|
294
|
+
return [collapsedButtonRender && typeof collapsedButtonRender === 'function' ? collapsedButtonRender(collapsed) : collapsedButtonRender];
|
|
295
|
+
}
|
|
296
|
+
})];
|
|
317
297
|
}
|
|
318
298
|
}) : null])];
|
|
319
299
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { isVNode as _isVNode } from "vue";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
2
|
import { createVNode as _createVNode } from "vue";
|
|
4
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
@@ -7,14 +6,11 @@ var _excluded = ["rightContentRender"];
|
|
|
7
6
|
import { computed, ref } from 'vue';
|
|
8
7
|
import { default as ResizeObserver } from 'ant-design-vue/es/vc-resize-observer';
|
|
9
8
|
import { defaultRenderLogoAndTitle, siderMenuProps } from '../SiderMenu/SiderMenu';
|
|
10
|
-
import PropTypes from
|
|
9
|
+
import PropTypes from "ant-design-vue/es/_util/vue-types";
|
|
11
10
|
import { defaultSettingProps, LayoutType } from '../defaultSettings';
|
|
12
11
|
import { defaultPrefixCls, useRouteContext } from '../RouteContext';
|
|
13
12
|
import BaseMenu from '../SiderMenu/BaseMenu';
|
|
14
13
|
import { clearMenuItem } from '../util';
|
|
15
|
-
function _isSlot(s) {
|
|
16
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !_isVNode(s);
|
|
17
|
-
}
|
|
18
14
|
export var baseHeaderProps = _objectSpread(_objectSpread({}, defaultSettingProps), {}, {
|
|
19
15
|
prefixCls: PropTypes.string.def('ant-pro'),
|
|
20
16
|
collapsed: PropTypes.looseBool,
|
|
@@ -141,11 +137,7 @@ export var TopNavHeader = function TopNavHeader(props) {
|
|
|
141
137
|
"class": "".concat(prefixCls, "-logo"),
|
|
142
138
|
"key": "logo",
|
|
143
139
|
"id": "logo"
|
|
144
|
-
},
|
|
145
|
-
default: function _default() {
|
|
146
|
-
return [headerDom];
|
|
147
|
-
}
|
|
148
|
-
})]), _createVNode("div", {
|
|
140
|
+
}, [headerDom])]), _createVNode("div", {
|
|
149
141
|
"style": {
|
|
150
142
|
flex: 1
|
|
151
143
|
},
|
package/es/ProLayout/util.js
CHANGED
|
@@ -3,14 +3,14 @@ export function clearMenuItem(menusData) {
|
|
|
3
3
|
return menusData.map(function (item) {
|
|
4
4
|
var _finalItem$meta;
|
|
5
5
|
var finalItem = _objectSpread({}, item);
|
|
6
|
-
if ((_finalItem$meta = finalItem.meta)
|
|
6
|
+
if ((_finalItem$meta = finalItem.meta) !== null && _finalItem$meta !== void 0 && _finalItem$meta.hideInMenu) {
|
|
7
7
|
return null;
|
|
8
8
|
}
|
|
9
|
-
if (finalItem &&
|
|
9
|
+
if (finalItem && finalItem !== null && finalItem !== void 0 && finalItem.children) {
|
|
10
10
|
var _finalItem$meta2;
|
|
11
|
-
if (!((_finalItem$meta2 = finalItem.meta)
|
|
11
|
+
if (!((_finalItem$meta2 = finalItem.meta) !== null && _finalItem$meta2 !== void 0 && _finalItem$meta2.hideChildInMenu) && finalItem.children.some(function (child) {
|
|
12
12
|
var _child$meta;
|
|
13
|
-
return child && child.name && !((_child$meta = child.meta)
|
|
13
|
+
return child && child.name && !((_child$meta = child.meta) !== null && _child$meta !== void 0 && _child$meta.hideInMenu);
|
|
14
14
|
})) {
|
|
15
15
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
16
16
|
children: clearMenuItem(finalItem.children)
|
|
@@ -27,7 +27,7 @@ export function flatMap(menusData) {
|
|
|
27
27
|
return menusData.map(function (item) {
|
|
28
28
|
var _finalItem$meta3;
|
|
29
29
|
var finalItem = _objectSpread({}, item);
|
|
30
|
-
if (!finalItem.name || (
|
|
30
|
+
if (!finalItem.name || (_finalItem$meta3 = finalItem.meta) !== null && _finalItem$meta3 !== void 0 && _finalItem$meta3.hideInMenu) {
|
|
31
31
|
return null;
|
|
32
32
|
}
|
|
33
33
|
if (finalItem.children) {
|
package/es/ProTable/Alert.js
CHANGED
|
@@ -29,7 +29,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
29
29
|
import { defineComponent as _defineComponent } from 'vue';
|
|
30
30
|
import { renderSlot as _renderSlot, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
31
31
|
const _hoisted_1 = { class: "jtable-alert" };
|
|
32
|
-
import { Alert, Button } from 'ant-design-vue/es';
|
|
32
|
+
import { Alert, Button } from 'ant-design-vue/es/';
|
|
33
33
|
import { computed } from "vue";
|
|
34
34
|
import { _alertProps } from "./setting";
|
|
35
35
|
import { useLocaleReceiver } from "../LocaleReciver/index";
|
package/es/ProTable/Content.js
CHANGED
|
@@ -21,29 +21,36 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
21
21
|
"_contentProps": "setup-maybe-ref",
|
|
22
22
|
"Table": "setup-maybe-ref",
|
|
23
23
|
"get": "setup-maybe-ref",
|
|
24
|
+
"omit": "setup-maybe-ref",
|
|
24
25
|
"Empty": "setup-maybe-ref",
|
|
26
|
+
"useTableInject": "setup-maybe-ref",
|
|
25
27
|
"props": "setup-reactive-const",
|
|
26
28
|
"slots": "setup-maybe-ref",
|
|
29
|
+
"_rowSelection": "setup-maybe-ref",
|
|
27
30
|
"_columns": "setup-ref",
|
|
31
|
+
"_slots": "setup-ref",
|
|
28
32
|
"_scroll": "setup-ref",
|
|
29
|
-
"gridTemplateColumns": "setup-ref"
|
|
33
|
+
"gridTemplateColumns": "setup-ref",
|
|
34
|
+
"onClick": "setup-const"
|
|
30
35
|
} */
|
|
31
36
|
import { defineComponent as _defineComponent } from 'vue';
|
|
32
|
-
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock,
|
|
37
|
+
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, mergeProps as _mergeProps, renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createCommentVNode as _createCommentVNode, unref as _unref, createVNode as _createVNode, normalizeProps as _normalizeProps, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createSlots as _createSlots, createBlock as _createBlock } from "vue";
|
|
33
38
|
const _hoisted_1 = { class: "jtable-box" };
|
|
34
39
|
const _hoisted_2 = {
|
|
35
40
|
key: 0,
|
|
36
41
|
class: "jtable-card"
|
|
37
42
|
};
|
|
38
|
-
const _hoisted_3 =
|
|
43
|
+
const _hoisted_3 = ["onClick"];
|
|
44
|
+
const _hoisted_4 = {
|
|
39
45
|
key: 1,
|
|
40
46
|
class: "j-table-empty"
|
|
41
47
|
};
|
|
42
48
|
import { useSlots, computed } from 'vue';
|
|
43
49
|
import { _contentProps } from "./setting";
|
|
44
|
-
import { Table } from 'ant-design-vue/es';
|
|
45
|
-
import { get } from 'lodash-es';
|
|
50
|
+
import { Table } from 'ant-design-vue/es/';
|
|
51
|
+
import { get, omit } from 'lodash-es';
|
|
46
52
|
import Empty from '../Empty';
|
|
53
|
+
import { useTableInject } from './hooks';
|
|
47
54
|
const __sfc_main__ = _defineComponent({
|
|
48
55
|
...{
|
|
49
56
|
name: 'Content'
|
|
@@ -58,7 +65,11 @@ const __sfc_main__ = _defineComponent({
|
|
|
58
65
|
setup(__props) {
|
|
59
66
|
const props = __props;
|
|
60
67
|
const slots = useSlots();
|
|
68
|
+
const _rowSelection = useTableInject();
|
|
61
69
|
const _columns = computed(() => props.columns.filter((i) => !_optionalChain([i, 'optionalAccess', _2 => _2.hideInTable])));
|
|
70
|
+
const _slots = computed(() => {
|
|
71
|
+
return omit(slots, ['emptyText', 'bodyCell']);
|
|
72
|
+
});
|
|
62
73
|
const _scroll = computed(() => {
|
|
63
74
|
if (props.scroll === false) {
|
|
64
75
|
return {
|
|
@@ -74,6 +85,12 @@ const __sfc_main__ = _defineComponent({
|
|
|
74
85
|
const gridTemplateColumns = computed(() => {
|
|
75
86
|
return `repeat(${props.column}, 1fr)`;
|
|
76
87
|
});
|
|
88
|
+
const onClick = (item) => {
|
|
89
|
+
if (_rowSelection && _rowSelection.value) {
|
|
90
|
+
const _selected = _optionalChain([_rowSelection, 'access', _3 => _3.value, 'access', _4 => _4.selectedRowKeys, 'optionalAccess', _5 => _5.includes, 'call', _6 => _6(item[props.rowKey])]);
|
|
91
|
+
_optionalChain([_rowSelection, 'access', _7 => _7.value, 'access', _8 => _8.onSelect, 'optionalCall', _9 => _9(item, !_selected)]);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
77
94
|
return (_ctx, _cache) => {
|
|
78
95
|
return (_openBlock(), _createElementBlock("div", _hoisted_1, [
|
|
79
96
|
(_ctx.mode === 'CARD')
|
|
@@ -87,36 +104,35 @@ const __sfc_main__ = _defineComponent({
|
|
|
87
104
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.dataSource, (item) => {
|
|
88
105
|
return (_openBlock(), _createElementBlock("div", {
|
|
89
106
|
class: _normalizeClass(['jtable-card-item', props.cardBodyClass]),
|
|
90
|
-
key: item[props.rowKey]
|
|
107
|
+
key: item[props.rowKey],
|
|
108
|
+
onClick: ($event) => (onClick(item))
|
|
91
109
|
}, [
|
|
92
|
-
_renderSlot(_ctx.$slots, "card",
|
|
93
|
-
],
|
|
110
|
+
_renderSlot(_ctx.$slots, "card", _mergeProps({ ref_for: true }, item))
|
|
111
|
+
], 10 /* CLASS, PROPS */, _hoisted_3));
|
|
94
112
|
}), 128 /* KEYED_FRAGMENT */))
|
|
95
113
|
], 4 /* STYLE */))
|
|
96
|
-
: (_openBlock(), _createElementBlock("div",
|
|
114
|
+
: (_openBlock(), _createElementBlock("div", _hoisted_4, [
|
|
97
115
|
_renderSlot(_ctx.$slots, "emptyText", {}, () => [
|
|
98
116
|
_createVNode(_unref(Empty))
|
|
99
117
|
])
|
|
100
118
|
]))
|
|
101
119
|
]))
|
|
102
120
|
: (_openBlock(), _createBlock(_unref(Table), _mergeProps({ key: 1 }, props, {
|
|
121
|
+
"row-selection": _ctx.rowSelection || _unref(_rowSelection),
|
|
103
122
|
dataSource: _ctx.dataSource,
|
|
104
123
|
columns: _columns.value,
|
|
105
124
|
pagination: false,
|
|
106
125
|
scroll: _scroll.value,
|
|
107
|
-
class: { 'j-table-scroll': !_optionalChain([props, 'access',
|
|
126
|
+
class: { 'j-table-scroll': !_optionalChain([props, 'access', _10 => _10.scroll, 'optionalAccess', _11 => _11.y]) }
|
|
108
127
|
}), _createSlots({
|
|
109
|
-
headerCell: _withCtx(({ column, title }) => [
|
|
110
|
-
_renderSlot(_ctx.$slots, "headerCell", _normalizeProps(_guardReactiveProps({ column, title })))
|
|
111
|
-
]),
|
|
112
128
|
bodyCell: _withCtx(({ column, record, index }) => [
|
|
113
|
-
((_optionalChain([column, 'optionalAccess',
|
|
114
|
-
? _renderSlot(_ctx.$slots, _optionalChain([column, 'optionalAccess',
|
|
129
|
+
((_optionalChain([column, 'optionalAccess', _12 => _12.key]) || _optionalChain([column, 'optionalAccess', _13 => _13.dataIndex])) && _optionalChain([column, 'optionalAccess', _14 => _14.scopedSlots]) && (_optionalChain([_slots, 'access', _15 => _15.value, 'optionalAccess', _16 => _16[_optionalChain([column, 'optionalAccess', _17 => _17.dataIndex])]]) || _optionalChain([_slots, 'access', _18 => _18.value, 'optionalAccess', _19 => _19[_optionalChain([column, 'optionalAccess', _20 => _20.key])]])))
|
|
130
|
+
? _renderSlot(_ctx.$slots, _optionalChain([column, 'optionalAccess', _21 => _21.key]) || _optionalChain([column, 'optionalAccess', _22 => _22.dataIndex]), _mergeProps({ key: 0 }, record, {
|
|
115
131
|
index: index,
|
|
116
132
|
column: column
|
|
117
133
|
}))
|
|
118
134
|
: (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
|
119
|
-
_createTextVNode(_toDisplayString(_unref(get)(record, _optionalChain([column, 'optionalAccess',
|
|
135
|
+
_createTextVNode(_toDisplayString(_unref(get)(record, _optionalChain([column, 'optionalAccess', _23 => _23.dataIndex]) || _optionalChain([column, 'optionalAccess', _24 => _24.key])) || '--'), 1 /* TEXT */)
|
|
120
136
|
], 64 /* STABLE_FRAGMENT */))
|
|
121
137
|
]),
|
|
122
138
|
emptyText: _withCtx(() => [
|
|
@@ -126,17 +142,17 @@ const __sfc_main__ = _defineComponent({
|
|
|
126
142
|
]),
|
|
127
143
|
_: 2 /* DYNAMIC */
|
|
128
144
|
}, [
|
|
129
|
-
_renderList(
|
|
145
|
+
_renderList(_slots.value, (_, slotKey) => {
|
|
130
146
|
return {
|
|
131
147
|
name: slotKey,
|
|
132
148
|
fn: _withCtx((slotProps) => [
|
|
133
|
-
(!['
|
|
149
|
+
(!((_optionalChain([__props, 'access', _25 => _25.column, 'optionalAccess', _26 => _26.key]) || _optionalChain([__props, 'access', _27 => _27.column, 'optionalAccess', _28 => _28.dataIndex])) && _optionalChain([__props, 'access', _29 => _29.column, 'optionalAccess', _30 => _30.scopedSlots]) && (_optionalChain([_slots, 'access', _31 => _31.value, 'optionalAccess', _32 => _32[_optionalChain([__props, 'access', _33 => _33.column, 'optionalAccess', _34 => _34.dataIndex])]]) || _optionalChain([_slots, 'access', _35 => _35.value, 'optionalAccess', _36 => _36[_optionalChain([__props, 'access', _37 => _37.column, 'optionalAccess', _38 => _38.key])]]))))
|
|
134
150
|
? _renderSlot(_ctx.$slots, slotKey, _normalizeProps(_mergeProps({ key: 0 }, slotProps)))
|
|
135
151
|
: _createCommentVNode("v-if", true)
|
|
136
152
|
])
|
|
137
153
|
};
|
|
138
154
|
})
|
|
139
|
-
]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["dataSource", "columns", "scroll", "class"]))
|
|
155
|
+
]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["row-selection", "dataSource", "columns", "scroll", "class"]))
|
|
140
156
|
]));
|
|
141
157
|
};
|
|
142
158
|
}
|
package/es/ProTable/Header.js
CHANGED
|
@@ -16,7 +16,7 @@ const _hoisted_4 = {
|
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "table-body-header-right-button"
|
|
18
18
|
};
|
|
19
|
-
import { RadioGroup, RadioButton } from 'ant-design-vue/es';
|
|
19
|
+
import { RadioGroup, RadioButton } from 'ant-design-vue/es/';
|
|
20
20
|
import AIcon from '../Icon';
|
|
21
21
|
import { _headerProps } from './setting';
|
|
22
22
|
const __sfc_main__ = _defineComponent({
|
|
@@ -29,7 +29,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
29
29
|
import { defineComponent as _defineComponent } from 'vue';
|
|
30
30
|
import { renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
31
31
|
const _hoisted_1 = { class: "jtable-pagination" };
|
|
32
|
-
import { Pagination } from 'ant-design-vue/es';
|
|
32
|
+
import { Pagination } from 'ant-design-vue/es/';
|
|
33
33
|
import { _paginationProps } from "./setting";
|
|
34
34
|
import { computed } from 'vue';
|
|
35
35
|
import { useLocaleReceiver } from "../LocaleReciver";
|
package/es/ProTable/ProTable.js
CHANGED
|
@@ -63,7 +63,7 @@ import { defineComponent as _defineComponent } from 'vue';
|
|
|
63
63
|
import { renderSlot as _renderSlot, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref, normalizeProps as _normalizeProps, mergeProps as _mergeProps, renderList as _renderList, createSlots as _createSlots, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
|
|
64
64
|
const _hoisted_1 = { class: "jtable-body" };
|
|
65
65
|
import { proTableProps } from "./setting";
|
|
66
|
-
import { Spin } from 'ant-design-vue/es';
|
|
66
|
+
import { Spin } from 'ant-design-vue/es/';
|
|
67
67
|
import Header from './Header.js';
|
|
68
68
|
import Alert from './Alert.js';
|
|
69
69
|
import Content from './Content.js';
|
package/es/ProTable/setting.js
CHANGED
|
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import { tableProps } from "ant-design-vue/es/table/Table";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "ant-design-vue/es/table";
|
|
5
|
-
import { paginationProps } from
|
|
5
|
+
import { paginationProps } from "ant-design-vue/es/pagination/Pagination";
|
|
6
6
|
import { omit } from 'lodash-es';
|
|
7
7
|
export var _headerProps = {
|
|
8
8
|
mode: {
|
|
@@ -43,7 +43,7 @@ const _hoisted_5 = {
|
|
|
43
43
|
import { computed, ref } from 'vue';
|
|
44
44
|
import { isFunction } from 'lodash-es';
|
|
45
45
|
import { AIcon, Empty, Ellipsis } from '../../../';
|
|
46
|
-
import { Popconfirm, Button, FormItemRest, Popover, message } from 'ant-design-vue/es';
|
|
46
|
+
import { Popconfirm, Button, FormItemRest, Popover, message } from 'ant-design-vue/es/';
|
|
47
47
|
import { useLocaleReceiver } from "../../LocaleReciver";
|
|
48
48
|
const __sfc_main__ = _defineComponent({
|
|
49
49
|
props: {
|
|
@@ -22,14 +22,13 @@
|
|
|
22
22
|
"saveHistory": "setup-const"
|
|
23
23
|
} */
|
|
24
24
|
import { defineComponent as _defineComponent } from 'vue';
|
|
25
|
-
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock
|
|
26
|
-
const _withScopeId = n => (_pushScopeId("data-v-1749199467221"), n = n(), _popScopeId(), n);
|
|
25
|
+
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock } from "vue";
|
|
27
26
|
const _hoisted_1 = {
|
|
28
27
|
key: 0,
|
|
29
28
|
style: { "width": "240px" }
|
|
30
29
|
};
|
|
31
30
|
import { ref, reactive } from 'vue';
|
|
32
|
-
import { Form, Button, FormItem, Popover, Textarea, message } from 'ant-design-vue/es';
|
|
31
|
+
import { Form, Button, FormItem, Popover, Textarea, message } from 'ant-design-vue/es/';
|
|
33
32
|
import { isFunction } from 'lodash-es';
|
|
34
33
|
import { useLocaleReceiver } from "../../LocaleReciver";
|
|
35
34
|
const __sfc_main__ = _defineComponent({
|
|
@@ -108,7 +108,7 @@ import { ref, reactive, watch, provide } from 'vue';
|
|
|
108
108
|
import SaveHistory from './SaveHistory.js';
|
|
109
109
|
import History from './History.js';
|
|
110
110
|
import { compatibleOldTerms, getTermTypeFn, handleQData, hasExpand, termsParamsFormat, termsToValue, } from '../util';
|
|
111
|
-
import { Select, Button, Form, FormItemRest } from 'ant-design-vue/es';
|
|
111
|
+
import { Select, Button, Form, FormItemRest } from 'ant-design-vue/es/';
|
|
112
112
|
import { AIcon } from '../../../';
|
|
113
113
|
import { cloneDeep } from 'lodash-es';
|
|
114
114
|
import { useLocaleReceiver } from "../../LocaleReciver/index";
|