@maxtan/ez-ui 0.15.0 → 0.25.0

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 (47) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +1026 -822
  4. package/dist/types/index.d.ts +1933 -0
  5. package/package.json +4 -3
  6. package/dist/types/components/checkbox/index.d.ts +0 -45
  7. package/dist/types/components/checkbox/src/checkbox.d.ts +0 -12
  8. package/dist/types/components/checkbox/src/checkbox.vue.d.ts +0 -17
  9. package/dist/types/components/dialog/index.d.ts +0 -58
  10. package/dist/types/components/dialog/src/dialog.d.ts +0 -17
  11. package/dist/types/components/dialog/src/dialog.vue.d.ts +0 -33
  12. package/dist/types/components/dynamic-form/index.d.ts +0 -245
  13. package/dist/types/components/dynamic-form/src/dynamic-form.d.ts +0 -128
  14. package/dist/types/components/dynamic-form/src/dynamic-form.vue.d.ts +0 -398
  15. package/dist/types/components/fast-table/index.d.ts +0 -71
  16. package/dist/types/components/fast-table/src/column-config.vue.d.ts +0 -21
  17. package/dist/types/components/fast-table/src/fast-table.d.ts +0 -51
  18. package/dist/types/components/fast-table/src/fast-table.vue.d.ts +0 -48
  19. package/dist/types/components/fast-table/src/use-fast-table.d.ts +0 -13
  20. package/dist/types/components/icon/index.d.ts +0 -30
  21. package/dist/types/components/icon/src/icon.d.ts +0 -4
  22. package/dist/types/components/icon/src/icon.vue.d.ts +0 -23
  23. package/dist/types/components/image-upload/index.d.ts +0 -479
  24. package/dist/types/components/image-upload/src/image-upload.d.ts +0 -36
  25. package/dist/types/components/image-upload/src/image-upload.vue.d.ts +0 -432
  26. package/dist/types/components/index.d.ts +0 -11
  27. package/dist/types/components/pagination/index.d.ts +0 -49
  28. package/dist/types/components/pagination/src/pagination.d.ts +0 -2
  29. package/dist/types/components/pagination/src/pagination.vue.d.ts +0 -16
  30. package/dist/types/components/radio/index.d.ts +0 -45
  31. package/dist/types/components/radio/src/radio.d.ts +0 -10
  32. package/dist/types/components/radio/src/radio.vue.d.ts +0 -16
  33. package/dist/types/components/search-form/index.d.ts +0 -50
  34. package/dist/types/components/search-form/src/search-form.d.ts +0 -4
  35. package/dist/types/components/search-form/src/search-form.vue.d.ts +0 -35
  36. package/dist/types/components/select/index.d.ts +0 -37
  37. package/dist/types/components/select/src/select.d.ts +0 -20
  38. package/dist/types/components/select/src/select.vue.d.ts +0 -13
  39. package/dist/types/components/table/index.d.ts +0 -49
  40. package/dist/types/components/table/src/table.d.ts +0 -27
  41. package/dist/types/components/table/src/table.vue.d.ts +0 -30
  42. package/dist/types/ez-ui/component.d.ts +0 -1600
  43. package/dist/types/ez-ui/defaults.d.ts +0 -4
  44. package/dist/types/ez-ui/index.d.ts +0 -4
  45. package/dist/types/ez-ui/make-installer.d.ts +0 -4
  46. package/dist/types/ez-ui/plugin.d.ts +0 -3
  47. package/dist/types/ez-ui/vite.config.d.ts +0 -2
