@a2simcode/ui 0.0.3 → 0.0.4
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.
- package/LICENSE +53 -53
- package/README.md +130 -129
- package/dist/components/autocomplete/index.d.ts +118 -0
- package/dist/components/autocomplete/src/autocomplete.vue.d.ts +109 -0
- package/dist/components/barcode/index.d.ts +114 -0
- package/dist/components/barcode/src/barcode.vue.d.ts +101 -0
- package/dist/components/button/index.d.ts +278 -0
- package/dist/components/button/src/button.vue.d.ts +268 -0
- package/dist/components/buttons/index.d.ts +81 -0
- package/dist/components/buttons/src/index.vue.d.ts +76 -0
- package/dist/components/buttons/src/interface.d.ts +128 -0
- package/dist/components/buttons/src/useButtons.d.ts +4 -0
- package/dist/components/cascader-select/index.d.ts +142 -0
- package/dist/components/cascader-select/src/cascader-select.vue.d.ts +128 -0
- package/dist/components/checkbox/index.d.ts +73 -0
- package/dist/components/checkbox/src/checkbox.vue.d.ts +55 -0
- package/dist/components/code-mirror/index.d.ts +74 -0
- package/dist/components/code-mirror/src/code-mirror.vue.d.ts +45 -0
- package/dist/components/comp/index.d.ts +157 -0
- package/dist/components/comp/src/comp.vue.d.ts +164 -0
- package/dist/components/dialog/index.d.ts +416 -0
- package/dist/components/dialog/src/index.vue.d.ts +404 -0
- package/dist/components/dialog-full/index.d.ts +311 -0
- package/dist/components/dialog-full/src/index.vue.d.ts +287 -0
- package/dist/components/drawer/index.d.ts +335 -0
- package/dist/components/drawer/src/drawer.vue.d.ts +337 -0
- package/dist/components/dynamic-layer/index.d.ts +25 -0
- package/dist/components/dynamic-layer/src/dynamic-layer.vue.d.ts +8 -0
- package/dist/components/dynamic-layer/src/interface.d.ts +66 -0
- package/dist/components/echarts/index.d.ts +177 -0
- package/dist/components/echarts/src/echarts.vue.d.ts +118 -0
- package/dist/components/form/index.d.ts +194 -0
- package/dist/components/form/src/form.vue.d.ts +106 -0
- package/dist/components/form/src/interface.d.ts +138 -0
- package/dist/components/form/src/useForm/index.d.ts +9 -0
- package/dist/components/form/src/useForm/interface.d.ts +170 -0
- package/dist/components/form/src/useForm/validateUtil.d.ts +5 -0
- package/dist/components/form-item/index.d.ts +112 -0
- package/dist/components/form-item/src/form-item.vue.d.ts +97 -0
- package/dist/components/icon/index.d.ts +31 -0
- package/dist/components/icon/src/icon.vue.d.ts +33 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/input/index.d.ts +111 -0
- package/dist/components/input/src/input.vue.d.ts +110 -0
- package/dist/components/input-tag/index.d.ts +75 -0
- package/dist/components/input-tag/src/input-tag.vue.d.ts +40 -0
- package/dist/components/layer/index.d.ts +284 -0
- package/dist/components/layer/src/layer.vue.d.ts +263 -0
- package/dist/components/layout/__tests__/layout.test.d.ts +1 -0
- package/dist/components/layout/index.d.ts +173 -0
- package/dist/components/layout/src/layout.vue.d.ts +187 -0
- package/dist/components/number/index.d.ts +85 -0
- package/dist/components/number/src/number.vue.d.ts +78 -0
- package/dist/components/page/index.d.ts +67 -0
- package/dist/components/page/src/interface.d.ts +22 -0
- package/dist/components/page/src/page.vue.d.ts +52 -0
- package/dist/components/radio/index.d.ts +152 -0
- package/dist/components/radio/src/radio.vue.d.ts +123 -0
- package/dist/components/rate/index.d.ts +71 -0
- package/dist/components/rate/src/rate.vue.d.ts +42 -0
- package/dist/components/select/index.d.ts +88 -0
- package/dist/components/select/src/select.vue.d.ts +75 -0
- package/dist/components/slider/index.d.ts +89 -0
- package/dist/components/slider/src/slider.vue.d.ts +76 -0
- package/dist/components/table/index.d.ts +160 -0
- package/dist/components/table/src/table.vue.d.ts +143 -0
- package/dist/components/upload/index.d.ts +405 -0
- package/dist/components/upload/src/list.vue.d.ts +103 -0
- package/dist/components/upload/src/upload.vue.d.ts +367 -0
- package/dist/components/upload/src/utils.d.ts +2 -0
- package/dist/{utils → components/utils}/index.d.ts +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/utils/cipher.d.ts +21 -0
- package/dist/core/utils/common.d.ts +41 -0
- package/dist/core/utils/comp.d.ts +9 -0
- package/dist/core/utils/date.d.ts +3 -0
- package/dist/core/utils/dom.d.ts +4 -0
- package/dist/core/utils/index.d.ts +6 -0
- package/dist/core/utils/is.d.ts +2 -0
- package/dist/index.d.ts +6 -8
- package/dist/simcode-ui.es.js +5027 -87
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +4949 -0
- package/dist/ui.css +1 -0
- package/package.json +49 -35
- package/dist/button/index.d.ts +0 -192
- package/dist/button/src/button.vue.d.ts +0 -76
- package/dist/input/index.d.ts +0 -167
- package/dist/input/src/input.vue.d.ts +0 -64
- package/dist/style.css +0 -1
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { buttonItem } from '../../buttons/src/interface';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
/**
|
|
14
|
+
* @zh 是否显示抽屉
|
|
15
|
+
* @defaultValue false
|
|
16
|
+
*/
|
|
17
|
+
visible: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @zh 标题
|
|
23
|
+
* @defaultValue ''
|
|
24
|
+
*/
|
|
25
|
+
title: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @zh 抽屉打开的方向
|
|
31
|
+
* @defaultValue 'rtl'
|
|
32
|
+
*/
|
|
33
|
+
direction: {
|
|
34
|
+
type: PropType<"ltr" | "rtl" | "ttb" | "btt">;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @zh 抽屉高度(上下打开)
|
|
39
|
+
* @defaultValue 400
|
|
40
|
+
*/
|
|
41
|
+
height: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @zh 抽屉宽度(左右打开)
|
|
47
|
+
* @defaultValue 600
|
|
48
|
+
*/
|
|
49
|
+
width: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @zh 是否需要遮罩层
|
|
55
|
+
* @defaultValue true
|
|
56
|
+
*/
|
|
57
|
+
mask: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* @zh 关闭时销毁抽屉内的元素
|
|
63
|
+
* @defaultValue true
|
|
64
|
+
*/
|
|
65
|
+
destroyOnClose: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @zh 关闭前的回调
|
|
71
|
+
*/
|
|
72
|
+
beforeClose: {
|
|
73
|
+
type: FunctionConstructor;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @zh 是否为步骤抽屉
|
|
78
|
+
* @defaultValue false
|
|
79
|
+
*/
|
|
80
|
+
isStep: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* @zh 当前步骤
|
|
86
|
+
* @defaultValue 0
|
|
87
|
+
*/
|
|
88
|
+
stepActive: {
|
|
89
|
+
type: NumberConstructor;
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* @zh 步骤列表
|
|
94
|
+
* @defaultValue []
|
|
95
|
+
*/
|
|
96
|
+
steps: {
|
|
97
|
+
type: ArrayConstructor;
|
|
98
|
+
default: () => never[];
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* @zh 步骤校验函数
|
|
102
|
+
*/
|
|
103
|
+
validateSteps: {
|
|
104
|
+
type: FunctionConstructor;
|
|
105
|
+
default: undefined;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* @zh 是否显示底部按钮
|
|
109
|
+
* @defaultValue true
|
|
110
|
+
*/
|
|
111
|
+
hasBtns: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* @zh 是否需要保存按钮
|
|
117
|
+
* @defaultValue true
|
|
118
|
+
*/
|
|
119
|
+
hasSaveBtn: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* @zh 是否显示关闭按钮
|
|
125
|
+
* @defaultValue true
|
|
126
|
+
*/
|
|
127
|
+
showCloseBtn: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @zh 确定按钮文字
|
|
133
|
+
* @defaultValue '保存'
|
|
134
|
+
*/
|
|
135
|
+
btnText: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* @zh 扩展按钮
|
|
141
|
+
* @defaultValue []
|
|
142
|
+
*/
|
|
143
|
+
buttons: {
|
|
144
|
+
type: PropType<buttonItem[]>;
|
|
145
|
+
default: () => never[];
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* @zh 子标题
|
|
149
|
+
*/
|
|
150
|
+
subtitle: {
|
|
151
|
+
type: FunctionConstructor;
|
|
152
|
+
default: undefined;
|
|
153
|
+
};
|
|
154
|
+
}>, {
|
|
155
|
+
showLoading: (text?: string) => void;
|
|
156
|
+
hideLoading: () => void;
|
|
157
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
158
|
+
ok: (...args: any[]) => void;
|
|
159
|
+
"update:visible": (...args: any[]) => void;
|
|
160
|
+
"update:stepActive": (...args: any[]) => void;
|
|
161
|
+
cancel: (...args: any[]) => void;
|
|
162
|
+
closed: (...args: any[]) => void;
|
|
163
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
164
|
+
/**
|
|
165
|
+
* @zh 是否显示抽屉
|
|
166
|
+
* @defaultValue false
|
|
167
|
+
*/
|
|
168
|
+
visible: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* @zh 标题
|
|
174
|
+
* @defaultValue ''
|
|
175
|
+
*/
|
|
176
|
+
title: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* @zh 抽屉打开的方向
|
|
182
|
+
* @defaultValue 'rtl'
|
|
183
|
+
*/
|
|
184
|
+
direction: {
|
|
185
|
+
type: PropType<"ltr" | "rtl" | "ttb" | "btt">;
|
|
186
|
+
default: string;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* @zh 抽屉高度(上下打开)
|
|
190
|
+
* @defaultValue 400
|
|
191
|
+
*/
|
|
192
|
+
height: {
|
|
193
|
+
type: NumberConstructor;
|
|
194
|
+
default: number;
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* @zh 抽屉宽度(左右打开)
|
|
198
|
+
* @defaultValue 600
|
|
199
|
+
*/
|
|
200
|
+
width: {
|
|
201
|
+
type: NumberConstructor;
|
|
202
|
+
default: number;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* @zh 是否需要遮罩层
|
|
206
|
+
* @defaultValue true
|
|
207
|
+
*/
|
|
208
|
+
mask: {
|
|
209
|
+
type: BooleanConstructor;
|
|
210
|
+
default: boolean;
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* @zh 关闭时销毁抽屉内的元素
|
|
214
|
+
* @defaultValue true
|
|
215
|
+
*/
|
|
216
|
+
destroyOnClose: {
|
|
217
|
+
type: BooleanConstructor;
|
|
218
|
+
default: boolean;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* @zh 关闭前的回调
|
|
222
|
+
*/
|
|
223
|
+
beforeClose: {
|
|
224
|
+
type: FunctionConstructor;
|
|
225
|
+
default: undefined;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* @zh 是否为步骤抽屉
|
|
229
|
+
* @defaultValue false
|
|
230
|
+
*/
|
|
231
|
+
isStep: {
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* @zh 当前步骤
|
|
237
|
+
* @defaultValue 0
|
|
238
|
+
*/
|
|
239
|
+
stepActive: {
|
|
240
|
+
type: NumberConstructor;
|
|
241
|
+
default: number;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* @zh 步骤列表
|
|
245
|
+
* @defaultValue []
|
|
246
|
+
*/
|
|
247
|
+
steps: {
|
|
248
|
+
type: ArrayConstructor;
|
|
249
|
+
default: () => never[];
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* @zh 步骤校验函数
|
|
253
|
+
*/
|
|
254
|
+
validateSteps: {
|
|
255
|
+
type: FunctionConstructor;
|
|
256
|
+
default: undefined;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* @zh 是否显示底部按钮
|
|
260
|
+
* @defaultValue true
|
|
261
|
+
*/
|
|
262
|
+
hasBtns: {
|
|
263
|
+
type: BooleanConstructor;
|
|
264
|
+
default: boolean;
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* @zh 是否需要保存按钮
|
|
268
|
+
* @defaultValue true
|
|
269
|
+
*/
|
|
270
|
+
hasSaveBtn: {
|
|
271
|
+
type: BooleanConstructor;
|
|
272
|
+
default: boolean;
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* @zh 是否显示关闭按钮
|
|
276
|
+
* @defaultValue true
|
|
277
|
+
*/
|
|
278
|
+
showCloseBtn: {
|
|
279
|
+
type: BooleanConstructor;
|
|
280
|
+
default: boolean;
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* @zh 确定按钮文字
|
|
284
|
+
* @defaultValue '保存'
|
|
285
|
+
*/
|
|
286
|
+
btnText: {
|
|
287
|
+
type: StringConstructor;
|
|
288
|
+
default: string;
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* @zh 扩展按钮
|
|
292
|
+
* @defaultValue []
|
|
293
|
+
*/
|
|
294
|
+
buttons: {
|
|
295
|
+
type: PropType<buttonItem[]>;
|
|
296
|
+
default: () => never[];
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* @zh 子标题
|
|
300
|
+
*/
|
|
301
|
+
subtitle: {
|
|
302
|
+
type: FunctionConstructor;
|
|
303
|
+
default: undefined;
|
|
304
|
+
};
|
|
305
|
+
}>> & Readonly<{
|
|
306
|
+
onOk?: ((...args: any[]) => any) | undefined;
|
|
307
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
308
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
309
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
310
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
311
|
+
}>, {
|
|
312
|
+
title: string;
|
|
313
|
+
mask: boolean;
|
|
314
|
+
height: number;
|
|
315
|
+
width: number;
|
|
316
|
+
buttons: buttonItem[];
|
|
317
|
+
direction: "ltr" | "rtl" | "ttb" | "btt";
|
|
318
|
+
visible: boolean;
|
|
319
|
+
subtitle: Function;
|
|
320
|
+
destroyOnClose: boolean;
|
|
321
|
+
hasBtns: boolean;
|
|
322
|
+
hasSaveBtn: boolean;
|
|
323
|
+
btnText: string;
|
|
324
|
+
showCloseBtn: boolean;
|
|
325
|
+
isStep: boolean;
|
|
326
|
+
stepActive: number;
|
|
327
|
+
steps: unknown[];
|
|
328
|
+
validateSteps: Function;
|
|
329
|
+
beforeClose: Function;
|
|
330
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
331
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
332
|
+
export default _default;
|
|
333
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
334
|
+
new (): {
|
|
335
|
+
$slots: S;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const JDynamicLayer: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
3
|
+
open: (data: import('./src/interface').FormLayerParamType) => void;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
5
|
+
layerRef: unknown;
|
|
6
|
+
componentRef: unknown;
|
|
7
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
8
|
+
P: {};
|
|
9
|
+
B: {};
|
|
10
|
+
D: {};
|
|
11
|
+
C: {};
|
|
12
|
+
M: {};
|
|
13
|
+
Defaults: {};
|
|
14
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
15
|
+
open: (data: import('./src/interface').FormLayerParamType) => void;
|
|
16
|
+
}, {}, {}, {}, {}>;
|
|
17
|
+
__isFragment?: never;
|
|
18
|
+
__isTeleport?: never;
|
|
19
|
+
__isSuspense?: never;
|
|
20
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
|
|
21
|
+
open: (data: import('./src/interface').FormLayerParamType) => void;
|
|
22
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
23
|
+
install: (app: import('vue').App) => void;
|
|
24
|
+
};
|
|
25
|
+
export default JDynamicLayer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormLayerParamType } from './interface';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
3
|
+
open: (data: FormLayerParamType) => void;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
5
|
+
layerRef: unknown;
|
|
6
|
+
componentRef: unknown;
|
|
7
|
+
}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export interface FormLayerParamType {
|
|
2
|
+
/**
|
|
3
|
+
* 表单标题
|
|
4
|
+
*/
|
|
5
|
+
title: string;
|
|
6
|
+
/**
|
|
7
|
+
* 表单副标题
|
|
8
|
+
*/
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @zh 表单名称
|
|
12
|
+
*/
|
|
13
|
+
name: string | any;
|
|
14
|
+
/**
|
|
15
|
+
* @zh 类型,弹窗 modal ,全屏弹窗 full ,抽屉 drawer
|
|
16
|
+
*/
|
|
17
|
+
type?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @zh 宽度
|
|
20
|
+
*/
|
|
21
|
+
width?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @zh 高度
|
|
24
|
+
*/
|
|
25
|
+
height?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @zh 是否有按钮
|
|
28
|
+
*/
|
|
29
|
+
hasBtns?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @zh 是否有保存按钮
|
|
32
|
+
*/
|
|
33
|
+
hasSaveBtn?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* @zh 弹窗按钮文字
|
|
36
|
+
*/
|
|
37
|
+
btnText?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @zh 关闭时是否销毁抽屉内的元素
|
|
40
|
+
*/
|
|
41
|
+
destroyOnClose?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @zh 是否有头部
|
|
44
|
+
*/
|
|
45
|
+
hasHeader?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @zh 参数
|
|
48
|
+
*/
|
|
49
|
+
param?: Record<string, any>;
|
|
50
|
+
/**
|
|
51
|
+
* 组件配置
|
|
52
|
+
*/
|
|
53
|
+
config?: Record<string, any>;
|
|
54
|
+
/**
|
|
55
|
+
* @zh 保存成功后调用方法
|
|
56
|
+
*/
|
|
57
|
+
afterOk?: (data: any) => void;
|
|
58
|
+
/**
|
|
59
|
+
* @zh 关闭后方法
|
|
60
|
+
*/
|
|
61
|
+
afterClose?: () => void;
|
|
62
|
+
/**
|
|
63
|
+
* @zh 取消后方法
|
|
64
|
+
*/
|
|
65
|
+
afterCancel?: () => void;
|
|
66
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
declare const JEcharts: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
option: {
|
|
4
|
+
type: import('vue').PropType<import('echarts').EChartsOption>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
theme: {
|
|
8
|
+
type: import('vue').PropType<string | object>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
initOptions: {
|
|
12
|
+
type: import('vue').PropType<{
|
|
13
|
+
renderer?: "canvas" | "svg";
|
|
14
|
+
devicePixelRatio?: number;
|
|
15
|
+
useDirtyRect?: boolean;
|
|
16
|
+
width?: number;
|
|
17
|
+
height?: number;
|
|
18
|
+
locale?: string;
|
|
19
|
+
}>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
notMerge: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
updateDelay: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{
|
|
31
|
+
onClick?: ((params: any) => any) | undefined;
|
|
32
|
+
onReady?: ((instance: import('echarts').ECharts) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
getInstance: () => import('echarts').ECharts | undefined;
|
|
35
|
+
resize: (opts?: {
|
|
36
|
+
width?: number;
|
|
37
|
+
height?: number;
|
|
38
|
+
silent?: boolean;
|
|
39
|
+
}) => void;
|
|
40
|
+
clear: () => void;
|
|
41
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
click: (params: any) => any;
|
|
43
|
+
ready: (instance: import('echarts').ECharts) => any;
|
|
44
|
+
}, import('vue').PublicProps, {
|
|
45
|
+
theme: string | object;
|
|
46
|
+
initOptions: {
|
|
47
|
+
renderer?: "canvas" | "svg";
|
|
48
|
+
devicePixelRatio?: number;
|
|
49
|
+
useDirtyRect?: boolean;
|
|
50
|
+
width?: number;
|
|
51
|
+
height?: number;
|
|
52
|
+
locale?: string;
|
|
53
|
+
};
|
|
54
|
+
notMerge: boolean;
|
|
55
|
+
updateDelay: number;
|
|
56
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
57
|
+
chartRef: HTMLDivElement;
|
|
58
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
59
|
+
P: {};
|
|
60
|
+
B: {};
|
|
61
|
+
D: {};
|
|
62
|
+
C: {};
|
|
63
|
+
M: {};
|
|
64
|
+
Defaults: {};
|
|
65
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
66
|
+
option: {
|
|
67
|
+
type: import('vue').PropType<import('echarts').EChartsOption>;
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
theme: {
|
|
71
|
+
type: import('vue').PropType<string | object>;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
initOptions: {
|
|
75
|
+
type: import('vue').PropType<{
|
|
76
|
+
renderer?: "canvas" | "svg";
|
|
77
|
+
devicePixelRatio?: number;
|
|
78
|
+
useDirtyRect?: boolean;
|
|
79
|
+
width?: number;
|
|
80
|
+
height?: number;
|
|
81
|
+
locale?: string;
|
|
82
|
+
}>;
|
|
83
|
+
default: () => {};
|
|
84
|
+
};
|
|
85
|
+
notMerge: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
updateDelay: {
|
|
90
|
+
type: NumberConstructor;
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
93
|
+
}>> & Readonly<{
|
|
94
|
+
onClick?: ((params: any) => any) | undefined;
|
|
95
|
+
onReady?: ((instance: import('echarts').ECharts) => any) | undefined;
|
|
96
|
+
}>, {
|
|
97
|
+
getInstance: () => import('echarts').ECharts | undefined;
|
|
98
|
+
resize: (opts?: {
|
|
99
|
+
width?: number;
|
|
100
|
+
height?: number;
|
|
101
|
+
silent?: boolean;
|
|
102
|
+
}) => void;
|
|
103
|
+
clear: () => void;
|
|
104
|
+
}, {}, {}, {}, {
|
|
105
|
+
theme: string | object;
|
|
106
|
+
initOptions: {
|
|
107
|
+
renderer?: "canvas" | "svg";
|
|
108
|
+
devicePixelRatio?: number;
|
|
109
|
+
useDirtyRect?: boolean;
|
|
110
|
+
width?: number;
|
|
111
|
+
height?: number;
|
|
112
|
+
locale?: string;
|
|
113
|
+
};
|
|
114
|
+
notMerge: boolean;
|
|
115
|
+
updateDelay: number;
|
|
116
|
+
}>;
|
|
117
|
+
__isFragment?: never;
|
|
118
|
+
__isTeleport?: never;
|
|
119
|
+
__isSuspense?: never;
|
|
120
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
121
|
+
option: {
|
|
122
|
+
type: import('vue').PropType<import('echarts').EChartsOption>;
|
|
123
|
+
required: true;
|
|
124
|
+
};
|
|
125
|
+
theme: {
|
|
126
|
+
type: import('vue').PropType<string | object>;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
initOptions: {
|
|
130
|
+
type: import('vue').PropType<{
|
|
131
|
+
renderer?: "canvas" | "svg";
|
|
132
|
+
devicePixelRatio?: number;
|
|
133
|
+
useDirtyRect?: boolean;
|
|
134
|
+
width?: number;
|
|
135
|
+
height?: number;
|
|
136
|
+
locale?: string;
|
|
137
|
+
}>;
|
|
138
|
+
default: () => {};
|
|
139
|
+
};
|
|
140
|
+
notMerge: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
updateDelay: {
|
|
145
|
+
type: NumberConstructor;
|
|
146
|
+
default: number;
|
|
147
|
+
};
|
|
148
|
+
}>> & Readonly<{
|
|
149
|
+
onClick?: ((params: any) => any) | undefined;
|
|
150
|
+
onReady?: ((instance: import('echarts').ECharts) => any) | undefined;
|
|
151
|
+
}>, {
|
|
152
|
+
getInstance: () => import('echarts').ECharts | undefined;
|
|
153
|
+
resize: (opts?: {
|
|
154
|
+
width?: number;
|
|
155
|
+
height?: number;
|
|
156
|
+
silent?: boolean;
|
|
157
|
+
}) => void;
|
|
158
|
+
clear: () => void;
|
|
159
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
160
|
+
click: (params: any) => any;
|
|
161
|
+
ready: (instance: import('echarts').ECharts) => any;
|
|
162
|
+
}, string, {
|
|
163
|
+
theme: string | object;
|
|
164
|
+
initOptions: {
|
|
165
|
+
renderer?: "canvas" | "svg";
|
|
166
|
+
devicePixelRatio?: number;
|
|
167
|
+
useDirtyRect?: boolean;
|
|
168
|
+
width?: number;
|
|
169
|
+
height?: number;
|
|
170
|
+
locale?: string;
|
|
171
|
+
};
|
|
172
|
+
notMerge: boolean;
|
|
173
|
+
updateDelay: number;
|
|
174
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
175
|
+
install: (app: import('vue').App) => void;
|
|
176
|
+
};
|
|
177
|
+
export default JEcharts;
|