@wyfex/ivue 0.8.0 → 0.10.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 (42) hide show
  1. package/dist/index.es.js +11 -6
  2. package/dist/index.umd.cjs +11 -6
  3. package/dist/ivue.css +1 -1
  4. package/dist/types/UseElButton/types.d.ts +1 -1
  5. package/dist/types/UseElConfigProvider/index.vue.d.ts +0 -20
  6. package/dist/types/UseElConfigProvider/props.d.ts +0 -9
  7. package/dist/types/UseElDatePicker/index.vue.d.ts +2 -2
  8. package/dist/types/UseElDatePicker/props.d.ts +1 -1
  9. package/dist/types/UseElDescriptions/hook.d.ts +2 -1
  10. package/dist/types/UseElDescriptions/index.vue.d.ts +1 -1
  11. package/dist/types/UseElDialog/hook.d.ts +15 -0
  12. package/dist/types/UseElDialog/index.vue.d.ts +181 -0
  13. package/dist/types/UseElDialog/props.d.ts +77 -0
  14. package/dist/types/UseElDialog/types.d.ts +3 -0
  15. package/dist/types/UseElDrawer/hook.d.ts +4 -352
  16. package/dist/types/UseElDrawer/index.vue.d.ts +3 -3
  17. package/dist/types/UseElSelect/hook.d.ts +5 -4
  18. package/dist/types/UseElSelect/index.vue.d.ts +2 -2
  19. package/dist/types/UseElSelect/props.d.ts +1 -1
  20. package/dist/types/UseElTable/components/EditableCell.vue.d.ts +4 -0
  21. package/dist/types/UseElTable/components/RecTableColumn.vue.d.ts +86 -0
  22. package/dist/types/UseElTable/components/Selection.vue.d.ts +12 -0
  23. package/dist/types/UseElTable/components/Span.vue.d.ts +4 -0
  24. package/dist/types/UseElTable/defaultExtConfig.d.ts +35 -0
  25. package/dist/types/UseElTable/hooks/useElTable.d.ts +18 -0
  26. package/dist/types/UseElTable/hooks/usePagination.d.ts +9 -0
  27. package/dist/types/UseElTable/hooks/useSelection.d.ts +15 -0
  28. package/dist/types/UseElTable/index.vue.d.ts +122 -0
  29. package/dist/types/UseElTable/props.d.ts +50 -0
  30. package/dist/types/UseElTable/types.d.ts +96 -0
  31. package/dist/types/UseElTable/utils.d.ts +9 -0
  32. package/dist/types/UseRender/index.vue.d.ts +1 -1
  33. package/dist/types/index.d.ts +2 -0
  34. package/package.json +3 -3
  35. package/src/components/UseElButton/types.ts +1 -1
  36. package/src/components/UseElConfigProvider/props.ts +0 -15
  37. package/src/components/UseElDialog/props.ts +142 -0
  38. package/src/components/UseElDialog/types.ts +7 -0
  39. package/src/components/UseElTable/defaultExtConfig.ts +64 -0
  40. package/src/components/UseElTable/props.ts +83 -0
  41. package/src/components/UseElTable/types.ts +144 -0
  42. package/src/types/index.ts +9 -14
@@ -1,6 +1,6 @@
1
1
  declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  modelValue: {
3
- type: (StringConstructor | NumberConstructor | ArrayConstructor)[];
3
+ type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
4
4
  default: string;
5
5
  };
