qidian-vue-ui 1.0.74 → 1.0.75

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 (91) hide show
  1. package/dist/components/auto-tooltip/index.d.ts +2 -0
  2. package/dist/components/auto-tooltip/index.vue.d.ts +20 -0
  3. package/dist/components/auto-tooltip/types.d.ts +8 -0
  4. package/dist/components/card/index.d.ts +2 -0
  5. package/dist/components/card/index.vue.d.ts +14 -0
  6. package/dist/components/card/props.d.ts +3 -0
  7. package/dist/components/card/types.d.ts +2 -0
  8. package/dist/components/config-provider/config.d.ts +7 -0
  9. package/dist/components/config-provider/index.d.ts +129 -0
  10. package/dist/components/config-provider/types.d.ts +50 -0
  11. package/dist/components/config-provider/useConfig.d.ts +149 -0
  12. package/dist/components/config-renderer/compute.d.ts +8 -0
  13. package/dist/components/config-renderer/index.d.ts +4 -0
  14. package/dist/components/config-renderer/index.vue.d.ts +3 -0
  15. package/dist/components/config-renderer/types.d.ts +39 -0
  16. package/dist/components/config-renderer/utils.d.ts +15 -0
  17. package/dist/components/crud/define.d.ts +5 -0
  18. package/dist/components/crud/index.d.ts +4 -0
  19. package/dist/components/crud/list.vue.d.ts +27 -0
  20. package/dist/components/crud/props.d.ts +67 -0
  21. package/dist/components/crud/search.vue.d.ts +42 -0
  22. package/dist/components/crud/table.vue.d.ts +33 -0
  23. package/dist/components/crud/types.d.ts +65 -0
  24. package/dist/components/dialog/form.vue.d.ts +22 -0
  25. package/dist/components/dialog/index.d.ts +3 -0
  26. package/dist/components/dialog/index.vue.d.ts +35 -0
  27. package/dist/components/dialog/props.d.ts +58 -0
  28. package/dist/components/dialog/types.d.ts +18 -0
  29. package/dist/components/dict/checkbox-group.vue.d.ts +15 -0
  30. package/dist/components/dict/index.d.ts +5 -0
  31. package/dist/components/dict/props.d.ts +32 -0
  32. package/dist/components/dict/radio-group.vue.d.ts +13 -0
  33. package/dist/components/dict/select.vue.d.ts +31 -0
  34. package/dist/components/dict/tag.vue.d.ts +40 -0
  35. package/dist/components/dict/types.d.ts +22 -0
  36. package/dist/components/form/config.d.ts +3 -0
  37. package/dist/components/form/index.d.ts +5 -0
  38. package/dist/components/form/index.vue.d.ts +30 -0
  39. package/dist/components/form/item.vue.d.ts +22 -0
  40. package/dist/components/form/props.d.ts +44 -0
  41. package/dist/components/form/types.d.ts +25 -0
  42. package/dist/components/grid/config.d.ts +15 -0
  43. package/dist/components/grid/index.d.ts +4 -0
  44. package/dist/components/grid/index.vue.d.ts +19 -0
  45. package/dist/components/grid/item.vue.d.ts +18 -0
  46. package/dist/components/grid/types.d.ts +12 -0
  47. package/dist/components/index.d.ts +11 -0
  48. package/dist/components/service/index.d.ts +4 -0
  49. package/dist/components/service/list.vue.d.ts +26 -0
  50. package/dist/components/service/props.d.ts +55 -0
  51. package/dist/components/service/select.vue.d.ts +25 -0
  52. package/dist/components/service/table.vue.d.ts +29 -0
  53. package/dist/components/service/types.d.ts +42 -0
  54. package/dist/components/upload/config.d.ts +4 -0
  55. package/dist/components/upload/index.d.ts +2 -0
  56. package/dist/components/upload/index.vue.d.ts +18 -0
  57. package/dist/components/upload/props.d.ts +26 -0
  58. package/dist/components/upload/types.d.ts +40 -0
  59. package/dist/directive/hasPermi.d.ts +12 -0
  60. package/dist/directive/hasRole.d.ts +12 -0
  61. package/dist/directive/index.d.ts +2 -0
  62. package/dist/en-US-B1cQ1yLB.js +326 -0
  63. package/dist/en-US-B1cQ1yLB.js.map +1 -0
  64. package/dist/en-US-CvOwuGrd.mjs +326 -0
  65. package/dist/en-US-CvOwuGrd.mjs.map +1 -0
  66. package/dist/hooks/index.d.ts +4 -0
  67. package/dist/hooks/useDict/index.d.ts +15 -0
  68. package/dist/hooks/useDict/types.d.ts +13 -0
  69. package/dist/hooks/useDisabled.d.ts +5 -0
  70. package/dist/hooks/useModal.d.ts +35 -0
  71. package/dist/hooks/useReadonly.d.ts +5 -0
  72. package/dist/index-BaW5qmGW.js +18966 -0
  73. package/dist/index-BaW5qmGW.js.map +1 -0
  74. package/dist/index-CtGgmcHz.mjs +18967 -0
  75. package/dist/index-CtGgmcHz.mjs.map +1 -0
  76. package/dist/index.d.ts +5 -0
  77. package/dist/locales/en-US.d.ts +295 -0
  78. package/dist/locales/zh-CN.d.ts +295 -0
  79. package/dist/locales/zh-TW.d.ts +295 -0
  80. package/dist/qidian-vue-ui.css +246 -0
  81. package/dist/qidian-vue-ui.js +48 -0
  82. package/dist/qidian-vue-ui.js.map +1 -0
  83. package/dist/qidian-vue-ui.mjs +48 -0
  84. package/dist/qidian-vue-ui.mjs.map +1 -0
  85. package/dist/utils/auth.d.ts +6 -0
  86. package/dist/utils/index.d.ts +1 -0
  87. package/dist/zh-TW-BN9Qqcf5.mjs +365 -0
  88. package/dist/zh-TW-BN9Qqcf5.mjs.map +1 -0
  89. package/dist/zh-TW-DuWUTXX9.js +365 -0
  90. package/dist/zh-TW-DuWUTXX9.js.map +1 -0
  91. package/package.json +1 -1
