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.
Files changed (83) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/form/field/AsyncObjectSelect.d.vue.ts +1 -1
  3. package/dist/runtime/components/form/field/AsyncObjectSelect.vue +3 -3
  4. package/dist/runtime/components/form/field/AsyncObjectSelect.vue.d.ts +1 -1
  5. package/dist/runtime/components/form/field/AsyncSelect.vue +2 -2
  6. package/dist/runtime/components/form/field/AsyncTreeSelect.d.vue.ts +1 -1
  7. package/dist/runtime/components/form/field/AsyncTreeSelect.vue +2 -2
  8. package/dist/runtime/components/form/field/AsyncTreeSelect.vue.d.ts +1 -1
  9. package/dist/runtime/components/form/field/index.d.vue.ts +2 -2
  10. package/dist/runtime/components/form/field/index.vue.d.ts +2 -2
  11. package/dist/runtime/components/form/index.d.vue.ts +1 -1
  12. package/dist/runtime/components/form/index.vue.d.ts +1 -1
  13. package/dist/runtime/components/simple-table/index.d.vue.ts +1 -1
  14. package/dist/runtime/components/simple-table/index.vue.d.ts +1 -1
  15. package/dist/runtime/components/sys/department/CreateModal.vue +3 -0
  16. package/dist/runtime/components/sys/job-title/CreateModal.vue +1 -1
  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/types/components/form/field.d.ts +7 -8
  77. package/dist/runtime/types/components/form/index.d.ts +2 -2
  78. package/dist/runtime/types/components/table/column.d.ts +3 -3
  79. package/dist/runtime/types/components/table/query/where.d.ts +1 -1
  80. package/dist/runtime/utils/tree.d.ts +1 -1
  81. package/dist/runtime/utils/type.d.ts +0 -14
  82. package/dist/runtime/utils/type.js +0 -3
  83. package/package.json +1 -1
@@ -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 { OrderQueryOpr, OrderQueryOption, VColumn } 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
4
  field: string;
5
5
  bizColumns: VColumn<T>[];
@@ -1,5 +1,5 @@
1
1
  import type { OrderQueryOpr, OrderQueryOption, VColumn } 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
4
  field: string;
5
5
  bizColumns: VColumn<T>[];
@@ -1,5 +1,5 @@
1
1
  import type { OrderQueryOption, VColumn } 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
4
  options: OrderQueryOption<T>[];
5
5
  unselectedFields: string[];
@@ -1,5 +1,5 @@
1
1
  import type { OrderQueryOption, VColumn } 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
4
  options: OrderQueryOption<T>[];
5
5
  unselectedFields: string[];
@@ -1,5 +1,5 @@
1
1
  import type { OrderQueryProps } 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<OrderQueryProps<T>> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
5
5
  } ? P : {});
@@ -1,5 +1,5 @@
1
1
  import type { OrderQueryProps } 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<OrderQueryProps<T>> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
5
5
  } ? P : {});
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryOption, VColumn, Size } 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
4
  options: WhereQueryOption<T>[];
5
5
  unselectedFields: string[];
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryOption, VColumn, Size } 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
4
  options: WhereQueryOption<T>[];
5
5
  unselectedFields: string[];
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryProps } 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<WhereQueryProps<T>> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
5
5
  } ? P : {});
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryProps } 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<WhereQueryProps<T>> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
5
5
  } ? P : {});
@@ -1,5 +1,5 @@
1
1
  import type { WhereSimpleQueryProps } 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<WhereSimpleQueryProps<T>> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
5
5
  } ? P : {});
@@ -1,5 +1,5 @@
1
1
  import type { WhereSimpleQueryProps } 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<WhereSimpleQueryProps<T>> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
5
5
  } ? P : {});
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem, WhereQueryOption } 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
4
  options: WhereQueryOption<T>[];
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem, WhereQueryOption } 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
4
  options: WhereQueryOption<T>[];
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem, WhereQueryOption } 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
4
  options: WhereQueryOption<T>[];
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem, WhereQueryOption } 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
4
  options: WhereQueryOption<T>[];
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryOption, WhereQueryItem } 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
4
  options: WhereQueryOption<T>[];
5
5
  fetching?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryOption, WhereQueryItem } 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
4
  options: WhereQueryOption<T>[];
5
5
  fetching?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { VFormFieldAsyncSelectProps, WhereQueryItem } 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
4
  label: string;
5
5
  disabled?: boolean;
@@ -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,5 +1,5 @@
1
1
  import type { VFormFieldAsyncSelectProps, WhereQueryItem } 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
4
  label: string;
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem } 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
4
  disabled?: boolean;
