@aplus-frontend/ui 0.6.0-beta.16 → 0.6.0-beta.18
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/index.mjs +118 -109
- package/es/src/ap-field/date-range/index.vue.mjs +8 -7
- package/es/src/ap-field/number/index.vue.d.ts +2 -4
- package/es/src/ap-field/radio/index.vue.d.ts +2 -4
- package/es/src/ap-field/rate/index.vue.d.ts +2 -4
- package/es/src/ap-field/select/index.vue.d.ts +3 -6
- package/es/src/ap-field/slider/index.vue.d.ts +2 -4
- package/es/src/ap-field/text/index.vue2.mjs +42 -44
- package/es/src/ap-field/text/password.vue.mjs +15 -17
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
- package/es/src/ap-form/ap-form.vue2.mjs +18 -17
- package/es/src/ap-form/dependency/index.vue.mjs +24 -23
- package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
- package/es/src/ap-form/interface.d.ts +2 -2
- package/es/src/ap-form/item/index.vue.d.ts +5 -10
- package/es/src/ap-form/items/select/index.vue.mjs +12 -14
- package/es/src/ap-form/items/text/password.vue.mjs +9 -9
- package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
- package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
- package/es/src/ap-form/provider/index.vue.mjs +6 -5
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -8
- package/es/src/ap-form/search-form/index.vue.mjs +50 -50
- package/es/src/ap-form/set/index.vue.mjs +7 -6
- package/es/src/ap-grid/editable/form-item.vue.mjs +1 -1
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
- package/es/src/ap-grid/index.vue.mjs +79 -75
- package/es/src/ap-grid/interface.d.ts +13 -0
- package/es/src/ap-list/index.vue.d.ts +2 -9
- package/es/src/ap-list/index.vue.mjs +116 -106
- package/es/src/ap-list/interface.d.ts +20 -0
- package/es/src/ap-table/ap-table.vue.d.ts +10 -2
- package/es/src/ap-table/ap-table.vue2.mjs +87 -83
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +12 -11
- package/es/src/ap-table/constants.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +113 -105
- package/es/src/ap-table/interface.d.ts +14 -1
- package/es/src/ap-table/utils.d.ts +3 -3
- package/es/src/business/ap-card/ApCard.vue2.mjs +1 -1
- package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
- package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/es/src/business/ap-keep-alive/hook.mjs +31 -0
- package/es/src/business/ap-keep-alive/index.d.ts +101 -0
- package/es/src/business/ap-keep-alive/index.mjs +13 -0
- package/es/src/business/ap-keep-alive/interface.d.ts +35 -0
- package/es/src/business/ap-keep-alive/interface.mjs +54 -0
- package/es/src/business/ap-keep-alive/keep-alive.d.ts +51 -0
- package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/es/src/business/ap-keep-alive/keeper/index.mjs +27 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/utils.d.ts +22 -0
- package/es/src/business/ap-keep-alive/utils.mjs +41 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +23 -23
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/index.d.ts +32 -5
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
- package/es/src/business/batch-input-group/index.vue.mjs +10 -9
- package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +18 -16
- package/es/src/editable-table/form-item.vue.mjs +23 -23
- package/es/src/full-screen/interface.d.ts +5 -6
- package/es/src/index.mjs +199 -190
- package/es/src/mask/index.vue.mjs +21 -20
- package/es/src/resize-observer/interface.d.ts +2 -3
- package/es/src/scroll-bar/interface.d.ts +7 -7
- package/es/src/scroll-view/interface.d.ts +2 -3
- package/es/src/splitter/SplitBar.vue2.mjs +1 -0
- package/es/src/splitter/Splitter.vue2.mjs +1 -0
- package/es/src/text/group.vue.mjs +7 -6
- package/es/src/text/index.vue.mjs +20 -19
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +2 -4
- package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -4
- package/lib/src/ap-field/select/index.vue.d.ts +3 -6
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +2 -2
- package/lib/src/ap-form/item/index.vue.d.ts +5 -10
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -8
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +13 -0
- package/lib/src/ap-list/index.vue.d.ts +2 -9
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +20 -0
- package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +9 -2
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +14 -1
- package/lib/src/ap-table/utils.d.ts +3 -3
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
- package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/hook.js +1 -0
- package/lib/src/business/ap-keep-alive/index.d.ts +101 -0
- package/lib/src/business/ap-keep-alive/index.js +1 -0
- package/lib/src/business/ap-keep-alive/interface.d.ts +35 -0
- package/lib/src/business/ap-keep-alive/interface.js +1 -0
- package/lib/src/business/ap-keep-alive/keep-alive.d.ts +51 -0
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/utils.d.ts +22 -0
- package/lib/src/business/ap-keep-alive/utils.js +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/index.d.ts +32 -5
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/full-screen/interface.d.ts +5 -6
- package/lib/src/index.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/resize-observer/interface.d.ts +2 -3
- package/lib/src/scroll-bar/interface.d.ts +7 -7
- package/lib/src/scroll-view/interface.d.ts +2 -3
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/package.json +7 -6
- package/theme/antd-global-overwrite/admin/field.css +12 -0
- package/theme/antd-global-overwrite/admin/field.less +16 -0
- package/theme/antd-global-overwrite/admin/index.css +12 -0
- package/theme/antd-global-overwrite/aplus/field.css +12 -0
- package/theme/antd-global-overwrite/aplus/field.less +16 -0
- package/theme/antd-global-overwrite/aplus/index.css +12 -0
- package/theme/ap-action/item.css +1 -1
- package/theme/ap-action/item.less +1 -1
- package/theme/ap-card/ap-card.css +1 -1
- package/theme/ap-card/ap-card.less +1 -1
- package/theme/ap-grid/index.css +6 -1
- package/theme/ap-grid/index.less +5 -0
- package/theme/ap-table/ap-table.css +6 -1
- package/theme/ap-table/ap-table.less +5 -0
- package/theme/ap-table-modal/index.css +6 -1
- package/theme/editable-table/index.css +1 -1
- package/theme/index.css +14 -2
- package/theme/ui-mode.css +2 -0
- package/theme/ui-mode.less +4 -0
|
@@ -1,152 +1,152 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useTableSortedAndFiltered as
|
|
1
|
+
import { ref as le, reactive as M, unref as m, nextTick as fe, onMounted as ge, watch as de, computed as y, createVNode as C } from "vue";
|
|
2
|
+
import { useTableSortedAndFiltered as pe } from "./use-sorted-filtered.mjs";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { parseFieldValue as
|
|
5
|
-
import { isArray as Q, isEqualWith as
|
|
4
|
+
import { parseFieldValue as me, dataIndexToStr as Se, isEqualCustom as he } from "../utils.mjs";
|
|
5
|
+
import { isArray as Q, isEqualWith as ze, isUndefined as Te } from "lodash-unified";
|
|
6
6
|
import { isDef as $ } from "../../utils/index.mjs";
|
|
7
|
-
import { useLocale as
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
const S = 1,
|
|
7
|
+
import { useLocale as Pe } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { useNamespace as we } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
const S = 1, I = 20, G = {
|
|
10
10
|
defaultCurrent: S,
|
|
11
|
-
defaultPageSize:
|
|
11
|
+
defaultPageSize: I,
|
|
12
12
|
showLessItems: !1,
|
|
13
13
|
showTotal: !0
|
|
14
14
|
};
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function Fe(c) {
|
|
16
|
+
return c === !1 ? {} : c == null || c === !0 ? G : {
|
|
17
17
|
...G,
|
|
18
|
-
...
|
|
18
|
+
...c
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function be(c) {
|
|
22
22
|
const f = {};
|
|
23
|
-
return
|
|
23
|
+
return c === !1 || (c === !0 || c == null ? (f.current = S, f.pageSize = I) : (f.current = c.defaultCurrent || S, f.pageSize = c.defaultPageSize || I)), f;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
manual:
|
|
25
|
+
const Ie = ({
|
|
26
|
+
manual: c = !1,
|
|
27
27
|
request: f,
|
|
28
|
-
defaultParams:
|
|
29
|
-
defaultData:
|
|
28
|
+
defaultParams: V = {},
|
|
29
|
+
defaultData: j = [],
|
|
30
30
|
formatParams: U,
|
|
31
31
|
paramsValueTypeMap: _,
|
|
32
|
-
resetFieldsIgnores:
|
|
32
|
+
resetFieldsIgnores: A,
|
|
33
33
|
filterFields: W,
|
|
34
34
|
sortFields: Z,
|
|
35
35
|
namespace: H = "ap-table",
|
|
36
36
|
pagination: h,
|
|
37
|
-
onClickReset:
|
|
37
|
+
onClickReset: x,
|
|
38
38
|
onAfterRequest: E
|
|
39
39
|
}) => {
|
|
40
|
-
let v = 0,
|
|
41
|
-
const X =
|
|
40
|
+
let v = 0, s = {};
|
|
41
|
+
const X = Fe(h), Y = (e) => U ? U(e) : e, z = le(), i = M(be(h)), {
|
|
42
42
|
getColumnSFConfig: q,
|
|
43
43
|
setSF: R,
|
|
44
44
|
clearAll: k,
|
|
45
|
-
sortedInfo:
|
|
46
|
-
filteredInfo:
|
|
47
|
-
} =
|
|
45
|
+
sortedInfo: N,
|
|
46
|
+
filteredInfo: B
|
|
47
|
+
} = pe(), {
|
|
48
48
|
t: T
|
|
49
|
-
} =
|
|
49
|
+
} = Pe(), {
|
|
50
50
|
b: P
|
|
51
|
-
} =
|
|
52
|
-
total:
|
|
53
|
-
records:
|
|
51
|
+
} = we(H), o = M({
|
|
52
|
+
total: j.length,
|
|
53
|
+
records: j,
|
|
54
54
|
loading: !1
|
|
55
55
|
}), w = () => {
|
|
56
56
|
var e, t;
|
|
57
57
|
return ((t = (e = z.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
|
|
58
|
-
},
|
|
59
|
-
var
|
|
60
|
-
const t = Y(e),
|
|
61
|
-
v =
|
|
58
|
+
}, J = async (e) => {
|
|
59
|
+
var r;
|
|
60
|
+
const t = Y(e), n = Date.now();
|
|
61
|
+
v = n, o.loading = !0;
|
|
62
62
|
try {
|
|
63
63
|
const a = await f({
|
|
64
|
-
...m(
|
|
64
|
+
...m(V),
|
|
65
65
|
...t
|
|
66
66
|
});
|
|
67
|
-
v ===
|
|
67
|
+
v === n && (o.total = a.total || ((r = a.data) == null ? void 0 : r.length) || 0, o.records = [...a.data || []], o.loading = !1);
|
|
68
68
|
} catch {
|
|
69
|
-
v ===
|
|
69
|
+
v === n && (o.records = [], o.total = 0, o.loading = !1);
|
|
70
70
|
} finally {
|
|
71
71
|
E == null || E();
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, K = (e) => {
|
|
74
74
|
const t = {};
|
|
75
|
-
return Object.entries(e).forEach(([
|
|
76
|
-
if (t[
|
|
77
|
-
const a = _[
|
|
78
|
-
a && (t[
|
|
75
|
+
return Object.entries(e).forEach(([n, r]) => {
|
|
76
|
+
if (t[n] = r, _ && r) {
|
|
77
|
+
const a = _[n];
|
|
78
|
+
a && (t[n] = me(a, r));
|
|
79
79
|
}
|
|
80
80
|
}), t;
|
|
81
81
|
}, ee = async (e) => {
|
|
82
|
-
var
|
|
83
|
-
const t = w(),
|
|
84
|
-
Object.entries(t).forEach(([p,
|
|
85
|
-
|
|
86
|
-
}), await ((a = (
|
|
82
|
+
var r, a, l, g, d;
|
|
83
|
+
const t = w(), n = {};
|
|
84
|
+
Object.entries(t).forEach(([p, b]) => {
|
|
85
|
+
A && A.indexOf(p) > -1 && (n[p] = b);
|
|
86
|
+
}), await ((a = (r = z.value) == null ? void 0 : r.apForm) == null ? void 0 : a.resetFields()), (d = (g = (l = z.value) == null ? void 0 : l.apForm) == null ? void 0 : g.setFieldsValue) == null || d.call(g, n), fe(() => {
|
|
87
87
|
e == null || e();
|
|
88
88
|
});
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
const t =
|
|
92
|
-
|
|
89
|
+
}, F = (e) => {
|
|
90
|
+
s = e;
|
|
91
|
+
const t = K(e);
|
|
92
|
+
J(t);
|
|
93
93
|
}, te = (e) => {
|
|
94
|
-
|
|
95
|
-
...
|
|
94
|
+
F({
|
|
95
|
+
...s,
|
|
96
96
|
...e
|
|
97
97
|
});
|
|
98
98
|
}, D = () => {
|
|
99
99
|
const e = w(), t = h !== !1;
|
|
100
|
-
t && (
|
|
100
|
+
t && (i.current = S), F({
|
|
101
101
|
...e,
|
|
102
|
-
filter:
|
|
103
|
-
sort:
|
|
102
|
+
filter: s.filter,
|
|
103
|
+
sort: s.sort,
|
|
104
104
|
current: t ? S : void 0,
|
|
105
|
-
pageSize: t ?
|
|
105
|
+
pageSize: t ? s.pageSize || i.pageSize : void 0
|
|
106
106
|
});
|
|
107
|
-
},
|
|
108
|
-
k(),
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
},
|
|
107
|
+
}, ne = () => {
|
|
108
|
+
k(), s.sort = {}, s.filter = {}, x == null || x(), ee(D);
|
|
109
|
+
}, O = () => {
|
|
110
|
+
F(s);
|
|
111
|
+
}, re = (e) => {
|
|
112
112
|
if (h === !1)
|
|
113
|
-
|
|
113
|
+
O();
|
|
114
114
|
else {
|
|
115
115
|
const {
|
|
116
116
|
current: t,
|
|
117
|
-
pageSize:
|
|
118
|
-
} =
|
|
117
|
+
pageSize: n
|
|
118
|
+
} = i, r = o.total - e, a = Math.ceil(r / n), l = t > a ? a : t;
|
|
119
119
|
te({
|
|
120
120
|
current: l > 0 ? l : 1
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
}, L = (e, t,
|
|
124
|
-
var p,
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
const a = Q(
|
|
123
|
+
}, L = (e, t, n) => {
|
|
124
|
+
var p, b;
|
|
125
|
+
const r = w();
|
|
126
|
+
i.current = e.current, i.pageSize = e.pageSize, R(t, n);
|
|
127
|
+
const a = Q(n) ? [...n] : [n], l = {};
|
|
128
128
|
for (const u of a)
|
|
129
|
-
(p = m(Z)) != null && p.includes(u.columnKey || u.field) && u.order && (l[
|
|
129
|
+
(p = m(Z)) != null && p.includes(u.columnKey || u.field) && u.order && (l[Se(u.columnKey || u.field)] = u.order);
|
|
130
130
|
const g = {};
|
|
131
131
|
for (const u of Object.keys(t))
|
|
132
|
-
(
|
|
132
|
+
(b = m(W)) != null && b.includes(u) && t[u] && (g[u] = t[u]);
|
|
133
133
|
const d = {
|
|
134
|
-
...
|
|
134
|
+
...r,
|
|
135
135
|
filter: g,
|
|
136
136
|
sort: l,
|
|
137
137
|
current: e.current,
|
|
138
138
|
pageSize: e.pageSize
|
|
139
139
|
};
|
|
140
|
-
|
|
141
|
-
}, ae = (e, t =
|
|
142
|
-
const
|
|
140
|
+
ze(s, d, he) || F(d);
|
|
141
|
+
}, ae = (e, t = B.value || {}, n = N.value || {}) => {
|
|
142
|
+
const r = (e == null ? void 0 : e.current) ?? i.current, a = (e == null ? void 0 : e.pageSize) ?? i.pageSize;
|
|
143
143
|
L(
|
|
144
144
|
{
|
|
145
|
-
current:
|
|
145
|
+
current: r,
|
|
146
146
|
pageSize: a
|
|
147
147
|
},
|
|
148
148
|
t,
|
|
149
|
-
|
|
149
|
+
n,
|
|
150
150
|
// 此参数随意传递,并无使用
|
|
151
151
|
{
|
|
152
152
|
action: "sort",
|
|
@@ -154,57 +154,57 @@ const Oe = ({
|
|
|
154
154
|
}
|
|
155
155
|
);
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
ge(() => {
|
|
158
158
|
const e = w(), {
|
|
159
159
|
current: t,
|
|
160
|
-
pageSize:
|
|
161
|
-
} =
|
|
162
|
-
if (
|
|
160
|
+
pageSize: n
|
|
161
|
+
} = i;
|
|
162
|
+
if (s = {
|
|
163
163
|
current: t,
|
|
164
|
-
pageSize:
|
|
164
|
+
pageSize: n,
|
|
165
165
|
filter: {},
|
|
166
166
|
sort: {},
|
|
167
167
|
...e
|
|
168
|
-
}, !
|
|
169
|
-
const
|
|
170
|
-
|
|
168
|
+
}, !c) {
|
|
169
|
+
const r = K(s);
|
|
170
|
+
J(r);
|
|
171
171
|
}
|
|
172
|
-
}),
|
|
172
|
+
}), de(() => m(V), () => {
|
|
173
173
|
D();
|
|
174
174
|
}, {
|
|
175
175
|
deep: !0
|
|
176
176
|
});
|
|
177
|
-
const oe =
|
|
177
|
+
const oe = y(() => {
|
|
178
178
|
if (o.total === 0)
|
|
179
179
|
return "-";
|
|
180
180
|
const {
|
|
181
181
|
current: e,
|
|
182
182
|
pageSize: t
|
|
183
|
-
} =
|
|
183
|
+
} = i;
|
|
184
184
|
return `${e}/${Math.ceil(o.total / t)}`;
|
|
185
185
|
});
|
|
186
186
|
function se(e) {
|
|
187
187
|
Q(e) && (o.records = e, o.total = e.length);
|
|
188
188
|
}
|
|
189
|
-
const ie =
|
|
189
|
+
const ie = y(() => {
|
|
190
190
|
const {
|
|
191
191
|
showLessItems: e,
|
|
192
192
|
showTotal: t,
|
|
193
|
-
showQuickJumper:
|
|
194
|
-
showSizeChanger:
|
|
193
|
+
showQuickJumper: n,
|
|
194
|
+
showSizeChanger: r,
|
|
195
195
|
pageSizeOptions: a
|
|
196
196
|
} = X;
|
|
197
197
|
return {
|
|
198
198
|
loading: o.loading,
|
|
199
199
|
pagination: {
|
|
200
|
-
current:
|
|
201
|
-
pageSize:
|
|
200
|
+
current: i.current,
|
|
201
|
+
pageSize: i.pageSize,
|
|
202
202
|
total: o.total,
|
|
203
|
-
showSizeChanger: $(
|
|
204
|
-
showQuickJumper: $(
|
|
203
|
+
showSizeChanger: $(r) ? r : !e,
|
|
204
|
+
showQuickJumper: $(n) ? n : !e,
|
|
205
205
|
showLessItems: e,
|
|
206
206
|
size: "default",
|
|
207
|
-
pageSizeOptions:
|
|
207
|
+
pageSizeOptions: Te(a) ? ["10", "20", "50", "100"] : a,
|
|
208
208
|
showTotal: t ? (l) => C("span", {
|
|
209
209
|
class: P("pagination-total-wrapper")
|
|
210
210
|
}, [T("ap.apTable.pagination.totalLeftPrefix"), " ", C("span", {
|
|
@@ -219,27 +219,35 @@ const Oe = ({
|
|
|
219
219
|
dataSource: o.records
|
|
220
220
|
};
|
|
221
221
|
});
|
|
222
|
+
function ce(e, t = !0) {
|
|
223
|
+
Object.assign(i, e), s.current = e.current, s.pageSize = e.pageSize, t && O();
|
|
224
|
+
}
|
|
225
|
+
function ue() {
|
|
226
|
+
return {
|
|
227
|
+
...i
|
|
228
|
+
};
|
|
229
|
+
}
|
|
222
230
|
return {
|
|
223
231
|
formRef: z,
|
|
224
232
|
submit: D,
|
|
225
|
-
reset:
|
|
226
|
-
refresh:
|
|
227
|
-
refreshByDelete:
|
|
233
|
+
reset: ne,
|
|
234
|
+
refresh: O,
|
|
235
|
+
refreshByDelete: re,
|
|
228
236
|
data: o,
|
|
229
|
-
current: s.current,
|
|
230
|
-
pageSize: s.pageSize,
|
|
231
237
|
handleTableChange: L,
|
|
232
238
|
handleTableChangeOptional: ae,
|
|
233
239
|
tableProps: ie,
|
|
234
|
-
dataSource:
|
|
240
|
+
dataSource: y(() => o.records),
|
|
235
241
|
setDataSource: se,
|
|
236
242
|
getColumnSFConfig: q,
|
|
237
|
-
sortedInfo:
|
|
238
|
-
filteredInfo:
|
|
243
|
+
sortedInfo: N,
|
|
244
|
+
filteredInfo: B,
|
|
245
|
+
getPaging: ue,
|
|
246
|
+
setPaging: ce
|
|
239
247
|
};
|
|
240
248
|
};
|
|
241
249
|
export {
|
|
242
250
|
S as DEFAULT_CURRENT,
|
|
243
|
-
|
|
244
|
-
|
|
251
|
+
I as DEFAULT_PAGE_SIZE,
|
|
252
|
+
Ie as useTablePaging
|
|
245
253
|
};
|
|
@@ -9,6 +9,7 @@ import { ApTableIndexProps } from './components/interface';
|
|
|
9
9
|
import { EllipsisConfig } from '@aplus-frontend/antdv/es/typography/Base';
|
|
10
10
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
11
11
|
import { PaginationProps } from '@aplus-frontend/antdv';
|
|
12
|
+
import { InternalPagingType } from './hooks/use-table-paging-ng';
|
|
12
13
|
export type ValueEnumType = {
|
|
13
14
|
text: string;
|
|
14
15
|
/**
|
|
@@ -371,7 +372,7 @@ export type ApTableExpose<SearchParamsType = Recordable, RecordType = any> = {
|
|
|
371
372
|
/**
|
|
372
373
|
* 表格数据源
|
|
373
374
|
*/
|
|
374
|
-
dataSource:
|
|
375
|
+
dataSource: RecordType;
|
|
375
376
|
/**
|
|
376
377
|
* 行选中相关的数据和API
|
|
377
378
|
*/
|
|
@@ -393,6 +394,18 @@ export type ApTableExpose<SearchParamsType = Recordable, RecordType = any> = {
|
|
|
393
394
|
};
|
|
394
395
|
y: undefined;
|
|
395
396
|
};
|
|
397
|
+
/**
|
|
398
|
+
* 获取分页参数
|
|
399
|
+
* @returns
|
|
400
|
+
*/
|
|
401
|
+
getPaging: () => InternalPagingType;
|
|
402
|
+
/**
|
|
403
|
+
* 设置表格分页参数
|
|
404
|
+
* @param nextPaging 新的分页参数
|
|
405
|
+
* @param refreshImmediately 是否立刻刷新数据,默认为`true`
|
|
406
|
+
* @returns
|
|
407
|
+
*/
|
|
408
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
396
409
|
};
|
|
397
410
|
export type ApTableContextRenderConfig = {
|
|
398
411
|
color: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApColumnType, ValueEnum, ValueEnumType } from './interface';
|
|
2
2
|
import { ValueTypeRenderConfig } from '../config-provider';
|
|
3
3
|
import { apTableRenderItemMap } from './constants';
|
|
4
|
-
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties,
|
|
4
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ExtractPropTypes, PropType, CSSProperties, VNodeArrayChildren, RendererNode, RendererElement } from 'vue';
|
|
5
5
|
import { EditableColumnType } from '../editable-table/interface';
|
|
6
6
|
import { ColumnType, ColumnGroupType } from '@aplus-frontend/antdv/es/table';
|
|
7
7
|
import { ApTableDynamicCompProps } from './components/interface';
|
|
@@ -534,7 +534,7 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
534
534
|
}>, {
|
|
535
535
|
focus: (options?: InputFocusOptions) => void;
|
|
536
536
|
blur: () => void;
|
|
537
|
-
resizableTextArea:
|
|
537
|
+
resizableTextArea: any;
|
|
538
538
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
539
539
|
"update:value": (...args: any[]) => void;
|
|
540
540
|
}, PublicProps, {
|
|
@@ -816,7 +816,7 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
816
816
|
}>, {
|
|
817
817
|
focus: (options?: InputFocusOptions) => void;
|
|
818
818
|
blur: () => void;
|
|
819
|
-
resizableTextArea:
|
|
819
|
+
resizableTextArea: any;
|
|
820
820
|
}, {}, {}, {}, {
|
|
821
821
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
822
822
|
mode: FieldMode;
|
|
@@ -16,7 +16,7 @@ const V = { key: 1 }, j = { key: 1 }, G = /* @__PURE__ */ g({
|
|
|
16
16
|
), c = r(() => {
|
|
17
17
|
var n;
|
|
18
18
|
return (n = Object.keys((e == null ? void 0 : e.titleProps) || {})) == null ? void 0 : n.length;
|
|
19
|
-
}), p = r(() => e.padding ?? (c.value ? "14px
|
|
19
|
+
}), p = r(() => e.padding ?? (c.value ? "12px 14px 14px" : "12px 14px"));
|
|
20
20
|
return (n, w) => {
|
|
21
21
|
var m, d;
|
|
22
22
|
return t(), s("div", {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Recordable } from '../../../type';
|
|
2
|
+
import { cacheDataArrType, CacheInterface, PropertyKeyType } from '../interface';
|
|
3
|
+
export default class Cache implements CacheInterface {
|
|
4
|
+
store: Map<PropertyKeyType, Map<string, any>>;
|
|
5
|
+
constructor();
|
|
6
|
+
get(node: PropertyKeyType): Map<string, Recordable> | undefined;
|
|
7
|
+
set(node: PropertyKeyType, data: cacheDataArrType): void;
|
|
8
|
+
has(node: PropertyKeyType): boolean;
|
|
9
|
+
del(node: PropertyKeyType): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CacheInterface, PropertyKeyType, cacheDataArrType } from '../interface';
|
|
2
|
+
export declare class LruCacher implements CacheInterface {
|
|
3
|
+
store: Map<PropertyKeyType, Map<PropertyKeyType, any>>;
|
|
4
|
+
maxSize: number;
|
|
5
|
+
isExpired: boolean;
|
|
6
|
+
expiredTimer: ReturnType<typeof setTimeout> | null;
|
|
7
|
+
constructor(max?: number);
|
|
8
|
+
changeMaxSize(maxSize: number): void;
|
|
9
|
+
expireCheck(): void;
|
|
10
|
+
has(ModelKey: PropertyKeyType): boolean;
|
|
11
|
+
get(ModelKey: PropertyKeyType): Map<PropertyKey, any> | null | undefined;
|
|
12
|
+
set(ModelKey: PropertyKeyType, value: Map<string, any> | cacheDataArrType): void;
|
|
13
|
+
del(ModelKey: PropertyKeyType): void;
|
|
14
|
+
clear(): void;
|
|
15
|
+
}
|
|
16
|
+
export default LruCacher;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
class r {
|
|
2
|
+
constructor(e = 50) {
|
|
3
|
+
this.store = /* @__PURE__ */ new Map(), this.maxSize = e, this.isExpired = !1, this.expiredTimer = null;
|
|
4
|
+
}
|
|
5
|
+
changeMaxSize(e) {
|
|
6
|
+
this.maxSize = e;
|
|
7
|
+
}
|
|
8
|
+
expireCheck() {
|
|
9
|
+
this.isExpired && (clearTimeout(this.expiredTimer), this.expiredTimer = setTimeout(() => {
|
|
10
|
+
this.isExpired = !1;
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
has(e) {
|
|
14
|
+
return this.expireCheck(), this.store.has(e);
|
|
15
|
+
}
|
|
16
|
+
get(e) {
|
|
17
|
+
if (this.expireCheck(), !this.has(e))
|
|
18
|
+
return null;
|
|
19
|
+
const s = this.store.get(e);
|
|
20
|
+
return this.store.delete(e), this.store.set(e, s), s;
|
|
21
|
+
}
|
|
22
|
+
set(e, s) {
|
|
23
|
+
if (this.expireCheck(), !this.isExpired) {
|
|
24
|
+
if (this.has(e))
|
|
25
|
+
this.store.delete(e);
|
|
26
|
+
else if (this.store.size >= this.maxSize) {
|
|
27
|
+
const t = this.store.keys().next().value;
|
|
28
|
+
t && this.store.delete(t);
|
|
29
|
+
}
|
|
30
|
+
Array.isArray(s) && (s = new Map(s)), this.store.set(e, s);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
del(e) {
|
|
34
|
+
this.isExpired = !0, this.store.delete(e);
|
|
35
|
+
}
|
|
36
|
+
clear() {
|
|
37
|
+
this.store.clear();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
r as LruCacher,
|
|
42
|
+
r as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { CacheInterface, PropertyKeyType } from './interface';
|
|
3
|
+
type DataModel = {
|
|
4
|
+
getter: (key?: string) => Promise<any>;
|
|
5
|
+
setter: (key: string, data: any) => Promise<any>;
|
|
6
|
+
has: (key: string) => Promise<any>;
|
|
7
|
+
};
|
|
8
|
+
export declare const useApKeepAliveProvide: (cache: CacheInterface, currentModuleKey: Ref<PropertyKeyType>) => void;
|
|
9
|
+
export declare const useApKeepAliveInject: () => DataModel;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { provide as o, nextTick as i, inject as v } from "vue";
|
|
2
|
+
const a = Symbol("ApKeepAliveProvideKey"), c = (n, r) => {
|
|
3
|
+
o(a, {
|
|
4
|
+
getter: async (e) => {
|
|
5
|
+
await i();
|
|
6
|
+
const t = n.get(r.value);
|
|
7
|
+
return t ? e ? t == null ? void 0 : t.get(e) : Object.fromEntries(t) : {};
|
|
8
|
+
},
|
|
9
|
+
setter: async (e, t) => {
|
|
10
|
+
await i();
|
|
11
|
+
let s = n.get(r.value);
|
|
12
|
+
return s || (s = /* @__PURE__ */ new Map(), n.set(r.value, s)), s == null ? void 0 : s.set(e, t);
|
|
13
|
+
},
|
|
14
|
+
has: async (e) => {
|
|
15
|
+
await i();
|
|
16
|
+
const t = n.get(r.value);
|
|
17
|
+
return !!(t != null && t.has(e));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}, l = () => v(a, {
|
|
21
|
+
getter: async () => {
|
|
22
|
+
},
|
|
23
|
+
setter: async () => {
|
|
24
|
+
},
|
|
25
|
+
has: async () => {
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
l as useApKeepAliveInject,
|
|
30
|
+
c as useApKeepAliveProvide
|
|
31
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { LruCacher } from './cacher/lru-cacher';
|
|
2
|
+
import { useApKeepAliveInject } from './hook';
|
|
3
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
4
|
+
import { CacheInterface, MatchPattern } from './interface';
|
|
5
|
+
export * from './interface';
|
|
6
|
+
declare const ApKeepAlive: {
|
|
7
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
8
|
+
store: {
|
|
9
|
+
type: PropType<CacheInterface>;
|
|
10
|
+
};
|
|
11
|
+
debug: {
|
|
12
|
+
type: PropType<boolean>;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
max: {
|
|
16
|
+
type: PropType<number>;
|
|
17
|
+
};
|
|
18
|
+
exclude: {
|
|
19
|
+
type: PropType<MatchPattern>;
|
|
20
|
+
};
|
|
21
|
+
include: {
|
|
22
|
+
type: PropType<MatchPattern>;
|
|
23
|
+
};
|
|
24
|
+
stopTags: {
|
|
25
|
+
type: PropType<string[]>;
|
|
26
|
+
default: () => never[];
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{}>, () => VNode<RendererNode, RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>[] | undefined, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
31
|
+
debug: boolean;
|
|
32
|
+
stopTags: string[];
|
|
33
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
34
|
+
P: {};
|
|
35
|
+
B: {};
|
|
36
|
+
D: {};
|
|
37
|
+
C: {};
|
|
38
|
+
M: {};
|
|
39
|
+
Defaults: {};
|
|
40
|
+
}, Readonly< ExtractPropTypes<{
|
|
41
|
+
store: {
|
|
42
|
+
type: PropType<CacheInterface>;
|
|
43
|
+
};
|
|
44
|
+
debug: {
|
|
45
|
+
type: PropType<boolean>;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
max: {
|
|
49
|
+
type: PropType<number>;
|
|
50
|
+
};
|
|
51
|
+
exclude: {
|
|
52
|
+
type: PropType<MatchPattern>;
|
|
53
|
+
};
|
|
54
|
+
include: {
|
|
55
|
+
type: PropType<MatchPattern>;
|
|
56
|
+
};
|
|
57
|
+
stopTags: {
|
|
58
|
+
type: PropType<string[]>;
|
|
59
|
+
default: () => never[];
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{}>, () => VNode<RendererNode, RendererElement, {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
}>[] | undefined, {}, {}, {}, {
|
|
64
|
+
debug: boolean;
|
|
65
|
+
stopTags: string[];
|
|
66
|
+
}>;
|
|
67
|
+
__isFragment?: never;
|
|
68
|
+
__isTeleport?: never;
|
|
69
|
+
__isSuspense?: never;
|
|
70
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
71
|
+
store: {
|
|
72
|
+
type: PropType<CacheInterface>;
|
|
73
|
+
};
|
|
74
|
+
debug: {
|
|
75
|
+
type: PropType<boolean>;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
max: {
|
|
79
|
+
type: PropType<number>;
|
|
80
|
+
};
|
|
81
|
+
exclude: {
|
|
82
|
+
type: PropType<MatchPattern>;
|
|
83
|
+
};
|
|
84
|
+
include: {
|
|
85
|
+
type: PropType<MatchPattern>;
|
|
86
|
+
};
|
|
87
|
+
stopTags: {
|
|
88
|
+
type: PropType<string[]>;
|
|
89
|
+
default: () => never[];
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{}>, () => VNode<RendererNode, RendererElement, {
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
}>[] | undefined, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
94
|
+
debug: boolean;
|
|
95
|
+
stopTags: string[];
|
|
96
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
97
|
+
$props: {
|
|
98
|
+
onClick?: () => void;
|
|
99
|
+
};
|
|
100
|
+
}));
|
|
101
|
+
export { ApKeepAlive, LruCacher, useApKeepAliveInject };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { withInstall as e } from "@aplus-frontend/utils";
|
|
2
|
+
import p from "./keep-alive.mjs";
|
|
3
|
+
import { LruCacher as m } from "./cacher/lru-cacher.mjs";
|
|
4
|
+
import { useApKeepAliveInject as l } from "./hook.mjs";
|
|
5
|
+
import { ApKeepAliveProps as c, forceStopTags as v } from "./interface.mjs";
|
|
6
|
+
const t = e(p);
|
|
7
|
+
export {
|
|
8
|
+
t as ApKeepAlive,
|
|
9
|
+
c as ApKeepAliveProps,
|
|
10
|
+
m as LruCacher,
|
|
11
|
+
v as forceStopTags,
|
|
12
|
+
l as useApKeepAliveInject
|
|
13
|
+
};
|