tutor-pro-ui-vue 1.0.75-beta → 1.0.78-beta

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 (32) hide show
  1. package/dist/index.js +18689 -18029
  2. package/dist/index.js.gz +0 -0
  3. package/dist/index.umd.cjs +29 -29
  4. package/dist/src/components/CommonButton/src/index.vue.d.ts +3 -3
  5. package/dist/src/components/CommonButtonGroup/src/index.vue.d.ts +12 -5
  6. package/dist/src/components/CommonButtonGroup/src/types.d.ts +14 -1
  7. package/dist/src/components/CommonDescriptions/index.d.ts +5 -0
  8. package/dist/src/components/CommonDescriptions/src/index.vue.d.ts +100 -0
  9. package/dist/src/components/CommonDescriptions/src/types.d.ts +44 -0
  10. package/dist/src/components/CommonForm/fields/Input.vue.d.ts +22 -0
  11. package/dist/src/components/CommonForm/fields/Select.vue.d.ts +14 -0
  12. package/dist/src/components/CommonForm/fields/index.d.ts +5 -0
  13. package/dist/src/components/CommonForm/hooks.d.ts +13 -0
  14. package/dist/src/components/CommonForm/index.d.ts +4 -0
  15. package/dist/src/components/CommonForm/src/hooks.d.ts +375 -0
  16. package/dist/src/components/CommonForm/src/index.vue.d.ts +48 -0
  17. package/dist/src/components/CommonForm/types.d.ts +45 -0
  18. package/dist/src/components/CommonScroll/index.d.ts +7 -0
  19. package/dist/src/components/CommonScroll/src/InfiniteScroll.vue.d.ts +149 -0
  20. package/dist/src/components/CommonScroll/src/InfiniteVirtualScroll.vue.d.ts +156 -0
  21. package/dist/src/components/CommonScroll/src/components/ListItem.vue.d.ts +29 -0
  22. package/dist/src/components/CommonScroll/types.d.ts +67 -0
  23. package/dist/src/components/CommonTabs/index.d.ts +4 -0
  24. package/dist/src/components/CommonTabs/src/index.vue.d.ts +2 -0
  25. package/dist/src/components/components.d.ts +3 -0
  26. package/dist/src/components/index.d.ts +5 -1
  27. package/dist/src/components/types.d.ts +3 -0
  28. package/dist/src/index.d.ts +2 -2
  29. package/dist/src/utils/cancelToken/index.d.ts +16 -0
  30. package/dist/src/utils/index.d.ts +1 -0
  31. package/dist/tutor-pro-ui-vue.css +1 -0
  32. package/package.json +3 -1
@@ -114,9 +114,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
114
114
  }>> & Readonly<{
115
115
  onClick?: ((...args: any[]) => any) | undefined;
116
116
  }>, {
117
- type: import('element-plus/es/utils').EpPropMergeType<StringConstructor, "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger", unknown>;
117
+ type: import('element-plus/es/utils').EpPropMergeType<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown>;
118
118
  modelValue: boolean;
119
- click: Function;
120
119
  text: boolean;
121
120
  label: string | Function;
122
121
  debounce: number;
@@ -133,8 +132,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
133
132
  submit?: Function | undefined;
134
133
  } & Omit<import('element-plus').DialogProps, "modelValue">>;
135
134
  hidden: Function;
135
+ click: Function;
136
136
  disabled: boolean;
137
- nativeType: import('element-plus/es/utils').EpPropMergeType<StringConstructor, "submit" | "reset" | "button", unknown>;
137
+ nativeType: import('element-plus/es/utils').EpPropMergeType<StringConstructor, "submit" | "button" | "reset", unknown>;
138
138
  loading: boolean;
139
139
  loadingIcon: import('element-plus/es/utils').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>;
140
140
  plain: boolean;
@@ -1,16 +1,23 @@
1
- import { PropType } from 'vue';
2
- import { GroupBtn } from '../../types';
3
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
2
  btns: {
5
- type: PropType<GroupBtn[]>;
6
3
  default: () => never[];
4
+ type: import('vue').PropType<import('./types').GroupBtn[]>;
5
+ };
6
+ className: {
7
+ default: string;
8
+ type: StringConstructor;
7
9
  };
8
10
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
11
  btns: {
10
- type: PropType<GroupBtn[]>;
11
12
  default: () => never[];
13
+ type: import('vue').PropType<import('./types').GroupBtn[]>;
14
+ };
15
+ className: {
16
+ default: string;
17
+ type: StringConstructor;
12
18
  };