6
6
  useRender: {
@@ -40,7 +40,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
40
40
  "update:modelValue": (value: string | number | any[]) => any;
41
41
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
42
42
  modelValue: {
43
- type: (StringConstructor | NumberConstructor | ArrayConstructor)[];
43
+ type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
44
44
  default: string;
45
45
  };
46
46
  useRender: {
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
2
2
  import { RenderConfig } from '../../../types';
3
3
  declare const _default: {
4
4
  modelValue: {
5
- type: (StringConstructor | NumberConstructor | ArrayConstructor)[];
5
+ type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
6
6
  default: string;
7
7
  };
8
8
  useRender: {
@@ -1,9 +1,10 @@
1
+ import { ComputedRef } from 'vue';
1
2
  import { ConfigColumn, Emits, Props } from './types';
2
3
  import { GlobalConfig, RenderConfig } from '../../../types';
3
4
  export declare const useElDescriptions: ({ props, emits, globalConfig }: {
4
5
  props: Props;
5
6
  emits: Emits;
6
- globalConfig: GlobalConfig;
7
+ globalConfig: ComputedRef<GlobalConfig>;
7
8
  }) => {
8
9
  processRenderContent: (item: ConfigColumn) => any;
9
10
  processRenderStyle: (renderConfig: RenderConfig | boolean, item: ConfigColumn) => any;
@@ -94,8 +94,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
94
94
  }>> & Readonly<{
95
95
  onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
96
96
  }>, {
97
- useRender: boolean | RenderConfig;
98
97
  dictMap: import('../../../types').DictMap;
98
+ useRender: boolean | RenderConfig;
99
99
  dictProps: import('../../../types').DictProps;
100
100
  column: number;
101
101
  border: boolean;
@@ -0,0 +1,15 @@
1
+ import { Ref } from 'vue';
2
+ import { DialogInstance } from 'element-plus';
3
+ import { Props } from './types';
4
+ export declare const useElDialog: ({ props, edRef }: {
5
+ props: Props;
6
+ edRef: Ref<DialogInstance | null>;
7
+ }) => {
8
+ edRef: Ref<DialogInstance | null, DialogInstance | null>;
9
+ handleClose: import('vue').ComputedRef<(() => void) | undefined>;
10
+ isFullScreen: Ref<boolean, boolean>;
11
+ iconComponent: import('vue').ComputedRef<string>;
12
+ handleFullScreen: () => void;
13
+ handleClosed: () => void;
14
+ handleClick: (fn: Function) => void;
15
+ };
@@ -0,0 +1,181 @@
1
+ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ appendToBody: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ maxHeight: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: string;
13
+ };
14
+ noresize: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ closeOnClickModal: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ destroyOnClose: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ showFullScreenIcon: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ showHeaderBottomBorder: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ showFooter: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ showFooterTopBorder: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ footerPosition: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ validator: (val: string) => boolean;
46
+ };
47
+ strictCloseEvent: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ onClose: {
52
+ type: FunctionConstructor;
53
+ default: () => void;
54
+ };
55
+ confirmBtnText: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ cancelBtnText: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ cancelBtnType: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ validator: (val: string) => boolean;
67
+ };
68
+ onConfirm: {
69
+ type: FunctionConstructor;
70
+ default: () => void;
71
+ };
72
+ onCancel: {
73
+ type: FunctionConstructor;
74
+ default: () => void;
75
+ };
76
+ }>, {
77
+ edRef: import('vue').Ref<null, null>;
78
+ handleClose: import('vue').ComputedRef<(() => void) | undefined>;
79
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
80
+ title: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ appendToBody: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ maxHeight: {
89
+ type: (StringConstructor | NumberConstructor)[];
90
+ default: string;
91
+ };
92
+ noresize: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ closeOnClickModal: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ destroyOnClose: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ showFullScreenIcon: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
108
+ showHeaderBottomBorder: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ showFooter: {
113
+ type: BooleanConstructor;
114
+ default: boolean;
115
+ };
116
+ showFooterTopBorder: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ footerPosition: {
121
+ type: StringConstructor;
122
+ default: string;
123
+ validator: (val: string) => boolean;
124
+ };
125
+ strictCloseEvent: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
129
+ onClose: {
130
+ type: FunctionConstructor;
131
+ default: () => void;
132
+ };
133
+ confirmBtnText: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ cancelBtnText: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ cancelBtnType: {
142
+ type: StringConstructor;
143
+ default: string;
144
+ validator: (val: string) => boolean;
145
+ };
146
+ onConfirm: {
147
+ type: FunctionConstructor;
148
+ default: () => void;
149
+ };
150
+ onCancel: {
151
+ type: FunctionConstructor;
152
+ default: () => void;
153
+ };
154
+ }>> & Readonly<{}>, {
155
+ title: string;
156
+ onClose: Function;
157
+ appendToBody: boolean;
158
+ maxHeight: string | number;
159
+ noresize: boolean;
160
+ closeOnClickModal: boolean;
161
+ destroyOnClose: boolean;
162
+ showFullScreenIcon: boolean;
163
+ showHeaderBottomBorder: boolean;
164
+ showFooter: boolean;
165
+ showFooterTopBorder: boolean;
166
+ footerPosition: string;
167
+ strictCloseEvent: boolean;
168
+ confirmBtnText: string;
169
+ cancelBtnText: string;
170
+ cancelBtnType: string;
171
+ onConfirm: Function;
172
+ onCancel: Function;
173
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
174
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
175
+ declare const _default: typeof __VLS_export;
176
+ export default _default;
177
+ type __VLS_WithSlots<T, S> = T & {
178
+ new (): {
179
+ $slots: S;
180
+ };
181
+ };
@@ -0,0 +1,77 @@
1
+ declare const _default: {
2
+ title: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ appendToBody: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ maxHeight: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: string;
13
+ };
14
+ noresize: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ closeOnClickModal: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ destroyOnClose: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ showFullScreenIcon: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ showHeaderBottomBorder: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ showFooter: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ showFooterTopBorder: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ footerPosition: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ validator: (val: string) => boolean;
46
+ };
47
+ strictCloseEvent: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ onClose: {
52
+ type: FunctionConstructor;
53
+ default: () => void;
54
+ };
55
+ confirmBtnText: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ cancelBtnText: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ cancelBtnType: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ validator: (val: string) => boolean;
67
+ };
68
+ onConfirm: {
69
+ type: FunctionConstructor;
70
+ default: () => void;
71
+ };
72
+ onCancel: {
73
+ type: FunctionConstructor;
74
+ default: () => void;
75
+ };
76
+ };
77
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ import { default as componentProps } from './props';
3
+ export type Props = ExtractPropTypes<typeof componentProps>;