v-nuxt-ui 0.1.24 → 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/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
|
@@ -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 { OrderQueryOpr, OrderQueryOption, VColumn } 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
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import type { VFormFieldAsyncSelectProps, WhereQueryItem } 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
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
65
|
-
:list-api="option
|
|
66
|
-
:search-fields="option
|
|
67
|
-
:label-render-fn="option
|
|
68
|
-
:label-field="option
|
|
69
|
-
:value-field="option
|
|
70
|
-
:multiple="option
|
|
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
|
|
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
|
|
3
|
+
rowSelection: Ref<Record<number, boolean>, Record<number, boolean>>;
|
|
4
4
|
selectedIds: Ref<number[], number[]>;
|
|
5
5
|
clearRowSelection: () => void;
|
|
6
6
|
};
|
|
@@ -100,7 +100,7 @@ const _useTheme = () => {
|
|
|
100
100
|
});
|
|
101
101
|
const sidebarVariant = computed({
|
|
102
102
|
get() {
|
|
103
|
-
return app.appConfig.value.variant ?? "
|
|
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: "
|
|
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?:
|
|
17
|
-
valueField
|
|
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
|
|
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<
|
|
89
|
+
} & VFormFieldAsyncSelectProps<any> | {
|
|
91
90
|
type: 'async-object-select';
|
|
92
|
-
} & VFormFieldAsyncSelectProps<
|
|
91
|
+
} & VFormFieldAsyncSelectProps<any> | {
|
|
93
92
|
type: 'async-tree-select';
|
|
94
|
-
} & VFormFieldAsyncTreeSelectProps<
|
|
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
|
|
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
|
|
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?:
|
|
21
|
-
valueField
|
|
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<
|
|
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
|
-
} &
|
|
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
|
|
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 {};
|
package/package.json
CHANGED