twcpt 0.0.3 → 0.0.5

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 (71) hide show
  1. package/dist/charts.cjs.js +1 -1
  2. package/dist/charts.d.ts +0 -7
  3. package/dist/charts.es.js +1 -9
  4. package/dist/components/j-tw-btn/index.d.ts +10 -10
  5. package/dist/components/j-tw-checkbox/index.d.ts +230 -0
  6. package/dist/components/j-tw-checkbox/types.d.ts +35 -0
  7. package/dist/components/j-tw-checkbox-group/index.d.ts +309 -0
  8. package/dist/components/j-tw-checkbox-group/types.d.ts +38 -0
  9. package/dist/components/j-tw-confirm-dialog/index.d.ts +704 -0
  10. package/dist/components/j-tw-confirm-dialog/jwConfirmDialog.d.ts +2 -0
  11. package/dist/components/j-tw-confirm-dialog/types.d.ts +79 -0
  12. package/dist/components/j-tw-date-picker/index.d.ts +64 -9
  13. package/dist/components/j-tw-date-picker/types.d.ts +15 -0
  14. package/dist/components/j-tw-dialog/index.d.ts +793 -0
  15. package/dist/components/j-tw-dialog/jwDialog.d.ts +38 -0
  16. package/dist/components/j-tw-dialog/types.d.ts +122 -0
  17. package/dist/components/j-tw-form/index.d.ts +368 -0
  18. package/dist/components/j-tw-form/types.d.ts +18 -0
  19. package/dist/components/j-tw-form-item/index.d.ts +248 -0
  20. package/dist/components/j-tw-form-item/types.d.ts +21 -0
  21. package/dist/components/j-tw-form-label/index.d.ts +66 -0
  22. package/dist/components/j-tw-input/index.d.ts +549 -0
  23. package/dist/components/j-tw-input/types.d.ts +77 -0
  24. package/dist/components/j-tw-messages/MessageItem.d.ts +84 -0
  25. package/dist/components/j-tw-messages/index.d.ts +110 -0
  26. package/dist/components/j-tw-messages/jwMessages.d.ts +2 -0
  27. package/dist/components/j-tw-messages/state.d.ts +23 -0
  28. package/dist/components/j-tw-messages/types.d.ts +31 -0
  29. package/dist/components/j-tw-radio/index.d.ts +168 -0
  30. package/dist/components/j-tw-radio/types.d.ts +29 -0
  31. package/dist/components/j-tw-radio-group/index.d.ts +244 -0
  32. package/dist/components/j-tw-radio-group/types.d.ts +37 -0
  33. package/dist/components/j-tw-select/index.d.ts +4451 -0
  34. package/dist/components/j-tw-select/types.d.ts +87 -0
  35. package/dist/components/j-tw-status-img/index.d.ts +36 -0
  36. package/dist/components/j-tw-status-img/types.d.ts +3 -0
  37. package/dist/components/j-tw-table/index.d.ts +480 -0
  38. package/dist/components/j-tw-table/types.d.ts +157 -0
  39. package/dist/components/j-tw-tree-select/TreeNode.d.ts +124 -0
  40. package/dist/components/j-tw-tree-select/index.d.ts +292 -0
  41. package/dist/components/j-tw-tree-select/types.d.ts +110 -0
  42. package/dist/components/j-tw-tree-select-btn/TreeNode.d.ts +107 -0
  43. package/dist/components/j-tw-tree-select-btn/index.d.ts +171 -22
  44. package/dist/components/j-tw-tree-select-btn/types.d.ts +5 -0
  45. package/dist/components/j-tw-tree-select-input/index.d.ts +5384 -0
  46. package/dist/components/j-tw-tree-select-input/types.d.ts +65 -0
  47. package/dist/global.d.ts +129 -49
  48. package/dist/index.css +1 -1
  49. package/dist/index.d.ts +41 -4
  50. package/dist/shims-svg.d.ts +4 -0
  51. package/dist/twcpt-styles.css +1 -1
  52. package/dist/twcpt.cjs.js +9 -5
  53. package/dist/twcpt.es.js +4057 -1653
  54. package/dist/types.d.ts +1 -1
  55. package/dist/utils/useBizRequest.d.ts +12 -0
  56. package/package.json +1 -3
  57. package/dist/charts-BRqaKjiE.js +0 -879
  58. package/dist/charts-lTMiYKQB.cjs +0 -1
  59. package/dist/components/j-ch-bar/index.d.ts +0 -50
  60. package/dist/components/j-ch-bar/types.d.ts +0 -42
  61. package/dist/components/j-ch-bar-line/index.d.ts +0 -49
  62. package/dist/components/j-ch-bar-line/types.d.ts +0 -42
  63. package/dist/components/j-ch-bubble/index.d.ts +0 -54
  64. package/dist/components/j-ch-bubble/types.d.ts +0 -51
  65. package/dist/components/j-ch-line/index.d.ts +0 -57
  66. package/dist/components/j-ch-line/types.d.ts +0 -42
  67. package/dist/components/j-ch-pie-doughnut/index.d.ts +0 -60
  68. package/dist/components/j-ch-pie-doughnut/types.d.ts +0 -55
  69. package/dist/components/j-ch-radar/index.d.ts +0 -49
  70. package/dist/components/j-ch-radar/types.d.ts +0 -42
  71. package/dist/utils/chart.d.ts +0 -28