@@ -0,0 +1,33 @@
1
+ import type { TableRowData } from 'tdesign-vue-next';
2
+ import type { ServicePageParams, ServicePagination } from 'qidian-shared';
3
+ import type { QdCrudTableInstanceFunctions, QdCrudTableProps } from './types';
4
+ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly "onUpdate:data"?: ((args_0: D[] | undefined) => any) | undefined;
7
+ readonly "onUpdate:selectedRowKeys"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
8
+ readonly "onUpdate:activeRowKeys"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
9
+ readonly "onUpdate:columnControllerVisible"?: ((args_0: boolean | undefined) => any) | undefined;
10
+ readonly "onUpdate:displayColumns"?: ((args_0: import("tdesign-vue-next").CheckboxGroupValue | undefined) => any) | undefined;
11
+ readonly "onUpdate:expandedRowKeys"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
12
+ readonly "onUpdate:filterValue"?: ((args_0: import("tdesign-vue-next").FilterValue | undefined) => any) | undefined;
13
+ readonly "onUpdate:sort"?: ((args_0: import("tdesign-vue-next").TableSort | undefined) => any) | undefined;
14
+ readonly "onUpdate:expandedTreeNodes"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
15
+ readonly "onUpdate:searchData"?: ((args_0: import("tdesign-vue-next").Data | undefined) => any) | undefined;
16
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:data" | "onUpdate:selectedRowKeys" | "onUpdate:activeRowKeys" | "onUpdate:columnControllerVisible" | "onUpdate:displayColumns" | "onUpdate:expandedRowKeys" | "onUpdate:filterValue" | "onUpdate:sort" | "onUpdate:expandedTreeNodes" | "onUpdate:searchData"> & QdCrudTableProps<D, R, P, TP, Pag> & Partial<{}>> & import("vue").PublicProps;
17
+ expose(exposed: import("vue").ShallowUnwrapRef<QdCrudTableInstanceFunctions<D, R, P, TP, Pag>>): void;
18
+ attrs: any;
19
+ slots: {
20
+ [x: string]: ((props: any) => any) | undefined;
21
+ } & {
22
+ actions?: (props: {}) => any;
23
+ } & {
24
+ 'table-operation'?: (props: any) => any;
25
+ };
26
+ emit: ((evt: "update:data", args_0: D[] | undefined) => void) & ((evt: "update:selectedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:activeRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:columnControllerVisible", args_0: boolean | undefined) => void) & ((evt: "update:displayColumns", args_0: import("tdesign-vue-next").CheckboxGroupValue | undefined) => void) & ((evt: "update:expandedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:filterValue", args_0: import("tdesign-vue-next").FilterValue | undefined) => void) & ((evt: "update:sort", args_0: import("tdesign-vue-next").TableSort | undefined) => void) & ((evt: "update:expandedTreeNodes", args_0: (string | number)[] | undefined) => void) & ((evt: "update:searchData", args_0: import("tdesign-vue-next").Data | undefined) => void);
27
+ }>) => import("vue").VNode & {
28
+ __ctx?: Awaited<typeof __VLS_setup>;
29
+ };
30
+ export default _default;
31
+ type __VLS_PrettifyLocal<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
@@ -0,0 +1,65 @@
1
+ import type { DialogOptions, TableRowData, TdButtonProps, TdLinkProps } from 'tdesign-vue-next';
2
+ import type { ServicePageParams, ServicePagination } from 'qidian-shared';
3
+ import type { QdDialogFormProps } from '../dialog';
4
+ import type { QdFormProps } from '../form';
5
+ import type { QdServiceListInstanceFunctions, QdServiceListProps, QdServiceTableProps, QdServiceTableInstanceFunctions } from '../service';
6
+ import type { Qd2ConfigValue, QdComponentConfig } from '../config-renderer';
7
+ export type QdSearchProps = QdFormProps;
8
+ export type TableDialogServiceRes = void | boolean | {
9
+ success: boolean;
10
+ message?: string;
11
+ };
12
+ export interface QdCrudDetail<R = unknown, P = unknown, TP = P> {
13
+ service?: (params: TP) => R | Promise<R>;
14
+ transformParams?: (params: P) => TP | Promise<TP>;
15
+ transformRes?: (res: R) => TableDialogServiceRes | Promise<TableDialogServiceRes>;
16
+ }
17
+ export interface QdCrudTableWrapper<R = unknown, P = Record<string, unknown>, TP = P> {
18
+ crudMode?: QdDialogFormProps['crudMode'] | 'del';
19
+ service?: (params: TP) => R | Promise<R>;
20
+ transformParams?: (params: P) => TP | Promise<TP>;
21
+ transformRes?: (res: R) => TableDialogServiceRes | Promise<TableDialogServiceRes>;
22
+ form?: Qd2ConfigValue<Omit<QdDialogFormProps, 'data' | 'visible' | 'crudMode'>>;
23
+ }
24
+ export interface QdCrudTableActionContext<D extends TableRowData = TableRowData> {
25
+ tableData: D[];
26
+ searchData: QdCrudTableProps['searchData'];
27
+ selectedRowKeys: NonNullable<QdServiceTableProps['selectedRowKeys']>;
28
+ activeRowKeys: NonNullable<QdServiceTableProps['selectedRowKeys']>;
29
+ self: QdCrudTableAction;
30
+ }
31
+ export interface QdCrudTableAction<R = unknown, P = Record<string, unknown>, TP = P> extends QdCrudTableWrapper<R, P, TP>, Qd2ConfigValue<Omit<TdButtonProps, 'default' | 'form'>> {
32
+ uid?: string;
33
+ permiID?: string;
34
+ permi?: string[];
35
+ selectType?: QdServiceTableProps['selectType'];
36
+ }
37
+ export interface QdCrudTableRowAction<R = unknown, P = Record<string, unknown>, TP = P> extends QdCrudTableWrapper<R, P, TP>, Qd2ConfigValue<Omit<TdLinkProps, 'default'>>, Pick<QdComponentConfig, 'vIf' | 'vShow'> {
38
+ uid?: string;
39
+ permiID?: string;
40
+ permi?: string[];
41
+ selectType?: QdServiceTableProps['selectType'];
42
+ }
43
+ export interface QdCrudTableDeleteAction<R = unknown, P = unknown, TP = P> extends Omit<QdCrudTableRowAction<R, P, TP>, 'form'>, Omit<QdCrudTableAction<R, P, TP>, 'form'> {
44
+ wrapper?: Pick<DialogOptions, 'header' | 'body' | 'theme' | 'confirmBtn' | 'cancelBtn' | 'closeBtn' | 'closeOnEscKeydown' | 'closeOnOverlayClick'>;
45
+ }
46
+ export interface QdCrudTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> extends QdServiceTableProps<D, R, P, TP, Pag> {
47
+ title?: string;
48
+ permiPrefix?: string;
49
+ search?: Omit<QdSearchProps, 'data'>;
50
+ searchData?: QdSearchProps['data'];
51
+ form?: QdCrudTableWrapper['form'];
52
+ detail?: QdCrudDetail;
53
+ add?: false | QdCrudTableAction;
54
+ actions?: QdCrudTableAction[];
55
+ edit?: false | QdCrudTableRowAction;
56
+ view?: true | false | QdCrudTableRowAction;
57
+ del?: false | QdCrudTableDeleteAction;
58
+ rowActions?: QdCrudTableRowAction[];
59
+ }
60
+ export type QdCrudTableInstanceFunctions<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> = QdServiceTableInstanceFunctions<D, R, P, TP, Pag>;
61
+ export interface QdCrudListProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> extends QdServiceListProps<D, R, P, TP, Pag> {
62
+ search?: Omit<QdSearchProps, 'data'>;
63
+ searchData?: QdSearchProps['data'];
64
+ }
65
+ export type QdCrudListInstanceFunctions<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> = QdServiceListInstanceFunctions<D, R, P, TP, Pag>;
@@ -0,0 +1,22 @@
1
+ import type { QdDialogFormInstanceFunctions, QdDialogFormProps } from './types';
2
+ import type { Data } from 'tdesign-vue-next';
3
+ declare const _default: <FD extends Data = Data>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly "onUpdate:visible"?: ((args_0: boolean | undefined) => any) | undefined;
6
+ readonly "onUpdate:data"?: ((args_0: FD | undefined) => any) | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:visible" | "onUpdate:data"> & QdDialogFormProps<FD> & Partial<{}>> & import("vue").PublicProps;
8
+ expose(exposed: import("vue").ShallowUnwrapRef<QdDialogFormInstanceFunctions<Data>>): void;
9
+ attrs: any;
10
+ slots: {
11
+ [x: string]: ((props: any) => any) | undefined;
12
+ } & {
13
+ [x: string]: ((props: any) => any) | undefined;
14
+ };
15
+ emit: ((evt: "update:visible", args_0: boolean | undefined) => void) & ((evt: "update:data", args_0: FD | undefined) => void);
16
+ }>) => import("vue").VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ export default _default;
20
+ type __VLS_PrettifyLocal<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
@@ -0,0 +1,3 @@
1
+ export { default as QdDialog } from './index.vue';
2
+ export { default as QdDialogForm } from './form.vue';
3
+ export type { QdDialogProps, QdDialogFormProps } from './types';
@@ -0,0 +1,35 @@
1
+ import type { QdDialogProps } from './types';
2
+ declare var __VLS_7: string | number, __VLS_8: any;
3
+ type __VLS_Slots = {} & {
4
+ [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<QdDialogProps, {
7
+ show: () => void;
8
+ hide: () => void;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:visible": (args_0: boolean | undefined) => any;
11
+ }, string, import("vue").PublicProps, Readonly<QdDialogProps> & Readonly<{
12
+ "onUpdate:visible"?: ((args_0: boolean | undefined) => any) | undefined;
13
+ }>, {
14
+ placement: "top" | "center";
15
+ attach: import("tdesign-vue-next").AttachNode;
16
+ destroyOnClose: boolean;
17
+ footer: boolean | import("tdesign-vue-next").TNode;
18
+ header: string | boolean | import("tdesign-vue-next").TNode;
19
+ theme: "default" | "info" | "warning" | "danger" | "success";
20
+ closeBtn: string | boolean | import("tdesign-vue-next").TNode;
21
+ closeOnEscKeydown: boolean;
22
+ closeOnOverlayClick: boolean;
23
+ confirmOnEnter: boolean;
24
+ lazy: boolean;
25
+ preventScrollThrough: boolean;
26
+ showOverlay: boolean;
27
+ width: string | number;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,58 @@
1
+ export declare const qdDialogProps: {
2
+ readonly width: "min(960px, 100%)";
3
+ readonly theme: "default";
4
+ readonly attach: "body";
5
+ readonly header: true;
6
+ readonly footer: true;
7
+ readonly closeBtn: true;
8
+ readonly closeOnEscKeydown: true;
9
+ readonly closeOnOverlayClick: false;
10
+ readonly confirmOnEnter: undefined;
11
+ readonly destroyOnClose: true;
12
+ readonly lazy: true;
13
+ readonly placement: "center";
14
+ readonly preventScrollThrough: true;
15
+ readonly showOverlay: true;
16
+ };
17
+ export declare const qdDialogFormProps: {
18
+ readonly wrapper: () => {
19
+ readonly width: "min(960px, 100%)";
20
+ readonly theme: "default";
21
+ readonly attach: "body";
22
+ readonly header: true;
23
+ readonly footer: true;
24
+ readonly closeBtn: true;
25
+ readonly closeOnEscKeydown: true;
26
+ readonly closeOnOverlayClick: false;
27
+ readonly confirmOnEnter: undefined;
28
+ readonly destroyOnClose: true;
29
+ readonly lazy: true;
30
+ readonly placement: "center";
31
+ readonly preventScrollThrough: true;
32
+ readonly showOverlay: true;
33
+ };
34
+ readonly gutter: () => number[];
35
+ readonly grid: () => {
36
+ col: {
37
+ xs: number;
38
+ sm: number;
39
+ md: number;
40
+ lg: number;
41
+ xl: number;
42
+ xxl: number;
43
+ };
44
+ };
45
+ readonly data: () => any;
46
+ readonly disabled: undefined;
47
+ readonly readonly: undefined;
48
+ readonly labelAlign: "top";
49
+ readonly labelWidth: "auto";
50
+ readonly requiredMarkPosition: "left";
51
+ readonly resetType: "initial";
52
+ readonly scrollToFirstError: "smooth";
53
+ readonly preventSubmitDefault: true;
54
+ readonly requiredMark: undefined;
55
+ readonly showErrorMessage: true;
56
+ readonly statusIcon: undefined;
57
+ readonly defaultClearable: undefined;
58
+ };
@@ -0,0 +1,18 @@
1
+ import type { Data, FormInstanceFunctions, TdDialogProps } from 'tdesign-vue-next';
2
+ import type { QdFormProps, QdFormSubmitContext } from '../form';
3
+ export type QdDialogDone = (closed: boolean) => void;
4
+ export interface QdDialogProps extends Omit<TdDialogProps, 'onConfirm'> {
5
+ onConfirm?: (done: QdDialogDone) => void | Promise<void>;
6
+ }
7
+ export interface QdDialogInstanceFunctions {
8
+ show: () => void;
9
+ hide: () => void;
10
+ }
11
+ export interface QdDialogFormProps<FD extends Data = Data> extends Omit<QdFormProps<FD>, 'onSubmit'>, Pick<QdDialogProps, 'visible'> {
12
+ onSubmit?: (context: QdFormSubmitContext<FD>) => void | boolean | Promise<void | boolean>;
13
+ wrapper?: Omit<QdDialogProps, 'visible'>;
14
+ }
15
+ export interface QdDialogFormInstanceFunctions<FD extends Data = Data> extends FormInstanceFunctions {
16
+ show: (data?: FD) => void;
17
+ hide: () => void;
18
+ }
@@ -0,0 +1,15 @@
1
+ import type { QdDictCheckboxGroupProps } from './types';
2
+ declare const _default: import("vue").DefineComponent<QdDictCheckboxGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ "update:modelValue": (args_0: string | import("tdesign-vue-next").CheckboxGroupValue | undefined) => any;
4
+ }, string, import("vue").PublicProps, Readonly<QdDictCheckboxGroupProps> & Readonly<{
5
+ "onUpdate:modelValue"?: ((args_0: string | import("tdesign-vue-next").CheckboxGroupValue | undefined) => any) | undefined;
6
+ }>, {
7
+ disabled: boolean;
8
+ modelValue: import("tdesign-vue-next").CheckboxGroupValue | string;
9
+ value: import("tdesign-vue-next").CheckboxGroupValue;
10
+ defaultValue: import("tdesign-vue-next").CheckboxGroupValue;
11
+ max: number;
12
+ convStr: boolean | string;
13
+ readonly: boolean;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export { default as QdDictSelect } from './select.vue';
2
+ export { default as QdDictRadioGroup } from './radio-group.vue';
3
+ export { default as QdDictCheckboxGroup } from './checkbox-group.vue';
4
+ export { default as QdDictTag } from './tag.vue';
5
+ export type { QdDictSelectProps, QdDictRadioGroupProps, QdDictCheckboxGroupProps, QdDictTagProps } from './types';
@@ -0,0 +1,32 @@
1
+ export declare const qdDictConvStrSeparator = ",";
2
+ export declare const qdDictSelectProps: {
3
+ readonly showArrow: true;
4
+ readonly filterable: true;
5
+ readonly popupVisible: undefined;
6
+ readonly disabled: undefined;
7
+ readonly clearable: false;
8
+ readonly readonly: undefined;
9
+ readonly valueType: "value";
10
+ readonly defaultSelectFirst: false;
11
+ readonly convStr: false;
12
+ };
13
+ export declare const qdDictRadioGroupProps: {
14
+ readonly allowUncheck: false;
15
+ readonly disabled: undefined;
16
+ readonly readonly: undefined;
17
+ readonly theme: "radio";
18
+ readonly variant: "outline";
19
+ };
20
+ export declare const qdDictCheckboxGroupProps: {
21
+ readonly max: undefined;
22
+ readonly disabled: undefined;
23
+ readonly readonly: undefined;
24
+ readonly modelValue: () => never[];
25
+ readonly value: () => never[];
26
+ readonly defaultValue: () => never[];
27
+ readonly convStr: false;
28
+ };
29
+ export declare const qdDictTagProps: {
30
+ readonly options: undefined;
31
+ readonly strict: false;
32
+ };
@@ -0,0 +1,13 @@
1
+ import type { QdDictRadioGroupProps } from './types';
2
+ declare const _default: import("vue").DefineComponent<QdDictRadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ "update:modelValue": (args_0: import("tdesign-vue-next").RadioValue | undefined) => any;
4
+ }, string, import("vue").PublicProps, Readonly<QdDictRadioGroupProps> & Readonly<{
5
+ "onUpdate:modelValue"?: ((args_0: import("tdesign-vue-next").RadioValue | undefined) => any) | undefined;
6
+ }>, {
7
+ disabled: boolean;
8
+ theme: "radio" | "button";
9
+ variant: "outline" | "primary-filled" | "default-filled";
10
+ readonly: boolean;
11
+ allowUncheck: boolean;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import type { QdDictSelectProps } from './types';
2
+ declare var __VLS_7: string | number, __VLS_8: any;
3
+ type __VLS_Slots = {} & {
4
+ [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<QdDictSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "update:modelValue": (args_0: import("tdesign-vue-next").SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => any;
8
+ "update:inputValue": (args_0: string | undefined) => any;
9
+ "update:popupVisible": (args_0: boolean | undefined) => any;
10
+ }, string, import("vue").PublicProps, Readonly<QdDictSelectProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((args_0: import("tdesign-vue-next").SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => any) | undefined;
12
+ "onUpdate:inputValue"?: ((args_0: string | undefined) => any) | undefined;
13
+ "onUpdate:popupVisible"?: ((args_0: boolean | undefined) => any) | undefined;
14
+ }>, {
15
+ disabled: boolean;
16
+ showArrow: boolean;
17
+ convStr: boolean | string;
18
+ readonly: boolean;
19
+ clearable: boolean;
20
+ defaultSelectFirst: boolean;
21
+ popupVisible: boolean;
22
+ filterable: boolean;
23
+ valueType: "value" | "object";
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,40 @@
1
+ import type { QdDictTagProps } from './types';
2
+ declare var __VLS_1: {
3
+ item: import("../..").QdDictItem;
4
+ }, __VLS_3: {
5
+ item: import("../..").QdDictItem;
6
+ }, __VLS_5: {
7
+ item: import("../..").QdDictItem;
8
+ }, __VLS_11: {
9
+ item: import("../..").QdDictItem;
10
+ }, __VLS_13: {
11
+ item: import("../..").QdDictItem;
12
+ }, __VLS_15: {
13
+ item: import("../..").QdDictItem;
14
+ }, __VLS_17: {};
15
+ type __VLS_Slots = {} & {
16
+ prefix?: (props: typeof __VLS_1) => any;
17
+ } & {
18
+ default?: (props: typeof __VLS_3) => any;
19
+ } & {
20
+ suffix?: (props: typeof __VLS_5) => any;
21
+ } & {
22
+ prefix?: (props: typeof __VLS_11) => any;
23
+ } & {
24
+ default?: (props: typeof __VLS_13) => any;
25
+ } & {
26
+ suffix?: (props: typeof __VLS_15) => any;
27
+ } & {
28
+ separator?: (props: typeof __VLS_17) => any;
29
+ };
30
+ declare const __VLS_component: import("vue").DefineComponent<QdDictTagProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QdDictTagProps> & Readonly<{}>, {
31
+ options: import("../..").QdDictItem[];
32
+ strict: boolean;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
35
+ export default _default;
36
+ type __VLS_WithSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,22 @@
1
+ import type { TdSelectProps, TdRadioGroupProps, TdCheckboxGroupProps, TdTagProps, CheckboxGroupValue } from 'tdesign-vue-next';
2
+ import type { QdDictItem } from '../../hooks';
3
+ export interface QdDictSelectProps extends Omit<TdSelectProps<QdDictItem>, 'options'> {
4
+ dictType: string;
5
+ defaultSelectFirst?: boolean;
6
+ convStr?: boolean | string;
7
+ }
8
+ export interface QdDictRadioGroupProps extends Omit<TdRadioGroupProps, 'options'> {
9
+ dictType: string;
10
+ }
11
+ export interface QdDictCheckboxGroupProps extends Omit<TdCheckboxGroupProps, 'modelValue' | 'options'> {
12
+ dictType: string;
13
+ convStr?: boolean | string;
14
+ modelValue?: CheckboxGroupValue | string;
15
+ }
16
+ export interface QdDictTagProps extends Pick<TdTagProps, 'size' | 'shape'>, Pick<QdDictItem, 'theme' | 'variant'> {
17
+ value?: string | number | (string | number)[];
18
+ strict?: boolean;
19
+ separator?: string;
20
+ options?: QdDictItem[];
21
+ dictType?: string;
22
+ }
@@ -0,0 +1,3 @@
1
+ import type { InjectionKey } from 'vue';
2
+ import type { QdFormBeforeSubmitQueueItem } from './types';
3
+ export declare const PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE: InjectionKey<(item: QdFormBeforeSubmitQueueItem) => void>;
@@ -0,0 +1,5 @@
1
+ export { default as QdForm } from './index.vue';
2
+ export { default as QdFormItem } from './item.vue';
3
+ export { PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE } from './config';
4
+ export { qdFormGutter, qdFormGrid } from './props';
5
+ export type { QdFormBeforeSubmitQueueResult, QdFormBeforeSubmitQueueItem, QdFormProps, QdFormSubmitContext, QdFormItemProps } from './types';
@@ -0,0 +1,30 @@
1
+ import type { Data, FormInstanceFunctions } from 'tdesign-vue-next';
2
+ import type { QdFormProps } from './types';
3
+ declare const _default: <FD extends Data = Data>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly "onUpdate:modelValue"?: ((args_0: Data | undefined) => any) | undefined;
6
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & QdFormProps<Data> & Partial<{}>> & import("vue").PublicProps;
7
+ expose(exposed: import("vue").ShallowUnwrapRef<FormInstanceFunctions<Data>>): void;
8
+ attrs: any;
9
+ slots: {
10
+ header?: (props: {
11
+ context: Data;
12
+ }) => any;
13
+ } & {
14
+ default?: (props: {
15
+ grid: import("..").QdGridItemProps;
16
+ gutter: number | import("tdesign-vue-next").GutterObject | (number | import("tdesign-vue-next").GutterObject)[];
17
+ }) => any;
18
+ } & {
19
+ footer?: (props: {
20
+ context: Data;
21
+ }) => any;
22
+ };
23
+ emit: (evt: "update:modelValue", args_0: Data | undefined) => void;
24
+ }>) => import("vue").VNode & {
25
+ __ctx?: Awaited<typeof __VLS_setup>;
26
+ };
27
+ export default _default;
28
+ type __VLS_PrettifyLocal<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
@@ -0,0 +1,22 @@
1
+ import type { QdFormItemProps } from './types';
2
+ declare var __VLS_10: {
3
+ crudMode: "view" | "add" | "edit" | undefined;
4
+ context: Record<string, unknown> | undefined;
5
+ };
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_10) => any;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<QdFormItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QdFormItemProps> & Readonly<{}>, {
10
+ defaultClearable: boolean;
11
+ requiredMark: boolean;
12
+ showErrorMessage: boolean;
13
+ statusIcon: boolean | import("tdesign-vue-next").TNode;
14
+ successBorder: boolean;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,44 @@
1
+ export declare const qdFormGutter: number[];
2
+ export declare const qdFormGrid: {
3
+ col: {
4
+ xs: number;
5
+ sm: number;
6
+ md: number;
7
+ lg: number;
8
+ xl: number;
9
+ xxl: number;
10
+ };
11
+ };
12
+ export declare const qdFormProps: {
13
+ readonly gutter: () => number[];
14
+ readonly grid: () => {
15
+ col: {
16
+ xs: number;
17
+ sm: number;
18
+ md: number;
19
+ lg: number;
20
+ xl: number;
21
+ xxl: number;
22
+ };
23
+ };
24
+ readonly data: () => any;
25
+ readonly disabled: undefined;
26
+ readonly readonly: undefined;
27
+ readonly labelAlign: "top";
28
+ readonly labelWidth: "auto";
29
+ readonly requiredMarkPosition: "left";
30
+ readonly resetType: "initial";
31
+ readonly scrollToFirstError: "smooth";
32
+ readonly preventSubmitDefault: true;
33
+ readonly requiredMark: undefined;
34
+ readonly showErrorMessage: true;
35
+ readonly statusIcon: undefined;
36
+ readonly defaultClearable: undefined;
37
+ };
38
+ export declare const qdFormItemProps: {
39
+ readonly requiredMark: undefined;
40
+ readonly showErrorMessage: undefined;
41
+ readonly statusIcon: undefined;
42
+ readonly successBorder: false;
43
+ readonly defaultClearable: undefined;
44
+ };
@@ -0,0 +1,25 @@
1
+ import type { TdFormProps, Data, TdFormItemProps, LoadingProps, SubmitContext } from 'tdesign-vue-next';
2
+ import type { QdGridItemProps, QdGridProps } from '../grid';
3
+ import type { QdConfigRendererProps } from '../config-renderer';
4
+ export type QdFormBeforeSubmitQueueResult = boolean | {
5
+ success: boolean;
6
+ message?: string;
7
+ };
8
+ export type QdFormBeforeSubmitQueueItem = () => Promise<QdFormBeforeSubmitQueueResult> | QdFormBeforeSubmitQueueResult;
9
+ export interface QdFormItemProps extends TdFormItemProps, QdGridItemProps, Pick<QdFormProps, 'crudMode' | 'defaultClearable'> {
10
+ context?: QdConfigRendererProps['context'];
11
+ component?: QdConfigRendererProps['config'];
12
+ required?: boolean | string;
13
+ }
14
+ export interface QdFormSubmitContext<FD extends Data = Data> extends SubmitContext<FD>, Pick<QdFormProps, 'crudMode'> {
15
+ showErrorMessage: boolean;
16
+ formData: FD;
17
+ }
18
+ export interface QdFormProps<FD extends Data = Data> extends Omit<TdFormProps<FD>, 'layout' | 'onSubmit'>, QdGridProps {
19
+ crudMode?: 'add' | 'view' | 'edit';
20
+ items?: QdFormItemProps[];
21
+ loading?: boolean;
22
+ loadingProps?: LoadingProps;
23
+ defaultClearable?: boolean;
24
+ onSubmit?: (context: QdFormSubmitContext<FD>) => void;
25
+ }
@@ -0,0 +1,15 @@
1
+ import type { InjectionKey, Ref } from 'vue';
2
+ import type { QdGridItemProps } from './types';
3
+ export declare const PROVIDE_GRID_WIDTH_KEY: InjectionKey<Ref<number>>;
4
+ export declare const PROVIDE_GRID_ITEM_PROPS_KEY: InjectionKey<QdGridItemProps>;
5
+ export declare const DEFAULT_GRID_WIDTH = 1920;
6
+ export declare const DEFAULT_BREAKPOINTS: {
7
+ xs: number;
8
+ sm: number;
9
+ md: number;
10
+ lg: number;
11
+ xl: number;
12
+ xxl: number;
13
+ };
14
+ export declare const DEFAULT_COL = 1;
15
+ export declare const DEFAULT_ROW = 1;
@@ -0,0 +1,4 @@
1
+ export { default as QdGrid } from './index.vue';
2
+ export { default as QdGridItem } from './item.vue';
3
+ export { PROVIDE_GRID_WIDTH_KEY, PROVIDE_GRID_ITEM_PROPS_KEY } from './config';
4
+ export type { QdGridProps, QdGridItemProps } from './types';
@@ -0,0 +1,19 @@
1
+ import type { QdGridProps } from './types';
2
+ declare var __VLS_1: {
3
+ gutterStyle: {
4
+ gap?: undefined;
5
+ } | {
6
+ gap: string;
7
+ };
8
+ };
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<QdGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QdGridProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,18 @@
1
+ import type { QdGridItemProps } from './types';
2
+ declare var __VLS_1: {
3
+ itemStyle: {
4
+ gridColumn: string;
5
+ gridRow: string;
6
+ };
7
+ };
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_1) => any;
10
+ };
11
+ declare const __VLS_component: import("vue").DefineComponent<QdGridItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QdGridItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,12 @@
1
+ import type { GutterObject, TdRowProps } from 'tdesign-vue-next';
2
+ export type GridGutterValue = number | (GutterObject & {
3
+ span?: number;
4
+ });
5
+ export interface QdGridProps {
6
+ gutter?: TdRowProps['gutter'];
7
+ grid?: QdGridItemProps;
8
+ }
9
+ export interface QdGridItemProps {
10
+ col?: GridGutterValue;
11
+ row?: GridGutterValue;
12
+ }
@@ -0,0 +1,11 @@
1
+ export * from './auto-tooltip';
2
+ export * from './card';
3
+ export * from './config-provider';
4
+ export * from './config-renderer';
5
+ export * from './crud';
6
+ export * from './dialog';
7
+ export * from './dict';
8
+ export * from './form';
9
+ export * from './grid';
10
+ export * from './service';
11
+ export * from './upload';
@@ -0,0 +1,4 @@
1
+ export { default as QdServiceTable } from './table.vue';
2
+ export { default as QdServiceList } from './list.vue';
3
+ export { default as QdServiceSelect } from './select.vue';
4
+ export type { QdServiceTableProps, QdServiceTableInstanceFunctions, QdServiceListProps, QdServiceListInstanceFunctions, QdServiceSelectProps, QdServiceSelectInstanceFunctions } from './types';