@jetlinks-web/components 2.4.20 → 2.4.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/ConfigProvider/context.js +3 -0
- package/es/ConfigProvider/index.js +3 -1
- package/es/EditTable/FormItem.js +1 -1
- package/es/FullPage/FullPage.js +1 -1
- package/es/ProTable/Pagination.js +5 -5
- package/es/ProTable/ProTable.js +25 -2
- package/es/ProTable/setting.js +1 -3
- package/es/ProTable/style/ProTable.less +1 -1
- package/es/RadioButton/RadioButton.js +1 -1
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Item.js +1 -1
- package/es/Search/Search.js +1 -1
- package/es/style/index.css +3 -3
- package/es/utils/constants.js +2 -1
- package/lib/ConfigProvider/context.js +3 -0
- package/lib/ConfigProvider/index.js +2 -0
- package/lib/EditTable/FormItem.js +1 -1
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/ProTable/Pagination.js +5 -5
- package/lib/ProTable/ProTable.js +25 -2
- package/lib/ProTable/setting.js +1 -3
- package/lib/ProTable/style/ProTable.less +1 -1
- package/lib/RadioButton/RadioButton.js +1 -1
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Item.js +1 -1
- package/lib/Search/Search.js +1 -1
- package/lib/style/index.css +3 -3
- package/lib/utils/constants.js +3 -2
- package/package.json +9 -5
|
@@ -2,7 +2,7 @@ import { createVNode as _createVNode } from "vue";
|
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import { defineComponent, provide, reactive, h } from 'vue';
|
|
4
4
|
import { configProps } from './context';
|
|
5
|
-
import { ComponentsEnum, MAPConfig, PermissionButtonConfig, SearchConfig, FullPageConfig } from '../utils/constants';
|
|
5
|
+
import { ComponentsEnum, MAPConfig, PermissionButtonConfig, SearchConfig, FullPageConfig, TableConfig } from '../utils/constants';
|
|
6
6
|
import { ConfigProvider } from 'ant-design-vue';
|
|
7
7
|
import LocaleProvider from '../LocaleProvider/index.js';
|
|
8
8
|
import { omit } from 'lodash-es';
|
|
@@ -18,11 +18,13 @@ var JConfigProvider = defineComponent({
|
|
|
18
18
|
var _searchConfig = reactive(props.SearchConfig || {});
|
|
19
19
|
var _PermissionButtonConfig = reactive(props.PermissionButtonConfig || {});
|
|
20
20
|
var _FullPageConfig = reactive(props.FullPageConfig || {});
|
|
21
|
+
var _TableConfig = reactive(props.TableConfig || {});
|
|
21
22
|
provide(ComponentsEnum.Icon, _iconConfig); // 全局Icon 配置
|
|
22
23
|
provide(MAPConfig, _mapConfig); // 全局地图配置
|
|
23
24
|
provide(SearchConfig, _searchConfig); // 全局搜索配置
|
|
24
25
|
provide(PermissionButtonConfig, _PermissionButtonConfig); // 权限组件
|
|
25
26
|
provide(FullPageConfig, _FullPageConfig); // 权限组件
|
|
27
|
+
provide(TableConfig, _TableConfig); // ProTable配置
|
|
26
28
|
return function () {
|
|
27
29
|
return h(ConfigProvider, _objectSpread({}, omit(props, ['IconConfig', 'MapConfig', 'SearchConfig'])), [h(LocaleProvider, {
|
|
28
30
|
locale: props.componentsLocale
|
package/es/EditTable/FormItem.js
CHANGED
|
@@ -48,7 +48,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
48
48
|
"onFieldChange": "setup-const"
|
|
49
49
|
} */
|
|
50
50
|
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
51
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
51
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639304953"), n = n(), _popScopeId(), n);
|
|
52
52
|
const _hoisted_1 = { style: { "color": "#1d2129" } };
|
|
53
53
|
const _hoisted_2 = {
|
|
54
54
|
key: 0,
|
package/es/FullPage/FullPage.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
} */
|
|
10
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
11
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
12
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639305607"), n = n(), _popScopeId(), n);
|
|
13
13
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
14
14
|
import { ref, inject } from 'vue';
|
|
15
15
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -16,10 +16,10 @@ const _hoisted_1 = { class: "jtable-pagination" };
|
|
|
16
16
|
import { Pagination } from 'ant-design-vue';
|
|
17
17
|
import { _paginationProps } from "./setting";
|
|
18
18
|
import { computed } from 'vue';
|
|
19
|
-
import { useLocaleReceiver } from "../LocaleReciver
|
|
19
|
+
import { useLocaleReceiver } from "../LocaleReciver";
|
|
20
20
|
const __sfc_main__ = _defineComponent({
|
|
21
21
|
...{
|
|
22
|
-
name: '
|
|
22
|
+
name: 'JPagination'
|
|
23
23
|
},
|
|
24
24
|
props: { ..._paginationProps },
|
|
25
25
|
emits: ['change'],
|
|
@@ -29,7 +29,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
29
29
|
const [contextLocale] = useLocaleReceiver('ProTable');
|
|
30
30
|
const className = computed(() => {
|
|
31
31
|
return {
|
|
32
|
-
'
|
|
32
|
+
'hide-content': !props.isShowContent,
|
|
33
33
|
};
|
|
34
34
|
});
|
|
35
35
|
const _showTotal = (num) => {
|
|
@@ -53,8 +53,8 @@ const __sfc_main__ = _defineComponent({
|
|
|
53
53
|
pageSize: _ctx.pageSize,
|
|
54
54
|
current: _ctx.pageIndex + 1,
|
|
55
55
|
"show-total": (num) => _showTotal(num),
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
class: className.value,
|
|
57
|
+
onChange: onChange
|
|
58
58
|
}), null, 16 /* FULL_PROPS */, ["total", "pageSize", "current", "show-total", "class"])
|
|
59
59
|
])
|
|
60
60
|
]));
|
package/es/ProTable/ProTable.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) {
|
|
2
|
+
return lhs;
|
|
3
|
+
}
|
|
4
|
+
else {
|
|
5
|
+
return rhsFn();
|
|
6
|
+
} }
|
|
1
7
|
function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
|
|
2
8
|
const op = ops[i];
|
|
3
9
|
const fn = ops[i + 1];
|
|
@@ -28,9 +34,13 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
28
34
|
"computed": "setup-const",
|
|
29
35
|
"ref": "setup-const",
|
|
30
36
|
"reactive": "setup-const",
|
|
37
|
+
"inject": "setup-const",
|
|
31
38
|
"debounce": "setup-maybe-ref",
|
|
39
|
+
"TableConfig": "setup-maybe-ref",
|
|
40
|
+
"tableConfig": "setup-maybe-ref",
|
|
32
41
|
"props": "setup-reactive-const",
|
|
33
42
|
"slots": "setup-maybe-ref",
|
|
43
|
+
"myPagination": "setup-ref",
|
|
34
44
|
"loading": "setup-ref",
|
|
35
45
|
"_dataSource": "setup-ref",
|
|
36
46
|
"_mode": "setup-ref",
|
|
@@ -58,8 +68,9 @@ import Header from './Header.js';
|
|
|
58
68
|
import Alert from './Alert.js';
|
|
59
69
|
import Content from './Content.js';
|
|
60
70
|
import Pagination from './Pagination.js';
|
|
61
|
-
import { useSlots, watch, onMounted, onUnmounted, computed, ref, reactive } from "vue";
|
|
71
|
+
import { useSlots, watch, onMounted, onUnmounted, computed, ref, reactive, inject } from "vue";
|
|
62
72
|
import { debounce } from 'lodash-es';
|
|
73
|
+
import { TableConfig } from "../utils/constants";
|
|
63
74
|
const __sfc_main__ = _defineComponent({
|
|
64
75
|
...{
|
|
65
76
|
name: 'JProTable'
|
|
@@ -68,8 +79,20 @@ const __sfc_main__ = _defineComponent({
|
|
|
68
79
|
...proTableProps
|
|
69
80
|
},
|
|
70
81
|
setup(__props, { expose: __expose }) {
|
|
82
|
+
const tableConfig = inject(TableConfig, {
|
|
83
|
+
pagination: {}
|
|
84
|
+
});
|
|
71
85
|
const props = __props;
|
|
72
86
|
const slots = useSlots();
|
|
87
|
+
const myPagination = computed(() => {
|
|
88
|
+
const globalPagination = tableConfig.pagination || {};
|
|
89
|
+
let showQuickJumper = _nullishCoalesce(_nullishCoalesce(globalPagination.showQuickJumper, () => (props.pagination.showQuickJumper)), () => (false));
|
|
90
|
+
return {
|
|
91
|
+
...globalPagination,
|
|
92
|
+
...props.pagination,
|
|
93
|
+
showQuickJumper
|
|
94
|
+
};
|
|
95
|
+
});
|
|
73
96
|
const loading = ref(false);
|
|
74
97
|
const _dataSource = ref([]);
|
|
75
98
|
const _mode = ref(!props.mode ? (props.modeValue || 'CARD') : props.mode);
|
|
@@ -286,7 +309,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
286
309
|
? (_openBlock(), _createBlock(Pagination, _mergeProps({
|
|
287
310
|
key: 1,
|
|
288
311
|
onChange: onPageChange
|
|
289
|
-
},
|
|
312
|
+
}, myPagination.value, {
|
|
290
313
|
total: page.total,
|
|
291
314
|
pageIndex: page.pageIndex,
|
|
292
315
|
pageSize: page.pageSize
|
package/es/ProTable/setting.js
CHANGED
|
@@ -75,8 +75,7 @@ export var _paginationProps = _objectSpread(_objectSpread({}, omit(paginationPro
|
|
|
75
75
|
* 是否显示分页内容
|
|
76
76
|
*/
|
|
77
77
|
isShowContent: {
|
|
78
|
-
type: Boolean
|
|
79
|
-
default: false
|
|
78
|
+
type: Boolean
|
|
80
79
|
}
|
|
81
80
|
});
|
|
82
81
|
export var proTableProps = _objectSpread(_objectSpread(_objectSpread({}, _contentProps), _alertProps), {}, {
|
|
@@ -117,7 +116,6 @@ export var proTableProps = _objectSpread(_objectSpread(_objectSpread({}, _conten
|
|
|
117
116
|
default: function _default() {
|
|
118
117
|
return {
|
|
119
118
|
showSizeChanger: true,
|
|
120
|
-
showQuickJumper: false,
|
|
121
119
|
size: 'size',
|
|
122
120
|
pageSizeOptions: ['12', '24', '48', '96']
|
|
123
121
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"onClick": "setup-const"
|
|
11
11
|
} */
|
|
12
12
|
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
13
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
13
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639306875"), n = n(), _popScopeId(), n);
|
|
14
14
|
const _hoisted_1 = ["onClick"];
|
|
15
15
|
const __sfc_main__ = Object.assign({
|
|
16
16
|
name: 'JRadioButton',
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
} */
|
|
24
24
|
import { defineComponent as _defineComponent } from 'vue';
|
|
25
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, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
26
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
26
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639307542"), n = n(), _popScopeId(), n);
|
|
27
27
|
const _hoisted_1 = {
|
|
28
28
|
key: 0,
|
|
29
29
|
style: { "width": "240px" }
|
package/es/Search/Item.js
CHANGED
|
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
80
80
|
} */
|
|
81
81
|
import { defineComponent as _defineComponent } from 'vue';
|
|
82
82
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
83
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
83
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639306282"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
package/es/Search/Search.js
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
} */
|
|
46
46
|
import { defineComponent as _defineComponent } from 'vue';
|
|
47
47
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
48
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
48
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639306523"), n = n(), _popScopeId(), n);
|
|
49
49
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
50
50
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
51
51
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
package/es/style/index.css
CHANGED
|
@@ -4555,9 +4555,9 @@ span.ant-radio + * {
|
|
|
4555
4555
|
justify-content: flex-end;
|
|
4556
4556
|
margin-top: 16px;
|
|
4557
4557
|
}
|
|
4558
|
-
.jtable-pagination .
|
|
4559
|
-
.jtable-pagination .
|
|
4560
|
-
.jtable-pagination .
|
|
4558
|
+
.jtable-pagination .hide-content .ant-pagination-item,
|
|
4559
|
+
.jtable-pagination .hide-content .ant-pagination-jump-prev,
|
|
4560
|
+
.jtable-pagination .hide-content .ant-pagination-jump-next {
|
|
4561
4561
|
display: none;
|
|
4562
4562
|
}
|
|
4563
4563
|
.JSearch-warp {
|
package/es/utils/constants.js
CHANGED
|
@@ -5,4 +5,5 @@ export var ComponentsEnum = {
|
|
|
5
5
|
export var MAPConfig = Symbol('map_key');
|
|
6
6
|
export var SearchConfig = Symbol('search-config');
|
|
7
7
|
export var PermissionButtonConfig = Symbol('permission-button');
|
|
8
|
-
export var FullPageConfig = Symbol('full-page');
|
|
8
|
+
export var FullPageConfig = Symbol('full-page');
|
|
9
|
+
export var TableConfig = Symbol('table-config');
|
|
@@ -24,11 +24,13 @@ var JConfigProvider = (0, _vue.defineComponent)({
|
|
|
24
24
|
var _searchConfig = (0, _vue.reactive)(props.SearchConfig || {});
|
|
25
25
|
var _PermissionButtonConfig = (0, _vue.reactive)(props.PermissionButtonConfig || {});
|
|
26
26
|
var _FullPageConfig = (0, _vue.reactive)(props.FullPageConfig || {});
|
|
27
|
+
var _TableConfig = (0, _vue.reactive)(props.TableConfig || {});
|
|
27
28
|
(0, _vue.provide)(_constants.ComponentsEnum.Icon, _iconConfig); // 全局Icon 配置
|
|
28
29
|
(0, _vue.provide)(_constants.MAPConfig, _mapConfig); // 全局地图配置
|
|
29
30
|
(0, _vue.provide)(_constants.SearchConfig, _searchConfig); // 全局搜索配置
|
|
30
31
|
(0, _vue.provide)(_constants.PermissionButtonConfig, _PermissionButtonConfig); // 权限组件
|
|
31
32
|
(0, _vue.provide)(_constants.FullPageConfig, _FullPageConfig); // 权限组件
|
|
33
|
+
(0, _vue.provide)(_constants.TableConfig, _TableConfig); // ProTable配置
|
|
32
34
|
return function () {
|
|
33
35
|
return (0, _vue.h)(_antDesignVue.ConfigProvider, (0, _objectSpread2.default)({}, (0, _lodashEs.omit)(props, ['IconConfig', 'MapConfig', 'SearchConfig'])), [(0, _vue.h)(_index.default, {
|
|
34
36
|
locale: props.componentsLocale
|
|
@@ -48,7 +48,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
48
48
|
"onFieldChange": "setup-const"
|
|
49
49
|
} */
|
|
50
50
|
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
51
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
51
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639304928"), n = n(), _popScopeId(), n);
|
|
52
52
|
const _hoisted_1 = { style: { "color": "#1d2129" } };
|
|
53
53
|
const _hoisted_2 = {
|
|
54
54
|
key: 0,
|
package/lib/FullPage/FullPage.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
} */
|
|
10
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
11
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
12
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639305580"), n = n(), _popScopeId(), n);
|
|
13
13
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
14
14
|
import { ref, inject } from 'vue';
|
|
15
15
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -16,10 +16,10 @@ const _hoisted_1 = { class: "jtable-pagination" };
|
|
|
16
16
|
import { Pagination } from 'ant-design-vue';
|
|
17
17
|
import { _paginationProps } from "./setting";
|
|
18
18
|
import { computed } from 'vue';
|
|
19
|
-
import { useLocaleReceiver } from "../LocaleReciver
|
|
19
|
+
import { useLocaleReceiver } from "../LocaleReciver";
|
|
20
20
|
const __sfc_main__ = _defineComponent({
|
|
21
21
|
...{
|
|
22
|
-
name: '
|
|
22
|
+
name: 'JPagination'
|
|
23
23
|
},
|
|
24
24
|
props: { ..._paginationProps },
|
|
25
25
|
emits: ['change'],
|
|
@@ -29,7 +29,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
29
29
|
const [contextLocale] = useLocaleReceiver('ProTable');
|
|
30
30
|
const className = computed(() => {
|
|
31
31
|
return {
|
|
32
|
-
'
|
|
32
|
+
'hide-content': !props.isShowContent,
|
|
33
33
|
};
|
|
34
34
|
});
|
|
35
35
|
const _showTotal = (num) => {
|
|
@@ -53,8 +53,8 @@ const __sfc_main__ = _defineComponent({
|
|
|
53
53
|
pageSize: _ctx.pageSize,
|
|
54
54
|
current: _ctx.pageIndex + 1,
|
|
55
55
|
"show-total": (num) => _showTotal(num),
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
class: className.value,
|
|
57
|
+
onChange: onChange
|
|
58
58
|
}), null, 16 /* FULL_PROPS */, ["total", "pageSize", "current", "show-total", "class"])
|
|
59
59
|
])
|
|
60
60
|
]));
|
package/lib/ProTable/ProTable.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) {
|
|
2
|
+
return lhs;
|
|
3
|
+
}
|
|
4
|
+
else {
|
|
5
|
+
return rhsFn();
|
|
6
|
+
} }
|
|
1
7
|
function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
|
|
2
8
|
const op = ops[i];
|
|
3
9
|
const fn = ops[i + 1];
|
|
@@ -28,9 +34,13 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
28
34
|
"computed": "setup-const",
|
|
29
35
|
"ref": "setup-const",
|
|
30
36
|
"reactive": "setup-const",
|
|
37
|
+
"inject": "setup-const",
|
|
31
38
|
"debounce": "setup-maybe-ref",
|
|
39
|
+
"TableConfig": "setup-maybe-ref",
|
|
40
|
+
"tableConfig": "setup-maybe-ref",
|
|
32
41
|
"props": "setup-reactive-const",
|
|
33
42
|
"slots": "setup-maybe-ref",
|
|
43
|
+
"myPagination": "setup-ref",
|
|
34
44
|
"loading": "setup-ref",
|
|
35
45
|
"_dataSource": "setup-ref",
|
|
36
46
|
"_mode": "setup-ref",
|
|
@@ -58,8 +68,9 @@ import Header from './Header.js';
|
|
|
58
68
|
import Alert from './Alert.js';
|
|
59
69
|
import Content from './Content.js';
|
|
60
70
|
import Pagination from './Pagination.js';
|
|
61
|
-
import { useSlots, watch, onMounted, onUnmounted, computed, ref, reactive } from "vue";
|
|
71
|
+
import { useSlots, watch, onMounted, onUnmounted, computed, ref, reactive, inject } from "vue";
|
|
62
72
|
import { debounce } from 'lodash-es';
|
|
73
|
+
import { TableConfig } from "../utils/constants";
|
|
63
74
|
const __sfc_main__ = _defineComponent({
|
|
64
75
|
...{
|
|
65
76
|
name: 'JProTable'
|
|
@@ -68,8 +79,20 @@ const __sfc_main__ = _defineComponent({
|
|
|
68
79
|
...proTableProps
|
|
69
80
|
},
|
|
70
81
|
setup(__props, { expose: __expose }) {
|
|
82
|
+
const tableConfig = inject(TableConfig, {
|
|
83
|
+
pagination: {}
|
|
84
|
+
});
|
|
71
85
|
const props = __props;
|
|
72
86
|
const slots = useSlots();
|
|
87
|
+
const myPagination = computed(() => {
|
|
88
|
+
const globalPagination = tableConfig.pagination || {};
|
|
89
|
+
let showQuickJumper = _nullishCoalesce(_nullishCoalesce(globalPagination.showQuickJumper, () => (props.pagination.showQuickJumper)), () => (false));
|
|
90
|
+
return {
|
|
91
|
+
...globalPagination,
|
|
92
|
+
...props.pagination,
|
|
93
|
+
showQuickJumper
|
|
94
|
+
};
|
|
95
|
+
});
|
|
73
96
|
const loading = ref(false);
|
|
74
97
|
const _dataSource = ref([]);
|
|
75
98
|
const _mode = ref(!props.mode ? (props.modeValue || 'CARD') : props.mode);
|
|
@@ -286,7 +309,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
286
309
|
? (_openBlock(), _createBlock(Pagination, _mergeProps({
|
|
287
310
|
key: 1,
|
|
288
311
|
onChange: onPageChange
|
|
289
|
-
},
|
|
312
|
+
}, myPagination.value, {
|
|
290
313
|
total: page.total,
|
|
291
314
|
pageIndex: page.pageIndex,
|
|
292
315
|
pageSize: page.pageSize
|
package/lib/ProTable/setting.js
CHANGED
|
@@ -82,8 +82,7 @@ var _paginationProps = exports._paginationProps = (0, _objectSpread2.default)((0
|
|
|
82
82
|
* 是否显示分页内容
|
|
83
83
|
*/
|
|
84
84
|
isShowContent: {
|
|
85
|
-
type: Boolean
|
|
86
|
-
default: false
|
|
85
|
+
type: Boolean
|
|
87
86
|
}
|
|
88
87
|
});
|
|
89
88
|
var proTableProps = exports.proTableProps = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, _contentProps), _alertProps), {}, {
|
|
@@ -124,7 +123,6 @@ var proTableProps = exports.proTableProps = (0, _objectSpread2.default)((0, _obj
|
|
|
124
123
|
default: function _default() {
|
|
125
124
|
return {
|
|
126
125
|
showSizeChanger: true,
|
|
127
|
-
showQuickJumper: false,
|
|
128
126
|
size: 'size',
|
|
129
127
|
pageSizeOptions: ['12', '24', '48', '96']
|
|
130
128
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"onClick": "setup-const"
|
|
11
11
|
} */
|
|
12
12
|
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
13
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
13
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639306884"), n = n(), _popScopeId(), n);
|
|
14
14
|
const _hoisted_1 = ["onClick"];
|
|
15
15
|
const __sfc_main__ = Object.assign({
|
|
16
16
|
name: 'JRadioButton',
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
} */
|
|
24
24
|
import { defineComponent as _defineComponent } from 'vue';
|
|
25
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, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
26
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
26
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639307553"), n = n(), _popScopeId(), n);
|
|
27
27
|
const _hoisted_1 = {
|
|
28
28
|
key: 0,
|
|
29
29
|
style: { "width": "240px" }
|
package/lib/Search/Item.js
CHANGED
|
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
80
80
|
} */
|
|
81
81
|
import { defineComponent as _defineComponent } from 'vue';
|
|
82
82
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
83
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
83
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639306359"), n = n(), _popScopeId(), n);
|
|
84
84
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
85
85
|
const _hoisted_2 = {
|
|
86
86
|
key: 0,
|
package/lib/Search/Search.js
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
} */
|
|
46
46
|
import { defineComponent as _defineComponent } from 'vue';
|
|
47
47
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
48
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
48
|
+
const _withScopeId = n => (_pushScopeId("data-v-1740639306563"), n = n(), _popScopeId(), n);
|
|
49
49
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
50
50
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
51
51
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
package/lib/style/index.css
CHANGED
|
@@ -4555,9 +4555,9 @@ span.ant-radio + * {
|
|
|
4555
4555
|
justify-content: flex-end;
|
|
4556
4556
|
margin-top: 16px;
|
|
4557
4557
|
}
|
|
4558
|
-
.jtable-pagination .
|
|
4559
|
-
.jtable-pagination .
|
|
4560
|
-
.jtable-pagination .
|
|
4558
|
+
.jtable-pagination .hide-content .ant-pagination-item,
|
|
4559
|
+
.jtable-pagination .hide-content .ant-pagination-jump-prev,
|
|
4560
|
+
.jtable-pagination .hide-content .ant-pagination-jump-next {
|
|
4561
4561
|
display: none;
|
|
4562
4562
|
}
|
|
4563
4563
|
.JSearch-warp {
|
package/lib/utils/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SearchConfig = exports.PermissionButtonConfig = exports.MAPConfig = exports.FullPageConfig = exports.ComponentsEnum = void 0;
|
|
6
|
+
exports.TableConfig = exports.SearchConfig = exports.PermissionButtonConfig = exports.MAPConfig = exports.FullPageConfig = exports.ComponentsEnum = void 0;
|
|
7
7
|
var ComponentsEnum = exports.ComponentsEnum = {
|
|
8
8
|
Icon: Symbol('jetlinks-icon'),
|
|
9
9
|
Permission: Symbol('permission')
|
|
@@ -11,4 +11,5 @@ var ComponentsEnum = exports.ComponentsEnum = {
|
|
|
11
11
|
var MAPConfig = exports.MAPConfig = Symbol('map_key');
|
|
12
12
|
var SearchConfig = exports.SearchConfig = Symbol('search-config');
|
|
13
13
|
var PermissionButtonConfig = exports.PermissionButtonConfig = Symbol('permission-button');
|
|
14
|
-
var FullPageConfig = exports.FullPageConfig = Symbol('full-page');
|
|
14
|
+
var FullPageConfig = exports.FullPageConfig = Symbol('full-page');
|
|
15
|
+
var TableConfig = exports.TableConfig = Symbol('table-config');
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.22",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"keywords": [
|
|
8
|
+
"jetlinks",
|
|
9
|
+
"jetlinks-web",
|
|
10
|
+
"components",
|
|
11
|
+
"jetlinks-web/components",
|
|
8
12
|
"@jetlinks-web",
|
|
9
|
-
"components"
|
|
13
|
+
"@jetlinks-web/components"
|
|
10
14
|
],
|
|
11
15
|
"files": [
|
|
12
16
|
"lib",
|
|
@@ -152,9 +156,9 @@
|
|
|
152
156
|
"webpack-dev-server": "^4.0.0",
|
|
153
157
|
"webpack-merge": "^5.0.0",
|
|
154
158
|
"webpackbar": "^5.0.2",
|
|
155
|
-
"@jetlinks-web/
|
|
156
|
-
"@jetlinks-web/
|
|
157
|
-
"@jetlinks-web/
|
|
159
|
+
"@jetlinks-web/constants": "^1.0.8",
|
|
160
|
+
"@jetlinks-web/hooks": "^1.0.22",
|
|
161
|
+
"@jetlinks-web/utils": "^1.2.7"
|
|
158
162
|
},
|
|
159
163
|
"publishConfig": {
|
|
160
164
|
"registry": "https://registry.npmjs.org/",
|