v-nuxt-ui 0.1.23 → 0.1.25
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/dist/module.json +1 -1
- package/dist/runtime/components/form/field/AsyncObjectSelect.d.vue.ts +1 -1
- package/dist/runtime/components/form/field/AsyncObjectSelect.vue +3 -3
- package/dist/runtime/components/form/field/AsyncObjectSelect.vue.d.ts +1 -1
- package/dist/runtime/components/form/field/AsyncSelect.vue +2 -2
- package/dist/runtime/components/form/field/AsyncTreeSelect.d.vue.ts +1 -1
- package/dist/runtime/components/form/field/AsyncTreeSelect.vue +2 -2
- package/dist/runtime/components/form/field/AsyncTreeSelect.vue.d.ts +1 -1
- package/dist/runtime/components/form/field/index.d.vue.ts +2 -2
- package/dist/runtime/components/form/field/index.vue.d.ts +2 -2
- package/dist/runtime/components/form/index.d.vue.ts +1 -1
- package/dist/runtime/components/form/index.vue.d.ts +1 -1
- package/dist/runtime/components/simple-table/index.d.vue.ts +1 -1
- package/dist/runtime/components/simple-table/index.vue.d.ts +1 -1
- package/dist/runtime/components/sys/department/CreateModal.vue +3 -0
- package/dist/runtime/components/sys/job-title/CreateModal.vue +1 -1
- package/dist/runtime/components/sys/menu/CreateModal.vue +1 -0
- package/dist/runtime/components/sys/user/CreateModal.vue +2 -0
- package/dist/runtime/components/sys/user/Table.vue +1 -0
- package/dist/runtime/components/table/ExcelExportModal.d.vue.ts +27 -20
- package/dist/runtime/components/table/ExcelExportModal.vue.d.ts +27 -20
- package/dist/runtime/components/table/Page.d.vue.ts +1 -1
- package/dist/runtime/components/table/Page.vue.d.ts +1 -1
- package/dist/runtime/components/table/Pagination.d.vue.ts +1 -1
- package/dist/runtime/components/table/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/table/header/index.d.vue.ts +1 -1
- package/dist/runtime/components/table/header/index.vue +4 -5
- package/dist/runtime/components/table/header/index.vue.d.ts +1 -1
- package/dist/runtime/components/table/header/settings/columns/DndList.d.vue.ts +1 -1
- package/dist/runtime/components/table/header/settings/columns/DndList.vue.d.ts +1 -1
- package/dist/runtime/components/table/header/settings/columns/Item.d.vue.ts +1 -1
- package/dist/runtime/components/table/header/settings/columns/Item.vue.d.ts +1 -1
- package/dist/runtime/components/table/header/settings/columns/index.d.vue.ts +19 -6
- package/dist/runtime/components/table/header/settings/columns/index.vue.d.ts +19 -6
- package/dist/runtime/components/table/header/settings/index.d.vue.ts +21 -10
- package/dist/runtime/components/table/header/settings/index.vue.d.ts +21 -10
- package/dist/runtime/components/table/index.d.vue.ts +1 -1
- package/dist/runtime/components/table/index.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/order/Item.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/order/Item.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/order/Newer.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/order/Newer.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/order/index.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/order/index.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/Newer.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/Newer.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/index.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/index.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/index.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/index.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/OprPicker.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/OprPicker.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/index.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/index.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.vue +2 -2
- package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/Input.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/Input.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/Select.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/Select.vue.d.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/index.d.vue.ts +1 -1
- package/dist/runtime/components/table/query/where/simple/item/opr/index.vue +11 -11
- package/dist/runtime/components/table/query/where/simple/item/opr/index.vue.d.ts +1 -1
- package/dist/runtime/composables/table/useTableRowSelection.d.ts +1 -1
- package/dist/runtime/composables/table/useTableRowSelection.js +1 -1
- package/dist/runtime/composables/useApp.js +1 -1
- package/dist/runtime/composables/useTheme.js +2 -2
- package/dist/runtime/constants/columns.js +2 -0
- package/dist/runtime/types/components/form/field.d.ts +7 -8
- package/dist/runtime/types/components/form/index.d.ts +2 -2
- package/dist/runtime/types/components/table/column.d.ts +3 -3
- package/dist/runtime/types/components/table/query/where.d.ts +1 -1
- package/dist/runtime/utils/tree.d.ts +1 -1
- package/dist/runtime/utils/type.d.ts +0 -14
- package/dist/runtime/utils/type.js +0 -3
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VFormFieldAsyncSelectProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(VFormFieldAsyncSelectProps<T> & {
|
|
4
4
|
modelValue: T[] | undefined;
|
|
5
5
|
}) & {
|
|
@@ -8,8 +8,8 @@ const props = defineProps({
|
|
|
8
8
|
onUpdateInitModelValues: { type: Function, required: false },
|
|
9
9
|
searchFields: { type: Array, required: true },
|
|
10
10
|
extraSearchFieldFn: { type: Function, required: false },
|
|
11
|
-
labelField: { type:
|
|
12
|
-
valueField: { type:
|
|
11
|
+
labelField: { type: null, required: false },
|
|
12
|
+
valueField: { type: null, required: true },
|
|
13
13
|
labelRenderFn: { type: Function, required: false },
|
|
14
14
|
enableEmptyOption: { type: Boolean, required: false },
|
|
15
15
|
disableOprSelector: { type: Boolean, required: false },
|
|
@@ -25,7 +25,7 @@ watch(
|
|
|
25
25
|
() => {
|
|
26
26
|
const newModelValue = [];
|
|
27
27
|
modelValueWithValueField.value?.forEach((value) => {
|
|
28
|
-
const item = initModelValue.value?.find((
|
|
28
|
+
const item = initModelValue.value?.find((innerItem) => innerItem[props.valueField] === value);
|
|
29
29
|
if (item) {
|
|
30
30
|
newModelValue.push(item);
|
|
31
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VFormFieldAsyncSelectProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(VFormFieldAsyncSelectProps<T> & {
|
|
4
4
|
modelValue: T[] | undefined;
|
|
5
5
|
}) & {
|
|
@@ -17,8 +17,8 @@ const props = defineProps({
|
|
|
17
17
|
onUpdateInitModelValues: { type: Function, required: false },
|
|
18
18
|
searchFields: { type: Array, required: true },
|
|
19
19
|
extraSearchFieldFn: { type: Function, required: false },
|
|
20
|
-
labelField: { type:
|
|
21
|
-
valueField: { type:
|
|
20
|
+
labelField: { type: null, required: false, default: "name" },
|
|
21
|
+
valueField: { type: null, required: true, default: "id" },
|
|
22
22
|
labelRenderFn: { type: Function, required: false },
|
|
23
23
|
enableEmptyOption: { type: Boolean, required: false },
|
|
24
24
|
disableOprSelector: { type: Boolean, required: false },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const __VLS_export: <T
|
|
1
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2
2
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
3
3
|
fetchAll?: boolean;
|
|
4
4
|
} & import("#v/types").VFormFieldAsyncSelectProps<T> & {
|
|
@@ -15,8 +15,8 @@ const props = defineProps({
|
|
|
15
15
|
onUpdateInitModelValues: { type: Function, required: false },
|
|
16
16
|
searchFields: { type: Array, required: true },
|
|
17
17
|
extraSearchFieldFn: { type: Function, required: false },
|
|
18
|
-
labelField: { type:
|
|
19
|
-
valueField: { type:
|
|
18
|
+
labelField: { type: null, required: false, default: "name" },
|
|
19
|
+
valueField: { type: null, required: true, default: "id" },
|
|
20
20
|
labelRenderFn: { type: Function, required: false },
|
|
21
21
|
enableEmptyOption: { type: Boolean, required: false },
|
|
22
22
|
disableOprSelector: { type: Boolean, required: false },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const __VLS_export: <T
|
|
1
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2
2
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
3
3
|
fetchAll?: boolean;
|
|
4
4
|
} & import("#v/types").VFormFieldAsyncSelectProps<T> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { VFormFieldProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
4
|
-
field: VFormFieldProps
|
|
4
|
+
field: VFormFieldProps;
|
|
5
5
|
onTriggerSubmit?: (e: Event) => void;
|
|
6
6
|
} & {
|
|
7
7
|
modelValue: Partial<T>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { VFormFieldProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
4
|
-
field: VFormFieldProps
|
|
4
|
+
field: VFormFieldProps;
|
|
5
5
|
onTriggerSubmit?: (e: Event) => void;
|
|
6
6
|
} & {
|
|
7
7
|
modelValue: Partial<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormTemplateProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<FormTemplateProps<T>> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
5
5
|
} ? P : {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormTemplateProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<FormTemplateProps<T>> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
5
5
|
} ? P : {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VTableProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<Pick<VTableProps<T>, "bizColumns" | "singleRow" | "singleColumn" | "hideLastRowBorder"> & {
|
|
4
4
|
data: T[];
|
|
5
5
|
}> & (typeof globalThis extends {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VTableProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<Pick<VTableProps<T>, "bizColumns" | "singleRow" | "singleColumn" | "hideLastRowBorder"> & {
|
|
4
4
|
data: T[];
|
|
5
5
|
}> & (typeof globalThis extends {
|
|
@@ -38,6 +38,7 @@ const { onSubmit } = useFormSubmission(
|
|
|
38
38
|
colSpan: '12',
|
|
39
39
|
type: 'async-tree-select',
|
|
40
40
|
labelField: 'name',
|
|
41
|
+
valueField: 'id',
|
|
41
42
|
searchFields: ['name'],
|
|
42
43
|
listApi: useDepartmentApi().list,
|
|
43
44
|
fetchAll: true,
|
|
@@ -51,6 +52,7 @@ const { onSubmit } = useFormSubmission(
|
|
|
51
52
|
colSpan: '12',
|
|
52
53
|
type: 'async-select',
|
|
53
54
|
labelField: 'nickname',
|
|
55
|
+
valueField: 'id',
|
|
54
56
|
searchFields: ['nickname'],
|
|
55
57
|
listApi: useCompanyApi().list,
|
|
56
58
|
initModelValues: newValues.company,
|
|
@@ -63,6 +65,7 @@ const { onSubmit } = useFormSubmission(
|
|
|
63
65
|
colSpan: '12',
|
|
64
66
|
type: 'async-select',
|
|
65
67
|
labelField: 'nickname',
|
|
68
|
+
valueField: 'id',
|
|
66
69
|
searchFields: ['nickname'],
|
|
67
70
|
listApi: useUserApi().list,
|
|
68
71
|
initModelValues: newValues.leader,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
import FormCreateModalTemplateWithApi from "#v/components/form/create-modal-template/
|
|
3
|
+
import FormCreateModalTemplateWithApi from "#v/components/form/create-modal-template/WithApi.vue";
|
|
4
4
|
import { useJobTitleApi } from "#v/composables";
|
|
5
5
|
defineProps({
|
|
6
6
|
model: { type: null, required: true }
|
|
@@ -126,6 +126,7 @@ onMounted(async () => {
|
|
|
126
126
|
colSpan: '12',
|
|
127
127
|
type: 'async-tree-select',
|
|
128
128
|
labelField: 'name',
|
|
129
|
+
valueField: 'id',
|
|
129
130
|
searchFields: ['name'],
|
|
130
131
|
listApi: useDepartmentApi().list,
|
|
131
132
|
fetchAll: true,
|
|
@@ -139,6 +140,7 @@ onMounted(async () => {
|
|
|
139
140
|
colSpan: '12',
|
|
140
141
|
type: 'async-select',
|
|
141
142
|
labelField: 'nickname',
|
|
143
|
+
valueField: 'id',
|
|
142
144
|
searchFields: ['nickname'],
|
|
143
145
|
listApi: useUserApi().list,
|
|
144
146
|
initModelValues: newValues.supervisor,
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
import type { VColumn, WhereQuery, WhereQueryOption, QueryTemplate, PageResult, RequestResult } from '#v/types';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
filename?: string;
|
|
6
|
+
filenameWithDateTime?: boolean;
|
|
7
|
+
columns: VColumn<T>[];
|
|
8
|
+
whereQueryOptions: WhereQueryOption<T>[];
|
|
9
|
+
extraWhereQueryInitValues?: WhereQuery<T>;
|
|
10
|
+
listFn?(payload: Omit<QueryTemplate<T>, "selectQuery">, ...args: unknown[]): Promise<{
|
|
11
|
+
data: Ref<RequestResult<PageResult<T>>>;
|
|
12
|
+
}>;
|
|
13
|
+
} & {
|
|
14
|
+
onClose?: ((args_0: boolean) => any) | undefined;
|
|
15
|
+
}> & (typeof globalThis extends {
|
|
16
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
17
|
+
} ? P : {});
|
|
18
|
+
expose: (exposed: {}) => void;
|
|
19
|
+
attrs: any;
|
|
20
|
+
slots: {};
|
|
21
|
+
emit: (evt: "close", args_0: boolean) => void;
|
|
22
|
+
}>) => import("vue").VNode & {
|
|
23
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
|
+
};
|
|
23
25
|
declare const _default: typeof __VLS_export;
|
|
24
26
|
export default _default;
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} : {
|
|
30
|
+
[K in keyof T as K]: T[K];
|
|
31
|
+
}) & {};
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
import type { VColumn, WhereQuery, WhereQueryOption, QueryTemplate, PageResult, RequestResult } from '#v/types';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
filename?: string;
|
|
6
|
+
filenameWithDateTime?: boolean;
|
|
7
|
+
columns: VColumn<T>[];
|
|
8
|
+
whereQueryOptions: WhereQueryOption<T>[];
|
|
9
|
+
extraWhereQueryInitValues?: WhereQuery<T>;
|
|
10
|
+
listFn?(payload: Omit<QueryTemplate<T>, "selectQuery">, ...args: unknown[]): Promise<{
|
|
11
|
+
data: Ref<RequestResult<PageResult<T>>>;
|
|
12
|
+
}>;
|
|
13
|
+
} & {
|
|
14
|
+
onClose?: ((args_0: boolean) => any) | undefined;
|
|
15
|
+
}> & (typeof globalThis extends {
|
|
16
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
17
|
+
} ? P : {});
|
|
18
|
+
expose: (exposed: {}) => void;
|
|
19
|
+
attrs: any;
|
|
20
|
+
slots: {};
|
|
21
|
+
emit: (evt: "close", args_0: boolean) => void;
|
|
22
|
+
}>) => import("vue").VNode & {
|
|
23
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
|
+
};
|
|
23
25
|
declare const _default: typeof __VLS_export;
|
|
24
26
|
export default _default;
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} : {
|
|
30
|
+
[K in keyof T as K]: T[K];
|
|
31
|
+
}) & {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VTableProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<VTableProps<T>> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
5
5
|
} ? P : {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VTableProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<VTableProps<T>> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
5
5
|
} ? P : {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TablePaginationProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TablePaginationProps<T>> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
5
5
|
} ? P : {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TablePaginationProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TablePaginationProps<T>> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
5
5
|
} ? P : {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TableHeaderProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TableHeaderProps<T>> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
5
5
|
} ? P : {});
|
|
@@ -10,7 +10,6 @@ import TableQueryOrder from "#v/components/table/query/order/index.vue";
|
|
|
10
10
|
import DeleteModal from "#v/components/DeleteModal.vue";
|
|
11
11
|
import TableHeaderSettings from "#v/components/table/header/settings/index.vue";
|
|
12
12
|
import TableExcelExportModal from "#v/components/table/ExcelExportModal.vue";
|
|
13
|
-
import { widenColumns } from "#v/utils";
|
|
14
13
|
const props = defineProps({
|
|
15
14
|
name: { type: String, required: true },
|
|
16
15
|
fetching: { type: Boolean, required: false },
|
|
@@ -112,9 +111,9 @@ const oprButtons = computed(() => {
|
|
|
112
111
|
const updateFn = props.onUpdateBizColumns;
|
|
113
112
|
await settingsModal.open({
|
|
114
113
|
tblName: props.name,
|
|
115
|
-
rawBizColumns:
|
|
114
|
+
rawBizColumns: props.rawBizColumns,
|
|
116
115
|
// 列数据由父组件创建(VColumn<T>),模态框仅重排顺序后返回,运行时类型不变
|
|
117
|
-
onUpdateBizColumns: (cols) => updateFn(cols)
|
|
116
|
+
onUpdateBizColumns: ((cols) => updateFn(cols))
|
|
118
117
|
});
|
|
119
118
|
}
|
|
120
119
|
},
|
|
@@ -131,11 +130,11 @@ const oprButtons = computed(() => {
|
|
|
131
130
|
variant: "outline",
|
|
132
131
|
onClick: async () => {
|
|
133
132
|
await excelExportModal.open({
|
|
134
|
-
columns:
|
|
133
|
+
columns: props.rawBizColumns,
|
|
135
134
|
filename: props.exportExcel.filename,
|
|
136
135
|
filenameWithDateTime: props.exportExcel.filenameWithDateTime,
|
|
137
136
|
listFn: props.apiGroup?.().countAndList,
|
|
138
|
-
whereQueryOptions: props.whereQueryProps
|
|
137
|
+
whereQueryOptions: props.whereQueryProps.whereOptions,
|
|
139
138
|
extraWhereQueryInitValues: defu(props.extraWhereQueryInitValues, props.exportExcel.extraWhereQueryInitValues)
|
|
140
139
|
});
|
|
141
140
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TableHeaderProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TableHeaderProps<T>> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
5
5
|
} ? P : {});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TableColumn } from '@nuxt/ui';
|
|
2
2
|
import type { FixType } from './index.vue.js';
|
|
3
3
|
import type { Column, DndProps } from '#v/types';
|
|
4
|
-
declare const __VLS_export: <T
|
|
4
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
6
6
|
name: string;
|
|
7
7
|
rawBizColumns: TableColumn<T>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TableColumn } from '@nuxt/ui';
|
|
2
2
|
import type { FixType } from './index.vue.js';
|
|
3
3
|
import type { Column, DndProps } from '#v/types';
|
|
4
|
-
declare const __VLS_export: <T
|
|
4
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
6
6
|
name: string;
|
|
7
7
|
rawBizColumns: TableColumn<T>[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FixType } from './index.vue.js';
|
|
2
2
|
import type { Column, VColumn } from '#v/types';
|
|
3
|
-
declare const __VLS_export: <T
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
5
|
columns: VColumn<T>[];
|
|
6
6
|
stgCol: Column;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FixType } from './index.vue.js';
|
|
2
2
|
import type { Column, VColumn } from '#v/types';
|
|
3
|
-
declare const __VLS_export: <T
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
5
5
|
columns: VColumn<T>[];
|
|
6
6
|
stgCol: Column;
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import type { VColumn } from '#v/types';
|
|
2
2
|
export type FixType = 'left' | 'right' | 'unfixed';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
tblName: string;
|
|
6
|
+
rawBizColumns: VColumn<T>[];
|
|
7
|
+
onUpdateBizColumns: (cols: VColumn<T>[]) => void;
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {};
|
|
14
|
+
emit: {};
|
|
15
|
+
}>) => import("vue").VNode & {
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
8
17
|
};
|
|
9
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
18
|
declare const _default: typeof __VLS_export;
|
|
11
19
|
export default _default;
|
|
20
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} : {
|
|
23
|
+
[K in keyof T as K]: T[K];
|
|
24
|
+
}) & {};
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import type { VColumn } from '#v/types';
|
|
2
2
|
export type FixType = 'left' | 'right' | 'unfixed';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
tblName: string;
|
|
6
|
+
rawBizColumns: VColumn<T>[];
|
|
7
|
+
onUpdateBizColumns: (cols: VColumn<T>[]) => void;
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {};
|
|
14
|
+
emit: {};
|
|
15
|
+
}>) => import("vue").VNode & {
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
8
17
|
};
|
|
9
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
18
|
declare const _default: typeof __VLS_export;
|
|
11
19
|
export default _default;
|
|
20
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} : {
|
|
23
|
+
[K in keyof T as K]: T[K];
|
|
24
|
+
}) & {};
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import type { VColumn } from '#v/types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
4
|
+
tblName: string;
|
|
5
|
+
rawBizColumns: VColumn<T>[];
|
|
6
|
+
onUpdateBizColumns: (cols: VColumn<T>[]) => void;
|
|
7
|
+
} & {
|
|
8
|
+
onClose?: ((args_0: boolean) => any) | undefined;
|
|
9
|
+
}> & (typeof globalThis extends {
|
|
10
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
11
|
+
} ? P : {});
|
|
12
|
+
expose: (exposed: {}) => void;
|
|
13
|
+
attrs: any;
|
|
14
|
+
slots: {};
|
|
15
|
+
emit: (evt: "close", args_0: boolean) => void;
|
|
16
|
+
}>) => import("vue").VNode & {
|
|
17
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
7
18
|
};
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
close: (args_0: boolean) => any;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onClose?: ((args_0: boolean) => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
19
|
declare const _default: typeof __VLS_export;
|
|
14
20
|
export default _default;
|
|
21
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
22
|
+
[K in keyof T]: T[K];
|
|
23
|
+
} : {
|
|
24
|
+
[K in keyof T as K]: T[K];
|
|
25
|
+
}) & {};
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import type { VColumn } from '#v/types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
4
|
+
tblName: string;
|
|
5
|
+
rawBizColumns: VColumn<T>[];
|
|
6
|
+
onUpdateBizColumns: (cols: VColumn<T>[]) => void;
|
|
7
|
+
} & {
|
|
8
|
+
onClose?: ((args_0: boolean) => any) | undefined;
|
|
9
|
+
}> & (typeof globalThis extends {
|
|
10
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
11
|
+
} ? P : {});
|
|
12
|
+
expose: (exposed: {}) => void;
|
|
13
|
+
attrs: any;
|
|
14
|
+
slots: {};
|
|
15
|
+
emit: (evt: "close", args_0: boolean) => void;
|
|
16
|
+
}>) => import("vue").VNode & {
|
|
17
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
7
18
|
};
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
close: (args_0: boolean) => any;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onClose?: ((args_0: boolean) => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
19
|
declare const _default: typeof __VLS_export;
|
|
14
20
|
export default _default;
|
|
21
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
22
|
+
[K in keyof T]: T[K];
|
|
23
|
+
} : {
|
|
24
|
+
[K in keyof T as K]: T[K];
|
|
25
|
+
}) & {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VTableProps } from '#v/types';
|
|
2
|
-
declare const __VLS_export: <T
|
|
2
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<VTableProps<T>> & (typeof globalThis extends {
|
|
4
4
|
__VLS_PROPS_FALLBACK: infer P;
|
|
5
5
|
} ? P : {});
|