rtcpts 0.0.75 → 0.0.77
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/component-types.d.ts +8 -0
- package/dist/components/j-c-copy/types.d.ts +5 -6
- package/dist/components/j-c-duo-list-editor/types.d.ts +6 -5
- package/dist/components/j-c-editable-proxy/index.d.ts +7 -6
- package/dist/components/j-c-editable-proxy/types.d.ts +5 -4
- package/dist/components/j-c-fallback/types.d.ts +5 -6
- package/dist/components/j-c-foldable-list/types.d.ts +5 -6
- package/dist/components/j-c-format-lookup/types.d.ts +5 -6
- package/dist/components/j-c-list-editor/types.d.ts +5 -4
- package/dist/components/j-c-more-menu/index.d.ts +7 -6
- package/dist/components/j-c-more-menu/types.d.ts +7 -4
- package/dist/components/j-c-nested-select/types.d.ts +24 -2
- package/dist/components/j-c-org-select/types.d.ts +5 -4
- package/dist/components/j-c-permission/index.d.ts +2 -3
- package/dist/components/j-c-permission/types.d.ts +11 -11
- package/dist/components/j-c-platform/types.d.ts +5 -6
- package/dist/components/j-c-table/types.d.ts +5 -6
- package/dist/components/j-c-tabs/types.d.ts +5 -4
- package/dist/components/j-c-title-line/types.d.ts +5 -6
- package/dist/components/j-c-tooltip/types.d.ts +5 -3
- package/dist/components/j-c-tooltip-ellipsis/types.d.ts +5 -3
- package/dist/components/j-c-tree/component.d.ts +277 -0
- package/dist/components/j-c-tree/types.d.ts +6 -4
- package/dist/components/j-c-tree-select/types.d.ts +5 -4
- package/dist/components/j-ch-bar/types.d.ts +6 -6
- package/dist/components/j-ch-bar-line/types.d.ts +6 -3
- package/dist/components/j-ch-bubble/types.d.ts +6 -3
- package/dist/components/j-ch-line/types.d.ts +11 -3
- package/dist/components/j-ch-pie-doughnut/types.d.ts +6 -3
- package/dist/components/j-ch-radar/types.d.ts +6 -3
- package/dist/components/j-q-autocomplete/types.d.ts +6 -4
- package/dist/components/j-q-button/types.d.ts +6 -4
- package/dist/components/j-q-button-dropdown/types.d.ts +6 -4
- package/dist/components/j-q-checkbox/types.d.ts +6 -4
- package/dist/components/j-q-confirm/types.d.ts +6 -4
- package/dist/components/j-q-confirm-dialog/component.d.ts +335 -0
- package/dist/components/j-q-confirm-dialog/index.d.ts +0 -321
- package/dist/components/j-q-confirm-dialog/types.d.ts +79 -1
- package/dist/components/j-q-date/types.d.ts +7 -4
- package/dist/components/j-q-date-month/types.d.ts +6 -4
- package/dist/components/j-q-date-year/types.d.ts +6 -4
- package/dist/components/j-q-datetime/types.d.ts +7 -7
- package/dist/components/j-q-detail-list/types.d.ts +6 -3
- package/dist/components/j-q-dialog/component.d.ts +409 -0
- package/dist/components/j-q-dialog/types.d.ts +4 -3
- package/dist/components/j-q-file/types.d.ts +3 -3
- package/dist/components/j-q-form-label/types.d.ts +6 -4
- package/dist/components/j-q-input/types.d.ts +6 -4
- package/dist/components/j-q-input-recognize/types.d.ts +6 -4
- package/dist/components/j-q-new-value/types.d.ts +6 -4
- package/dist/components/j-q-option-group/types.d.ts +6 -4
- package/dist/components/j-q-pagination/component.d.ts +92 -0
- package/dist/components/j-q-pagination/types.d.ts +6 -4
- package/dist/components/j-q-popover/types.d.ts +6 -4
- package/dist/components/j-q-search-form/types.d.ts +6 -4
- package/dist/components/j-q-select/types.d.ts +6 -4
- package/dist/components/j-q-table/index.d.ts +5 -2
- package/dist/components/j-q-table/types.d.ts +6 -4
- package/dist/components/j-q-tooltip/types.d.ts +6 -4
- package/dist/global.d.ts +115 -190
- package/dist/index.css +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.mjs +72 -25
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +332 -327
- package/dist/utils/generated-component-names.d.ts +9 -0
- package/dist/utils/resolver.d.ts +3 -3
- package/dist/vue-shim.d.ts +6 -0
- package/package.json +9 -5
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, VNode, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ClosePopup, QCard, QCardSection, QDialog, QInnerLoading, QIcon, ComponentConstructor, QBtn } from 'quasar';
|
|
3
|
+
import { t } from '../../composables/useI18n.ts';
|
|
4
|
+
import { JQButtonSizeType, JQButtonTypeType, JQButtonSlots } from '../j-q-button/index';
|
|
5
|
+
import { JCTooltipProps, JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../..';
|
|
6
|
+
type DialogPosition = 'standard' | 'right' | 'top' | 'bottom' | 'left';
|
|
7
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
8
|
+
allowFocusOutside: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
showFooter: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
showConfirm: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
component: {};
|
|
21
|
+
content: {};
|
|
22
|
+
componentBind: {
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
};
|
|
25
|
+
componentOn: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
};
|
|
28
|
+
closeOnEsc: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
closeOnMask: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
dialogId: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
position: {
|
|
40
|
+
type: PropType<DialogPosition>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
showHeader: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
title: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
};
|
|
50
|
+
maxWidth: {
|
|
51
|
+
type: PropType<string | number>;
|
|
52
|
+
};
|
|
53
|
+
minHeight: {
|
|
54
|
+
type: PropType<string | number>;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
dialogClass: {
|
|
58
|
+
type: PropType<string | string[] | Record<string, boolean>>;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
}>, {
|
|
62
|
+
persistent: ComputedRef<boolean>;
|
|
63
|
+
dynamicCompRef: Ref<null, null>;
|
|
64
|
+
cancelText: Ref<string, string>;
|
|
65
|
+
confirmText: Ref<string, string>;
|
|
66
|
+
visible: Ref<boolean, boolean>;
|
|
67
|
+
getDataLoading: Ref<boolean, boolean>;
|
|
68
|
+
computedComponentBind: ComputedRef<{
|
|
69
|
+
dialogInstance: any;
|
|
70
|
+
}>;
|
|
71
|
+
computedDialogWidth: ComputedRef<Record<string, string>>;
|
|
72
|
+
open: () => void;
|
|
73
|
+
close: () => void;
|
|
74
|
+
destroy: () => void;
|
|
75
|
+
handleClickCancel: () => void;
|
|
76
|
+
handleClickConfirm: () => void;
|
|
77
|
+
confirmBtnVisible: Ref<boolean, boolean>;
|
|
78
|
+
setConfirmVisible: (data: boolean) => void;
|
|
79
|
+
rules: {
|
|
80
|
+
required: ((val?: any) => any)[];
|
|
81
|
+
arrMaxLength(max: number): ((val?: any) => any)[];
|
|
82
|
+
percentageRules(boundary?: ("left" | "right")[]): ((val?: any) => any)[];
|
|
83
|
+
file: ((val?: any) => any)[];
|
|
84
|
+
addressRules(types?: ("url" | "domain" | "ip" | "ip-port" | "path")[], required?: boolean): ((val?: any) => any)[];
|
|
85
|
+
email: ((val?: any) => any)[];
|
|
86
|
+
port: ((val?: any) => any)[];
|
|
87
|
+
rangeInt(min: number, max: number): ((val?: any) => any)[];
|
|
88
|
+
rangeNumber(min: number, max: number): ((val?: any) => any)[];
|
|
89
|
+
positiveInteger(includeZero?: boolean): ((val?: any) => any)[];
|
|
90
|
+
phone: ((val?: any) => any)[];
|
|
91
|
+
idCard: ((val?: any) => any)[];
|
|
92
|
+
bankCard: ((val?: any) => any)[];
|
|
93
|
+
carNumber: ((val?: any) => any)[];
|
|
94
|
+
url: ((val?: any) => any)[];
|
|
95
|
+
ip: ((val?: any) => any)[];
|
|
96
|
+
ipv6: ((val?: any) => any)[];
|
|
97
|
+
qq: ((val?: any) => any)[];
|
|
98
|
+
wechat: ((val?: any) => any)[];
|
|
99
|
+
postcode: ((val?: any) => any)[];
|
|
100
|
+
chinese: ((val?: any) => any)[];
|
|
101
|
+
containsChinese: ((val?: any) => any)[];
|
|
102
|
+
number: ((val?: any) => any)[];
|
|
103
|
+
numeric: ((val?: any) => any)[];
|
|
104
|
+
mac: ((val?: any) => any)[];
|
|
105
|
+
hexColor: ((val?: any) => any)[];
|
|
106
|
+
};
|
|
107
|
+
t: t;
|
|
108
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
109
|
+
allowFocusOutside: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
showFooter: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
showConfirm: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
component: {};
|
|
122
|
+
content: {};
|
|
123
|
+
componentBind: {
|
|
124
|
+
type: ObjectConstructor;
|
|
125
|
+
};
|
|
126
|
+
componentOn: {
|
|
127
|
+
type: ObjectConstructor;
|
|
128
|
+
};
|
|
129
|
+
closeOnEsc: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
closeOnMask: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
dialogId: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
};
|
|
140
|
+
position: {
|
|
141
|
+
type: PropType<DialogPosition>;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
showHeader: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
title: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
};
|
|
151
|
+
maxWidth: {
|
|
152
|
+
type: PropType<string | number>;
|
|
153
|
+
};
|
|
154
|
+
minHeight: {
|
|
155
|
+
type: PropType<string | number>;
|
|
156
|
+
default: number;
|
|
157
|
+
};
|
|
158
|
+
dialogClass: {
|
|
159
|
+
type: PropType<string | string[] | Record<string, boolean>>;
|
|
160
|
+
default: undefined;
|
|
161
|
+
};
|
|
162
|
+
}>> & Readonly<{}>, {
|
|
163
|
+
position: DialogPosition;
|
|
164
|
+
allowFocusOutside: boolean;
|
|
165
|
+
showFooter: boolean;
|
|
166
|
+
showConfirm: boolean;
|
|
167
|
+
closeOnEsc: boolean;
|
|
168
|
+
closeOnMask: boolean;
|
|
169
|
+
showHeader: boolean;
|
|
170
|
+
minHeight: string | number;
|
|
171
|
+
dialogClass: string | string[] | Record<string, boolean>;
|
|
172
|
+
}, SlotsType<{
|
|
173
|
+
title: void;
|
|
174
|
+
default: void;
|
|
175
|
+
}>, {
|
|
176
|
+
QDialog: ComponentConstructor<QDialog>;
|
|
177
|
+
QCard: ComponentConstructor<QCard>;
|
|
178
|
+
QCardSection: ComponentConstructor<QCardSection>;
|
|
179
|
+
QInnerLoading: ComponentConstructor<QInnerLoading>;
|
|
180
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
181
|
+
JQButton: DefineComponent<ExtractPropTypes<{
|
|
182
|
+
size: {
|
|
183
|
+
type: PropType< JQButtonSizeType>;
|
|
184
|
+
default: "large";
|
|
185
|
+
validator: (value: JQButtonSizeType) => boolean;
|
|
186
|
+
};
|
|
187
|
+
type: {
|
|
188
|
+
type: PropType< JQButtonTypeType>;
|
|
189
|
+
default: "primary";
|
|
190
|
+
validator: (value: JQButtonTypeType) => boolean;
|
|
191
|
+
};
|
|
192
|
+
label: {
|
|
193
|
+
type: StringConstructor;
|
|
194
|
+
default: string;
|
|
195
|
+
};
|
|
196
|
+
icon: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
default: undefined;
|
|
199
|
+
};
|
|
200
|
+
loading: {
|
|
201
|
+
type: BooleanConstructor;
|
|
202
|
+
default: boolean;
|
|
203
|
+
};
|
|
204
|
+
tips: {
|
|
205
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
206
|
+
default: string;
|
|
207
|
+
};
|
|
208
|
+
tooltipConfig: {
|
|
209
|
+
type: PropType<Omit< JCTooltipProps, "content">>;
|
|
210
|
+
default: undefined;
|
|
211
|
+
};
|
|
212
|
+
}>, {
|
|
213
|
+
click: (e: Event) => void;
|
|
214
|
+
computedClass: ComputedRef<{
|
|
215
|
+
[x: string]: boolean;
|
|
216
|
+
'j-q-button': boolean;
|
|
217
|
+
'j-q-button--primary': boolean;
|
|
218
|
+
'j-q-button--secondary': boolean;
|
|
219
|
+
'j-q-button--text'?: undefined;
|
|
220
|
+
} | {
|
|
221
|
+
'j-q-button--text': boolean;
|
|
222
|
+
'j-q-button'?: undefined;
|
|
223
|
+
'j-q-button--primary'?: undefined;
|
|
224
|
+
'j-q-button--secondary'?: undefined;
|
|
225
|
+
}>;
|
|
226
|
+
iconPadding: ComputedRef<{
|
|
227
|
+
'j-q-button-label': string | (() => any) | undefined;
|
|
228
|
+
}>;
|
|
229
|
+
mergedTooltipConfig: ComputedRef<{
|
|
230
|
+
modelValue?: boolean;
|
|
231
|
+
placement?: JCTooltipPlacementType;
|
|
232
|
+
effect?: JCTooltipEffectType;
|
|
233
|
+
trigger?: JCTooltipTriggerType;
|
|
234
|
+
disabled?: boolean;
|
|
235
|
+
showArrow?: boolean;
|
|
236
|
+
openDelay?: number;
|
|
237
|
+
closeDelay?: number;
|
|
238
|
+
maxWidth?: string;
|
|
239
|
+
offset?: number;
|
|
240
|
+
showOnFocus?: boolean;
|
|
241
|
+
}>;
|
|
242
|
+
qBtnRef: Ref< QBtn | null, QBtn | null>;
|
|
243
|
+
tooltipContent: ComputedRef<string>;
|
|
244
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
245
|
+
click: (e: Event) => true;
|
|
246
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
247
|
+
size: {
|
|
248
|
+
type: PropType< JQButtonSizeType>;
|
|
249
|
+
default: "large";
|
|
250
|
+
validator: (value: JQButtonSizeType) => boolean;
|
|
251
|
+
};
|
|
252
|
+
type: {
|
|
253
|
+
type: PropType< JQButtonTypeType>;
|
|
254
|
+
default: "primary";
|
|
255
|
+
validator: (value: JQButtonTypeType) => boolean;
|
|
256
|
+
};
|
|
257
|
+
label: {
|
|
258
|
+
type: StringConstructor;
|
|
259
|
+
default: string;
|
|
260
|
+
};
|
|
261
|
+
icon: {
|
|
262
|
+
type: StringConstructor;
|
|
263
|
+
default: undefined;
|
|
264
|
+
};
|
|
265
|
+
loading: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
default: boolean;
|
|
268
|
+
};
|
|
269
|
+
tips: {
|
|
270
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
271
|
+
default: string;
|
|
272
|
+
};
|
|
273
|
+
tooltipConfig: {
|
|
274
|
+
type: PropType<Omit< JCTooltipProps, "content">>;
|
|
275
|
+
default: undefined;
|
|
276
|
+
};
|
|
277
|
+
}>> & Readonly<{
|
|
278
|
+
onClick?: ((e: Event) => any) | undefined;
|
|
279
|
+
}>, {
|
|
280
|
+
type: JQButtonTypeType;
|
|
281
|
+
size: JQButtonSizeType;
|
|
282
|
+
label: string;
|
|
283
|
+
icon: string;
|
|
284
|
+
loading: boolean;
|
|
285
|
+
tooltipConfig: Omit< JCTooltipProps, "content">;
|
|
286
|
+
tips: string | number;
|
|
287
|
+
}, SlotsType< JQButtonSlots>, {
|
|
288
|
+
QBtn: ComponentConstructor<QBtn>;
|
|
289
|
+
JCTooltip: DefineComponent<ExtractPropTypes<{
|
|
290
|
+
content: {
|
|
291
|
+
type: StringConstructor;
|
|
292
|
+
default: string;
|
|
293
|
+
};
|
|
294
|
+
placement: {
|
|
295
|
+
type: PropType< JCTooltipPlacementType>;
|
|
296
|
+
default: string;
|
|
297
|
+
};
|
|
298
|
+
effect: {
|
|
299
|
+
type: PropType< JCTooltipEffectType>;
|
|
300
|
+
default: string;
|
|
301
|
+
};
|
|
302
|
+
trigger: {
|
|
303
|
+
type: PropType< JCTooltipTriggerType>;
|
|
304
|
+
default: string;
|
|
305
|
+
};
|
|
306
|
+
disabled: {
|
|
307
|
+
type: BooleanConstructor;
|
|
308
|
+
default: boolean;
|
|
309
|
+
};
|
|
310
|
+
showArrow: {
|
|
311
|
+
type: BooleanConstructor;
|
|
312
|
+
default: boolean;
|
|
313
|
+
};
|
|
314
|
+
openDelay: {
|
|
315
|
+
type: NumberConstructor;
|
|
316
|
+
default: number;
|
|
317
|
+
};
|
|
318
|
+
closeDelay: {
|
|
319
|
+
type: NumberConstructor;
|
|
320
|
+
default: number;
|
|
321
|
+
};
|
|
322
|
+
maxWidth: {
|
|
323
|
+
type: StringConstructor;
|
|
324
|
+
default: string;
|
|
325
|
+
};
|
|
326
|
+
offset: {
|
|
327
|
+
type: NumberConstructor;
|
|
328
|
+
default: number;
|
|
329
|
+
};
|
|
330
|
+
modelValue: {
|
|
331
|
+
type: BooleanConstructor;
|
|
332
|
+
default: undefined;
|
|
333
|
+
};
|
|
334
|
+
showOnFocus: {
|
|
335
|
+
type: BooleanConstructor;
|
|
336
|
+
default: boolean;
|
|
337
|
+
};
|
|
338
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
339
|
+
[key: string]: any;
|
|
340
|
+
}>[] | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
|
|
341
|
+
content: {
|
|
342
|
+
type: StringConstructor;
|
|
343
|
+
default: string;
|
|
344
|
+
};
|
|
345
|
+
placement: {
|
|
346
|
+
type: PropType< JCTooltipPlacementType>;
|
|
347
|
+
default: string;
|
|
348
|
+
};
|
|
349
|
+
effect: {
|
|
350
|
+
type: PropType< JCTooltipEffectType>;
|
|
351
|
+
default: string;
|
|
352
|
+
};
|
|
353
|
+
trigger: {
|
|
354
|
+
type: PropType< JCTooltipTriggerType>;
|
|
355
|
+
default: string;
|
|
356
|
+
};
|
|
357
|
+
disabled: {
|
|
358
|
+
type: BooleanConstructor;
|
|
359
|
+
default: boolean;
|
|
360
|
+
};
|
|
361
|
+
showArrow: {
|
|
362
|
+
type: BooleanConstructor;
|
|
363
|
+
default: boolean;
|
|
364
|
+
};
|
|
365
|
+
openDelay: {
|
|
366
|
+
type: NumberConstructor;
|
|
367
|
+
default: number;
|
|
368
|
+
};
|
|
369
|
+
closeDelay: {
|
|
370
|
+
type: NumberConstructor;
|
|
371
|
+
default: number;
|
|
372
|
+
};
|
|
373
|
+
maxWidth: {
|
|
374
|
+
type: StringConstructor;
|
|
375
|
+
default: string;
|
|
376
|
+
};
|
|
377
|
+
offset: {
|
|
378
|
+
type: NumberConstructor;
|
|
379
|
+
default: number;
|
|
380
|
+
};
|
|
381
|
+
modelValue: {
|
|
382
|
+
type: BooleanConstructor;
|
|
383
|
+
default: undefined;
|
|
384
|
+
};
|
|
385
|
+
showOnFocus: {
|
|
386
|
+
type: BooleanConstructor;
|
|
387
|
+
default: boolean;
|
|
388
|
+
};
|
|
389
|
+
}>> & Readonly<{
|
|
390
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
391
|
+
}>, {
|
|
392
|
+
modelValue: boolean;
|
|
393
|
+
content: string;
|
|
394
|
+
placement: JCTooltipPlacementType;
|
|
395
|
+
effect: JCTooltipEffectType;
|
|
396
|
+
trigger: JCTooltipTriggerType;
|
|
397
|
+
disabled: boolean;
|
|
398
|
+
showArrow: boolean;
|
|
399
|
+
openDelay: number;
|
|
400
|
+
closeDelay: number;
|
|
401
|
+
maxWidth: string;
|
|
402
|
+
offset: number;
|
|
403
|
+
showOnFocus: boolean;
|
|
404
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
405
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
406
|
+
}, {
|
|
407
|
+
ClosePopup: ClosePopup;
|
|
408
|
+
}, string, ComponentProvideOptions, true, {}, any>;
|
|
409
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
import { IEnterFileType } from './file';
|
|
3
3
|
import { formRules } from './form-rules';
|
|
4
4
|
/** 对话框位置类型 */
|
|
@@ -12,7 +12,8 @@ export declare const DialogPosition: {
|
|
|
12
12
|
/** 对话框位置类型 */
|
|
13
13
|
export type DialogPositionType = (typeof DialogPosition)[keyof typeof DialogPosition];
|
|
14
14
|
/**
|
|
15
|
-
* JQDialog
|
|
15
|
+
* JQDialog Props 接口
|
|
16
|
+
* @description 对话框组件,支持标准/侧边栏等多种弹出位置,可嵌入动态组件,提供标题栏和确认/取消操作按钮
|
|
16
17
|
*
|
|
17
18
|
* 使用方式:模板内挂载后通过 `ref` 调用 `open` / `close` 等(见 `JQDialogExpose`);命令式创建请用 `DialogProvider.register`(见 `index.ts` 的 `JQDialogRegisterProps`)。
|
|
18
19
|
*/
|
|
@@ -143,7 +144,7 @@ export interface JQDialogExpose {
|
|
|
143
144
|
beforeFile: (files: File[], config?: IEnterFileType) => File[] | undefined;
|
|
144
145
|
}
|
|
145
146
|
/** JQDialog 组件类型定义 */
|
|
146
|
-
export type JQDialogComponent =
|
|
147
|
+
export type JQDialogComponent = RtcptComponent<JQDialogProps, JQDialogExpose, JQDialogSlots>;
|
|
147
148
|
/** JQDialog 实例类型 - 用于 ref 类型定义 */
|
|
148
149
|
export type JQDialogInstance = InstanceType<JQDialogComponent> & JQDialogExpose;
|
|
149
150
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
import { QFieldProps } from 'quasar';
|
|
3
3
|
/** 文件模型值类型 */
|
|
4
4
|
export type FileModelValue = File[];
|
|
@@ -8,6 +8,7 @@ export type FileChangeFnReturn = File[] | void;
|
|
|
8
8
|
export type FileChangeFn = (files: File[]) => FileChangeFnReturn | Promise<FileChangeFnReturn>;
|
|
9
9
|
/**
|
|
10
10
|
* JQFile 组件 Props。
|
|
11
|
+
* @description 文件上传组件,支持点击上传和拖拽上传,可限制文件类型和大小
|
|
11
12
|
*
|
|
12
13
|
* 使用方式:通过 `v-model`(或 `:model-value` + `@update:modelValue`)绑定 `File[]`;`accept` 建议始终传入,与原生 `input[type=file]` 的 `accept` 语法一致(逗号分隔,如 `.pdf,image/*`)。可选 `#hint` 插槽在控件下方展示补充说明。
|
|
13
14
|
*
|
|
@@ -67,7 +68,6 @@ export interface JQFileProps {
|
|
|
67
68
|
}
|
|
68
69
|
/** JQFile Emits 接口 */
|
|
69
70
|
export interface JQFileEmits {
|
|
70
|
-
[key: string]: any;
|
|
71
71
|
/**
|
|
72
72
|
* 更新 modelValue 事件
|
|
73
73
|
* @param value 文件列表
|
|
@@ -84,7 +84,7 @@ export interface JQFileSlots {
|
|
|
84
84
|
export interface JQFileExpose {
|
|
85
85
|
}
|
|
86
86
|
/** JQFile 组件类型定义 */
|
|
87
|
-
export type JQFileComponent =
|
|
87
|
+
export type JQFileComponent = RtcptComponent<JQFileProps, JQFileExpose, JQFileSlots, {
|
|
88
88
|
'update:modelValue': (value: FileModelValue) => true;
|
|
89
89
|
}>;
|
|
90
90
|
/** JQFile 实例类型 - 用于 ref 类型定义 */
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** Vue 类类型 */
|
|
3
3
|
export type VueClass = string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* JQFormLabel Props 接口
|
|
6
|
+
* @description 表单标签组件,提供标签-内容的标准化表单布局,支持水平和垂直两种排列方向
|
|
7
|
+
*/
|
|
5
8
|
export interface JQFormLabelProps {
|
|
6
9
|
/**
|
|
7
10
|
* 标签文本
|
|
@@ -38,7 +41,6 @@ export interface JQFormLabelProps {
|
|
|
38
41
|
}
|
|
39
42
|
/** JQFormLabel Emits 接口 */
|
|
40
43
|
export interface JQFormLabelEmits {
|
|
41
|
-
[key: string]: any;
|
|
42
44
|
}
|
|
43
45
|
/** JQFormLabel Slots 接口 */
|
|
44
46
|
export interface JQFormLabelSlots {
|
|
@@ -56,7 +58,7 @@ export interface JQFormLabelSlots {
|
|
|
56
58
|
export interface JQFormLabelExpose {
|
|
57
59
|
}
|
|
58
60
|
/** JQFormLabel 组件类型定义 */
|
|
59
|
-
export type JQFormLabelComponent =
|
|
61
|
+
export type JQFormLabelComponent = RtcptComponent<JQFormLabelProps, JQFormLabelExpose, JQFormLabelSlots>;
|
|
60
62
|
/** JQFormLabel 实例类型 - 用于 ref 类型定义 */
|
|
61
63
|
export type JQFormLabelInstance = InstanceType<JQFormLabelComponent> & JQFormLabelExpose;
|
|
62
64
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
import { QInputProps } from 'quasar';
|
|
3
3
|
/** 输入框模型值类型 */
|
|
4
4
|
export type InputModelValue = QInputProps['modelValue'];
|
|
@@ -8,7 +8,10 @@ export type InputLimitFn = (value: InputModelValue) => boolean;
|
|
|
8
8
|
export type InputMaxlength = string | number | null;
|
|
9
9
|
/** 自定义输入类型 */
|
|
10
10
|
export type InputCustomType = 'text' | 'password' | 'secret';
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* JQInput Props 接口
|
|
13
|
+
* @description 文本输入框组件,支持密码模式、输入限制和自定义格式
|
|
14
|
+
*/
|
|
12
15
|
export interface JQInputProps {
|
|
13
16
|
/**
|
|
14
17
|
* 绑定值
|
|
@@ -80,7 +83,6 @@ export interface JQInputProps {
|
|
|
80
83
|
}
|
|
81
84
|
/** JQInput Emits 接口 */
|
|
82
85
|
export interface JQInputEmits {
|
|
83
|
-
[key: string]: any;
|
|
84
86
|
/**
|
|
85
87
|
* 变更事件
|
|
86
88
|
* @param value 新值
|
|
@@ -126,7 +128,7 @@ export interface JQInputExpose {
|
|
|
126
128
|
toggleVisibility: () => void;
|
|
127
129
|
}
|
|
128
130
|
/** JQInput 组件类型定义 */
|
|
129
|
-
export type JQInputComponent =
|
|
131
|
+
export type JQInputComponent = RtcptComponent<JQInputProps, JQInputExpose, JQInputSlots, {
|
|
130
132
|
change: (value: InputModelValue) => true;
|
|
131
133
|
'update:modelValue': (value: InputModelValue) => true;
|
|
132
134
|
}>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** 验证规则类型 */
|
|
3
3
|
export type RecognizeRule = RegExp | ((value: string) => boolean | string);
|
|
4
4
|
/** 输入框验证规则类型 */
|
|
5
5
|
export type InputRule = (value: string) => boolean | string;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* JQInputRecognize Props 接口
|
|
8
|
+
* @description 带识别功能的输入组件,支持按正则或函数规则识别和提取文本内容中的项目
|
|
9
|
+
*/
|
|
7
10
|
export interface JQInputRecognizeProps {
|
|
8
11
|
/**
|
|
9
12
|
* 绑定值
|
|
@@ -70,7 +73,6 @@ export interface JQInputRecognizeProps {
|
|
|
70
73
|
}
|
|
71
74
|
/** JQInputRecognize Emits 接口 */
|
|
72
75
|
export interface JQInputRecognizeEmits {
|
|
73
|
-
[key: string]: any;
|
|
74
76
|
/**
|
|
75
77
|
* 更新 modelValue 事件
|
|
76
78
|
* @param value 新值
|
|
@@ -112,7 +114,7 @@ export interface JQInputRecognizeExpose {
|
|
|
112
114
|
};
|
|
113
115
|
}
|
|
114
116
|
/** JQInputRecognize 组件类型定义 */
|
|
115
|
-
export type JQInputRecognizeComponent =
|
|
117
|
+
export type JQInputRecognizeComponent = RtcptComponent<JQInputRecognizeProps, JQInputRecognizeExpose, JQInputRecognizeSlots, {
|
|
116
118
|
'update:modelValue': (value: string) => true;
|
|
117
119
|
change: (value: string, recognizedItems: string[]) => true;
|
|
118
120
|
'update:recognizedItems': (items: string[]) => true;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
import { QInputProps, QSelectProps } from 'quasar';
|
|
3
3
|
/** 新值模型值类型 */
|
|
4
4
|
export type NewValueModelValue = QSelectProps['modelValue'];
|
|
5
5
|
/** 新值选项类型 */
|
|
6
6
|
export type NewValueOptions = QSelectProps['options'];
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* JQNewValue Props 接口
|
|
9
|
+
* @description 支持输入新值的多选组件,可从下拉选项中选择或自定义输入新值
|
|
10
|
+
*/
|
|
8
11
|
export interface JQNewValueProps {
|
|
9
12
|
/**
|
|
10
13
|
* 绑定值
|
|
@@ -60,7 +63,6 @@ export interface JQNewValueProps {
|
|
|
60
63
|
}
|
|
61
64
|
/** JQNewValue Emits 接口 */
|
|
62
65
|
export interface JQNewValueEmits {
|
|
63
|
-
[key: string]: any;
|
|
64
66
|
/**
|
|
65
67
|
* 变更事件
|
|
66
68
|
* @param value 新值
|
|
@@ -89,7 +91,7 @@ export interface JQNewValueExpose {
|
|
|
89
91
|
resetValidation: () => void;
|
|
90
92
|
}
|
|
91
93
|
/** JQNewValue 组件类型定义 */
|
|
92
|
-
export type JQNewValueComponent =
|
|
94
|
+
export type JQNewValueComponent = RtcptComponent<JQNewValueProps, JQNewValueExpose, JQNewValueSlots, {
|
|
93
95
|
change: (value: NewValueModelValue) => true;
|
|
94
96
|
'update:modelValue': (value: NewValueModelValue) => true;
|
|
95
97
|
}>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
import { QFieldProps, QOptionGroupProps } from 'quasar';
|
|
3
3
|
/** 选项组模型值类型 */
|
|
4
4
|
export type OptionGroupModelValue = QOptionGroupProps['modelValue'];
|
|
5
5
|
/** 选项组选项类型 */
|
|
6
6
|
export type OptionGroupOptions = QOptionGroupProps['options'];
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* JQOptionGroup Props 接口
|
|
9
|
+
* @description 选项组组件,封装 Quasar 单选/多选组,支持内联和块级展示,带表单验证功能
|
|
10
|
+
*/
|
|
8
11
|
export interface JQOptionGroupProps {
|
|
9
12
|
/**
|
|
10
13
|
* 绑定值
|
|
@@ -69,7 +72,6 @@ export interface JQOptionGroupProps {
|
|
|
69
72
|
}
|
|
70
73
|
/** JQOptionGroup Emits 接口 */
|
|
71
74
|
export interface JQOptionGroupEmits {
|
|
72
|
-
[key: string]: any;
|
|
73
75
|
/**
|
|
74
76
|
* 变更事件
|
|
75
77
|
* @param value 新值
|
|
@@ -91,7 +93,7 @@ export interface JQOptionGroupSlots {
|
|
|
91
93
|
export interface JQOptionGroupExpose {
|
|
92
94
|
}
|
|
93
95
|
/** JQOptionGroup 组件类型定义 */
|
|
94
|
-
export type JQOptionGroupComponent =
|
|
96
|
+
export type JQOptionGroupComponent = RtcptComponent<JQOptionGroupProps, JQOptionGroupExpose, JQOptionGroupSlots, {
|
|
95
97
|
change: (value: OptionGroupModelValue) => true;
|
|
96
98
|
'update:modelValue': (value: OptionGroupModelValue) => true;
|
|
97
99
|
}>;
|