5
5
  } & {
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem } 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
4
  disabled?: boolean;
5
5
  } & {
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem } 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
4
  label: string | keyof T;
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem } 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
4
  label: string | keyof T;
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type WhereQueryItem } 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
4
  label: string | keyof T;
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type WhereQueryItem } 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
4
  label: string | keyof T;
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { SelectOption, WhereQueryItem } 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
4
  disabled?: boolean;
5
5
  items: SelectOption[];
@@ -1,5 +1,5 @@
1
1
  import type { SelectOption, WhereQueryItem } 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
4
  disabled?: boolean;
5
5
  items: SelectOption[];
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryOption, WhereQueryItem } 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
4
  options: WhereQueryOption<T>[];
5
5
  fetching?: boolean;
@@ -11,7 +11,7 @@ const props = defineProps({
11
11
  triggerFetching: { type: Function, required: false }
12
12
  });
13
13
  const whereQueryItem = defineModel("whereQueryItem", { type: Object, ...{ required: true } });
14
- const option = computed(() => props.options.find((option2) => option2.field === whereQueryItem.value.field));
14
+ const option = computed(() => props.options.find((option2) => option2.field === whereQueryItem.value.field) ?? { type: "unknown", field: "unknown", label: "\u672A\u77E5\u5B57\u6BB5" });
15
15
  watch(
16
16
  () => whereQueryItem.value.custom,
17
17
  () => {
@@ -30,7 +30,7 @@ defineExpose({
30
30
  v-if="option.type === 'input'"
31
31
  ref="item"
32
32
  v-model:where-query-item="whereQueryItem"
33
- :label="option?.label || whereQueryItem.field"
33
+ :label="option.label || whereQueryItem.field"
34
34
  :disabled="fetching"
35
35
  :trigger-fetching="triggerFetching"
36
36
  />
@@ -38,7 +38,7 @@ defineExpose({
38
38
  v-if="option.type === 'input-number'"
39
39
  ref="item"
40
40
  v-model:where-query-item="whereQueryItem"
41
- :label="option?.label || whereQueryItem.field"
41
+ :label="option.label || whereQueryItem.field"
42
42
  :disabled="fetching"
43
43
  :trigger-fetching="triggerFetching"
44
44
  />
@@ -47,7 +47,7 @@ defineExpose({
47
47
  ref="item"
48
48
  v-model:where-query-item="whereQueryItem"
49
49
  :disabled="fetching"
50
- :items="option?.items || []"
50
+ :items="option.items || []"
51
51
  />
52
52
  <TableQueryWhereSimpleItemOprDatePicker
53
53
  v-else-if="option.type === 'date-picker'"
@@ -61,12 +61,12 @@ defineExpose({
61
61
  v-model:where-query-item="whereQueryItem"
62
62
  :disabled="fetching"
63
63
  :trigger-fetching="triggerFetching"
64
- :label="option?.label"
65
- :list-api="option?.listApi"
66
- :search-fields="option?.searchFields ?? []"
67
- :label-render-fn="option?.labelRenderFn"
68
- :label-field="option?.labelField"
69
- :value-field="option?.valueField"
70
- :multiple="option?.multiple"
64
+ :label="option.label"
65
+ :list-api="option.listApi"
66
+ :search-fields="option.searchFields ?? []"
67
+ :label-render-fn="option.labelRenderFn"
68
+ :label-field="option.labelField"
69
+ :value-field="option.valueField"
70
+ :multiple="option.multiple"
71
71
  />
72
72
  </template>
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryOption, WhereQueryItem } 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
4
  options: WhereQueryOption<T>[];
5
5
  fetching?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { type Ref } from 'vue';
2
2
  export declare function useTableRowSelection<T>(data: Ref<T[]>, rowKey: keyof T): {
3
- rowSelection: Ref<Record<number, boolean> | undefined, Record<number, boolean> | undefined>;
3
+ rowSelection: Ref<Record<number, boolean>, Record<number, boolean>>;
4
4
  selectedIds: Ref<number[], number[]>;
5
5
  clearRowSelection: () => void;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { ref, watch } from "vue";
2
2
  export function useTableRowSelection(data, rowKey) {
3
- const rowSelection = ref();
3
+ const rowSelection = ref({});
4
4
  const selectedIds = ref([]);
5
5
  watch(
6
6
  rowSelection,
@@ -6,7 +6,7 @@ export const defaultAppSettings = {
6
6
  headerHeight: 48,
7
7
  tabHeight: 40,
8
8
  side: "left",
9
- variant: "separated",
9
+ variant: "sidebar",
10
10
  collapsible: "icon",
11
11
  siderMaxWidth: 20,
12
12
  siderMinWidth: 10,
@@ -100,7 +100,7 @@ const _useTheme = () => {
100
100
  });
101
101
  const sidebarVariant = computed({
102
102
  get() {
103
- return app.appConfig.value.variant ?? "separated";
103
+ return app.appConfig.value.variant ?? "sidebar";
104
104
  },
105
105
  set(value) {
106
106
  app.updateSidebarVariant(value);
@@ -109,7 +109,7 @@ const _useTheme = () => {
109
109
  const sidebarVariantOptions = computed(() => [
110
110
  { label: "\u5D4C\u5165\u5F0F", value: "inset" },
111
111
  { label: "\u60AC\u6D6E\u5F0F", value: "floating" },
112
- { label: "\u5206\u79BB\u5F0F", value: "separated" }
112
+ { label: "\u5206\u79BB\u5F0F", value: "sidebar" }
113
113
  ]);
114
114
  const sidebarCollapsible = computed({
115
115
  get() {
@@ -22,6 +22,7 @@ export const getOprColumns = (createdAtSortOpr = "desc") => [
22
22
  listApi: useUserApi().list,
23
23
  searchFields: ["nickname"],
24
24
  labelField: "nickname",
25
+ valueField: "id",
25
26
  multiple: true,
26
27
  defaultOpr: "in"
27
28
  }
@@ -36,6 +37,7 @@ export const getOprColumns = (createdAtSortOpr = "desc") => [
36
37
  listApi: useUserApi().list,
37
38
  searchFields: ["nickname"],
38
39
  labelField: "nickname",
40
+ valueField: "id",
39
41
  multiple: true,
40
42
  defaultOpr: "in"
41
43
  }
@@ -1,9 +1,8 @@
1
- import type { VNode } from 'vue';
1
+ import type { VNode, Ref } from 'vue';
2
2
  import type { ButtonProps, FormFieldProps, InputProps, RadioGroupProps, SelectMenuItem, SelectProps, TreeItem } from '@nuxt/ui';
3
3
  import type { ZodType } from 'zod';
4
4
  import type { PageResult, RequestResult } from '../../request.js';
5
5
  import type { QueryTemplate, WhereQueryItem } from '../../query.js';
6
- import type { Ref } from 'vue';
7
6
  export type VFormFieldAsyncSelectProps<T> = {
8
7
  listApi(payload: Omit<QueryTemplate<T>, 'selectQuery'>): Promise<{
9
8
  data: Ref<RequestResult<PageResult<T>>>;
@@ -13,8 +12,8 @@ export type VFormFieldAsyncSelectProps<T> = {
13
12
  onUpdateInitModelValues?: (newInitModels: any | any[]) => void;
14
13
  searchFields: (string)[];
15
14
  extraSearchFieldFn?(keyword: string): WhereQueryItem<T>;
16
- labelField?: string;
17
- valueField?: string;
15
+ labelField?: keyof T;
16
+ valueField: keyof T;
18
17
  labelRenderFn?(model: T): string | undefined;
19
18
  enableEmptyOption?: boolean;
20
19
  disableOprSelector?: boolean;
@@ -44,7 +43,7 @@ export type VFormFieldDynamicObjectInputProps = {
44
43
  placeholder?: string;
45
44
  }>;
46
45
  };
47
- export type VFormFieldProps<T> = FormFieldProps & {
46
+ export type VFormFieldProps = FormFieldProps & {
48
47
  zodType?: ZodType;
49
48
  colSpan?: string;
50
49
  icon?: string;
@@ -87,11 +86,11 @@ export type VFormFieldProps<T> = FormFieldProps & {
87
86
  searchable?: boolean;
88
87
  } | {
89
88
  type: 'async-select';
90
- } & VFormFieldAsyncSelectProps<T> | {
89
+ } & VFormFieldAsyncSelectProps<any> | {
91
90
  type: 'async-object-select';
92
- } & VFormFieldAsyncSelectProps<T> | {
91
+ } & VFormFieldAsyncSelectProps<any> | {
93
92
  type: 'async-tree-select';
94
- } & VFormFieldAsyncTreeSelectProps<T> | {
93
+ } & VFormFieldAsyncTreeSelectProps<any> | {
95
94
  type: 'radio-select';
96
95
  } & RadioGroupProps | {
97
96
  type: 'tree-select-transfer';
@@ -3,7 +3,7 @@ import type { ApiGroup } from '../table/index.js';
3
3
  import type { VFormFieldProps } from './field.js';
4
4
  export * from './field.js';
5
5
  export type FormTemplateProps<T> = {
6
- fields: VFormFieldProps<T>[];
6
+ fields: VFormFieldProps[];
7
7
  modelValue: Partial<T>;
8
8
  onUpdateModelValue?: (newVal: Partial<T>) => void;
9
9
  onTriggerSubmit?: (e: Event) => void;
@@ -13,7 +13,7 @@ export type CreateModalFormTemplateProps<T> = {
13
13
  description?: string;
14
14
  onClose: (ok: boolean) => void;
15
15
  onSubmit: () => Promise<void>;
16
- fields: VFormFieldProps<T>[];
16
+ fields: VFormFieldProps[];
17
17
  modelValue: Partial<T>;
18
18
  onUpdateModelValue?: (newVal: Partial<T>) => void;
19
19
  rowKey?: keyof T;
@@ -17,8 +17,8 @@ export type WhereQueryColumnAsyncSelectProps<T> = {
17
17
  extraQuery?: QueryTemplate<T>;
18
18
  searchFields: string[];
19
19
  extraSearchFieldFn?(keyword: string): WhereQueryItem<T>;
20
- labelField?: string;
21
- valueField?: string;
20
+ labelField?: keyof T;
21
+ valueField: keyof T;
22
22
  labelRenderFn?(model: T): string | undefined;
23
23
  enableEmptyOption?: boolean;
24
24
  disableOprSelector?: boolean;
@@ -52,7 +52,7 @@ export type OrderQueryColumnOption = {
52
52
  defaultOpr?: OrderQueryOpr;
53
53
  };
54
54
  export type VColumn<T> = {
55
- filterOption?: WhereQueryColumnOption<T>;
55
+ filterOption?: WhereQueryColumnOption<any>;
56
56
  sortOption?: OrderQueryColumnOption | true;
57
57
  initHide?: boolean;
58
58
  checked?: boolean;
@@ -2,7 +2,7 @@ import type { VColumn, WhereQuery, WhereQueryColumnOption, WhereQueryItem, Where
2
2
  export type WhereQueryOption<T> = {
3
3
  field: string & keyof T | string;
4
4
  label: string;
5
- } & Partial<WhereQueryColumnOption<T>>;
5
+ } & WhereQueryColumnOption<T>;
6
6
  export type WhereQueryProps<T> = {
7
7
  whereOptions: WhereQueryOption<T>[];
8
8
  defaultWhereQuery?: WhereQuery<T>;
@@ -5,4 +5,4 @@ export declare function treeifyModels<T>(data: T[], rowKey: keyof T, treeifyColN
5
5
  export declare function flattenTree<T extends {
6
6
  children?: T[];
7
7
  }>(tree: T[]): T[];
8
- export declare function treeifyOptions<T extends Record<string, any>>(data: T[], onSelect: (newVal: number) => void, labelField: string, valueField: string, parentValueField: string, excludedValue?: number, disabledIds?: number[], defaultExpanded?: boolean, visited?: Set<number>): TreeItem[];
8
+ export declare function treeifyOptions<T>(data: T[], onSelect: (newVal: number) => void, labelField: keyof T, valueField: keyof T, parentValueField: keyof T, excludedValue?: number, disabledIds?: number[], defaultExpanded?: boolean, visited?: Set<number>): TreeItem[];
@@ -1,15 +1 @@
1
- import type { VColumn } from '../types/index.js';
2
1
  export declare function isObject(value: unknown): value is object;
3
- type AnyRecord = Record<string, any>;
4
- /**
5
- * 将 VColumn<T>[] 安全地拓宽为 VColumn<AnyRecord>[]。
6
- *
7
- * VColumn<T> 内部依赖了 TanStack Table 的 ColumnDef<T>(不变泛型),
8
- * 导致 TypeScript 无法自动将 VColumn<SubType> 赋值给 VColumn<AnyRecord>,
9
- * 尽管在运行时两者完全兼容(T extends AnyRecord)。
10
- *
11
- * 此函数将类型拓宽集中在单一位置,避免在业务代码中散布 as unknown as ...。
12
- * 仅用于向不保留泛型的组件(如通过 useOverlay 打开的模态框)传递列数据。
13
- */
14
- export declare function widenColumns<T extends AnyRecord>(columns: VColumn<T>[] | undefined): VColumn<AnyRecord>[];
15
- export {};
@@ -1,6 +1,3 @@
1
1
  export function isObject(value) {
2
2
  return typeof value === "object" && value !== null;
3
3
  }
4
- export function widenColumns(columns) {
5
- return columns ?? [];
6
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "v-nuxt-ui",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "Veken UI Component Library - Reusable Nuxt UI components, composables, and utilities for enterprise applications",
5
5
  "type": "module",
6
6
  "style": "./dist/runtime/index.css",