@@ -0,0 +1,793 @@
1
+ import { nextTick, PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentPublicInstance, ComponentOptionsMixin, PublicProps, ComponentInternalInstance, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentOptionsBase, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, CreateComponentPublicInstanceWithMixins, ObjectPlugin, CSSProperties, StyleValue } from 'vue';
2
+ import { JTWDialogPositionType, JTWDialogSizeType, JTWDialogFooterModeType } from './types';
3
+ import { JTWBtnSizeType, JTWBtnTypeType, JTWBtnTooltipConfig } from '../..';
4
+ import { ComponentSize, ButtonType, ButtonNativeType, ButtonProps, UseTooltipProps, PopperInstance, TooltipContentInstance, PopperEffect, Placement, Options, TooltipTriggerType } from 'element-plus';
5
+ import { IconPropType, SFCWithInstall } from 'element-plus/es/utils/index.mjs';
6
+ import { OnCleanup } from '@vue/reactivity';
7
+ import { ButtonGroupProps } from 'element-plus/es/components/button/src/button-group.mjs';
8
+ import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
9
+ declare const _default: DefineComponent<ExtractPropTypes<{
10
+ dialogId: {
11
+ type: StringConstructor;
12
+ };
13
+ title: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ position: {
18
+ type: PropType<JTWDialogPositionType>;
19
+ default: "center";
20
+ };
21
+ size: {
22
+ type: PropType<JTWDialogSizeType>;
23
+ default: "md";
24
+ };
25
+ showHeader: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ showFooter: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ footerMode: {
34
+ type: PropType<JTWDialogFooterModeType>;
35
+ default: "both";
36
+ };
37
+ confirmText: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ cancelText: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ component: {
46
+ default: null;
47
+ };
48
+ componentBind: {
49
+ type: ObjectConstructor;
50
+ default: () => {};
51
+ };
52
+ componentOn: {
53
+ type: ObjectConstructor;
54
+ default: () => {};
55
+ };
56
+ closeOnMask: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ closeOnEsc: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ }>, {
65
+ visible: Ref<boolean, boolean>;
66
+ maskRef: Ref<HTMLElement | null, HTMLElement | null>;
67
+ dynamicCompRef: Ref<any, any>;
68
+ loading: Ref<boolean, boolean>;
69
+ cancelText: Ref<string, string>;
70
+ confirmText: Ref<string, string>;
71
+ resolvedComponent: ComputedRef<(new () => ComponentPublicInstance) | null>;
72
+ transitionName: ComputedRef<"j-tw-dialog-slide-right" | "j-tw-dialog-fade">;
73
+ sizeClass: ComputedRef<string>;
74
+ computedComponentBind: ComputedRef<{
75
+ dialogInstance: any;
76
+ }>;
77
+ open: () => void;
78
+ close: () => void;
79
+ setLoading: (_loading: boolean) => void;
80
+ changeCancelText: (text: string) => void;
81
+ changeConfirmText: (text: string) => void;
82
+ handleMaskClick: () => void;
83
+ handleEscKey: () => void;
84
+ handleClickCancel: () => void;
85
+ handleClickConfirm: () => void;
86
+ handleAfterLeave: () => void;
87
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
88
+ dialogId: {
89
+ type: StringConstructor;
90
+ };
91
+ title: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ position: {
96
+ type: PropType<JTWDialogPositionType>;
97
+ default: "center";
98
+ };
99
+ size: {
100
+ type: PropType<JTWDialogSizeType>;
101
+ default: "md";
102
+ };
103
+ showHeader: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
107
+ showFooter: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ footerMode: {
112
+ type: PropType<JTWDialogFooterModeType>;
113
+ default: "both";
114
+ };
115
+ confirmText: {
116
+ type: StringConstructor;
117
+ default: string;
118
+ };
119
+ cancelText: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
123
+ component: {
124
+ default: null;
125
+ };
126
+ componentBind: {
127
+ type: ObjectConstructor;
128
+ default: () => {};
129
+ };
130
+ componentOn: {
131
+ type: ObjectConstructor;
132
+ default: () => {};
133
+ };
134
+ closeOnMask: {
135
+ type: BooleanConstructor;
136
+ default: boolean;
137
+ };
138
+ closeOnEsc: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
142
+ }>> & Readonly<{}>, {
143
+ size: JTWDialogSizeType;
144
+ component: null;
145
+ title: string;
146
+ position: JTWDialogPositionType;
147
+ showFooter: boolean;
148
+ confirmText: string;
149
+ cancelText: string;
150
+ showHeader: boolean;
151
+ footerMode: JTWDialogFooterModeType;
152
+ componentBind: Record<string, any>;
153
+ componentOn: Record<string, any>;
154
+ closeOnMask: boolean;
155
+ closeOnEsc: boolean;
156
+ }, {}, {
157
+ JTWBtn: DefineComponent<ExtractPropTypes<{
158
+ size: {
159
+ type: PropType< JTWBtnSizeType>;
160
+ default: "normal";
161
+ validator: (value: JTWBtnSizeType) => boolean;
162
+ };
163
+ type: {
164
+ type: PropType< JTWBtnTypeType>;
165
+ default: "button";
166
+ validator: (value: JTWBtnTypeType) => boolean;
167
+ };
168
+ color: {
169
+ type: StringConstructor;
170
+ default: string;
171
+ };
172
+ outline: {
173
+ type: BooleanConstructor;
174
+ default: boolean;
175
+ };
176
+ flat: {
177
+ type: BooleanConstructor;
178
+ default: boolean;
179
+ };
180
+ label: {
181
+ type: StringConstructor;
182
+ default: string;
183
+ };
184
+ loading: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
188
+ tips: {
189
+ type: (StringConstructor | NumberConstructor)[];
190
+ default: string;
191
+ };
192
+ tooltipConfig: {
193
+ type: PropType< JTWBtnTooltipConfig>;
194
+ default: undefined;
195
+ };
196
+ }>, {
197
+ elBtnRef: Ref<({
198
+ $: ComponentInternalInstance;
199
+ $data: {};
200
+ $props: {
201
+ readonly size?: ComponentSize | undefined;
202
+ readonly disabled?: boolean | undefined;
203
+ readonly type?: ButtonType | undefined;
204
+ readonly icon?: IconPropType | undefined;
205
+ readonly nativeType?: ButtonNativeType | undefined;
206
+ readonly loading?: boolean | undefined;
207
+ readonly loadingIcon?: IconPropType | undefined;
208
+ readonly plain?: boolean | undefined;
209
+ readonly text?: boolean | undefined;
210
+ readonly link?: boolean | undefined;
211
+ readonly bg?: boolean | undefined;
212
+ readonly autofocus?: boolean | undefined;
213
+ readonly round?: boolean | undefined;
214
+ readonly circle?: boolean | undefined;
215
+ readonly dashed?: boolean | undefined;
216
+ readonly color?: string | undefined;
217
+ readonly dark?: boolean | undefined;
218
+ readonly autoInsertSpace?: boolean | undefined;
219
+ readonly tag?: (string | Component) | undefined;
220
+ readonly onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
221
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
222
+ $attrs: Attrs;
223
+ $refs: {
224
+ [x: string]: unknown;
225
+ };
226
+ $slots: Readonly<{
227
+ [name: string]: Slot<any> | undefined;
228
+ }>;
229
+ $root: ComponentPublicInstance | null;
230
+ $parent: ComponentPublicInstance | null;
231
+ $host: Element | null;
232
+ $emit: (event: "click", evt: MouseEvent) => void;
233
+ $el: any;
234
+ $options: ComponentOptionsBase<Readonly< ButtonProps> & Readonly<{
235
+ onClick?: ((evt: MouseEvent) => any) | undefined;
236
+ }>, {
237
+ ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
238
+ size: ComputedRef<"" | "default" | "large" | "small">;
239
+ type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
240
+ disabled: ComputedRef<boolean>;
241
+ shouldAddSpace: ComputedRef<boolean>;
242
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
243
+ click: (evt: MouseEvent) => void;
244
+ }, string, {
245
+ type: ButtonType;
246
+ disabled: boolean;
247
+ text: boolean;
248
+ round: boolean;
249
+ dashed: boolean;
250
+ plain: boolean;
251
+ nativeType: ButtonNativeType;
252
+ loadingIcon: IconPropType;
253
+ autoInsertSpace: boolean;
254
+ tag: string | Component;
255
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
256
+ beforeCreate?: (() => void) | (() => void)[];
257
+ created?: (() => void) | (() => void)[];
258
+ beforeMount?: (() => void) | (() => void)[];
259
+ mounted?: (() => void) | (() => void)[];
260
+ beforeUpdate?: (() => void) | (() => void)[];
261
+ updated?: (() => void) | (() => void)[];
262
+ activated?: (() => void) | (() => void)[];
263
+ deactivated?: (() => void) | (() => void)[];
264
+ beforeDestroy?: (() => void) | (() => void)[];
265
+ beforeUnmount?: (() => void) | (() => void)[];
266
+ destroyed?: (() => void) | (() => void)[];
267
+ unmounted?: (() => void) | (() => void)[];
268
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
269
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
270
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
271
+ };
272
+ $forceUpdate: () => void;
273
+ $nextTick: typeof nextTick;
274
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
275
+ } & Readonly<{
276
+ type: ButtonType;
277
+ disabled: boolean;
278
+ text: boolean;
279
+ round: boolean;
280
+ dashed: boolean;
281
+ plain: boolean;
282
+ nativeType: ButtonNativeType;
283
+ loadingIcon: IconPropType;
284
+ autoInsertSpace: boolean;
285
+ tag: string | Component;
286
+ }> & Omit<Readonly< ButtonProps> & Readonly<{
287
+ onClick?: ((evt: MouseEvent) => any) | undefined;
288
+ }>, "text" | "size" | "type" | "disabled" | "nativeType" | "loadingIcon" | "plain" | "round" | "dashed" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef<{
289
+ ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
290
+ size: ComputedRef<"" | "default" | "large" | "small">;
291
+ type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
292
+ disabled: ComputedRef<boolean>;
293
+ shouldAddSpace: ComputedRef<boolean>;
294
+ }> & {} & ComponentCustomProperties & {} & {
295
+ $slots: {
296
+ loading?: (props: {}) => any;
297
+ } & {
298
+ icon?: (props: {}) => any;
299
+ } & {
300
+ default?: (props: {}) => any;
301
+ };
302
+ }) | null, ({
303
+ $: ComponentInternalInstance;
304
+ $data: {};
305
+ $props: {
306
+ readonly size?: ComponentSize | undefined;
307
+ readonly disabled?: boolean | undefined;
308
+ readonly type?: ButtonType | undefined;
309
+ readonly icon?: IconPropType | undefined;
310
+ readonly nativeType?: ButtonNativeType | undefined;
311
+ readonly loading?: boolean | undefined;
312
+ readonly loadingIcon?: IconPropType | undefined;
313
+ readonly plain?: boolean | undefined;
314
+ readonly text?: boolean | undefined;
315
+ readonly link?: boolean | undefined;
316
+ readonly bg?: boolean | undefined;
317
+ readonly autofocus?: boolean | undefined;
318
+ readonly round?: boolean | undefined;
319
+ readonly circle?: boolean | undefined;
320
+ readonly dashed?: boolean | undefined;
321
+ readonly color?: string | undefined;
322
+ readonly dark?: boolean | undefined;
323
+ readonly autoInsertSpace?: boolean | undefined;
324
+ readonly tag?: (string | Component) | undefined;
325
+ readonly onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
326
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
327
+ $attrs: Attrs;
328
+ $refs: {
329
+ [x: string]: unknown;
330
+ };
331
+ $slots: Readonly<{
332
+ [name: string]: Slot<any> | undefined;
333
+ }>;
334
+ $root: ComponentPublicInstance | null;
335
+ $parent: ComponentPublicInstance | null;
336
+ $host: Element | null;
337
+ $emit: (event: "click", evt: MouseEvent) => void;
338
+ $el: any;
339
+ $options: ComponentOptionsBase<Readonly< ButtonProps> & Readonly<{
340
+ onClick?: ((evt: MouseEvent) => any) | undefined;
341
+ }>, {
342
+ ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
343
+ size: ComputedRef<"" | "default" | "large" | "small">;
344
+ type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
345
+ disabled: ComputedRef<boolean>;
346
+ shouldAddSpace: ComputedRef<boolean>;
347
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
348
+ click: (evt: MouseEvent) => void;
349
+ }, string, {
350
+ type: ButtonType;
351
+ disabled: boolean;
352
+ text: boolean;
353
+ round: boolean;
354
+ dashed: boolean;
355
+ plain: boolean;
356
+ nativeType: ButtonNativeType;
357
+ loadingIcon: IconPropType;
358
+ autoInsertSpace: boolean;
359
+ tag: string | Component;
360
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
361
+ beforeCreate?: (() => void) | (() => void)[];
362
+ created?: (() => void) | (() => void)[];
363
+ beforeMount?: (() => void) | (() => void)[];
364
+ mounted?: (() => void) | (() => void)[];
365
+ beforeUpdate?: (() => void) | (() => void)[];
366
+ updated?: (() => void) | (() => void)[];
367
+ activated?: (() => void) | (() => void)[];
368
+ deactivated?: (() => void) | (() => void)[];
369
+ beforeDestroy?: (() => void) | (() => void)[];
370
+ beforeUnmount?: (() => void) | (() => void)[];
371
+ destroyed?: (() => void) | (() => void)[];
372
+ unmounted?: (() => void) | (() => void)[];
373
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
374
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
375
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
376
+ };
377
+ $forceUpdate: () => void;
378
+ $nextTick: typeof nextTick;
379
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
380
+ } & Readonly<{
381
+ type: ButtonType;
382
+ disabled: boolean;
383
+ text: boolean;
384
+ round: boolean;
385
+ dashed: boolean;
386
+ plain: boolean;
387
+ nativeType: ButtonNativeType;
388
+ loadingIcon: IconPropType;
389
+ autoInsertSpace: boolean;
390
+ tag: string | Component;
391
+ }> & Omit<Readonly< ButtonProps> & Readonly<{
392
+ onClick?: ((evt: MouseEvent) => any) | undefined;
393
+ }>, "text" | "size" | "type" | "disabled" | "nativeType" | "loadingIcon" | "plain" | "round" | "dashed" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef<{
394
+ ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
395
+ size: ComputedRef<"" | "default" | "large" | "small">;
396
+ type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
397
+ disabled: ComputedRef<boolean>;
398
+ shouldAddSpace: ComputedRef<boolean>;
399
+ }> & {} & ComponentCustomProperties & {} & {
400
+ $slots: {
401
+ loading?: (props: {}) => any;
402
+ } & {
403
+ icon?: (props: {}) => any;
404
+ } & {
405
+ default?: (props: {}) => any;
406
+ };
407
+ }) | null>;
408
+ tooltipContent: ComputedRef<string>;
409
+ computedClass: ComputedRef<{
410
+ 'j-tw-btn': boolean;
411
+ 'j-tw-btn--large': boolean;
412
+ 'j-tw-btn--normal': boolean;
413
+ 'j-tw-btn--small': boolean;
414
+ 'j-tw-btn--button': boolean;
415
+ 'j-tw-btn--outline': boolean;
416
+ 'j-tw-btn--flat': boolean;
417
+ 'j-tw-btn--text': boolean;
418
+ }>;
419
+ computedStyle: ComputedRef<{
420
+ '--j-btn-color': string;
421
+ '--j-btn-color-1': string;
422
+ '--j-btn-color-2': string;
423
+ '--j-btn-color-3': string;
424
+ '--j-btn-color-4': string;
425
+ '--j-btn-color-5': string;
426
+ '--j-btn-color-6': string;
427
+ }>;
428
+ mergedTooltipConfig: ComputedRef<{
429
+ placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
430
+ effect: "dark" | "light";
431
+ trigger: "hover" | "click" | "focus" | "contextmenu";
432
+ showArrow: boolean;
433
+ openDelay: number;
434
+ closeDelay: number;
435
+ offset: number;
436
+ }>;
437
+ handleClick: (e: MouseEvent) => void;
438
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
439
+ click: (_e: MouseEvent) => true;
440
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
441
+ size: {
442
+ type: PropType< JTWBtnSizeType>;
443
+ default: "normal";
444
+ validator: (value: JTWBtnSizeType) => boolean;
445
+ };
446
+ type: {
447
+ type: PropType< JTWBtnTypeType>;
448
+ default: "button";
449
+ validator: (value: JTWBtnTypeType) => boolean;
450
+ };
451
+ color: {
452
+ type: StringConstructor;
453
+ default: string;
454
+ };
455
+ outline: {
456
+ type: BooleanConstructor;
457
+ default: boolean;
458
+ };
459
+ flat: {
460
+ type: BooleanConstructor;
461
+ default: boolean;
462
+ };
463
+ label: {
464
+ type: StringConstructor;
465
+ default: string;
466
+ };
467
+ loading: {
468
+ type: BooleanConstructor;
469
+ default: boolean;
470
+ };
471
+ tips: {
472
+ type: (StringConstructor | NumberConstructor)[];
473
+ default: string;
474
+ };
475
+ tooltipConfig: {
476
+ type: PropType< JTWBtnTooltipConfig>;
477
+ default: undefined;
478
+ };
479
+ }>> & Readonly<{
480
+ onClick?: ((_e: MouseEvent) => any) | undefined;
481
+ }>, {
482
+ size: JTWBtnSizeType;
483
+ type: JTWBtnTypeType;
484
+ color: string;
485
+ outline: boolean;
486
+ flat: boolean;
487
+ label: string;
488
+ loading: boolean;
489
+ tips: string | number;
490
+ tooltipConfig: JTWBtnTooltipConfig;
491
+ }, {}, {
492
+ ElButton: {
493
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ButtonProps> & Readonly<{
494
+ onClick?: ((evt: MouseEvent) => any) | undefined;
495
+ }>, {
496
+ ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
497
+ size: ComputedRef<"" | "default" | "large" | "small">;
498
+ type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
499
+ disabled: ComputedRef<boolean>;
500
+ shouldAddSpace: ComputedRef<boolean>;
501
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
502
+ click: (evt: MouseEvent) => void;
503
+ }, PublicProps, {
504
+ type: ButtonType;
505
+ disabled: boolean;
506
+ text: boolean;
507
+ round: boolean;
508
+ dashed: boolean;
509
+ plain: boolean;
510
+ nativeType: ButtonNativeType;
511
+ loadingIcon: IconPropType;
512
+ autoInsertSpace: boolean;
513
+ tag: string | Component;
514
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
515
+ P: {};
516
+ B: {};
517
+ D: {};
518
+ C: {};
519
+ M: {};
520
+ Defaults: {};
521
+ }, Readonly< ButtonProps> & Readonly<{
522
+ onClick?: ((evt: MouseEvent) => any) | undefined;
523
+ }>, {
524
+ ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
525
+ size: ComputedRef<"" | "default" | "large" | "small">;
526
+ type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
527
+ disabled: ComputedRef<boolean>;
528
+ shouldAddSpace: ComputedRef<boolean>;
529
+ }, {}, {}, {}, {
530
+ type: ButtonType;
531
+ disabled: boolean;
532
+ text: boolean;
533
+ round: boolean;
534
+ dashed: boolean;
535
+ plain: boolean;
536
+ nativeType: ButtonNativeType;
537
+ loadingIcon: IconPropType;
538
+ autoInsertSpace: boolean;
539
+ tag: string | Component;
540
+ }>;
541
+ __isFragment?: never;
542
+ __isTeleport?: never;
543
+ __isSuspense?: never;
544
+ } & ComponentOptionsBase<Readonly< ButtonProps> & Readonly<{
545
+ onClick?: ((evt: MouseEvent) => any) | undefined;
546
+ }>, {
547
+ ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
548
+ size: ComputedRef<"" | "default" | "large" | "small">;
549
+ type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
550
+ disabled: ComputedRef<boolean>;
551
+ shouldAddSpace: ComputedRef<boolean>;
552
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
553
+ click: (evt: MouseEvent) => void;
554
+ }, string, {
555
+ type: ButtonType;
556
+ disabled: boolean;
557
+ text: boolean;
558
+ round: boolean;
559
+ dashed: boolean;
560
+ plain: boolean;
561
+ nativeType: ButtonNativeType;
562
+ loadingIcon: IconPropType;
563
+ autoInsertSpace: boolean;
564
+ tag: string | Component;
565
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
566
+ $slots: {
567
+ loading?: (props: {}) => any;
568
+ } & {
569
+ icon?: (props: {}) => any;
570
+ } & {
571
+ default?: (props: {}) => any;
572
+ };
573
+ }) & ObjectPlugin & {
574
+ setPropsDefaults: (defaults: Partial<{
575
+ readonly size?: ComponentSize | undefined;
576
+ readonly disabled?: boolean | undefined;
577
+ readonly type?: ButtonType | undefined;
578
+ readonly icon?: IconPropType | undefined;
579
+ readonly nativeType?: ButtonNativeType | undefined;
580
+ readonly loading?: boolean | undefined;
581
+ readonly loadingIcon?: IconPropType | undefined;
582
+ readonly plain?: boolean | undefined;
583
+ readonly text?: boolean | undefined;
584
+ readonly link?: boolean | undefined;
585
+ readonly bg?: boolean | undefined;
586
+ readonly autofocus?: boolean | undefined;
587
+ readonly round?: boolean | undefined;
588
+ readonly circle?: boolean | undefined;
589
+ readonly dashed?: boolean | undefined;
590
+ readonly color?: string | undefined;
591
+ readonly dark?: boolean | undefined;
592
+ readonly autoInsertSpace?: boolean | undefined;
593
+ readonly tag?: (string | Component) | undefined;
594
+ readonly onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
595
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps>) => void;
596
+ } & {
597
+ ButtonGroup: {
598
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
599
+ type: "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger";
600
+ direction: "horizontal" | "vertical";
601
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
602
+ P: {};
603
+ B: {};
604
+ D: {};
605
+ C: {};
606
+ M: {};
607
+ Defaults: {};
608
+ }, Readonly< ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
609
+ type: "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger";
610
+ direction: "horizontal" | "vertical";
611
+ }>;
612
+ __isFragment?: never;
613
+ __isTeleport?: never;
614
+ __isSuspense?: never;
615
+ } & ComponentOptionsBase<Readonly< ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
616
+ type: "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger";
617
+ direction: "horizontal" | "vertical";
618
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
619
+ $slots: {
620
+ default?: (props: {}) => any;
621
+ };
622
+ });
623
+ };
624
+ ElTooltip: SFCWithInstall<{
625
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< UseTooltipProps> & Readonly<{
626
+ onClose?: ((...args: any[]) => any) | undefined;
627
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
628
+ "onBefore-show"?: ((...args: any[]) => any) | undefined;
629
+ "onBefore-hide"?: ((...args: any[]) => any) | undefined;
630
+ onShow?: ((...args: any[]) => any) | undefined;
631
+ onHide?: ((...args: any[]) => any) | undefined;
632
+ onOpen?: ((...args: any[]) => any) | undefined;
633
+ }>, {
634
+ popperRef: Ref< PopperInstance | undefined, PopperInstance | undefined>;
635
+ contentRef: Ref< TooltipContentInstance | undefined, TooltipContentInstance | undefined>;
636
+ isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
637
+ updatePopper: () => void;
638
+ onOpen: (event?: Event, delay?: number) => void;
639
+ onClose: (event?: Event, delay?: number) => void;
640
+ hide: (event?: Event) => void;
641
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
642
+ close: (...args: any[]) => void;
643
+ "update:visible": (...args: any[]) => void;
644
+ "before-show": (...args: any[]) => void;
645
+ "before-hide": (...args: any[]) => void;
646
+ show: (...args: any[]) => void;
647
+ hide: (...args: any[]) => void;
648
+ open: (...args: any[]) => void;
649
+ }, PublicProps, {
650
+ effect: PopperEffect;
651
+ placement: Placement;
652
+ popperStyle: string | false | CSSProperties | StyleValue[] | null;
653
+ teleported: boolean;
654
+ visible: boolean | null;
655
+ style: string | false | CSSProperties | StyleValue[] | null;
656
+ enterable: boolean;
657
+ pure: boolean;
658
+ focusOnShow: boolean;
659
+ trapping: boolean;
660
+ stopPopperMouseEvent: boolean;
661
+ virtualTriggering: boolean;
662
+ loop: boolean;
663
+ boundariesPadding: number;
664
+ gpuAcceleration: boolean;
665
+ offset: number;
666
+ popperOptions: Partial< Options>;
667
+ strategy: "absolute" | "fixed";
668
+ arrowOffset: number;
669
+ showArrow: boolean;
670
+ role: "dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree";
671
+ content: string;
672
+ showAfter: number;
673
+ hideAfter: number;
674
+ autoClose: number;
675
+ trigger: Arrayable<TooltipTriggerType>;
676
+ triggerKeys: string[];
677
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
678
+ P: {};
679
+ B: {};
680
+ D: {};
681
+ C: {};
682
+ M: {};
683
+ Defaults: {};
684
+ }, Readonly< UseTooltipProps> & Readonly<{
685
+ onClose?: ((...args: any[]) => any) | undefined;
686
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
687
+ "onBefore-show"?: ((...args: any[]) => any) | undefined;
688
+ "onBefore-hide"?: ((...args: any[]) => any) | undefined;
689
+ onShow?: ((...args: any[]) => any) | undefined;
690
+ onHide?: ((...args: any[]) => any) | undefined;
691
+ onOpen?: ((...args: any[]) => any) | undefined;
692
+ }>, {
693
+ popperRef: Ref< PopperInstance | undefined, PopperInstance | undefined>;
694
+ contentRef: Ref< TooltipContentInstance | undefined, TooltipContentInstance | undefined>;
695
+ isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
696
+ updatePopper: () => void;
697
+ onOpen: (event?: Event, delay?: number) => void;
698
+ onClose: (event?: Event, delay?: number) => void;
699
+ hide: (event?: Event) => void;
700
+ }, {}, {}, {}, {
701
+ effect: PopperEffect;
702
+ placement: Placement;
703
+ popperStyle: string | false | CSSProperties | StyleValue[] | null;
704
+ teleported: boolean;
705
+ visible: boolean | null;
706
+ style: string | false | CSSProperties | StyleValue[] | null;
707
+ enterable: boolean;
708
+ pure: boolean;
709
+ focusOnShow: boolean;
710
+ trapping: boolean;
711
+ stopPopperMouseEvent: boolean;
712
+ virtualTriggering: boolean;
713
+ loop: boolean;
714
+ boundariesPadding: number;
715
+ gpuAcceleration: boolean;
716
+ offset: number;
717
+ popperOptions: Partial< Options>;
718
+ strategy: "absolute" | "fixed";
719
+ arrowOffset: number;
720
+ showArrow: boolean;
721
+ role: "dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree";
722
+ content: string;
723
+ showAfter: number;
724
+ hideAfter: number;
725
+ autoClose: number;
726
+ trigger: Arrayable<TooltipTriggerType>;
727
+ triggerKeys: string[];
728
+ }>;
729
+ __isFragment?: never;
730
+ __isTeleport?: never;
731
+ __isSuspense?: never;
732
+ } & ComponentOptionsBase<Readonly< UseTooltipProps> & Readonly<{
733
+ onClose?: ((...args: any[]) => any) | undefined;
734
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
735
+ "onBefore-show"?: ((...args: any[]) => any) | undefined;
736
+ "onBefore-hide"?: ((...args: any[]) => any) | undefined;
737
+ onShow?: ((...args: any[]) => any) | undefined;
738
+ onHide?: ((...args: any[]) => any) | undefined;
739
+ onOpen?: ((...args: any[]) => any) | undefined;
740
+ }>, {
741
+ popperRef: Ref< PopperInstance | undefined, PopperInstance | undefined>;
742
+ contentRef: Ref< TooltipContentInstance | undefined, TooltipContentInstance | undefined>;
743
+ isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
744
+ updatePopper: () => void;
745
+ onOpen: (event?: Event, delay?: number) => void;
746
+ onClose: (event?: Event, delay?: number) => void;
747
+ hide: (event?: Event) => void;
748
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
749
+ close: (...args: any[]) => void;
750
+ "update:visible": (...args: any[]) => void;
751
+ "before-show": (...args: any[]) => void;
752
+ "before-hide": (...args: any[]) => void;
753
+ show: (...args: any[]) => void;
754
+ hide: (...args: any[]) => void;
755
+ open: (...args: any[]) => void;
756
+ }, string, {
757
+ effect: PopperEffect;
758
+ placement: Placement;
759
+ popperStyle: string | false | CSSProperties | StyleValue[] | null;
760
+ teleported: boolean;
761
+ visible: boolean | null;
762
+ style: string | false | CSSProperties | StyleValue[] | null;
763
+ enterable: boolean;
764
+ pure: boolean;
765
+ focusOnShow: boolean;
766
+ trapping: boolean;
767
+ stopPopperMouseEvent: boolean;
768
+ virtualTriggering: boolean;
769
+ loop: boolean;
770
+ boundariesPadding: number;
771
+ gpuAcceleration: boolean;
772
+ offset: number;
773
+ popperOptions: Partial< Options>;
774
+ strategy: "absolute" | "fixed";
775
+ arrowOffset: number;
776
+ showArrow: boolean;
777
+ role: "dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree";
778
+ content: string;
779
+ showAfter: number;
780
+ hideAfter: number;
781
+ autoClose: number;
782
+ trigger: Arrayable<TooltipTriggerType>;
783
+ triggerKeys: string[];
784
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
785
+ $slots: {
786
+ default?: (props: {}) => any;
787
+ } & {
788
+ content?: (props: {}) => any;
789
+ };
790
+ })>;
791
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
792
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
793
+ export default _default;