@@ -1,16 +0,0 @@
1
- import { RadioProps } from './radio';
2
- type __VLS_Props = RadioProps;
3
- type __VLS_PublicProps = {
4
- modelValue?: string | number | boolean;
5
- } & __VLS_Props;
6
- declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- change: (value: string | number | boolean) => any;
8
- "update:modelValue": (value: string | number | boolean) => any;
9
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
- onChange?: (value: string | number | boolean) => any;
11
- "onUpdate:modelValue"?: (value: string | number | boolean) => any;
12
- }>, {
13
- type: import('./radio').RadioType;
14
- options: import('./radio').RadioOption[];
15
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
- export default _default;
@@ -1,50 +0,0 @@
1
- export type * from './src/search-form';
2
- export declare const EzSearchForm: ({
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
- expanded?: Boolean;
5
- } & import('.').SearchFormProps> & Readonly<{
6
- "onUpdate:expanded"?: (value: Boolean) => any;
7
- }>, {
8
- countViewHeight: () => void;
9
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- "update:expanded": (value: Boolean) => any;
11
- }, import('vue').PublicProps, {
12
- collapsedHeight: number;
13
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
14
- wrapRef: HTMLDivElement;
15
- }, any, import('vue').ComponentProvideOptions, {
16
- P: {};
17
- B: {};
18
- D: {};
19
- C: {};
20
- M: {};
21
- Defaults: {};
22
- }, Readonly<{
23
- expanded?: Boolean;
24
- } & import('.').SearchFormProps> & Readonly<{
25
- "onUpdate:expanded"?: (value: Boolean) => any;
26
- }>, {
27
- countViewHeight: () => void;
28
- }, {}, {}, {}, {
29
- collapsedHeight: number;
30
- }>;
31
- __isFragment?: never;
32
- __isTeleport?: never;
33
- __isSuspense?: never;
34
- } & import('vue').ComponentOptionsBase<Readonly<{
35
- expanded?: Boolean;
36
- } & import('.').SearchFormProps> & Readonly<{
37
- "onUpdate:expanded"?: (value: Boolean) => any;
38
- }>, {
39
- countViewHeight: () => void;
40
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
41
- "update:expanded": (value: Boolean) => any;
42
- }, string, {
43
- collapsedHeight: number;
44
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
45
- $slots: {
46
- operate?(_: {}): any;
47
- default?(_: {}): any;
48
- };
49
- }) & import('vue').Plugin) & Record<string, any>;
50
- export default EzSearchForm;
@@ -1,4 +0,0 @@
1
- export interface SearchFormProps {
2
- collapsedHeight?: number;
3
- reset?: boolean;
4
- }
@@ -1,35 +0,0 @@
1
- import { SearchFormProps } from './search-form';
2
- type __VLS_Props = SearchFormProps;
3
- type __VLS_PublicProps = {
4
- 'expanded'?: Boolean;
5
- } & __VLS_Props;
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: {
9
- operate?(_: {}): any;
10
- default?(_: {}): any;
11
- };
12
- refs: {
13
- wrapRef: HTMLDivElement;
14
- };
15
- rootEl: any;
16
- };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
19
- countViewHeight: () => void;
20
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- "update:expanded": (value: Boolean) => any;
22
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
- "onUpdate:expanded"?: (value: Boolean) => any;
24
- }>, {
25
- collapsedHeight: number;
26
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
27
- wrapRef: HTMLDivElement;
28
- }, any>;
29
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
- export default _default;
31
- type __VLS_WithTemplateSlots<T, S> = T & {
32
- new (): {
33
- $slots: S;
34
- };
35
- };
@@ -1,37 +0,0 @@
1
- export type * from './src/select';
2
- export declare const EzSelect: ({
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
- modelValue?: any;
5
- } & import('.').SelectPropsType> & Readonly<{
6
- "onUpdate:modelValue"?: (value: any) => any;
7
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
- "update:modelValue": (value: any) => any;
9
- }, import('vue').PublicProps, {
10
- options: import('.').SelectOption[];
11
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
12
- P: {};
13
- B: {};
14
- D: {};
15
- C: {};
16
- M: {};
17
- Defaults: {};
18
- }, Readonly<{
19
- modelValue?: any;
20
- } & import('.').SelectPropsType> & Readonly<{
21
- "onUpdate:modelValue"?: (value: any) => any;
22
- }>, {}, {}, {}, {}, {
23
- options: import('.').SelectOption[];
24
- }>;
25
- __isFragment?: never;
26
- __isTeleport?: never;
27
- __isSuspense?: never;
28
- } & import('vue').ComponentOptionsBase<Readonly<{
29
- modelValue?: any;
30
- } & import('.').SelectPropsType> & Readonly<{
31
- "onUpdate:modelValue"?: (value: any) => any;
32
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
33
- "update:modelValue": (value: any) => any;
34
- }, string, {
35
- options: import('.').SelectOption[];
36
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin) & Record<string, any>;
37
- export default EzSelect;
@@ -1,20 +0,0 @@
1
- export interface SelectOptionItem {
2
- /** 选项标签 */
3
- label: string | number;
4
- /** 选项值 */
5
- value: string | number | boolean | Record<string, any>;
6
- /** 是否禁用选项 */
7
- disabled?: boolean;
8
- }
9
- export interface GroupOption {
10
- /** 分组标签 */
11
- label: string;
12
- /** 选项集合 */
13
- options: SelectOptionItem[];
14
- /** 是否禁用分组下所有选项 */
15
- disabled?: boolean;
16
- }
17
- export interface SelectPropsType {
18
- options: SelectOption[];
19
- }
20
- export type SelectOption = SelectOptionItem | GroupOption;
@@ -1,13 +0,0 @@
1
- import { SelectPropsType } from './select';
2
- type __VLS_Props = SelectPropsType;
3
- type __VLS_PublicProps = {
4
- modelValue?: any;
5
- } & __VLS_Props;
6
- declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- "update:modelValue": (value: any) => any;
8
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
- "onUpdate:modelValue"?: (value: any) => any;
10
- }>, {
11
- options: import('./select').SelectOption[];
12
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
- export default _default;
@@ -1,49 +0,0 @@
1
- export declare const EzTable: ((<T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
2
- slots: Readonly<NonNullable<import('.').TableSolt<T>>> & {
3
- [x: string]: (props: {
4
- row: T;
5
- column: import('.').TableColumn<T>;
6
- $index: number;
7
- }) => import('vue').VNodeChild;
8
- } & {
9
- append?: () => import('vue').VNodeChild;
10
- empty?: () => import('vue').VNodeChild;
11
- } & {
12
- [x: `header-${string}`]: (props: {
13
- column: import('.').TableColumn<T>;
14
- $index: number;
15
- }) => import('vue').VNodeChild;
16
- };
17
- attrs: any;
18
- emit: {};
19
- }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
20
- props: {
21
- data: T[];
22
- columns: import('.').TableColumn<T>[];
23
- rowKey?: string;
24
- } & import('vue').PublicProps;
25
- expose(exposed: import('vue').ShallowUnwrapRef<{
26
- getTableRef: () => any;
27
- }>): void;
28
- attrs: any;
29
- slots: Readonly<NonNullable<import('.').TableSolt<T>>> & {
30
- [x: string]: (props: {
31
- row: T;
32
- column: import('.').TableColumn<T>;
33
- $index: number;
34
- }) => import('vue').VNodeChild;
35
- } & {
36
- append?: () => import('vue').VNodeChild;
37
- empty?: () => import('vue').VNodeChild;
38
- } & {
39
- [x: `header-${string}`]: (props: {
40
- column: import('.').TableColumn<T>;
41
- $index: number;
42
- }) => import('vue').VNodeChild;
43
- };
44
- emit: {};
45
- }>) => import('vue').VNode & {
46
- __ctx?: Awaited<typeof __VLS_setup>;
47
- }) & import('vue').Plugin) & Record<string, any>;
48
- export type * from './src/table';
49
- export default EzTable;
@@ -1,27 +0,0 @@
1
- import { TableColumnCtx } from 'element-plus';
2
- import { VNodeChild } from 'vue';
3
- export interface TableColumn<T = any> extends Partial<TableColumnCtx<T>> {
4
- hidden?: 0 | 1;
5
- transform?: (item: T) => string;
6
- }
7
- /** 表格插槽类型 */
8
- export type TableSolt<D> = {
9
- [key in string]?: (props: {
10
- row: D;
11
- column: TableColumn<D>;
12
- $index: number;
13
- }) => VNodeChild;
14
- } & {
15
- append?: () => VNodeChild;
16
- empty?: () => VNodeChild;
17
- } & {
18
- [key in `header-${string}`]?: (props: {
19
- column: TableColumn<D>;
20
- $index: number;
21
- }) => VNodeChild;
22
- };
23
- export interface TableProps<T = any> {
24
- data: T[];
25
- columns: TableColumn<T>[];
26
- rowKey?: string;
27
- }
@@ -1,30 +0,0 @@
1
- import { TableColumn, TableProps, TableSolt } from './table';
2
- declare const _default: <T = any>(__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<{
3
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & TableProps<T> & Partial<{}>> & import('vue').PublicProps;
4
- expose(exposed: import('vue').ShallowUnwrapRef<{
5
- getTableRef: () => any;
6
- }>): void;
7
- attrs: any;
8
- slots: Readonly<NonNullable<TableSolt<T>>> & {
9
- [x: string]: (props: {
10
- row: T;
11
- column: TableColumn<T>;
12
- $index: number;
13
- }) => import('vue').VNodeChild;
14
- } & {
15
- append?: () => import('vue').VNodeChild;
16
- empty?: () => import('vue').VNodeChild;
17
- } & {
18
- [x: `header-${string}`]: (props: {
19
- column: TableColumn<T>;
20
- $index: number;
21
- }) => import('vue').VNodeChild;
22
- };
23
- emit: {};
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
- } & {};