@qin-ui/antd-vue-pro 1.0.19 → 1.0.21
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/component-provider/index.js +5 -1
- package/es/index.d.ts +26 -30
- package/es/index.js +3 -1
- package/es/style.css +2 -2
- package/es/table/index.js +32 -12
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, provide, renderSlot } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
3
|
import { I as INJECT_COMPONENT_PROPS_KEYS } from "../form/index-2b6aeb25.js";
|
|
4
|
+
import { PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS } from "../table/index.js";
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "index",
|
|
6
7
|
props: {
|
|
@@ -10,7 +11,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
11
|
const props = __props;
|
|
11
12
|
if (props.componentVars) {
|
|
12
13
|
Object.values(props.componentVars).forEach((item) => {
|
|
13
|
-
const injectKeys = {
|
|
14
|
+
const injectKeys = {
|
|
15
|
+
...INJECT_COMPONENT_PROPS_KEYS,
|
|
16
|
+
...PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS
|
|
17
|
+
};
|
|
14
18
|
Object.entries(item).forEach(([key, value]) => {
|
|
15
19
|
if (Object.hasOwn(injectKeys, key)) {
|
|
16
20
|
provide(injectKeys[key], value);
|
package/es/index.d.ts
CHANGED
|
@@ -281,6 +281,7 @@ export declare type ComponentVars = {
|
|
|
281
281
|
proForm?: Record<string, Record<string, any>>;
|
|
282
282
|
proFormItems?: Record<string, Record<string, any>>;
|
|
283
283
|
proFormField?: Partial<Record<keyof typeof INJECT_COMPONENT_PROPS_KEYS, Record<string, any>>>;
|
|
284
|
+
proTable?: Partial<Record<keyof typeof PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS, Record<string, any>>>;
|
|
284
285
|
};
|
|
285
286
|
|
|
286
287
|
/**
|
|
@@ -465,7 +466,6 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
465
466
|
rowKey?: string | GetRowKey<any> | undefined;
|
|
466
467
|
pagination?: false | TablePaginationConfig | undefined;
|
|
467
468
|
title?: PanelRender<any> | undefined;
|
|
468
|
-
footer?: PanelRender<any> | undefined;
|
|
469
469
|
table?: ({
|
|
470
470
|
dataSource: Ref<D[]>;
|
|
471
471
|
columns: Ref<Columns<D>>;
|
|
@@ -658,6 +658,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
658
658
|
}>>) => void;
|
|
659
659
|
resetQueryParams: () => void;
|
|
660
660
|
}) | undefined;
|
|
661
|
+
footer?: PanelRender<any> | undefined;
|
|
661
662
|
tableLayout?: TableLayout | undefined;
|
|
662
663
|
columns?: ColumnsType<any> | undefined;
|
|
663
664
|
sortDirections?: SortOrder[] | undefined;
|
|
@@ -694,10 +695,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
694
695
|
searchContainer?: ContainerComponent | any;
|
|
695
696
|
controlContainer?: ContainerComponent | any;
|
|
696
697
|
tableContainer?: ContainerComponent | any;
|
|
697
|
-
|
|
698
|
-
get(): any;
|
|
699
|
-
set(val: Record<string, any>): void;
|
|
700
|
-
} | undefined;
|
|
698
|
+
paramCache?: ParamCache | undefined;
|
|
701
699
|
onResizeColumn?: ((w: number, col: ColumnType_2<any>) => void) | undefined;
|
|
702
700
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
703
701
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -910,7 +908,6 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
910
908
|
rowKey?: string | GetRowKey<any> | undefined;
|
|
911
909
|
pagination?: false | TablePaginationConfig | undefined;
|
|
912
910
|
title?: PanelRender<any> | undefined;
|
|
913
|
-
footer?: PanelRender<any> | undefined;
|
|
914
911
|
table?: ({
|
|
915
912
|
dataSource: Ref<D[]>;
|
|
916
913
|
columns: Ref<Columns<D>>;
|
|
@@ -1103,6 +1100,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1103
1100
|
}>>) => void;
|
|
1104
1101
|
resetQueryParams: () => void;
|
|
1105
1102
|
}) | undefined;
|
|
1103
|
+
footer?: PanelRender<any> | undefined;
|
|
1106
1104
|
tableLayout?: TableLayout | undefined;
|
|
1107
1105
|
columns?: ColumnsType<any> | undefined;
|
|
1108
1106
|
sortDirections?: SortOrder[] | undefined;
|
|
@@ -1139,10 +1137,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1139
1137
|
searchContainer?: ContainerComponent | any;
|
|
1140
1138
|
controlContainer?: ContainerComponent | any;
|
|
1141
1139
|
tableContainer?: ContainerComponent | any;
|
|
1142
|
-
|
|
1143
|
-
get(): any;
|
|
1144
|
-
set(val: Record<string, any>): void;
|
|
1145
|
-
} | undefined;
|
|
1140
|
+
paramCache?: ParamCache | undefined;
|
|
1146
1141
|
onResizeColumn?: ((w: number, col: ColumnType_2<any>) => void) | undefined;
|
|
1147
1142
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
1148
1143
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1359,7 +1354,6 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1359
1354
|
rowKey?: string | GetRowKey<any> | undefined;
|
|
1360
1355
|
pagination?: false | TablePaginationConfig | undefined;
|
|
1361
1356
|
title?: PanelRender<any> | undefined;
|
|
1362
|
-
footer?: PanelRender<any> | undefined;
|
|
1363
1357
|
table?: ({
|
|
1364
1358
|
dataSource: Ref<D[]>;
|
|
1365
1359
|
columns: Ref<Columns<D>>;
|
|
@@ -1552,6 +1546,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1552
1546
|
}>>) => void;
|
|
1553
1547
|
resetQueryParams: () => void;
|
|
1554
1548
|
}) | undefined;
|
|
1549
|
+
footer?: PanelRender<any> | undefined;
|
|
1555
1550
|
tableLayout?: TableLayout | undefined;
|
|
1556
1551
|
columns?: ColumnsType<any> | undefined;
|
|
1557
1552
|
sortDirections?: SortOrder[] | undefined;
|
|
@@ -1588,10 +1583,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
|
|
|
1588
1583
|
searchContainer?: ContainerComponent | any;
|
|
1589
1584
|
controlContainer?: ContainerComponent | any;
|
|
1590
1585
|
tableContainer?: ContainerComponent | any;
|
|
1591
|
-
|
|
1592
|
-
get(): any;
|
|
1593
|
-
set(val: Record<string, any>): void;
|
|
1594
|
-
} | undefined;
|
|
1586
|
+
paramCache?: ParamCache | undefined;
|
|
1595
1587
|
onResizeColumn?: ((w: number, col: ColumnType_2<any>) => void) | undefined;
|
|
1596
1588
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
1597
1589
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1956,8 +1948,21 @@ declare type Option_2 = {
|
|
|
1956
1948
|
|
|
1957
1949
|
export declare type Options = Array<Option_2>;
|
|
1958
1950
|
|
|
1951
|
+
export declare type ParamCache = {
|
|
1952
|
+
get(): any;
|
|
1953
|
+
set(val: Data | ((v: Data) => Data)): void;
|
|
1954
|
+
};
|
|
1955
|
+
|
|
1959
1956
|
export declare type PrependField = (path: string | undefined, field: Field) => void;
|
|
1960
1957
|
|
|
1958
|
+
export declare const PRO_TABLE_INIT_COMPONENT_PROPS_MAP: Map<symbol, {}>;
|
|
1959
|
+
|
|
1960
|
+
export declare const PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS: {
|
|
1961
|
+
table: symbol;
|
|
1962
|
+
searchForm: symbol;
|
|
1963
|
+
control: symbol;
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1961
1966
|
export declare const ProComponentProvider: SFCWithInstall<{
|
|
1962
1967
|
new (...args: any[]): {
|
|
1963
1968
|
$: ComponentInternalInstance;
|
|
@@ -3059,7 +3064,6 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3059
3064
|
rowKey?: string | GetRowKey<any> | undefined;
|
|
3060
3065
|
pagination?: false | TablePaginationConfig | undefined;
|
|
3061
3066
|
title?: PanelRender<any> | undefined;
|
|
3062
|
-
footer?: PanelRender<any> | undefined;
|
|
3063
3067
|
table?: ({
|
|
3064
3068
|
dataSource: Ref<D[]>;
|
|
3065
3069
|
columns: Ref<Columns<D>>;
|
|
@@ -3252,6 +3256,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3252
3256
|
}>>) => void;
|
|
3253
3257
|
resetQueryParams: () => void;
|
|
3254
3258
|
}) | undefined;
|
|
3259
|
+
footer?: PanelRender<any> | undefined;
|
|
3255
3260
|
tableLayout?: TableLayout | undefined;
|
|
3256
3261
|
columns?: TableColumnsType<any> | undefined;
|
|
3257
3262
|
sortDirections?: SortOrder[] | undefined;
|
|
@@ -3288,10 +3293,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3288
3293
|
searchContainer?: any;
|
|
3289
3294
|
controlContainer?: any;
|
|
3290
3295
|
tableContainer?: any;
|
|
3291
|
-
|
|
3292
|
-
get(): any;
|
|
3293
|
-
set(val: Record<string, any>): void;
|
|
3294
|
-
} | undefined;
|
|
3296
|
+
paramCache?: ParamCache | undefined;
|
|
3295
3297
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
3296
3298
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
3297
3299
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -3504,7 +3506,6 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3504
3506
|
rowKey?: string | GetRowKey<any> | undefined;
|
|
3505
3507
|
pagination?: false | TablePaginationConfig | undefined;
|
|
3506
3508
|
title?: PanelRender<any> | undefined;
|
|
3507
|
-
footer?: PanelRender<any> | undefined;
|
|
3508
3509
|
table?: ({
|
|
3509
3510
|
dataSource: Ref<D[]>;
|
|
3510
3511
|
columns: Ref<Columns<D>>;
|
|
@@ -3697,6 +3698,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3697
3698
|
}>>) => void;
|
|
3698
3699
|
resetQueryParams: () => void;
|
|
3699
3700
|
}) | undefined;
|
|
3701
|
+
footer?: PanelRender<any> | undefined;
|
|
3700
3702
|
tableLayout?: TableLayout | undefined;
|
|
3701
3703
|
columns?: TableColumnsType<any> | undefined;
|
|
3702
3704
|
sortDirections?: SortOrder[] | undefined;
|
|
@@ -3733,10 +3735,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3733
3735
|
searchContainer?: any;
|
|
3734
3736
|
controlContainer?: any;
|
|
3735
3737
|
tableContainer?: any;
|
|
3736
|
-
|
|
3737
|
-
get(): any;
|
|
3738
|
-
set(val: Record<string, any>): void;
|
|
3739
|
-
} | undefined;
|
|
3738
|
+
paramCache?: ParamCache | undefined;
|
|
3740
3739
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
3741
3740
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
3742
3741
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -3953,7 +3952,6 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
3953
3952
|
rowKey?: string | GetRowKey<any> | undefined;
|
|
3954
3953
|
pagination?: false | TablePaginationConfig | undefined;
|
|
3955
3954
|
title?: PanelRender<any> | undefined;
|
|
3956
|
-
footer?: PanelRender<any> | undefined;
|
|
3957
3955
|
table?: ({
|
|
3958
3956
|
dataSource: Ref<D[]>;
|
|
3959
3957
|
columns: Ref<Columns<D>>;
|
|
@@ -4146,6 +4144,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
4146
4144
|
}>>) => void;
|
|
4147
4145
|
resetQueryParams: () => void;
|
|
4148
4146
|
}) | undefined;
|
|
4147
|
+
footer?: PanelRender<any> | undefined;
|
|
4149
4148
|
tableLayout?: TableLayout | undefined;
|
|
4150
4149
|
columns?: TableColumnsType<any> | undefined;
|
|
4151
4150
|
sortDirections?: SortOrder[] | undefined;
|
|
@@ -4182,10 +4181,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
|
|
|
4182
4181
|
searchContainer?: any;
|
|
4183
4182
|
controlContainer?: any;
|
|
4184
4183
|
tableContainer?: any;
|
|
4185
|
-
|
|
4186
|
-
get(): any;
|
|
4187
|
-
set(val: Record<string, any>): void;
|
|
4188
|
-
} | undefined;
|
|
4184
|
+
paramCache?: ParamCache | undefined;
|
|
4189
4185
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
4190
4186
|
rowSelection?: TableRowSelection<any> | undefined;
|
|
4191
4187
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
package/es/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "./style.css";
|
|
|
2
2
|
import { _ as _sfc_main } from "./form/index-2b6aeb25.js";
|
|
3
3
|
import { j, B, c, g, C, b, e, F, i, k, I, R, d, h, U, f, l, n, m, r, p, u, q, s } from "./form/index-2b6aeb25.js";
|
|
4
4
|
import BaseTable from "./table/index.js";
|
|
5
|
-
import { useTable } from "./table/index.js";
|
|
5
|
+
import { PRO_TABLE_INIT_COMPONENT_PROPS_MAP, PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS, useTable } from "./table/index.js";
|
|
6
6
|
import _sfc_main$1 from "./component-provider/index.js";
|
|
7
7
|
import "vue";
|
|
8
8
|
import "ant-design-vue";
|
|
@@ -35,6 +35,8 @@ export {
|
|
|
35
35
|
i as FunctionRegexp,
|
|
36
36
|
k as INIT_COMPONENT_PROPS_MAP,
|
|
37
37
|
I as INJECT_COMPONENT_PROPS_KEYS,
|
|
38
|
+
PRO_TABLE_INIT_COMPONENT_PROPS_MAP,
|
|
39
|
+
PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS,
|
|
38
40
|
ProComponentProvider,
|
|
39
41
|
ProForm,
|
|
40
42
|
ProTable,
|
package/es/style.css
CHANGED
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
padding: 24px 24px 16px;
|
|
42
42
|
background-color: #fff;
|
|
43
43
|
}
|
|
44
|
-
.pro-table[data-v-
|
|
44
|
+
.pro-table[data-v-b15d517d] {
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
min-width: 800px;
|
|
48
48
|
}
|
|
49
|
-
.pro-table[data-v-
|
|
49
|
+
.pro-table[data-v-b15d517d] .ant-pagination .ant-pagination-total-text {
|
|
50
50
|
flex: 1;
|
|
51
51
|
}
|
package/es/table/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createVNode, defineComponent, ref, onMounted, openBlock, createElementBlock, unref, normalizeStyle, createElementVNode, withCtx, createTextVNode, createBlock, toDisplayString, createCommentVNode, computed, watch, Fragment, renderList, withModifiers, renderSlot, useSlots, useAttrs, onBeforeUnmount, mergeProps, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
1
|
+
import { createVNode, defineComponent, ref, onMounted, openBlock, createElementBlock, unref, normalizeStyle, createElementVNode, withCtx, createTextVNode, createBlock, toDisplayString, createCommentVNode, mergeModels, useModel, computed, watch, Fragment, renderList, withModifiers, renderSlot, useSlots, useAttrs, inject, onBeforeUnmount, mergeProps, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
2
2
|
import { Button, Space, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Table } from "ant-design-vue";
|
|
3
3
|
import { A as AntdIcon, _ as _sfc_main$6, a as _export_sfc, o as omit, b as _sfc_main$7, u as useForm } from "../form/index-2b6aeb25.js";
|
|
4
4
|
var ColumnHeightOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" } }] }, "name": "column-height", "theme": "outlined" };
|
|
@@ -188,13 +188,16 @@ const SearchForm_vue_vue_type_style_index_0_scoped_41c82259_lang = "";
|
|
|
188
188
|
const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-41c82259"]]);
|
|
189
189
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
190
190
|
__name: "Control",
|
|
191
|
-
props: {
|
|
191
|
+
props: mergeModels({
|
|
192
192
|
columns: {},
|
|
193
193
|
table: { default: void 0 }
|
|
194
|
-
},
|
|
194
|
+
}, {
|
|
195
|
+
"size": { default: "large" }
|
|
196
|
+
}),
|
|
197
|
+
emits: ["update:size"],
|
|
195
198
|
setup(__props) {
|
|
196
199
|
const props = __props;
|
|
197
|
-
const size =
|
|
200
|
+
const size = useModel(__props, "size");
|
|
198
201
|
const onSizeChange = (val) => {
|
|
199
202
|
size.value = val.key;
|
|
200
203
|
};
|
|
@@ -367,6 +370,17 @@ function _sfc_render(_ctx, _cache) {
|
|
|
367
370
|
]);
|
|
368
371
|
}
|
|
369
372
|
const DefaultControlContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-1d26ef2f"]]);
|
|
373
|
+
const PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS = {
|
|
374
|
+
"table": Symbol(""),
|
|
375
|
+
"searchForm": Symbol(""),
|
|
376
|
+
"control": Symbol("")
|
|
377
|
+
};
|
|
378
|
+
const PROPS_KEYS = PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS;
|
|
379
|
+
const PRO_TABLE_INIT_COMPONENT_PROPS_MAP = /* @__PURE__ */ new Map([
|
|
380
|
+
[PROPS_KEYS.table, {}],
|
|
381
|
+
[PROPS_KEYS.searchForm, {}],
|
|
382
|
+
[PROPS_KEYS.control, {}]
|
|
383
|
+
]);
|
|
370
384
|
const _hoisted_1 = {
|
|
371
385
|
key: 0,
|
|
372
386
|
style: { "flex": "1" }
|
|
@@ -385,7 +399,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
385
399
|
searchContainer: { default: DefaultSearchContainer },
|
|
386
400
|
controlContainer: { default: DefaultControlContainer },
|
|
387
401
|
tableContainer: { default: DefaultTableContainer },
|
|
388
|
-
|
|
402
|
+
paramCache: { default: void 0 }
|
|
389
403
|
},
|
|
390
404
|
emits: ["search"],
|
|
391
405
|
setup(__props, { emit: __emit }) {
|
|
@@ -436,18 +450,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
436
450
|
searchParam,
|
|
437
451
|
setSearchParam
|
|
438
452
|
} = table;
|
|
439
|
-
|
|
453
|
+
const injectProps = inject(
|
|
454
|
+
PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS.table
|
|
455
|
+
);
|
|
456
|
+
const cache = props.paramCache ?? (injectProps == null ? void 0 : injectProps.paramCache);
|
|
457
|
+
if (cache) {
|
|
440
458
|
setPagination({
|
|
441
459
|
...unref(pagination),
|
|
442
|
-
...unref(((_e =
|
|
460
|
+
...unref(((_e = cache.get()) == null ? void 0 : _e.pagination) ?? {})
|
|
443
461
|
});
|
|
444
462
|
setSearchParam(void 0, {
|
|
445
463
|
...unref(searchParam),
|
|
446
|
-
...unref(((_f =
|
|
464
|
+
...unref(((_f = cache.get()) == null ? void 0 : _f.searchParam) ?? {})
|
|
447
465
|
});
|
|
448
466
|
onBeforeUnmount(() => {
|
|
449
|
-
|
|
450
|
-
|
|
467
|
+
cache == null ? void 0 : cache.set({
|
|
468
|
+
...(cache == null ? void 0 : cache.get()) || {},
|
|
451
469
|
pagination: unref(pagination),
|
|
452
470
|
searchParam: unref(searchParam)
|
|
453
471
|
});
|
|
@@ -564,8 +582,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
564
582
|
};
|
|
565
583
|
}
|
|
566
584
|
});
|
|
567
|
-
const
|
|
568
|
-
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
585
|
+
const Table_vue_vue_type_style_index_0_scoped_b15d517d_lang = "";
|
|
586
|
+
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b15d517d"]]);
|
|
569
587
|
const getDefaultPagination = () => ({ current: 1, pageSize: 10, total: 0 });
|
|
570
588
|
const useTable = ({
|
|
571
589
|
columns: initColumns = [],
|
|
@@ -619,6 +637,8 @@ const useTable = ({
|
|
|
619
637
|
};
|
|
620
638
|
};
|
|
621
639
|
export {
|
|
640
|
+
PRO_TABLE_INIT_COMPONENT_PROPS_MAP,
|
|
641
|
+
PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS,
|
|
622
642
|
BaseTable as default,
|
|
623
643
|
useTable
|
|
624
644
|
};
|