v-nuxt-ui 0.1.24 → 0.1.26

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.
Files changed (88) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/date-picker/index.vue +1 -1
  3. package/dist/runtime/components/form/field/AsyncObjectSelect.d.vue.ts +1 -1
  4. package/dist/runtime/components/form/field/AsyncObjectSelect.vue +3 -3
  5. package/dist/runtime/components/form/field/AsyncObjectSelect.vue.d.ts +1 -1
  6. package/dist/runtime/components/form/field/AsyncSelect.vue +2 -2
  7. package/dist/runtime/components/form/field/AsyncTreeSelect.d.vue.ts +1 -1
  8. package/dist/runtime/components/form/field/AsyncTreeSelect.vue +2 -2
  9. package/dist/runtime/components/form/field/AsyncTreeSelect.vue.d.ts +1 -1
  10. package/dist/runtime/components/form/field/index.d.vue.ts +2 -2
  11. package/dist/runtime/components/form/field/index.vue.d.ts +2 -2
  12. package/dist/runtime/components/form/index.d.vue.ts +1 -1
  13. package/dist/runtime/components/form/index.vue.d.ts +1 -1
  14. package/dist/runtime/components/simple-table/index.d.vue.ts +1 -1
  15. package/dist/runtime/components/simple-table/index.vue.d.ts +1 -1
  16. package/dist/runtime/components/sys/department/CreateModal.vue +3 -0
  17. package/dist/runtime/components/sys/menu/CreateModal.vue +1 -0
  18. package/dist/runtime/components/sys/user/CreateModal.vue +2 -0
  19. package/dist/runtime/components/sys/user/Table.vue +1 -0
  20. package/dist/runtime/components/table/ExcelExportModal.d.vue.ts +27 -20
  21. package/dist/runtime/components/table/ExcelExportModal.vue.d.ts +27 -20
  22. package/dist/runtime/components/table/Page.d.vue.ts +1 -1
  23. package/dist/runtime/components/table/Page.vue.d.ts +1 -1
  24. package/dist/runtime/components/table/Pagination.d.vue.ts +1 -1
  25. package/dist/runtime/components/table/Pagination.vue.d.ts +1 -1
  26. package/dist/runtime/components/table/header/index.d.vue.ts +1 -1
  27. package/dist/runtime/components/table/header/index.vue +4 -5
  28. package/dist/runtime/components/table/header/index.vue.d.ts +1 -1
  29. package/dist/runtime/components/table/header/settings/columns/DndList.d.vue.ts +1 -1
  30. package/dist/runtime/components/table/header/settings/columns/DndList.vue.d.ts +1 -1
  31. package/dist/runtime/components/table/header/settings/columns/Item.d.vue.ts +1 -1
  32. package/dist/runtime/components/table/header/settings/columns/Item.vue.d.ts +1 -1
  33. package/dist/runtime/components/table/header/settings/columns/index.d.vue.ts +19 -6
  34. package/dist/runtime/components/table/header/settings/columns/index.vue.d.ts +19 -6
  35. package/dist/runtime/components/table/header/settings/index.d.vue.ts +21 -10
  36. package/dist/runtime/components/table/header/settings/index.vue.d.ts +21 -10
  37. package/dist/runtime/components/table/index.d.vue.ts +1 -1
  38. package/dist/runtime/components/table/index.vue.d.ts +1 -1
  39. package/dist/runtime/components/table/query/order/Item.d.vue.ts +1 -1
  40. package/dist/runtime/components/table/query/order/Item.vue.d.ts +1 -1
  41. package/dist/runtime/components/table/query/order/Newer.d.vue.ts +1 -1
  42. package/dist/runtime/components/table/query/order/Newer.vue.d.ts +1 -1
  43. package/dist/runtime/components/table/query/order/index.d.vue.ts +1 -1
  44. package/dist/runtime/components/table/query/order/index.vue.d.ts +1 -1
  45. package/dist/runtime/components/table/query/where/Newer.d.vue.ts +1 -1
  46. package/dist/runtime/components/table/query/where/Newer.vue.d.ts +1 -1
  47. package/dist/runtime/components/table/query/where/index.d.vue.ts +1 -1
  48. package/dist/runtime/components/table/query/where/index.vue.d.ts +1 -1
  49. package/dist/runtime/components/table/query/where/simple/index.d.vue.ts +1 -1
  50. package/dist/runtime/components/table/query/where/simple/index.vue.d.ts +1 -1
  51. package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.d.vue.ts +1 -1
  52. package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.vue.d.ts +1 -1
  53. package/dist/runtime/components/table/query/where/simple/item/OprPicker.d.vue.ts +1 -1
  54. package/dist/runtime/components/table/query/where/simple/item/OprPicker.vue.d.ts +1 -1
  55. package/dist/runtime/components/table/query/where/simple/item/index.d.vue.ts +1 -1
  56. package/dist/runtime/components/table/query/where/simple/item/index.vue.d.ts +1 -1
  57. package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.d.vue.ts +1 -1
  58. package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.vue +2 -2
  59. package/dist/runtime/components/table/query/where/simple/item/opr/AsyncSelect.vue.d.ts +1 -1
  60. package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.d.vue.ts +1 -1
  61. package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.vue.d.ts +1 -1
  62. package/dist/runtime/components/table/query/where/simple/item/opr/Input.d.vue.ts +1 -1
  63. package/dist/runtime/components/table/query/where/simple/item/opr/Input.vue.d.ts +1 -1
  64. package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.d.vue.ts +1 -1
  65. package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.vue.d.ts +1 -1
  66. package/dist/runtime/components/table/query/where/simple/item/opr/Select.d.vue.ts +1 -1
  67. package/dist/runtime/components/table/query/where/simple/item/opr/Select.vue.d.ts +1 -1
  68. package/dist/runtime/components/table/query/where/simple/item/opr/index.d.vue.ts +1 -1
  69. package/dist/runtime/components/table/query/where/simple/item/opr/index.vue +11 -11
  70. package/dist/runtime/components/table/query/where/simple/item/opr/index.vue.d.ts +1 -1
  71. package/dist/runtime/composables/table/useTableRowSelection.d.ts +1 -1
  72. package/dist/runtime/composables/table/useTableRowSelection.js +1 -1
  73. package/dist/runtime/composables/useApp.js +1 -1
  74. package/dist/runtime/composables/useTheme.js +2 -2
  75. package/dist/runtime/constants/columns.js +2 -0
  76. package/dist/runtime/constants/time.d.ts +0 -1
  77. package/dist/runtime/types/components/form/field.d.ts +7 -8
  78. package/dist/runtime/types/components/form/index.d.ts +2 -2
  79. package/dist/runtime/types/components/table/column.d.ts +3 -3
  80. package/dist/runtime/types/components/table/query/where.d.ts +1 -1
  81. package/dist/runtime/types/index.d.ts +1 -0
  82. package/dist/runtime/types/index.js +1 -0
  83. package/dist/runtime/types/time.d.ts +1 -0
  84. package/dist/runtime/types/time.js +0 -0
  85. package/dist/runtime/utils/tree.d.ts +1 -1
  86. package/dist/runtime/utils/type.d.ts +0 -14
  87. package/dist/runtime/utils/type.js +0 -3
  88. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "dependencies": [
8
8
  "@nuxt/ui"
9
9
  ],
