es-plus-ui 1.0.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 (32) hide show
  1. package/README.md +942 -0
  2. package/dist/es-plus.js +2160 -0
  3. package/dist/es-plus.js.map +1 -0
  4. package/dist/es-plus.umd.cjs +2 -0
  5. package/dist/es-plus.umd.cjs.map +1 -0
  6. package/dist/index.d.ts +3 -0
  7. package/dist/src/components/es-dialog/index.d.ts +3 -0
  8. package/dist/src/components/es-dialog/src/component.vue.d.ts +60 -0
  9. package/dist/src/components/es-dialog/src/use-dialog.d.ts +15 -0
  10. package/dist/src/components/es-form/__tests__/es-form.spec.d.ts +1 -0
  11. package/dist/src/components/es-form/index.d.ts +3 -0
  12. package/dist/src/components/es-form/src/es-form.vue.d.ts +83 -0
  13. package/dist/src/components/es-table/index.d.ts +3 -0
  14. package/dist/src/components/es-table/src/column-item.vue.d.ts +80 -0
  15. package/dist/src/components/es-table/src/component.vue.d.ts +129 -0
  16. package/dist/src/components/es-table/src/table-btns.vue.d.ts +19 -0
  17. package/dist/src/components/svg-icon/index.d.ts +3 -0
  18. package/dist/src/components/svg-icon/src/svg-icon.vue.d.ts +17 -0
  19. package/dist/src/composables/use-form-inputs.d.ts +10 -0
  20. package/dist/src/composables/use-form-layout.d.ts +50 -0
  21. package/dist/src/composables/use-form-layout.spec.d.ts +1 -0
  22. package/dist/src/composables/use-form-request.d.ts +18 -0
  23. package/dist/src/composables/use-table-resize.d.ts +19 -0
  24. package/dist/src/composables/use-table-selection.d.ts +16 -0
  25. package/dist/src/composables/use-table-selection.spec.d.ts +1 -0
  26. package/dist/src/index.d.ts +13 -0
  27. package/dist/src/style.d.ts +0 -0
  28. package/dist/src/types/index.d.ts +147 -0
  29. package/dist/src/utils/shared.d.ts +17 -0
  30. package/dist/src/utils/shared.spec.d.ts +1 -0
  31. package/dist/style.css +1 -0
  32. package/package.json +70 -0
