twcpt 0.0.19 → 0.0.20
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/dist/components/j-tw-file-upload/index.d.ts +3 -0
- package/dist/components/j-tw-file-upload/types.d.ts +68 -0
- package/dist/components/j-tw-search-box/index.d.ts +3 -0
- package/dist/components/j-tw-search-box/types.d.ts +28 -0
- package/dist/components/j-tw-table/index.d.ts +997 -3
- package/dist/components/j-tw-table/types.d.ts +17 -0
- package/dist/global.d.ts +20 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/twcpt-styles.css +1 -1
- package/dist/twcpt.cjs.js +10 -10
- package/dist/twcpt.es.js +5532 -5027
- package/package.json +1 -1
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, ObjectPlugin,
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, CreateComponentPublicInstanceWithMixins, CSSProperties, StyleValue, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, ObjectPlugin, ObjectDirective, Component, VNode, RendererNode, RendererElement, ComponentInternalInstance, Attrs, Slot, ComponentPublicInstance, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
2
2
|
import { JTWTableColumn, JTWTablePagination } from './types';
|
|
3
|
-
import { CheckboxProps, CheckboxValueType, ComponentSize, CheckboxGroupProps, CheckboxGroupValueType } from 'element-plus';
|
|
4
|
-
import {
|
|
3
|
+
import { PopoverProps, PopperInstance, PopperEffect, Placement, Options, TooltipTriggerType, CheckboxProps, CheckboxValueType, ComponentSize, CheckboxGroupProps, CheckboxGroupValueType, RadioProps, RadioButtonProps, RadioGroupProps, radioOptionProp, ButtonType, ButtonNativeType, ButtonProps, UseTooltipProps, TooltipContentInstance } from 'element-plus';
|
|
4
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
5
|
+
import { SFCWithInstall, EpPropFinalized, EpPropMergeType, IconPropType } from 'element-plus/es/utils/index.mjs';
|
|
6
|
+
import { JTWBtnSizeType, JTWBtnTypeType, JTWBtnTooltipConfig } from '../..';
|
|
7
|
+
import { JTWBtnColorType } from '../j-tw-btn/types';
|
|
8
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
9
|
+
import { ButtonGroupProps } from 'element-plus/es/components/button/src/button-group.mjs';
|
|
5
10
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
11
|
rows: {
|
|
7
12
|
type: PropType<any[]>;
|
|
@@ -54,6 +59,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
54
59
|
}>, {
|
|
55
60
|
tableRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
56
61
|
selectedRows: Ref<any[], any[]>;
|
|
62
|
+
filterPopoverVisible: Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
57
63
|
isAllSelected: ComputedRef<boolean>;
|
|
58
64
|
isIndeterminate: ComputedRef<boolean>;
|
|
59
65
|
isRowSelected: (row: any) => boolean;
|
|
@@ -67,6 +73,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
67
73
|
prop: string;
|
|
68
74
|
order: string;
|
|
69
75
|
}) => void;
|
|
76
|
+
isFilterActive: (col: JTWTableColumn) => boolean;
|
|
77
|
+
isFilterSelected: (col: JTWTableColumn, value: any) => boolean;
|
|
78
|
+
handleFilterSelect: (col: JTWTableColumn, value: any, selected: boolean) => void;
|
|
79
|
+
getSingleFilterValue: (col: JTWTableColumn) => any;
|
|
80
|
+
handleSingleFilterSelect: (col: JTWTableColumn, value: any) => void;
|
|
81
|
+
handleFilterConfirm: (col: JTWTableColumn) => void;
|
|
82
|
+
handleFilterReset: (col: JTWTableColumn) => void;
|
|
70
83
|
handleSizeChange: (size: number) => void;
|
|
71
84
|
handleCurrentChange: (page: number) => void;
|
|
72
85
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -76,6 +89,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
76
89
|
prop: string;
|
|
77
90
|
order: string;
|
|
78
91
|
}) => true;
|
|
92
|
+
filterChange: (_filters: Record<string, any[]>) => true;
|
|
79
93
|
sizeChange: (_size: number) => true;
|
|
80
94
|
currentChange: (_page: number) => true;
|
|
81
95
|
'update:pagination': (_pagination: JTWTablePagination) => true;
|
|
@@ -137,6 +151,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
137
151
|
prop: string;
|
|
138
152
|
order: string;
|
|
139
153
|
}) => any) | undefined;
|
|
154
|
+
onFilterChange?: ((_filters: Record<string, any[]>) => any) | undefined;
|
|
140
155
|
"onUpdate:pagination"?: ((_pagination: JTWTablePagination) => any) | undefined;
|
|
141
156
|
}>, {
|
|
142
157
|
loading: boolean;
|
|
@@ -152,6 +167,180 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
152
167
|
bordered: boolean;
|
|
153
168
|
stripe: boolean;
|
|
154
169
|
}, {}, {
|
|
170
|
+
ElPopover: {
|
|
171
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< PopoverProps> & Readonly<{
|
|
172
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
173
|
+
"onBefore-enter"?: (() => any) | undefined;
|
|
174
|
+
"onBefore-leave"?: (() => any) | undefined;
|
|
175
|
+
"onAfter-enter"?: (() => any) | undefined;
|
|
176
|
+
"onAfter-leave"?: (() => any) | undefined;
|
|
177
|
+
}>, {
|
|
178
|
+
popperRef: ComputedRef< PopperInstance | undefined>;
|
|
179
|
+
hide: () => void;
|
|
180
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
181
|
+
"update:visible": (value: boolean) => void;
|
|
182
|
+
"before-enter": () => void;
|
|
183
|
+
"before-leave": () => void;
|
|
184
|
+
"after-enter": () => void;
|
|
185
|
+
"after-leave": () => void;
|
|
186
|
+
}, PublicProps, {
|
|
187
|
+
effect: PopperEffect;
|
|
188
|
+
placement: Placement;
|
|
189
|
+
popperStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
190
|
+
teleported: boolean;
|
|
191
|
+
persistent: boolean;
|
|
192
|
+
visible: boolean | null;
|
|
193
|
+
enterable: boolean;
|
|
194
|
+
offset: number;
|
|
195
|
+
popperOptions: Partial< Options>;
|
|
196
|
+
showArrow: boolean;
|
|
197
|
+
content: string;
|
|
198
|
+
showAfter: number;
|
|
199
|
+
hideAfter: number;
|
|
200
|
+
autoClose: number;
|
|
201
|
+
trigger: Arrayable<TooltipTriggerType>;
|
|
202
|
+
triggerKeys: string[];
|
|
203
|
+
width: string | number;
|
|
204
|
+
tabindex: string | number;
|
|
205
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
206
|
+
P: {};
|
|
207
|
+
B: {};
|
|
208
|
+
D: {};
|
|
209
|
+
C: {};
|
|
210
|
+
M: {};
|
|
211
|
+
Defaults: {};
|
|
212
|
+
}, Readonly< PopoverProps> & Readonly<{
|
|
213
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
214
|
+
"onBefore-enter"?: (() => any) | undefined;
|
|
215
|
+
"onBefore-leave"?: (() => any) | undefined;
|
|
216
|
+
"onAfter-enter"?: (() => any) | undefined;
|
|
217
|
+
"onAfter-leave"?: (() => any) | undefined;
|
|
218
|
+
}>, {
|
|
219
|
+
popperRef: ComputedRef< PopperInstance | undefined>;
|
|
220
|
+
hide: () => void;
|
|
221
|
+
}, {}, {}, {}, {
|
|
222
|
+
effect: PopperEffect;
|
|
223
|
+
placement: Placement;
|
|
224
|
+
popperStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
225
|
+
teleported: boolean;
|
|
226
|
+
persistent: boolean;
|
|
227
|
+
visible: boolean | null;
|
|
228
|
+
enterable: boolean;
|
|
229
|
+
offset: number;
|
|
230
|
+
popperOptions: Partial< Options>;
|
|
231
|
+
showArrow: boolean;
|
|
232
|
+
content: string;
|
|
233
|
+
showAfter: number;
|
|
234
|
+
hideAfter: number;
|
|
235
|
+
autoClose: number;
|
|
236
|
+
trigger: Arrayable<TooltipTriggerType>;
|
|
237
|
+
triggerKeys: string[];
|
|
238
|
+
width: string | number;
|
|
239
|
+
tabindex: string | number;
|
|
240
|
+
}>;
|
|
241
|
+
__isFragment?: never;
|
|
242
|
+
__isTeleport?: never;
|
|
243
|
+
__isSuspense?: never;
|
|
244
|
+
} & ComponentOptionsBase<Readonly< PopoverProps> & Readonly<{
|
|
245
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
246
|
+
"onBefore-enter"?: (() => any) | undefined;
|
|
247
|
+
"onBefore-leave"?: (() => any) | undefined;
|
|
248
|
+
"onAfter-enter"?: (() => any) | undefined;
|
|
249
|
+
"onAfter-leave"?: (() => any) | undefined;
|
|
250
|
+
}>, {
|
|
251
|
+
popperRef: ComputedRef< PopperInstance | undefined>;
|
|
252
|
+
hide: () => void;
|
|
253
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
254
|
+
"update:visible": (value: boolean) => void;
|
|
255
|
+
"before-enter": () => void;
|
|
256
|
+
"before-leave": () => void;
|
|
257
|
+
"after-enter": () => void;
|
|
258
|
+
"after-leave": () => void;
|
|
259
|
+
}, string, {
|
|
260
|
+
effect: PopperEffect;
|
|
261
|
+
placement: Placement;
|
|
262
|
+
popperStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
263
|
+
teleported: boolean;
|
|
264
|
+
persistent: boolean;
|
|
265
|
+
visible: boolean | null;
|
|
266
|
+
enterable: boolean;
|
|
267
|
+
offset: number;
|
|
268
|
+
popperOptions: Partial< Options>;
|
|
269
|
+
showArrow: boolean;
|
|
270
|
+
content: string;
|
|
271
|
+
showAfter: number;
|
|
272
|
+
hideAfter: number;
|
|
273
|
+
autoClose: number;
|
|
274
|
+
trigger: Arrayable<TooltipTriggerType>;
|
|
275
|
+
triggerKeys: string[];
|
|
276
|
+
width: string | number;
|
|
277
|
+
tabindex: string | number;
|
|
278
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
279
|
+
$slots: {
|
|
280
|
+
reference?: (props: {}) => any;
|
|
281
|
+
} & {
|
|
282
|
+
default?: (props: {
|
|
283
|
+
hide: () => void;
|
|
284
|
+
}) => any;
|
|
285
|
+
};
|
|
286
|
+
}) & ObjectPlugin & {
|
|
287
|
+
setPropsDefaults: (defaults: Partial<{
|
|
288
|
+
readonly trigger?: Arrayable<TooltipTriggerType> | undefined;
|
|
289
|
+
readonly triggerKeys?: string[] | undefined;
|
|
290
|
+
readonly placement?: Placement | undefined;
|
|
291
|
+
readonly disabled?: boolean | undefined;
|
|
292
|
+
readonly visible?: boolean | null | undefined;
|
|
293
|
+
readonly transition?: string | undefined;
|
|
294
|
+
readonly popperOptions?: Partial< Options> | undefined;
|
|
295
|
+
readonly tabindex?: string | number | undefined;
|
|
296
|
+
readonly content?: string | undefined;
|
|
297
|
+
readonly popperStyle?: StyleValue;
|
|
298
|
+
readonly popperClass?: (string | {
|
|
299
|
+
[x: string]: boolean;
|
|
300
|
+
} | (string | {
|
|
301
|
+
[x: string]: boolean;
|
|
302
|
+
} | (string | {
|
|
303
|
+
[x: string]: boolean;
|
|
304
|
+
} | (string | {
|
|
305
|
+
[x: string]: boolean;
|
|
306
|
+
} | (string | {
|
|
307
|
+
[x: string]: boolean;
|
|
308
|
+
} | (string | {
|
|
309
|
+
[x: string]: boolean;
|
|
310
|
+
} | (string | {
|
|
311
|
+
[x: string]: boolean;
|
|
312
|
+
} | (string | {
|
|
313
|
+
[x: string]: boolean;
|
|
314
|
+
} | (string | {
|
|
315
|
+
[x: string]: boolean;
|
|
316
|
+
} | (string | {
|
|
317
|
+
[x: string]: boolean;
|
|
318
|
+
} | (string | {
|
|
319
|
+
[x: string]: boolean;
|
|
320
|
+
} | (string | {
|
|
321
|
+
[x: string]: boolean;
|
|
322
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | undefined;
|
|
323
|
+
readonly enterable?: boolean | undefined;
|
|
324
|
+
readonly effect?: PopperEffect | undefined;
|
|
325
|
+
readonly teleported?: boolean | undefined;
|
|
326
|
+
readonly appendTo?: string | HTMLElement | undefined;
|
|
327
|
+
readonly title?: string | undefined;
|
|
328
|
+
readonly width?: string | number | undefined;
|
|
329
|
+
readonly offset?: number | undefined;
|
|
330
|
+
readonly showAfter?: number | undefined;
|
|
331
|
+
readonly hideAfter?: number | undefined;
|
|
332
|
+
readonly autoClose?: number | undefined;
|
|
333
|
+
readonly showArrow?: boolean | undefined;
|
|
334
|
+
readonly persistent?: boolean | undefined;
|
|
335
|
+
readonly "onUpdate:visible"?: (((visible: boolean) => void) & ((value: boolean) => any)) | undefined;
|
|
336
|
+
readonly "onBefore-enter"?: (() => any) | undefined | undefined;
|
|
337
|
+
readonly "onBefore-leave"?: (() => any) | undefined | undefined;
|
|
338
|
+
readonly "onAfter-enter"?: (() => any) | undefined | undefined;
|
|
339
|
+
readonly "onAfter-leave"?: (() => any) | undefined | undefined;
|
|
340
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps>) => void;
|
|
341
|
+
} & {
|
|
342
|
+
directive: SFCWithInstall<ObjectDirective<any, any, string, any>>;
|
|
343
|
+
};
|
|
155
344
|
JTWCheckbox: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
156
345
|
ElCheckbox: {
|
|
157
346
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< CheckboxProps> & Readonly<{
|
|
@@ -379,6 +568,171 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
379
568
|
});
|
|
380
569
|
};
|
|
381
570
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
571
|
+
JTWRadio: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
572
|
+
ElRadio: {
|
|
573
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< RadioProps> & Readonly<{
|
|
574
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
575
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
576
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
577
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
578
|
+
change: (val: string | number | boolean | undefined) => void;
|
|
579
|
+
}, PublicProps, {
|
|
580
|
+
value: string | number | boolean;
|
|
581
|
+
label: string | number | boolean;
|
|
582
|
+
disabled: boolean;
|
|
583
|
+
modelValue: string | number | boolean;
|
|
584
|
+
border: boolean;
|
|
585
|
+
name: string;
|
|
586
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
587
|
+
P: {};
|
|
588
|
+
B: {};
|
|
589
|
+
D: {};
|
|
590
|
+
C: {};
|
|
591
|
+
M: {};
|
|
592
|
+
Defaults: {};
|
|
593
|
+
}, Readonly< RadioProps> & Readonly<{
|
|
594
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
595
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
596
|
+
}>, {}, {}, {}, {}, {
|
|
597
|
+
value: string | number | boolean;
|
|
598
|
+
label: string | number | boolean;
|
|
599
|
+
disabled: boolean;
|
|
600
|
+
modelValue: string | number | boolean;
|
|
601
|
+
border: boolean;
|
|
602
|
+
name: string;
|
|
603
|
+
}>;
|
|
604
|
+
__isFragment?: never;
|
|
605
|
+
__isTeleport?: never;
|
|
606
|
+
__isSuspense?: never;
|
|
607
|
+
} & ComponentOptionsBase<Readonly< RadioProps> & Readonly<{
|
|
608
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
609
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
610
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
611
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
612
|
+
change: (val: string | number | boolean | undefined) => void;
|
|
613
|
+
}, string, {
|
|
614
|
+
value: string | number | boolean;
|
|
615
|
+
label: string | number | boolean;
|
|
616
|
+
disabled: boolean;
|
|
617
|
+
modelValue: string | number | boolean;
|
|
618
|
+
border: boolean;
|
|
619
|
+
name: string;
|
|
620
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
621
|
+
$slots: {
|
|
622
|
+
default?: (props: {}) => any;
|
|
623
|
+
};
|
|
624
|
+
}) & ObjectPlugin & {
|
|
625
|
+
setPropsDefaults: (defaults: Partial<{
|
|
626
|
+
readonly border?: boolean | undefined;
|
|
627
|
+
readonly modelValue?: string | number | boolean | undefined;
|
|
628
|
+
readonly size?: ComponentSize | undefined;
|
|
629
|
+
readonly disabled?: boolean | undefined;
|
|
630
|
+
readonly label?: string | number | boolean | undefined;
|
|
631
|
+
readonly value?: string | number | boolean | undefined;
|
|
632
|
+
readonly name?: string | undefined;
|
|
633
|
+
readonly onChange?: ((val: string | number | boolean | undefined) => any) | undefined | undefined;
|
|
634
|
+
readonly "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined | undefined;
|
|
635
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps>) => void;
|
|
636
|
+
} & {
|
|
637
|
+
RadioButton: {
|
|
638
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< RadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
639
|
+
value: string | number | boolean;
|
|
640
|
+
label: string | number | boolean;
|
|
641
|
+
disabled: boolean;
|
|
642
|
+
modelValue: string | number | boolean;
|
|
643
|
+
name: string;
|
|
644
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
645
|
+
P: {};
|
|
646
|
+
B: {};
|
|
647
|
+
D: {};
|
|
648
|
+
C: {};
|
|
649
|
+
M: {};
|
|
650
|
+
Defaults: {};
|
|
651
|
+
}, Readonly< RadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
652
|
+
value: string | number | boolean;
|
|
653
|
+
label: string | number | boolean;
|
|
654
|
+
disabled: boolean;
|
|
655
|
+
modelValue: string | number | boolean;
|
|
656
|
+
name: string;
|
|
657
|
+
}>;
|
|
658
|
+
__isFragment?: never;
|
|
659
|
+
__isTeleport?: never;
|
|
660
|
+
__isSuspense?: never;
|
|
661
|
+
} & ComponentOptionsBase<Readonly< RadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
662
|
+
value: string | number | boolean;
|
|
663
|
+
label: string | number | boolean;
|
|
664
|
+
disabled: boolean;
|
|
665
|
+
modelValue: string | number | boolean;
|
|
666
|
+
name: string;
|
|
667
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
668
|
+
$slots: {
|
|
669
|
+
default?: (props: {}) => any;
|
|
670
|
+
};
|
|
671
|
+
});
|
|
672
|
+
RadioGroup: {
|
|
673
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< RadioGroupProps> & Readonly<{
|
|
674
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
675
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
676
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
677
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
678
|
+
change: (val: string | number | boolean | undefined) => void;
|
|
679
|
+
}, PublicProps, {
|
|
680
|
+
type: "radio" | "button";
|
|
681
|
+
fill: string;
|
|
682
|
+
props: radioOptionProp;
|
|
683
|
+
disabled: boolean;
|
|
684
|
+
validateEvent: boolean;
|
|
685
|
+
modelValue: string | number | boolean;
|
|
686
|
+
id: string;
|
|
687
|
+
name: string;
|
|
688
|
+
textColor: string;
|
|
689
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
690
|
+
P: {};
|
|
691
|
+
B: {};
|
|
692
|
+
D: {};
|
|
693
|
+
C: {};
|
|
694
|
+
M: {};
|
|
695
|
+
Defaults: {};
|
|
696
|
+
}, Readonly< RadioGroupProps> & Readonly<{
|
|
697
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
698
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
699
|
+
}>, {}, {}, {}, {}, {
|
|
700
|
+
type: "radio" | "button";
|
|
701
|
+
fill: string;
|
|
702
|
+
props: radioOptionProp;
|
|
703
|
+
disabled: boolean;
|
|
704
|
+
validateEvent: boolean;
|
|
705
|
+
modelValue: string | number | boolean;
|
|
706
|
+
id: string;
|
|
707
|
+
name: string;
|
|
708
|
+
textColor: string;
|
|
709
|
+
}>;
|
|
710
|
+
__isFragment?: never;
|
|
711
|
+
__isTeleport?: never;
|
|
712
|
+
__isSuspense?: never;
|
|
713
|
+
} & ComponentOptionsBase<Readonly< RadioGroupProps> & Readonly<{
|
|
714
|
+
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
715
|
+
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
716
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
717
|
+
"update:modelValue": (val: string | number | boolean | undefined) => void;
|
|
718
|
+
change: (val: string | number | boolean | undefined) => void;
|
|
719
|
+
}, string, {
|
|
720
|
+
type: "radio" | "button";
|
|
721
|
+
fill: string;
|
|
722
|
+
props: radioOptionProp;
|
|
723
|
+
disabled: boolean;
|
|
724
|
+
validateEvent: boolean;
|
|
725
|
+
modelValue: string | number | boolean;
|
|
726
|
+
id: string;
|
|
727
|
+
name: string;
|
|
728
|
+
textColor: string;
|
|
729
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
730
|
+
$slots: {
|
|
731
|
+
default?: (props: {}) => any;
|
|
732
|
+
};
|
|
733
|
+
});
|
|
734
|
+
};
|
|
735
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
382
736
|
JTWPagination: DefineComponent<ExtractPropTypes<{
|
|
383
737
|
page: {
|
|
384
738
|
type: NumberConstructor;
|
|
@@ -565,5 +919,645 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
565
919
|
readonly hideOnSinglePage: boolean;
|
|
566
920
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
|
|
567
921
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
922
|
+
JTWBtn: DefineComponent<ExtractPropTypes<{
|
|
923
|
+
size: {
|
|
924
|
+
type: PropType< JTWBtnSizeType>;
|
|
925
|
+
default: "normal";
|
|
926
|
+
validator: (value: JTWBtnSizeType) => boolean;
|
|
927
|
+
};
|
|
928
|
+
type: {
|
|
929
|
+
type: PropType< JTWBtnTypeType>;
|
|
930
|
+
default: "button";
|
|
931
|
+
validator: (value: JTWBtnTypeType) => boolean;
|
|
932
|
+
};
|
|
933
|
+
color: {
|
|
934
|
+
type: PropType< JTWBtnColorType>;
|
|
935
|
+
default: string;
|
|
936
|
+
validator: (value: JTWBtnColorType) => boolean;
|
|
937
|
+
};
|
|
938
|
+
textColor: {
|
|
939
|
+
type: PropType< JTWBtnColorType>;
|
|
940
|
+
default: undefined;
|
|
941
|
+
validator: (value: JTWBtnColorType) => boolean;
|
|
942
|
+
};
|
|
943
|
+
outline: {
|
|
944
|
+
type: BooleanConstructor;
|
|
945
|
+
default: boolean;
|
|
946
|
+
};
|
|
947
|
+
flat: {
|
|
948
|
+
type: BooleanConstructor;
|
|
949
|
+
default: boolean;
|
|
950
|
+
};
|
|
951
|
+
label: {
|
|
952
|
+
type: StringConstructor;
|
|
953
|
+
default: string;
|
|
954
|
+
};
|
|
955
|
+
loading: {
|
|
956
|
+
type: BooleanConstructor;
|
|
957
|
+
default: boolean;
|
|
958
|
+
};
|
|
959
|
+
tips: {
|
|
960
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
961
|
+
default: string;
|
|
962
|
+
};
|
|
963
|
+
tooltipConfig: {
|
|
964
|
+
type: PropType< JTWBtnTooltipConfig>;
|
|
965
|
+
default: undefined;
|
|
966
|
+
};
|
|
967
|
+
}>, {
|
|
968
|
+
elBtnRef: Ref<({
|
|
969
|
+
$: ComponentInternalInstance;
|
|
970
|
+
$data: {};
|
|
971
|
+
$props: {
|
|
972
|
+
readonly size?: ComponentSize | undefined;
|
|
973
|
+
readonly disabled?: boolean | undefined;
|
|
974
|
+
readonly type?: ButtonType | undefined;
|
|
975
|
+
readonly icon?: IconPropType | undefined;
|
|
976
|
+
readonly nativeType?: ButtonNativeType | undefined;
|
|
977
|
+
readonly loading?: boolean | undefined;
|
|
978
|
+
readonly loadingIcon?: IconPropType | undefined;
|
|
979
|
+
readonly plain?: boolean | undefined;
|
|
980
|
+
readonly text?: boolean | undefined;
|
|
981
|
+
readonly link?: boolean | undefined;
|
|
982
|
+
readonly bg?: boolean | undefined;
|
|
983
|
+
readonly autofocus?: boolean | undefined;
|
|
984
|
+
readonly round?: boolean | undefined;
|
|
985
|
+
readonly circle?: boolean | undefined;
|
|
986
|
+
readonly dashed?: boolean | undefined;
|
|
987
|
+
readonly color?: string | undefined;
|
|
988
|
+
readonly dark?: boolean | undefined;
|
|
989
|
+
readonly autoInsertSpace?: boolean | undefined;
|
|
990
|
+
readonly tag?: (string | Component) | undefined;
|
|
991
|
+
readonly onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
992
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
993
|
+
$attrs: Attrs;
|
|
994
|
+
$refs: {
|
|
995
|
+
[x: string]: unknown;
|
|
996
|
+
};
|
|
997
|
+
$slots: Readonly<{
|
|
998
|
+
[name: string]: Slot<any> | undefined;
|
|
999
|
+
}>;
|
|
1000
|
+
$root: ComponentPublicInstance | null;
|
|
1001
|
+
$parent: ComponentPublicInstance | null;
|
|
1002
|
+
$host: Element | null;
|
|
1003
|
+
$emit: (event: "click", evt: MouseEvent) => void;
|
|
1004
|
+
$el: any;
|
|
1005
|
+
$options: ComponentOptionsBase<Readonly< ButtonProps> & Readonly<{
|
|
1006
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
1007
|
+
}>, {
|
|
1008
|
+
ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
1009
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
1010
|
+
type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
|
|
1011
|
+
disabled: ComputedRef<boolean>;
|
|
1012
|
+
shouldAddSpace: ComputedRef<boolean>;
|
|
1013
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1014
|
+
click: (evt: MouseEvent) => void;
|
|
1015
|
+
}, string, {
|
|
1016
|
+
type: ButtonType;
|
|
1017
|
+
disabled: boolean;
|
|
1018
|
+
text: boolean;
|
|
1019
|
+
round: boolean;
|
|
1020
|
+
dashed: boolean;
|
|
1021
|
+
plain: boolean;
|
|
1022
|
+
nativeType: ButtonNativeType;
|
|
1023
|
+
loadingIcon: IconPropType;
|
|
1024
|
+
autoInsertSpace: boolean;
|
|
1025
|
+
tag: string | Component;
|
|
1026
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1027
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1028
|
+
created?: (() => void) | (() => void)[];
|
|
1029
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1030
|
+
mounted?: (() => void) | (() => void)[];
|
|
1031
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1032
|
+
updated?: (() => void) | (() => void)[];
|
|
1033
|
+
activated?: (() => void) | (() => void)[];
|
|
1034
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1035
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1036
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1037
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1038
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1039
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1040
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1041
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1042
|
+
};
|
|
1043
|
+
$forceUpdate: () => void;
|
|
1044
|
+
$nextTick: nextTick;
|
|
1045
|
+
$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;
|
|
1046
|
+
} & Readonly<{
|
|
1047
|
+
type: ButtonType;
|
|
1048
|
+
disabled: boolean;
|
|
1049
|
+
text: boolean;
|
|
1050
|
+
round: boolean;
|
|
1051
|
+
dashed: boolean;
|
|
1052
|
+
plain: boolean;
|
|
1053
|
+
nativeType: ButtonNativeType;
|
|
1054
|
+
loadingIcon: IconPropType;
|
|
1055
|
+
autoInsertSpace: boolean;
|
|
1056
|
+
tag: string | Component;
|
|
1057
|
+
}> & Omit<Readonly< ButtonProps> & Readonly<{
|
|
1058
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
1059
|
+
}>, "text" | "size" | "type" | "disabled" | "nativeType" | "loadingIcon" | "plain" | "round" | "dashed" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef<{
|
|
1060
|
+
ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
1061
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
1062
|
+
type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
|
|
1063
|
+
disabled: ComputedRef<boolean>;
|
|
1064
|
+
shouldAddSpace: ComputedRef<boolean>;
|
|
1065
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1066
|
+
$slots: {
|
|
1067
|
+
loading?: (props: {}) => any;
|
|
1068
|
+
} & {
|
|
1069
|
+
icon?: (props: {}) => any;
|
|
1070
|
+
} & {
|
|
1071
|
+
default?: (props: {}) => any;
|
|
1072
|
+
};
|
|
1073
|
+
}) | null, ({
|
|
1074
|
+
$: ComponentInternalInstance;
|
|
1075
|
+
$data: {};
|
|
1076
|
+
$props: {
|
|
1077
|
+
readonly size?: ComponentSize | undefined;
|
|
1078
|
+
readonly disabled?: boolean | undefined;
|
|
1079
|
+
readonly type?: ButtonType | undefined;
|
|
1080
|
+
readonly icon?: IconPropType | undefined;
|
|
1081
|
+
readonly nativeType?: ButtonNativeType | undefined;
|
|
1082
|
+
readonly loading?: boolean | undefined;
|
|
1083
|
+
readonly loadingIcon?: IconPropType | undefined;
|
|
1084
|
+
readonly plain?: boolean | undefined;
|
|
1085
|
+
readonly text?: boolean | undefined;
|
|
1086
|
+
readonly link?: boolean | undefined;
|
|
1087
|
+
readonly bg?: boolean | undefined;
|
|
1088
|
+
readonly autofocus?: boolean | undefined;
|
|
1089
|
+
readonly round?: boolean | undefined;
|
|
1090
|
+
readonly circle?: boolean | undefined;
|
|
1091
|
+
readonly dashed?: boolean | undefined;
|
|
1092
|
+
readonly color?: string | undefined;
|
|
1093
|
+
readonly dark?: boolean | undefined;
|
|
1094
|
+
readonly autoInsertSpace?: boolean | undefined;
|
|
1095
|
+
readonly tag?: (string | Component) | undefined;
|
|
1096
|
+
readonly onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
1097
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1098
|
+
$attrs: Attrs;
|
|
1099
|
+
$refs: {
|
|
1100
|
+
[x: string]: unknown;
|
|
1101
|
+
};
|
|
1102
|
+
$slots: Readonly<{
|
|
1103
|
+
[name: string]: Slot<any> | undefined;
|
|
1104
|
+
}>;
|
|
1105
|
+
$root: ComponentPublicInstance | null;
|
|
1106
|
+
$parent: ComponentPublicInstance | null;
|
|
1107
|
+
$host: Element | null;
|
|
1108
|
+
$emit: (event: "click", evt: MouseEvent) => void;
|
|
1109
|
+
$el: any;
|
|
1110
|
+
$options: ComponentOptionsBase<Readonly< ButtonProps> & Readonly<{
|
|
1111
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
1112
|
+
}>, {
|
|
1113
|
+
ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
1114
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
1115
|
+
type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
|
|
1116
|
+
disabled: ComputedRef<boolean>;
|
|
1117
|
+
shouldAddSpace: ComputedRef<boolean>;
|
|
1118
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1119
|
+
click: (evt: MouseEvent) => void;
|
|
1120
|
+
}, string, {
|
|
1121
|
+
type: ButtonType;
|
|
1122
|
+
disabled: boolean;
|
|
1123
|
+
text: boolean;
|
|
1124
|
+
round: boolean;
|
|
1125
|
+
dashed: boolean;
|
|
1126
|
+
plain: boolean;
|
|
1127
|
+
nativeType: ButtonNativeType;
|
|
1128
|
+
loadingIcon: IconPropType;
|
|
1129
|
+
autoInsertSpace: boolean;
|
|
1130
|
+
tag: string | Component;
|
|
1131
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1132
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1133
|
+
created?: (() => void) | (() => void)[];
|
|
1134
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1135
|
+
mounted?: (() => void) | (() => void)[];
|
|
1136
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1137
|
+
updated?: (() => void) | (() => void)[];
|
|
1138
|
+
activated?: (() => void) | (() => void)[];
|
|
1139
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1140
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1141
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1142
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1143
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1144
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1145
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1146
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1147
|
+
};
|
|
1148
|
+
$forceUpdate: () => void;
|
|
1149
|
+
$nextTick: nextTick;
|
|
1150
|
+
$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;
|
|
1151
|
+
} & Readonly<{
|
|
1152
|
+
type: ButtonType;
|
|
1153
|
+
disabled: boolean;
|
|
1154
|
+
text: boolean;
|
|
1155
|
+
round: boolean;
|
|
1156
|
+
dashed: boolean;
|
|
1157
|
+
plain: boolean;
|
|
1158
|
+
nativeType: ButtonNativeType;
|
|
1159
|
+
loadingIcon: IconPropType;
|
|
1160
|
+
autoInsertSpace: boolean;
|
|
1161
|
+
tag: string | Component;
|
|
1162
|
+
}> & Omit<Readonly< ButtonProps> & Readonly<{
|
|
1163
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
1164
|
+
}>, "text" | "size" | "type" | "disabled" | "nativeType" | "loadingIcon" | "plain" | "round" | "dashed" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef<{
|
|
1165
|
+
ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
1166
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
1167
|
+
type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
|
|
1168
|
+
disabled: ComputedRef<boolean>;
|
|
1169
|
+
shouldAddSpace: ComputedRef<boolean>;
|
|
1170
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1171
|
+
$slots: {
|
|
1172
|
+
loading?: (props: {}) => any;
|
|
1173
|
+
} & {
|
|
1174
|
+
icon?: (props: {}) => any;
|
|
1175
|
+
} & {
|
|
1176
|
+
default?: (props: {}) => any;
|
|
1177
|
+
};
|
|
1178
|
+
}) | null>;
|
|
1179
|
+
tooltipContent: ComputedRef<string>;
|
|
1180
|
+
computedClass: ComputedRef<{
|
|
1181
|
+
'j-tw-btn': boolean;
|
|
1182
|
+
'j-tw-btn--large': boolean;
|
|
1183
|
+
'j-tw-btn--normal': boolean;
|
|
1184
|
+
'j-tw-btn--small': boolean;
|
|
1185
|
+
'j-tw-btn--button': boolean;
|
|
1186
|
+
'j-tw-btn--outline': boolean;
|
|
1187
|
+
'j-tw-btn--flat': boolean;
|
|
1188
|
+
'j-tw-btn--text': boolean;
|
|
1189
|
+
}>;
|
|
1190
|
+
computedStyle: ComputedRef<Record<string, string>>;
|
|
1191
|
+
mergedTooltipConfig: ComputedRef<{
|
|
1192
|
+
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
1193
|
+
effect: "dark" | "light";
|
|
1194
|
+
trigger: "hover" | "click" | "focus" | "contextmenu";
|
|
1195
|
+
showArrow: boolean;
|
|
1196
|
+
openDelay: number;
|
|
1197
|
+
closeDelay: number;
|
|
1198
|
+
offset: number;
|
|
1199
|
+
}>;
|
|
1200
|
+
handleClick: (e: MouseEvent) => void;
|
|
1201
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1202
|
+
click: (_e: MouseEvent) => true;
|
|
1203
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
1204
|
+
size: {
|
|
1205
|
+
type: PropType< JTWBtnSizeType>;
|
|
1206
|
+
default: "normal";
|
|
1207
|
+
validator: (value: JTWBtnSizeType) => boolean;
|
|
1208
|
+
};
|
|
1209
|
+
type: {
|
|
1210
|
+
type: PropType< JTWBtnTypeType>;
|
|
1211
|
+
default: "button";
|
|
1212
|
+
validator: (value: JTWBtnTypeType) => boolean;
|
|
1213
|
+
};
|
|
1214
|
+
color: {
|
|
1215
|
+
type: PropType< JTWBtnColorType>;
|
|
1216
|
+
default: string;
|
|
1217
|
+
validator: (value: JTWBtnColorType) => boolean;
|
|
1218
|
+
};
|
|
1219
|
+
textColor: {
|
|
1220
|
+
type: PropType< JTWBtnColorType>;
|
|
1221
|
+
default: undefined;
|
|
1222
|
+
validator: (value: JTWBtnColorType) => boolean;
|
|
1223
|
+
};
|
|
1224
|
+
outline: {
|
|
1225
|
+
type: BooleanConstructor;
|
|
1226
|
+
default: boolean;
|
|
1227
|
+
};
|
|
1228
|
+
flat: {
|
|
1229
|
+
type: BooleanConstructor;
|
|
1230
|
+
default: boolean;
|
|
1231
|
+
};
|
|
1232
|
+
label: {
|
|
1233
|
+
type: StringConstructor;
|
|
1234
|
+
default: string;
|
|
1235
|
+
};
|
|
1236
|
+
loading: {
|
|
1237
|
+
type: BooleanConstructor;
|
|
1238
|
+
default: boolean;
|
|
1239
|
+
};
|
|
1240
|
+
tips: {
|
|
1241
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
1242
|
+
default: string;
|
|
1243
|
+
};
|
|
1244
|
+
tooltipConfig: {
|
|
1245
|
+
type: PropType< JTWBtnTooltipConfig>;
|
|
1246
|
+
default: undefined;
|
|
1247
|
+
};
|
|
1248
|
+
}>> & Readonly<{
|
|
1249
|
+
onClick?: ((_e: MouseEvent) => any) | undefined;
|
|
1250
|
+
}>, {
|
|
1251
|
+
size: JTWBtnSizeType;
|
|
1252
|
+
type: JTWBtnTypeType;
|
|
1253
|
+
color: JTWBtnColorType;
|
|
1254
|
+
textColor: JTWBtnColorType;
|
|
1255
|
+
outline: boolean;
|
|
1256
|
+
flat: boolean;
|
|
1257
|
+
label: string;
|
|
1258
|
+
loading: boolean;
|
|
1259
|
+
tips: string | number;
|
|
1260
|
+
tooltipConfig: JTWBtnTooltipConfig;
|
|
1261
|
+
}, {}, {
|
|
1262
|
+
ElButton: {
|
|
1263
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ButtonProps> & Readonly<{
|
|
1264
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
1265
|
+
}>, {
|
|
1266
|
+
ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
1267
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
1268
|
+
type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
|
|
1269
|
+
disabled: ComputedRef<boolean>;
|
|
1270
|
+
shouldAddSpace: ComputedRef<boolean>;
|
|
1271
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1272
|
+
click: (evt: MouseEvent) => void;
|
|
1273
|
+
}, PublicProps, {
|
|
1274
|
+
type: ButtonType;
|
|
1275
|
+
disabled: boolean;
|
|
1276
|
+
text: boolean;
|
|
1277
|
+
round: boolean;
|
|
1278
|
+
dashed: boolean;
|
|
1279
|
+
plain: boolean;
|
|
1280
|
+
nativeType: ButtonNativeType;
|
|
1281
|
+
loadingIcon: IconPropType;
|
|
1282
|
+
autoInsertSpace: boolean;
|
|
1283
|
+
tag: string | Component;
|
|
1284
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1285
|
+
P: {};
|
|
1286
|
+
B: {};
|
|
1287
|
+
D: {};
|
|
1288
|
+
C: {};
|
|
1289
|
+
M: {};
|
|
1290
|
+
Defaults: {};
|
|
1291
|
+
}, Readonly< ButtonProps> & Readonly<{
|
|
1292
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
1293
|
+
}>, {
|
|
1294
|
+
ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
1295
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
1296
|
+
type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
|
|
1297
|
+
disabled: ComputedRef<boolean>;
|
|
1298
|
+
shouldAddSpace: ComputedRef<boolean>;
|
|
1299
|
+
}, {}, {}, {}, {
|
|
1300
|
+
type: ButtonType;
|
|
1301
|
+
disabled: boolean;
|
|
1302
|
+
text: boolean;
|
|
1303
|
+
round: boolean;
|
|
1304
|
+
dashed: boolean;
|
|
1305
|
+
plain: boolean;
|
|
1306
|
+
nativeType: ButtonNativeType;
|
|
1307
|
+
loadingIcon: IconPropType;
|
|
1308
|
+
autoInsertSpace: boolean;
|
|
1309
|
+
tag: string | Component;
|
|
1310
|
+
}>;
|
|
1311
|
+
__isFragment?: never;
|
|
1312
|
+
__isTeleport?: never;
|
|
1313
|
+
__isSuspense?: never;
|
|
1314
|
+
} & ComponentOptionsBase<Readonly< ButtonProps> & Readonly<{
|
|
1315
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
1316
|
+
}>, {
|
|
1317
|
+
ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
1318
|
+
size: ComputedRef<"" | "default" | "large" | "small">;
|
|
1319
|
+
type: ComputedRef<"default" | "" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
|
|
1320
|
+
disabled: ComputedRef<boolean>;
|
|
1321
|
+
shouldAddSpace: ComputedRef<boolean>;
|
|
1322
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1323
|
+
click: (evt: MouseEvent) => void;
|
|
1324
|
+
}, string, {
|
|
1325
|
+
type: ButtonType;
|
|
1326
|
+
disabled: boolean;
|
|
1327
|
+
text: boolean;
|
|
1328
|
+
round: boolean;
|
|
1329
|
+
dashed: boolean;
|
|
1330
|
+
plain: boolean;
|
|
1331
|
+
nativeType: ButtonNativeType;
|
|
1332
|
+
loadingIcon: IconPropType;
|
|
1333
|
+
autoInsertSpace: boolean;
|
|
1334
|
+
tag: string | Component;
|
|
1335
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1336
|
+
$slots: {
|
|
1337
|
+
loading?: (props: {}) => any;
|
|
1338
|
+
} & {
|
|
1339
|
+
icon?: (props: {}) => any;
|
|
1340
|
+
} & {
|
|
1341
|
+
default?: (props: {}) => any;
|
|
1342
|
+
};
|
|
1343
|
+
}) & ObjectPlugin & {
|
|
1344
|
+
setPropsDefaults: (defaults: Partial<{
|
|
1345
|
+
readonly size?: ComponentSize | undefined;
|
|
1346
|
+
readonly disabled?: boolean | undefined;
|
|
1347
|
+
readonly type?: ButtonType | undefined;
|
|
1348
|
+
readonly icon?: IconPropType | undefined;
|
|
1349
|
+
readonly nativeType?: ButtonNativeType | undefined;
|
|
1350
|
+
readonly loading?: boolean | undefined;
|
|
1351
|
+
readonly loadingIcon?: IconPropType | undefined;
|
|
1352
|
+
readonly plain?: boolean | undefined;
|
|
1353
|
+
readonly text?: boolean | undefined;
|
|
1354
|
+
readonly link?: boolean | undefined;
|
|
1355
|
+
readonly bg?: boolean | undefined;
|
|
1356
|
+
readonly autofocus?: boolean | undefined;
|
|
1357
|
+
readonly round?: boolean | undefined;
|
|
1358
|
+
readonly circle?: boolean | undefined;
|
|
1359
|
+
readonly dashed?: boolean | undefined;
|
|
1360
|
+
readonly color?: string | undefined;
|
|
1361
|
+
readonly dark?: boolean | undefined;
|
|
1362
|
+
readonly autoInsertSpace?: boolean | undefined;
|
|
1363
|
+
readonly tag?: (string | Component) | undefined;
|
|
1364
|
+
readonly onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
1365
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps>) => void;
|
|
1366
|
+
} & {
|
|
1367
|
+
ButtonGroup: {
|
|
1368
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
1369
|
+
type: "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger";
|
|
1370
|
+
direction: "horizontal" | "vertical";
|
|
1371
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1372
|
+
P: {};
|
|
1373
|
+
B: {};
|
|
1374
|
+
D: {};
|
|
1375
|
+
C: {};
|
|
1376
|
+
M: {};
|
|
1377
|
+
Defaults: {};
|
|
1378
|
+
}, Readonly< ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
1379
|
+
type: "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger";
|
|
1380
|
+
direction: "horizontal" | "vertical";
|
|
1381
|
+
}>;
|
|
1382
|
+
__isFragment?: never;
|
|
1383
|
+
__isTeleport?: never;
|
|
1384
|
+
__isSuspense?: never;
|
|
1385
|
+
} & ComponentOptionsBase<Readonly< ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1386
|
+
type: "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger";
|
|
1387
|
+
direction: "horizontal" | "vertical";
|
|
1388
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1389
|
+
$slots: {
|
|
1390
|
+
default?: (props: {}) => any;
|
|
1391
|
+
};
|
|
1392
|
+
});
|
|
1393
|
+
};
|
|
1394
|
+
ElTooltip: SFCWithInstall<{
|
|
1395
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< UseTooltipProps> & Readonly<{
|
|
1396
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
1397
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1398
|
+
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
1399
|
+
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
1400
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
1401
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
1402
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
1403
|
+
}>, {
|
|
1404
|
+
popperRef: Ref< PopperInstance | undefined, PopperInstance | undefined>;
|
|
1405
|
+
contentRef: Ref< TooltipContentInstance | undefined, TooltipContentInstance | undefined>;
|
|
1406
|
+
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
1407
|
+
updatePopper: () => void;
|
|
1408
|
+
onOpen: (event?: Event, delay?: number) => void;
|
|
1409
|
+
onClose: (event?: Event, delay?: number) => void;
|
|
1410
|
+
hide: (event?: Event) => void;
|
|
1411
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1412
|
+
close: (...args: any[]) => void;
|
|
1413
|
+
"update:visible": (...args: any[]) => void;
|
|
1414
|
+
"before-show": (...args: any[]) => void;
|
|
1415
|
+
"before-hide": (...args: any[]) => void;
|
|
1416
|
+
show: (...args: any[]) => void;
|
|
1417
|
+
hide: (...args: any[]) => void;
|
|
1418
|
+
open: (...args: any[]) => void;
|
|
1419
|
+
}, PublicProps, {
|
|
1420
|
+
effect: PopperEffect;
|
|
1421
|
+
placement: Placement;
|
|
1422
|
+
popperStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
1423
|
+
teleported: boolean;
|
|
1424
|
+
visible: boolean | null;
|
|
1425
|
+
style: string | false | CSSProperties | StyleValue[] | null;
|
|
1426
|
+
enterable: boolean;
|
|
1427
|
+
pure: boolean;
|
|
1428
|
+
focusOnShow: boolean;
|
|
1429
|
+
trapping: boolean;
|
|
1430
|
+
stopPopperMouseEvent: boolean;
|
|
1431
|
+
virtualTriggering: boolean;
|
|
1432
|
+
loop: boolean;
|
|
1433
|
+
boundariesPadding: number;
|
|
1434
|
+
gpuAcceleration: boolean;
|
|
1435
|
+
offset: number;
|
|
1436
|
+
popperOptions: Partial< Options>;
|
|
1437
|
+
strategy: "absolute" | "fixed";
|
|
1438
|
+
arrowOffset: number;
|
|
1439
|
+
showArrow: boolean;
|
|
1440
|
+
role: "dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree";
|
|
1441
|
+
content: string;
|
|
1442
|
+
showAfter: number;
|
|
1443
|
+
hideAfter: number;
|
|
1444
|
+
autoClose: number;
|
|
1445
|
+
trigger: Arrayable<TooltipTriggerType>;
|
|
1446
|
+
triggerKeys: string[];
|
|
1447
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1448
|
+
P: {};
|
|
1449
|
+
B: {};
|
|
1450
|
+
D: {};
|
|
1451
|
+
C: {};
|
|
1452
|
+
M: {};
|
|
1453
|
+
Defaults: {};
|
|
1454
|
+
}, Readonly< UseTooltipProps> & Readonly<{
|
|
1455
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
1456
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1457
|
+
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
1458
|
+
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
1459
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
1460
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
1461
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
1462
|
+
}>, {
|
|
1463
|
+
popperRef: Ref< PopperInstance | undefined, PopperInstance | undefined>;
|
|
1464
|
+
contentRef: Ref< TooltipContentInstance | undefined, TooltipContentInstance | undefined>;
|
|
1465
|
+
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
1466
|
+
updatePopper: () => void;
|
|
1467
|
+
onOpen: (event?: Event, delay?: number) => void;
|
|
1468
|
+
onClose: (event?: Event, delay?: number) => void;
|
|
1469
|
+
hide: (event?: Event) => void;
|
|
1470
|
+
}, {}, {}, {}, {
|
|
1471
|
+
effect: PopperEffect;
|
|
1472
|
+
placement: Placement;
|
|
1473
|
+
popperStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
1474
|
+
teleported: boolean;
|
|
1475
|
+
visible: boolean | null;
|
|
1476
|
+
style: string | false | CSSProperties | StyleValue[] | null;
|
|
1477
|
+
enterable: boolean;
|
|
1478
|
+
pure: boolean;
|
|
1479
|
+
focusOnShow: boolean;
|
|
1480
|
+
trapping: boolean;
|
|
1481
|
+
stopPopperMouseEvent: boolean;
|
|
1482
|
+
virtualTriggering: boolean;
|
|
1483
|
+
loop: boolean;
|
|
1484
|
+
boundariesPadding: number;
|
|
1485
|
+
gpuAcceleration: boolean;
|
|
1486
|
+
offset: number;
|
|
1487
|
+
popperOptions: Partial< Options>;
|
|
1488
|
+
strategy: "absolute" | "fixed";
|
|
1489
|
+
arrowOffset: number;
|
|
1490
|
+
showArrow: boolean;
|
|
1491
|
+
role: "dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree";
|
|
1492
|
+
content: string;
|
|
1493
|
+
showAfter: number;
|
|
1494
|
+
hideAfter: number;
|
|
1495
|
+
autoClose: number;
|
|
1496
|
+
trigger: Arrayable<TooltipTriggerType>;
|
|
1497
|
+
triggerKeys: string[];
|
|
1498
|
+
}>;
|
|
1499
|
+
__isFragment?: never;
|
|
1500
|
+
__isTeleport?: never;
|
|
1501
|
+
__isSuspense?: never;
|
|
1502
|
+
} & ComponentOptionsBase<Readonly< UseTooltipProps> & Readonly<{
|
|
1503
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
1504
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1505
|
+
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
1506
|
+
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
1507
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
1508
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
1509
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
1510
|
+
}>, {
|
|
1511
|
+
popperRef: Ref< PopperInstance | undefined, PopperInstance | undefined>;
|
|
1512
|
+
contentRef: Ref< TooltipContentInstance | undefined, TooltipContentInstance | undefined>;
|
|
1513
|
+
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
1514
|
+
updatePopper: () => void;
|
|
1515
|
+
onOpen: (event?: Event, delay?: number) => void;
|
|
1516
|
+
onClose: (event?: Event, delay?: number) => void;
|
|
1517
|
+
hide: (event?: Event) => void;
|
|
1518
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1519
|
+
close: (...args: any[]) => void;
|
|
1520
|
+
"update:visible": (...args: any[]) => void;
|
|
1521
|
+
"before-show": (...args: any[]) => void;
|
|
1522
|
+
"before-hide": (...args: any[]) => void;
|
|
1523
|
+
show: (...args: any[]) => void;
|
|
1524
|
+
hide: (...args: any[]) => void;
|
|
1525
|
+
open: (...args: any[]) => void;
|
|
1526
|
+
}, string, {
|
|
1527
|
+
effect: PopperEffect;
|
|
1528
|
+
placement: Placement;
|
|
1529
|
+
popperStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
1530
|
+
teleported: boolean;
|
|
1531
|
+
visible: boolean | null;
|
|
1532
|
+
style: string | false | CSSProperties | StyleValue[] | null;
|
|
1533
|
+
enterable: boolean;
|
|
1534
|
+
pure: boolean;
|
|
1535
|
+
focusOnShow: boolean;
|
|
1536
|
+
trapping: boolean;
|
|
1537
|
+
stopPopperMouseEvent: boolean;
|
|
1538
|
+
virtualTriggering: boolean;
|
|
1539
|
+
loop: boolean;
|
|
1540
|
+
boundariesPadding: number;
|
|
1541
|
+
gpuAcceleration: boolean;
|
|
1542
|
+
offset: number;
|
|
1543
|
+
popperOptions: Partial< Options>;
|
|
1544
|
+
strategy: "absolute" | "fixed";
|
|
1545
|
+
arrowOffset: number;
|
|
1546
|
+
showArrow: boolean;
|
|
1547
|
+
role: "dialog" | "grid" | "group" | "listbox" | "menu" | "navigation" | "tooltip" | "tree";
|
|
1548
|
+
content: string;
|
|
1549
|
+
showAfter: number;
|
|
1550
|
+
hideAfter: number;
|
|
1551
|
+
autoClose: number;
|
|
1552
|
+
trigger: Arrayable<TooltipTriggerType>;
|
|
1553
|
+
triggerKeys: string[];
|
|
1554
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1555
|
+
$slots: {
|
|
1556
|
+
default?: (props: {}) => any;
|
|
1557
|
+
} & {
|
|
1558
|
+
content?: (props: {}) => any;
|
|
1559
|
+
};
|
|
1560
|
+
})>;
|
|
1561
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
568
1562
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
569
1563
|
export default _default;
|