10
- "version": "0.1.24",
10
+ "version": "0.1.26",
11
11
  "builder": {
12
12
  "@nuxt/module-builder": "1.0.2",
13
13
  "unbuild": "3.6.1"
@@ -12,7 +12,7 @@ const props = defineProps({
12
12
  loading: { type: Boolean, required: false },
13
13
  range: { type: Boolean, required: false },
14
14
  placeholder: { type: String, required: false },
15
- timeUnit: { type: String, required: false },
15
+ timeUnit: { type: null, required: false },
16
16
  leadingIcon: { type: null, required: false },
17
17
  shortcuts: { type: Array, required: false },
18
18
  peerButtons: { type: Array, required: false }
@@ -1,5 +1,5 @@
1
1
  import type { VFormFieldAsyncSelectProps } from '#v/types';
2
- declare const __VLS_export: <T extends Record<string, any>>(__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
+ 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: String, required: false },
12
- valueField: { type: String, required: false, default: "id" },
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((item2) => item2[props.valueField] === value);
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 extends Record<string, any>>(__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
+ 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: String, required: false, default: "name" },
21
- valueField: { type: String, required: false, default: "id" },
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 extends Record<string, any>>(__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<{
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: String, required: false, default: "name" },
19
- valueField: { type: String, required: false, default: "id" },
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 extends Record<string, any>>(__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<{
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 extends Record<string, any>>(__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
+ 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<T>;
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 extends Record<string, any>>(__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
+ 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<T>;
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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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,
@@ -32,6 +32,7 @@ const { onSubmit } = useFormSubmission(
32
32
  colSpan: '12',
33
33
  type: 'async-tree-select',
34
34
  labelField: 'name',
35
+ valueField: 'id',
35
36
  searchFields: ['name'],
36
37
  listApi: useMenuApi().list,
37
38
  fetchAll: 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,
@@ -47,6 +47,7 @@ const columns = [
47
47
  listApi: useDepartmentApi().list,
48
48
  searchFields: ["name"],
49
49
  labelField: "name",
50
+ valueField: "id",
50
51
  multiple: true,
51
52
  defaultOpr: "in"
52
53
  }
@@ -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
- type AnyRecord = Record<string, any>;
4
- /**
5
- * 使用 interface + 方法签名定义 props,使函数参数中的 T 保持双变(bivariant)。
6
- * 这样 ListApi<SpecificType> 可以安全赋值给 listFn(...)。
7
- */
8
- interface ExcelExportModalProps {
9
- filename?: string;
10
- filenameWithDateTime?: boolean;
11
- columns: VColumn<AnyRecord>[];
12
- whereQueryOptions: WhereQueryOption<AnyRecord>[];
13
- extraWhereQueryInitValues?: WhereQuery<AnyRecord>;
14
- listFn?(payload: Omit<QueryTemplate<AnyRecord>, 'selectQuery'>, ...args: unknown[]): Promise<{
15
- data: Ref<RequestResult<PageResult<AnyRecord>>>;
16
- }>;
17
- }
18
- declare const __VLS_export: import("vue").DefineComponent<ExcelExportModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- close: (args_0: boolean) => any;
20
- }, string, import("vue").PublicProps, Readonly<ExcelExportModalProps> & Readonly<{
21
- onClose?: ((args_0: boolean) => any) | undefined;
22
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
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
- type AnyRecord = Record<string, any>;
4
- /**
5
- * 使用 interface + 方法签名定义 props,使函数参数中的 T 保持双变(bivariant)。
6
- * 这样 ListApi<SpecificType> 可以安全赋值给 listFn(...)。
7
- */
8
- interface ExcelExportModalProps {
9
- filename?: string;
10
- filenameWithDateTime?: boolean;
11
- columns: VColumn<AnyRecord>[];
12
- whereQueryOptions: WhereQueryOption<AnyRecord>[];
13
- extraWhereQueryInitValues?: WhereQuery<AnyRecord>;
14
- listFn?(payload: Omit<QueryTemplate<AnyRecord>, 'selectQuery'>, ...args: unknown[]): Promise<{
15
- data: Ref<RequestResult<PageResult<AnyRecord>>>;
16
- }>;
17
- }
18
- declare const __VLS_export: import("vue").DefineComponent<ExcelExportModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- close: (args_0: boolean) => any;
20
- }, string, import("vue").PublicProps, Readonly<ExcelExportModalProps> & Readonly<{
21
- onClose?: ((args_0: boolean) => any) | undefined;
22
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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: widenColumns(props.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: widenColumns(props.rawBizColumns),
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?.whereOptions,
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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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 extends Record<string, any>>(__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
+ 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
- type AnyRecord = Record<string, any>;
4
- type __VLS_Props = {
5
- tblName: string;
6
- rawBizColumns: VColumn<AnyRecord>[];
7
- onUpdateBizColumns: (cols: VColumn<AnyRecord>[]) => void;
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
- type AnyRecord = Record<string, any>;
4
- type __VLS_Props = {
5
- tblName: string;
6
- rawBizColumns: VColumn<AnyRecord>[];
7
- onUpdateBizColumns: (cols: VColumn<AnyRecord>[]) => void;
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
- type AnyRecord = Record<string, any>;
3
- type __VLS_Props = {
4
- tblName: string;
5
- rawBizColumns: VColumn<AnyRecord>[];
6
- onUpdateBizColumns: (cols: VColumn<AnyRecord>[]) => void;
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
- type AnyRecord = Record<string, any>;
3
- type __VLS_Props = {
4
- tblName: string;
5
- rawBizColumns: VColumn<AnyRecord>[];
6
- onUpdateBizColumns: (cols: VColumn<AnyRecord>[]) => void;
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
+ }) & {};