@@ -0,0 +1,3 @@
1
+ import { default as EsDialog } from './src/component.vue';
2
+
3
+ export default EsDialog;
@@ -0,0 +1,60 @@
1
+ import { BtnConfig } from '../../../types';
2
+
3
+ declare function __VLS_template(): Readonly<Record<string, any>> & Record<string, any>;
4
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ title?: string;
6
+ visible?: boolean;
7
+ appendTo?: object | string;
8
+ hiddenFullBtn?: boolean;
9
+ width?: string | number;
10
+ isDraggable?: boolean;
11
+ confirmText?: string;
12
+ cancelText?: string;
13
+ configBtn?: BtnConfig[];
14
+ maxHeight?: string | number;
15
+ isHiddenFooter?: boolean;
16
+ renderHeader?: Function;
17
+ renderFooter?: Function;
18
+ render?: Function;
19
+ fullscreen?: boolean;
20
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ closed: (val: boolean) => void;
22
+ submit: (payload: any) => void;
23
+ "update:visible": (val: boolean) => void;
24
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
25
+ title?: string;
26
+ visible?: boolean;
27
+ appendTo?: object | string;
28
+ hiddenFullBtn?: boolean;
29
+ width?: string | number;
30
+ isDraggable?: boolean;
31
+ confirmText?: string;
32
+ cancelText?: string;
33
+ configBtn?: BtnConfig[];
34
+ maxHeight?: string | number;
35
+ isHiddenFooter?: boolean;
36
+ renderHeader?: Function;
37
+ renderFooter?: Function;
38
+ render?: Function;
39
+ fullscreen?: boolean;
40
+ }>>> & Readonly<{
41
+ onClosed?: (val: boolean) => any;
42
+ onSubmit?: (payload: any) => any;
43
+ "onUpdate:visible"?: (val: boolean) => any;
44
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
46
+ export default _default;
47
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
48
+ type __VLS_TypePropsToRuntimeProps<T> = {
49
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
50
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
51
+ } : {
52
+ type: import('vue').PropType<T[K]>;
53
+ required: true;
54
+ };
55
+ };
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,15 @@
1
+ import { DialogOptions } from '../../../types';
2
+
3
+ export declare const useDialog: (Component?: any, opt?: {
4
+ onlyInstance?: boolean;
5
+ }) => {
6
+ (dialogOptions: DialogOptions): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
7
+ [key: string]: any;
8
+ }>;
9
+ close: () => void;
10
+ } | {
11
+ (dialogOptions: DialogOptions): any;
12
+ close: () => void;
13
+ destroy: () => void;
14
+ };
15
+ export default useDialog;
@@ -0,0 +1,3 @@
1
+ import { default as EsForm } from './src/es-form.vue';
2
+
3
+ export default EsForm;
@@ -0,0 +1,83 @@
1
+ import { FormItemOption, BtnConfig, LayoutFormProps } from '../../../types';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ model: Record<string, unknown>;
5
+ formItemList: FormItemOption[];
6
+ layoutFormProps?: LayoutFormProps;
7
+ configBtn?: BtnConfig[];
8
+ renderBtn?: Function | boolean;
9
+ btnColSpanRow?: boolean;
10
+ rules?: Record<string, unknown>;
11
+ fieldFieldOutput?: (defaults: Record<string, string>) => Record<string, string>;
12
+ }>, {
13
+ model: () => {};
14
+ formItemList: () => any[];
15
+ layoutFormProps: () => {};
16
+ configBtn: () => any[];
17
+ renderBtn: boolean;
18
+ btnColSpanRow: boolean;
19
+ rules: () => {};
20
+ }>>, {
21
+ formItmeRequestInstance: (propsList: string[]) => Promise<void>;
22
+ getFormRef: () => {
23
+ validate: () => Promise<boolean>;
24
+ resetFields: () => void;
25
+ clearValidate: (props?: string | string[]) => void;
26
+ validateField: (props: string | string[]) => Promise<boolean>;
27
+ scrollToField: (prop: string) => void;
28
+ };
29
+ validate: () => Promise<boolean>;
30
+ resetFields: () => void;
31
+ clearValidate: (props?: string | string[]) => void;
32
+ validateField: (props: string | string[]) => Promise<boolean>;
33
+ scrollToField: (prop: string) => void;
34
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
+ confirm: (formRef: unknown, model: Record<string, unknown>) => void;
36
+ reset: (formRef: unknown, model: Record<string, unknown>) => void;
37
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
38
+ model: Record<string, unknown>;
39
+ formItemList: FormItemOption[];
40
+ layoutFormProps?: LayoutFormProps;
41
+ configBtn?: BtnConfig[];
42
+ renderBtn?: Function | boolean;
43
+ btnColSpanRow?: boolean;
44
+ rules?: Record<string, unknown>;
45
+ fieldFieldOutput?: (defaults: Record<string, string>) => Record<string, string>;
46
+ }>, {
47
+ model: () => {};
48
+ formItemList: () => any[];
49
+ layoutFormProps: () => {};
50
+ configBtn: () => any[];
51
+ renderBtn: boolean;
52
+ btnColSpanRow: boolean;
53
+ rules: () => {};
54
+ }>>> & Readonly<{
55
+ onConfirm?: (formRef: unknown, model: Record<string, unknown>) => any;
56
+ onReset?: (formRef: unknown, model: Record<string, unknown>) => any;
57
+ }>, {
58
+ configBtn: BtnConfig[];
59
+ model: Record<string, unknown>;
60
+ formItemList: FormItemOption[];
61
+ layoutFormProps: LayoutFormProps;
62
+ renderBtn: Function | boolean;
63
+ btnColSpanRow: boolean;
64
+ rules: Record<string, unknown>;
65
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
66
+ export default _default;
67
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
68
+ type __VLS_TypePropsToRuntimeProps<T> = {
69
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
70
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
71
+ } : {
72
+ type: import('vue').PropType<T[K]>;
73
+ required: true;
74
+ };
75
+ };
76
+ type __VLS_WithDefaults<P, D> = {
77
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
78
+ default: D[K];
79
+ }> : P[K];
80
+ };
81
+ type __VLS_Prettify<T> = {
82
+ [K in keyof T]: T[K];
83
+ } & {};
@@ -0,0 +1,3 @@
1
+ import { default as EsTable } from './src/component.vue';
2
+
3
+ export default EsTable;
@@ -0,0 +1,80 @@
1
+ import { TableColumn } from '../../../types';
2
+
3
+ declare function __VLS_template(): Partial<Record<string, (_: {
4
+ row: any;
5
+ column: any;
6
+ scope: any;
7
+ prop?: string;
8
+ key?: string;
9
+ label?: string;
10
+ width?: number | string;
11
+ minWidth?: number | string;
12
+ align?: string;
13
+ fixed?: boolean | string;
14
+ formatter?: (row: Record<string, unknown>) => string;
15
+ render?: (h: import('vue').RenderFunction, ctx: {
16
+ row: Record<string, unknown>;
17
+ value: unknown;
18
+ index: number;
19
+ }) => import('vue').VNode | string;
20
+ scopedSlots?: {
21
+ customRender?: string;
22
+ };
23
+ groups?: TableColumn[];
24
+ ellipsis?: boolean;
25
+ hidCol?: boolean;
26
+ btns?: Array<{
27
+ name: string;
28
+ type?: string;
29
+ clickEvent?: (row: Record<string, unknown>) => void;
30
+ }>;
31
+ }) => any>> & Partial<Record<string, (_: {
32
+ row: any;
33
+ column: any;
34
+ scope: any;
35
+ prop?: string;
36
+ key?: string;
37
+ label?: string;
38
+ width?: number | string;
39
+ minWidth?: number | string;
40
+ align?: string;
41
+ fixed?: boolean | string;
42
+ formatter?: (row: Record<string, unknown>) => string;
43
+ render?: (h: import('vue').RenderFunction, ctx: {
44
+ row: Record<string, unknown>;
45
+ value: unknown;
46
+ index: number;
47
+ }) => import('vue').VNode | string;
48
+ scopedSlots?: {
49
+ customRender?: string;
50
+ };
51
+ groups?: TableColumn[];
52
+ ellipsis?: boolean;
53
+ hidCol?: boolean;
54
+ btns?: Array<{
55
+ name: string;
56
+ type?: string;
57
+ clickEvent?: (row: Record<string, unknown>) => void;
58
+ }>;
59
+ }) => any>>;
60
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
61
+ cols: TableColumn;
62
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
63
+ cols: TableColumn;
64
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
66
+ export default _default;
67
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
68
+ type __VLS_TypePropsToRuntimeProps<T> = {
69
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
70
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
71
+ } : {
72
+ type: import('vue').PropType<T[K]>;
73
+ required: true;
74
+ };
75
+ };
76
+ type __VLS_WithTemplateSlots<T, S> = T & {
77
+ new (): {
78
+ $slots: S;
79
+ };
80
+ };
@@ -0,0 +1,129 @@
1
+ import { TableColumn, PaginationConfig, TableOptions } from '../../../types';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ initTabHeight?: number;
5
+ headBarClass?: string | Record<string, unknown>;
6
+ showHeaderBar?: boolean;
7
+ dataSource: Record<string, unknown>[];
8
+ columns: TableColumn[];
9
+ options?: TableOptions;
10
+ pagination?: PaginationConfig;
11
+ }>, {
12
+ initTabHeight: number;
13
+ showHeaderBar: boolean;
14
+ dataSource: () => any[];
15
+ columns: () => any[];
16
+ options: () => {
17
+ [key: string]: unknown;
18
+ multiSelect?: boolean;
19
+ expand?: boolean;
20
+ snIndex?: boolean;
21
+ loading?: boolean;
22
+ border?: boolean;
23
+ stripe?: boolean;
24
+ size?: "large" | "default" | "small";
25
+ headerCellStyle?: Record<string, unknown>;
26
+ highlightCurrentRow?: boolean;
27
+ cachePageSelection?: boolean;
28
+ heightType?: "auto" | "height";
29
+ tabHeight?: number | string;
30
+ isInitRun?: boolean;
31
+ actionUrl?: string;
32
+ apiParams?: import('../../../types').ApiParams;
33
+ httpRequest?: (params: Record<string, unknown>) => Promise<unknown>;
34
+ listenToCallBack?: Record<string, (params: unknown) => unknown>;
35
+ configTableOut?: Record<string, string>;
36
+ entryQuery?: Record<string, unknown>;
37
+ rowkey?: string;
38
+ };
39
+ pagination: () => {};
40
+ }>>, {
41
+ httpRequestInstance: (model?: Record<string, unknown>) => Promise<unknown>;
42
+ getSelectionRows: () => Record<string, unknown>[];
43
+ clearSelection: () => any;
44
+ clearAllSelection: () => void;
45
+ refresh: () => any;
46
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
+ "update:dataSource": (data: Record<string, unknown>[]) => void;
48
+ "update:pagination": (pagination: PaginationConfig) => void;
49
+ "pagination-current-change": (pagination: PaginationConfig) => void;
50
+ "size-change": (pagination: PaginationConfig, size: number) => void;
51
+ "change-table-sort": (column: Record<string, unknown>) => void;
52
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
53
+ initTabHeight?: number;
54
+ headBarClass?: string | Record<string, unknown>;
55
+ showHeaderBar?: boolean;
56
+ dataSource: Record<string, unknown>[];
57
+ columns: TableColumn[];
58
+ options?: TableOptions;
59
+ pagination?: PaginationConfig;
60
+ }>, {
61
+ initTabHeight: number;
62
+ showHeaderBar: boolean;
63
+ dataSource: () => any[];
64
+ columns: () => any[];
65
+ options: () => {
66
+ [key: string]: unknown;
67
+ multiSelect?: boolean;
68
+ expand?: boolean;
69
+ snIndex?: boolean;
70
+ loading?: boolean;
71
+ border?: boolean;
72
+ stripe?: boolean;
73
+ size?: "large" | "default" | "small";
74
+ headerCellStyle?: Record<string, unknown>;
75
+ highlightCurrentRow?: boolean;
76
+ cachePageSelection?: boolean;
77
+ heightType?: "auto" | "height";
78
+ tabHeight?: number | string;
79
+ isInitRun?: boolean;
80
+ actionUrl?: string;
81
+ apiParams?: import('../../../types').ApiParams;
82
+ httpRequest?: (params: Record<string, unknown>) => Promise<unknown>;
83
+ listenToCallBack?: Record<string, (params: unknown) => unknown>;
84
+ configTableOut?: Record<string, string>;
85
+ entryQuery?: Record<string, unknown>;
86
+ rowkey?: string;
87
+ };
88
+ pagination: () => {};
89
+ }>>> & Readonly<{
90
+ "onUpdate:dataSource"?: (data: Record<string, unknown>[]) => any;
91
+ "onUpdate:pagination"?: (pagination: PaginationConfig) => any;
92
+ "onPagination-current-change"?: (pagination: PaginationConfig) => any;
93
+ "onSize-change"?: (pagination: PaginationConfig, size: number) => any;
94
+ "onChange-table-sort"?: (column: Record<string, unknown>) => any;
95
+ }>, {
96
+ initTabHeight: number;
97
+ showHeaderBar: boolean;
98
+ dataSource: Record<string, unknown>[];
99
+ columns: TableColumn[];
100
+ options: TableOptions;
101
+ pagination: PaginationConfig;
102
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Readonly<{
103
+ default?: () => any;
104
+ }> & {
105
+ default?: () => any;
106
+ }>;
107
+ export default _default;
108
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
109
+ type __VLS_TypePropsToRuntimeProps<T> = {
110
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
111
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
112
+ } : {
113
+ type: import('vue').PropType<T[K]>;
114
+ required: true;
115
+ };
116
+ };
117
+ type __VLS_WithDefaults<P, D> = {
118
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
119
+ default: D[K];
120
+ }> : P[K];
121
+ };
122
+ type __VLS_Prettify<T> = {
123
+ [K in keyof T]: T[K];
124
+ } & {};
125
+ type __VLS_WithTemplateSlots<T, S> = T & {
126
+ new (): {
127
+ $slots: S;
128
+ };
129
+ };
@@ -0,0 +1,19 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ leftText?: string;
3
+ btnConfig?: Array<Record<string, unknown>>;
4
+ instance?: Record<string, unknown>;
5
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ leftText?: string;
7
+ btnConfig?: Array<Record<string, unknown>>;
8
+ instance?: Record<string, unknown>;
9
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
@@ -0,0 +1,3 @@
1
+ import { default as SvgIcon } from './src/svg-icon.vue';
2
+
3
+ export default SvgIcon;
@@ -0,0 +1,17 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ iconClass: string;
3
+ className?: string;
4
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ iconClass: string;
6
+ className?: string;
7
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
@@ -0,0 +1,10 @@
1
+ import { h } from 'vue';
2
+ import { FormItemOption } from '../types';
3
+
4
+ export declare function useFormInputs(): {
5
+ formInputComponents: (item: FormItemOption) => ((hFn: typeof h, model: Record<string, unknown>, { row }: {
6
+ row: FormItemOption;
7
+ }) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
8
+ [key: string]: any;
9
+ }>) | (() => any);
10
+ };
@@ -0,0 +1,50 @@
1
+ import { FormItemOption, LayoutFormProps } from '../types';
2
+
3
+ export declare function useFormLayout(props: {
4
+ layoutFormProps?: LayoutFormProps;
5
+ formItemList: FormItemOption[];
6
+ }): {
7
+ folded: import('vue').Ref<boolean, boolean>;
8
+ isBtnHidden: import('vue').ComputedRef<boolean>;
9
+ rowLayout: import('vue').ComputedRef<Record<string, unknown>>;
10
+ formLayout: import('vue').ComputedRef<{
11
+ isBtnHidden?: boolean;
12
+ minFoldRows?: number;
13
+ btnColSpan?: number;
14
+ labelBtnWidth?: string | number;
15
+ }>;
16
+ getSetOptionsStatus: import('vue').ComputedRef<boolean>;
17
+ getRowColsAlgorithm: import('vue').ComputedRef<{
18
+ columnRow: number[][];
19
+ rowNum: number;
20
+ columnNodeIndex: number[];
21
+ }>;
22
+ isFold: import('vue').ComputedRef<boolean>;
23
+ getBtnColSpan: import('vue').ComputedRef<number>;
24
+ formItem: import('vue').ComputedRef<{
25
+ isFold: boolean;
26
+ prop: string;
27
+ label: string;
28
+ formtype?: "Input" | "Select" | "datePicker" | "timePicker" | "Slider" | "ColorPicker" | "Transfer" | "Cascader" | "Radio" | "Checkbox" | "Switch" | "Rate" | "Upload";
29
+ span?: number;
30
+ attrs?: Record<string, unknown>;
31
+ on?: Record<string, unknown>;
32
+ dataOptions?: Array<{
33
+ label: string;
34
+ value: unknown;
35
+ }>;
36
+ isHidden?: (model: Record<string, unknown>, item: FormItemOption, formProps: import('element-plus').FormProps) => boolean;
37
+ render?: (h: import('vue').RenderFunction, model: Record<string, unknown>, ctx: {
38
+ row: FormItemOption;
39
+ index: number;
40
+ }) => import('vue').VNode | string;
41
+ apiParams?: import('../types').ApiParams;
42
+ isInitRun?: boolean;
43
+ callOptionListFormat?: (data: unknown[]) => unknown[];
44
+ httpRequest?: (params: Record<string, unknown>) => Promise<unknown>;
45
+ listenToCallBack?: Record<string, (params: unknown) => unknown>;
46
+ components?: Record<string, unknown>;
47
+ width?: number | string;
48
+ }[]>;
49
+ changeFolded: () => void;
50
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ import { FormItemOption, ApiParams } from '../types';
2
+
3
+ export interface RequestConfig {
4
+ httpRequest?: (params: Record<string, unknown>) => Promise<unknown>;
5
+ apiParams?: ApiParams;
6
+ success?: (res: Record<string, unknown>) => void;
7
+ fail?: (err: unknown) => void;
8
+ [key: string]: unknown;
9
+ }
10
+ export declare function useFormRequest(httpRequestGlobal?: (params: Record<string, unknown>) => Promise<unknown>): {
11
+ queryTableListMethod: (params: Record<string, unknown>, options?: RequestConfig, option?: FormItemOption) => void;
12
+ getEveryFormQueryField: (rowsList: FormItemOption[]) => Promise<{
13
+ prop: string;
14
+ listData: unknown[];
15
+ }[]>;
16
+ formatConfigOut: (row: Record<string, unknown>, keyList: string[], options?: Record<string, unknown>, fieldFieldOutput?: (defaults: Record<string, string>) => Record<string, string>) => Record<string, unknown>;
17
+ configFormField: (options?: Record<string, unknown>, fieldFieldOutput?: (defaults: Record<string, string>) => Record<string, string>) => Record<string, string>;
18
+ };
@@ -0,0 +1,19 @@
1
+ export declare function useTableResize(tableContainerRef: {
2
+ value: HTMLElement | null;
3
+ }, headBarRef: {
4
+ value: HTMLElement | null;
5
+ }, tbBtnRef: {
6
+ value: {
7
+ $el?: HTMLElement;
8
+ } | null;
9
+ }, paginationRef: {
10
+ value: HTMLElement | null;
11
+ }, options: {
12
+ heightType?: 'auto' | 'height';
13
+ tabHeight?: number | string;
14
+ }): {
15
+ tableHeight: import('vue').Ref<number, number>;
16
+ resizeObservers: () => void;
17
+ startObserver: () => void;
18
+ stopObserver: () => void;
19
+ };
@@ -0,0 +1,16 @@
1
+ export declare function useTableSelection(rowkey?: string): {
2
+ multipleSelection: import('vue').Ref<Record<string, unknown>[], Record<string, unknown>[]>;
3
+ selectionsByPage: import('vue').Ref<Record<number, Record<string, unknown>[]>, Record<number, Record<string, unknown>[]>>;
4
+ isInitChange: import('vue').Ref<boolean, boolean>;
5
+ handleSelectionChange: (val: Record<string, unknown>[], currentPage: number) => void;
6
+ handleSelectData: (dataList: Record<string, unknown>[], tableRef: {
7
+ toggleRowSelection?: (row: Record<string, unknown>, selected: boolean) => void;
8
+ }) => void;
9
+ clearAllSelection: (tableRef: {
10
+ clearSelection?: () => void;
11
+ }) => void;
12
+ initSelection: (dataList: Record<string, unknown>[], tableRef: {
13
+ toggleRowSelection?: (row: Record<string, unknown>, selected: boolean) => void;
14
+ clearSelection?: () => void;
15
+ } | null) => void;
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import { default as EsDialog } from './components/es-dialog';
2
+ import { default as useDialog } from './components/es-dialog/src/use-dialog';
3
+ import { default as EsForm } from './components/es-form';
4
+ import { default as EsTable } from './components/es-table';
5
+ import { default as SvgIcon } from './components/svg-icon';
6
+
7
+ declare const install: (app: any, options?: Record<string, unknown>) => void;
8
+ export { EsDialog, EsForm, EsTable, SvgIcon, useDialog, install };
9
+ declare const _default: {
10
+ version: string;
11
+ install: (app: any, options?: Record<string, unknown>) => void;
12
+ };
13
+ export default _default;
File without changes