13
19
  }>> & Readonly<{}>, {
14
- btns: GroupBtn[];
20
+ btns: import('./types').GroupBtn[];
21
+ className: string;
15
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
23
  export default _default;
@@ -1,4 +1,17 @@
1
- import { CommonButtonProps } from '../../types';
1
+ import { ButtonProps } from 'element-plus';
2
+ import { ExtractPropTypes, PropType } from 'vue';
3
+ import { CommonButtonProps } from '../../CommonButton/src/types';
2
4
  export type GroupBtn = CommonButtonProps & {
3
5
  key?: string;
4
6
  };
7
+ export declare const commonButtonGroupProps: {
8
+ btns: {
9
+ default: () => never[];
10
+ type: PropType<GroupBtn[]>;
11
+ };
12
+ className: {
13
+ default: string;
14
+ type: StringConstructor;
15
+ };
16
+ };
17
+ export type CommonButtonGroupProps = ExtractPropTypes<typeof commonButtonGroupProps> & Omit<ButtonProps, 'icon'>;
@@ -0,0 +1,5 @@
1
+ import { SFCWithInstall } from '../typescript';
2
+ import { default as Descriptions } from './src/index.vue';
3
+ declare const CommonDescriptions: SFCWithInstall<typeof Descriptions>;
4
+ export default CommonDescriptions;
5
+ export * from './src/types';
@@ -0,0 +1,100 @@
1
+ declare function __VLS_template(): {
2
+ slots: Partial<Record<string, (_: {
3
+ data: any;
4
+ }) => any>> & {
5
+ title?(_: {}): any;
6
+ extra?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ attrs: Partial<{}>;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ list: {
14
+ type: {
15
+ (arrayLength: number): import('./types').DescriptionItem[];
16
+ (...items: import('./types').DescriptionItem[]): import('./types').DescriptionItem[];
17
+ new (arrayLength: number): import('./types').DescriptionItem[];
18
+ new (...items: import('./types').DescriptionItem[]): import('./types').DescriptionItem[];
19
+ isArray(arg: any): arg is any[];
20
+ readonly prototype: any[];
21
+ from<T>(arrayLike: ArrayLike<T>): T[];
22
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
23
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
24
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
25
+ of<T>(...items: T[]): T[];
26
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
27
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
28
+ readonly [Symbol.species]: ArrayConstructor;
29
+ };
30
+ default: () => never[];
31
+ };
32
+ data: {
33
+ type: ObjectConstructor;
34
+ default: () => void;
35
+ };
36
+ border: BooleanConstructor;
37
+ column: import('element-plus/es/utils').EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
38
+ direction: import('element-plus/es/utils').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
39
+ size: {
40
+ readonly type: import('vue').PropType<import('element-plus/es/utils').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
41
+ readonly required: false;
42
+ readonly validator: ((val: unknown) => boolean) | undefined;
43
+ __epPropKey: true;
44
+ };
45
+ title: import('element-plus/es/utils').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
46
+ extra: import('element-plus/es/utils').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
47
+ labelWidth: import('element-plus/es/utils').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
48
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
49
+ list: {
50
+ type: {
51
+ (arrayLength: number): import('./types').DescriptionItem[];
52
+ (...items: import('./types').DescriptionItem[]): import('./types').DescriptionItem[];
53
+ new (arrayLength: number): import('./types').DescriptionItem[];
54
+ new (...items: import('./types').DescriptionItem[]): import('./types').DescriptionItem[];
55
+ isArray(arg: any): arg is any[];
56
+ readonly prototype: any[];
57
+ from<T>(arrayLike: ArrayLike<T>): T[];
58
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
59
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
60
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
61
+ of<T>(...items: T[]): T[];
62
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
63
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
64
+ readonly [Symbol.species]: ArrayConstructor;
65
+ };
66
+ default: () => never[];
67
+ };
68
+ data: {
69
+ type: ObjectConstructor;
70
+ default: () => void;
71
+ };
72
+ border: BooleanConstructor;
73
+ column: import('element-plus/es/utils').EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
74
+ direction: import('element-plus/es/utils').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
75
+ size: {
76
+ readonly type: import('vue').PropType<import('element-plus/es/utils').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
77
+ readonly required: false;
78
+ readonly validator: ((val: unknown) => boolean) | undefined;
79
+ __epPropKey: true;
80
+ };
81
+ title: import('element-plus/es/utils').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
82
+ extra: import('element-plus/es/utils').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
83
+ labelWidth: import('element-plus/es/utils').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
84
+ }>> & Readonly<{}>, {
85
+ title: string;
86
+ data: Record<string, any>;
87
+ list: import('./types').DescriptionItem[];
88
+ labelWidth: import('element-plus/es/utils').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
89
+ border: boolean;
90
+ column: number;
91
+ direction: import('element-plus/es/utils').EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
92
+ extra: string;
93
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
94
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
95
+ export default _default;
96
+ type __VLS_WithTemplateSlots<T, S> = T & {
97
+ new (): {
98
+ $slots: S;
99
+ };
100
+ };
@@ -0,0 +1,44 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { DescriptionItemProps } from 'element-plus';
3
+ export type DescriptionItem = DescriptionItemProps & {
4
+ field: string;
5
+ key: string;
6
+ };
7
+ export declare const commonDescriptionsProps: {
8
+ list: {
9
+ type: {
10
+ (arrayLength: number): DescriptionItem[];
11
+ (...items: DescriptionItem[]): DescriptionItem[];
12
+ new (arrayLength: number): DescriptionItem[];
13
+ new (...items: DescriptionItem[]): DescriptionItem[];
14
+ isArray(arg: any): arg is any[];
15
+ readonly prototype: any[];
16
+ from<T>(arrayLike: ArrayLike<T>): T[];
17
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
18
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
19
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
20
+ of<T>(...items: T[]): T[];
21
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
22
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
23
+ readonly [Symbol.species]: ArrayConstructor;
24
+ };
25
+ default: () => never[];
26
+ };
27
+ data: {
28
+ type: ObjectConstructor;
29
+ default: () => void;
30
+ };
31
+ border: BooleanConstructor;
32
+ column: import('element-plus/es/utils').EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
33
+ direction: import('element-plus/es/utils').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
34
+ size: {
35
+ readonly type: import('vue').PropType<import('element-plus/es/utils').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
36
+ readonly required: false;
37
+ readonly validator: ((val: unknown) => boolean) | undefined;
38
+ __epPropKey: true;
39
+ };
40
+ title: import('element-plus/es/utils').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
41
+ extra: import('element-plus/es/utils').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
42
+ labelWidth: import('element-plus/es/utils').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
43
+ };
44
+ export type CommonDescriptionsProps = ExtractPropTypes<typeof commonDescriptionsProps>;
@@ -0,0 +1,22 @@
1
+ import { PropType } from 'vue';
2
+ import { FieldConfig } from '../types';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ modelValue: {
5
+ type: ArrayConstructor;
6
+ default: () => never[];
7
+ };
8
+ fieldConfig: PropType<FieldConfig>;
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ "update:modelValue": (modelValue: any) => any;
11
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ modelValue: {
13
+ type: ArrayConstructor;
14
+ default: () => never[];
15
+ };
16
+ fieldConfig: PropType<FieldConfig>;
17
+ }>> & Readonly<{
18
+ "onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
19
+ }>, {
20
+ modelValue: unknown[];
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { FieldConfig } from '../types';
2
+ import { PropType } from 'vue';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ modelValue: StringConstructor;
5
+ fieldConfig: PropType<FieldConfig>;
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:modelValue": (modelValue: any) => any;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ modelValue: StringConstructor;
10
+ fieldConfig: PropType<FieldConfig>;
11
+ }>> & Readonly<{
12
+ "onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { FiledType } from '../types';
2
+ import { Component } from 'vue';
3
+ export declare const FilesComponents: Record<FiledType, {
4
+ component: Component;
5
+ }>;
@@ -0,0 +1,13 @@
1
+ import { VNode } from 'vue';
2
+ import { FieldConfig, FormDataItem } from './types';
3
+ /**
4
+ * 获取对应的文件组件
5
+ * @param formDataItem
6
+ * @returns
7
+ */
8
+ export declare const getFilesComponent: (formDataItem?: FormDataItem) => VNode;
9
+ export declare const useOptions: (props?: {
10
+ fieldConfig?: FieldConfig;
11
+ }) => {
12
+ options: import('vue').Ref<any[], any[]>;
13
+ };
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../typescript';
2
+ import { default as Form } from './src/index.vue';
3
+ declare const CommonForm: SFCWithInstall<typeof Form>;
4
+ export default CommonForm;