rtcpts 0.0.47 → 0.0.48
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-c-nested-select/NestedMenuItem.d.ts +10 -0
- package/dist/components/j-c-nested-select/index.d.ts +19 -0
- package/dist/components/j-c-nested-select/types.d.ts +1 -0
- package/dist/components/j-c-org-select/index.d.ts +347 -0
- package/dist/components/j-c-org-select/types.d.ts +115 -0
- package/dist/components/j-q-confirm-dialog/index.d.ts +16 -11
- package/dist/global.d.ts +10 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +3057 -2827
- package/package.json +1 -1
|
@@ -3,6 +3,10 @@ import { PropType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOpti
|
|
|
3
3
|
import { NestedSelectOption } from './types';
|
|
4
4
|
type TModelValue = string | number | null | undefined;
|
|
5
5
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
allowParent: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
6
10
|
closeOnSelect: {
|
|
7
11
|
type: BooleanConstructor;
|
|
8
12
|
default: boolean;
|
|
@@ -19,9 +23,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
19
23
|
hasChildren: ComputedRef<boolean | undefined>;
|
|
20
24
|
handleClick: () => void;
|
|
21
25
|
handleSelect: (value: TModelValue) => void;
|
|
26
|
+
shouldClosePopup: ComputedRef<boolean>;
|
|
22
27
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
23
28
|
select: (value: TModelValue) => true;
|
|
24
29
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
30
|
+
allowParent: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
25
34
|
closeOnSelect: {
|
|
26
35
|
type: BooleanConstructor;
|
|
27
36
|
default: boolean;
|
|
@@ -38,6 +47,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
38
47
|
onSelect?: ((value: TModelValue) => any) | undefined;
|
|
39
48
|
}>, {
|
|
40
49
|
closeOnSelect: boolean;
|
|
50
|
+
allowParent: boolean;
|
|
41
51
|
selectedValue: TModelValue;
|
|
42
52
|
}, {}, {
|
|
43
53
|
QItem: ComponentConstructor<QItem>;
|
|
@@ -3,6 +3,10 @@ import { PropType, DefineComponent, ExtractPropTypes, ComputedRef, WritableCompu
|
|
|
3
3
|
import { NestedSelectOption } from './types';
|
|
4
4
|
type TModelValue = string | number | null | undefined;
|
|
5
5
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
allowParent: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
6
10
|
clearable: {
|
|
7
11
|
type: BooleanConstructor;
|
|
8
12
|
default: boolean;
|
|
@@ -70,6 +74,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
70
74
|
'update:modelValue': (value: TModelValue) => true;
|
|
71
75
|
change: (value: TModelValue) => true;
|
|
72
76
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
77
|
+
allowParent: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
73
81
|
clearable: {
|
|
74
82
|
type: BooleanConstructor;
|
|
75
83
|
default: boolean;
|
|
@@ -141,12 +149,17 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
141
149
|
popupContentClass: string;
|
|
142
150
|
closeOnSelect: boolean;
|
|
143
151
|
options: NestedSelectOption[];
|
|
152
|
+
allowParent: boolean;
|
|
144
153
|
customClass: string;
|
|
145
154
|
displayValueFn: (value: TModelValue, options: NestedSelectOption[]) => string;
|
|
146
155
|
ellipsis: boolean;
|
|
147
156
|
optionsOrigin: NestedSelectOption[];
|
|
148
157
|
}, {}, {
|
|
149
158
|
NestedMenuItem: DefineComponent<ExtractPropTypes<{
|
|
159
|
+
allowParent: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
150
163
|
closeOnSelect: {
|
|
151
164
|
type: BooleanConstructor;
|
|
152
165
|
default: boolean;
|
|
@@ -163,9 +176,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
163
176
|
hasChildren: ComputedRef<boolean | undefined>;
|
|
164
177
|
handleClick: () => void;
|
|
165
178
|
handleSelect: (value: string | number | null | undefined) => void;
|
|
179
|
+
shouldClosePopup: ComputedRef<boolean>;
|
|
166
180
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
167
181
|
select: (value: string | number | null | undefined) => true;
|
|
168
182
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
183
|
+
allowParent: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
default: boolean;
|
|
186
|
+
};
|
|
169
187
|
closeOnSelect: {
|
|
170
188
|
type: BooleanConstructor;
|
|
171
189
|
default: boolean;
|
|
@@ -182,6 +200,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
182
200
|
onSelect?: ((value: string | number | null | undefined) => any) | undefined;
|
|
183
201
|
}>, {
|
|
184
202
|
closeOnSelect: boolean;
|
|
203
|
+
allowParent: boolean;
|
|
185
204
|
selectedValue: string | number | null | undefined;
|
|
186
205
|
}, {}, {
|
|
187
206
|
QItem: ComponentConstructor<QItem>;
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { QFieldProps, QField, QIcon, QPopupProxy, QTree, ComponentConstructor } from 'quasar';
|
|
2
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableComputedRef, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { ModelValue, Option, ValueDisplayFn } from './types';
|
|
4
|
+
import { t } from '../../composables/useI18n.ts';
|
|
5
|
+
import { TooltipEffect, TooltipPlacement, TooltipTrigger } from '../..';
|
|
6
|
+
import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../j-c-tooltip/types';
|
|
7
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: PropType<ModelValue>;
|
|
10
|
+
};
|
|
11
|
+
clearIcon: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
clearable: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
dropdownIcon: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
filterable: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
label: {
|
|
28
|
+
type: PropType<QFieldProps["label"]>;
|
|
29
|
+
};
|
|
30
|
+
optionLabel: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
optionValue: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
options: {
|
|
39
|
+
type: PropType<Option[]>;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
outlined: {
|
|
43
|
+
type: PropType<QFieldProps["outlined"]>;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
rules: {
|
|
47
|
+
type: () => QFieldProps["rules"];
|
|
48
|
+
};
|
|
49
|
+
valueDisplayFn: {
|
|
50
|
+
type: PropType<ValueDisplayFn>;
|
|
51
|
+
};
|
|
52
|
+
readonly: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
disable: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
}>, {
|
|
61
|
+
t: t;
|
|
62
|
+
treeRef: Ref<QTree | null, QTree | null>;
|
|
63
|
+
filterInputRef: Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
64
|
+
computedValue: WritableComputedRef<ModelValue, ModelValue>;
|
|
65
|
+
computedValueDisplay: ComputedRef<string | undefined>;
|
|
66
|
+
treeSelected: WritableComputedRef<string | number | null, string | number | null>;
|
|
67
|
+
popupVisible: WritableComputedRef<boolean, boolean>;
|
|
68
|
+
inputValue: Ref<string, string>;
|
|
69
|
+
computedTreeOptions: ComputedRef<Option[]>;
|
|
70
|
+
onPopupShow: () => void;
|
|
71
|
+
handleClear: () => void;
|
|
72
|
+
handleClearClick: (e: Event) => void;
|
|
73
|
+
getFullValue: () => Option[] | undefined;
|
|
74
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
75
|
+
'update:modelValue': (value: ModelValue) => true;
|
|
76
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
77
|
+
modelValue: {
|
|
78
|
+
type: PropType<ModelValue>;
|
|
79
|
+
};
|
|
80
|
+
clearIcon: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
clearable: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
dropdownIcon: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
filterable: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
label: {
|
|
97
|
+
type: PropType<QFieldProps["label"]>;
|
|
98
|
+
};
|
|
99
|
+
optionLabel: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
optionValue: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
options: {
|
|
108
|
+
type: PropType<Option[]>;
|
|
109
|
+
default: () => never[];
|
|
110
|
+
};
|
|
111
|
+
outlined: {
|
|
112
|
+
type: PropType<QFieldProps["outlined"]>;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
rules: {
|
|
116
|
+
type: () => QFieldProps["rules"];
|
|
117
|
+
};
|
|
118
|
+
valueDisplayFn: {
|
|
119
|
+
type: PropType<ValueDisplayFn>;
|
|
120
|
+
};
|
|
121
|
+
readonly: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
disable: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
}>> & Readonly<{
|
|
130
|
+
"onUpdate:modelValue"?: ((value: ModelValue) => any) | undefined;
|
|
131
|
+
}>, {
|
|
132
|
+
disable: boolean;
|
|
133
|
+
outlined: boolean | undefined;
|
|
134
|
+
readonly: boolean;
|
|
135
|
+
clearable: boolean;
|
|
136
|
+
clearIcon: string;
|
|
137
|
+
dropdownIcon: string;
|
|
138
|
+
filterable: boolean;
|
|
139
|
+
options: Option[];
|
|
140
|
+
optionLabel: string;
|
|
141
|
+
optionValue: string;
|
|
142
|
+
}, SlotsType<{
|
|
143
|
+
'value-display': void;
|
|
144
|
+
}>, {
|
|
145
|
+
JCTooltipEllipsis: DefineComponent<ExtractPropTypes<{
|
|
146
|
+
content: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
contentStyle: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
default: string;
|
|
153
|
+
};
|
|
154
|
+
effect: {
|
|
155
|
+
type: PropType< TooltipEffect>;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
lines: {
|
|
159
|
+
type: NumberConstructor;
|
|
160
|
+
default: number;
|
|
161
|
+
validator: (value: number) => boolean;
|
|
162
|
+
};
|
|
163
|
+
maxWidth: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
offset: {
|
|
168
|
+
type: NumberConstructor;
|
|
169
|
+
default: number;
|
|
170
|
+
};
|
|
171
|
+
placement: {
|
|
172
|
+
type: PropType< TooltipPlacement>;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
}>, {
|
|
176
|
+
canShowTooltip: Ref<boolean, boolean>;
|
|
177
|
+
checkOverflow: (el: HTMLElement) => boolean;
|
|
178
|
+
computedStyle: ComputedRef<string>;
|
|
179
|
+
contentRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
180
|
+
ellipsisClass: ComputedRef<"ellipsis" | "ellipsis-multi">;
|
|
181
|
+
handleMouseEnter: () => void;
|
|
182
|
+
handleMouseLeave: () => void;
|
|
183
|
+
isHovering: Ref<boolean, boolean>;
|
|
184
|
+
tooltipVisible: Ref<boolean, boolean>;
|
|
185
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
186
|
+
content: {
|
|
187
|
+
type: StringConstructor;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
|
+
contentStyle: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
default: string;
|
|
193
|
+
};
|
|
194
|
+
effect: {
|
|
195
|
+
type: PropType< TooltipEffect>;
|
|
196
|
+
default: string;
|
|
197
|
+
};
|
|
198
|
+
lines: {
|
|
199
|
+
type: NumberConstructor;
|
|
200
|
+
default: number;
|
|
201
|
+
validator: (value: number) => boolean;
|
|
202
|
+
};
|
|
203
|
+
maxWidth: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
default: string;
|
|
206
|
+
};
|
|
207
|
+
offset: {
|
|
208
|
+
type: NumberConstructor;
|
|
209
|
+
default: number;
|
|
210
|
+
};
|
|
211
|
+
placement: {
|
|
212
|
+
type: PropType< TooltipPlacement>;
|
|
213
|
+
default: string;
|
|
214
|
+
};
|
|
215
|
+
}>> & Readonly<{}>, {
|
|
216
|
+
content: string;
|
|
217
|
+
placement: JCTooltipPlacementType;
|
|
218
|
+
effect: JCTooltipEffectType;
|
|
219
|
+
maxWidth: string;
|
|
220
|
+
offset: number;
|
|
221
|
+
lines: number;
|
|
222
|
+
contentStyle: string;
|
|
223
|
+
}, {}, {
|
|
224
|
+
JCTooltip: DefineComponent<ExtractPropTypes<{
|
|
225
|
+
content: {
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
default: string;
|
|
228
|
+
};
|
|
229
|
+
placement: {
|
|
230
|
+
type: PropType< TooltipPlacement>;
|
|
231
|
+
default: string;
|
|
232
|
+
};
|
|
233
|
+
effect: {
|
|
234
|
+
type: PropType< TooltipEffect>;
|
|
235
|
+
default: string;
|
|
236
|
+
};
|
|
237
|
+
trigger: {
|
|
238
|
+
type: PropType< TooltipTrigger>;
|
|
239
|
+
default: string;
|
|
240
|
+
};
|
|
241
|
+
disabled: {
|
|
242
|
+
type: BooleanConstructor;
|
|
243
|
+
default: boolean;
|
|
244
|
+
};
|
|
245
|
+
showArrow: {
|
|
246
|
+
type: BooleanConstructor;
|
|
247
|
+
default: boolean;
|
|
248
|
+
};
|
|
249
|
+
openDelay: {
|
|
250
|
+
type: NumberConstructor;
|
|
251
|
+
default: number;
|
|
252
|
+
};
|
|
253
|
+
closeDelay: {
|
|
254
|
+
type: NumberConstructor;
|
|
255
|
+
default: number;
|
|
256
|
+
};
|
|
257
|
+
maxWidth: {
|
|
258
|
+
type: StringConstructor;
|
|
259
|
+
default: string;
|
|
260
|
+
};
|
|
261
|
+
offset: {
|
|
262
|
+
type: NumberConstructor;
|
|
263
|
+
default: number;
|
|
264
|
+
};
|
|
265
|
+
modelValue: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
default: undefined;
|
|
268
|
+
};
|
|
269
|
+
}>, {
|
|
270
|
+
tooltipRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
271
|
+
popperRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
272
|
+
visible: Ref<boolean, boolean>;
|
|
273
|
+
currentPlacement: Ref<JCTooltipPlacementType, JCTooltipPlacementType>;
|
|
274
|
+
popperStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
275
|
+
arrowStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
276
|
+
handleMouseEnter: () => void;
|
|
277
|
+
handleMouseLeave: () => void;
|
|
278
|
+
handleClick: () => void;
|
|
279
|
+
handlePopperMouseEnter: () => void;
|
|
280
|
+
handlePopperMouseLeave: () => void;
|
|
281
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
|
|
282
|
+
content: {
|
|
283
|
+
type: StringConstructor;
|
|
284
|
+
default: string;
|
|
285
|
+
};
|
|
286
|
+
placement: {
|
|
287
|
+
type: PropType< TooltipPlacement>;
|
|
288
|
+
default: string;
|
|
289
|
+
};
|
|
290
|
+
effect: {
|
|
291
|
+
type: PropType< TooltipEffect>;
|
|
292
|
+
default: string;
|
|
293
|
+
};
|
|
294
|
+
trigger: {
|
|
295
|
+
type: PropType< TooltipTrigger>;
|
|
296
|
+
default: string;
|
|
297
|
+
};
|
|
298
|
+
disabled: {
|
|
299
|
+
type: BooleanConstructor;
|
|
300
|
+
default: boolean;
|
|
301
|
+
};
|
|
302
|
+
showArrow: {
|
|
303
|
+
type: BooleanConstructor;
|
|
304
|
+
default: boolean;
|
|
305
|
+
};
|
|
306
|
+
openDelay: {
|
|
307
|
+
type: NumberConstructor;
|
|
308
|
+
default: number;
|
|
309
|
+
};
|
|
310
|
+
closeDelay: {
|
|
311
|
+
type: NumberConstructor;
|
|
312
|
+
default: number;
|
|
313
|
+
};
|
|
314
|
+
maxWidth: {
|
|
315
|
+
type: StringConstructor;
|
|
316
|
+
default: string;
|
|
317
|
+
};
|
|
318
|
+
offset: {
|
|
319
|
+
type: NumberConstructor;
|
|
320
|
+
default: number;
|
|
321
|
+
};
|
|
322
|
+
modelValue: {
|
|
323
|
+
type: BooleanConstructor;
|
|
324
|
+
default: undefined;
|
|
325
|
+
};
|
|
326
|
+
}>> & Readonly<{
|
|
327
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
328
|
+
}>, {
|
|
329
|
+
modelValue: boolean;
|
|
330
|
+
content: string;
|
|
331
|
+
placement: JCTooltipPlacementType;
|
|
332
|
+
effect: JCTooltipEffectType;
|
|
333
|
+
trigger: JCTooltipTriggerType;
|
|
334
|
+
disabled: boolean;
|
|
335
|
+
showArrow: boolean;
|
|
336
|
+
openDelay: number;
|
|
337
|
+
closeDelay: number;
|
|
338
|
+
maxWidth: string;
|
|
339
|
+
offset: number;
|
|
340
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
341
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
342
|
+
QField: ComponentConstructor<QField>;
|
|
343
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
344
|
+
QPopupProxy: ComponentConstructor<QPopupProxy>;
|
|
345
|
+
QTree: ComponentConstructor<QTree>;
|
|
346
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
347
|
+
export default _default;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { QFieldProps } from 'quasar';
|
|
2
|
+
import { DefineComponent } from 'vue';
|
|
3
|
+
/** 模型值类型 */
|
|
4
|
+
export type ModelValue = (string | number)[];
|
|
5
|
+
/** 选项类型 */
|
|
6
|
+
export type Option = Record<string, any>;
|
|
7
|
+
/** 值显示函数类型 */
|
|
8
|
+
export type ValueDisplayFn = (value: ModelValue, options: Option[]) => string;
|
|
9
|
+
/** JCOrgSelect Props 接口 */
|
|
10
|
+
export interface JCOrgSelectProps {
|
|
11
|
+
/**
|
|
12
|
+
* 选中的节点值数组
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
15
|
+
modelValue?: ModelValue;
|
|
16
|
+
/**
|
|
17
|
+
* 清除图标
|
|
18
|
+
* @default 'app:clear'
|
|
19
|
+
*/
|
|
20
|
+
clearIcon?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 是否可清除
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
clearable?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 下拉图标
|
|
28
|
+
* @default 'expand_more'
|
|
29
|
+
*/
|
|
30
|
+
dropdownIcon?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 是否可筛选
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
filterable?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* 标签
|
|
38
|
+
* @default undefined
|
|
39
|
+
*/
|
|
40
|
+
label?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 选项标签字段
|
|
43
|
+
* @default 'label'
|
|
44
|
+
*/
|
|
45
|
+
optionLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 选项值字段
|
|
48
|
+
* @default 'value'
|
|
49
|
+
*/
|
|
50
|
+
optionValue?: string;
|
|
51
|
+
/**
|
|
52
|
+
* 树节点数据
|
|
53
|
+
* @default []
|
|
54
|
+
*/
|
|
55
|
+
options?: Option[];
|
|
56
|
+
/**
|
|
57
|
+
* 是否使用 outlined 样式
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
outlined?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* 验证规则
|
|
63
|
+
* @default undefined
|
|
64
|
+
*/
|
|
65
|
+
rules?: QFieldProps['rules'];
|
|
66
|
+
/**
|
|
67
|
+
* 自定义显示函数
|
|
68
|
+
* @default undefined
|
|
69
|
+
*/
|
|
70
|
+
valueDisplayFn?: ValueDisplayFn;
|
|
71
|
+
/**
|
|
72
|
+
* 是否只读
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
readonly?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* 是否禁用
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
disable?: boolean;
|
|
81
|
+
}
|
|
82
|
+
/** JCOrgSelect Emits 接口 */
|
|
83
|
+
export interface JCOrgSelectEmits {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
/**
|
|
86
|
+
* 数据更新事件
|
|
87
|
+
* @param value 更新后的值数组
|
|
88
|
+
*/
|
|
89
|
+
(e: 'update:modelValue', value: ModelValue): void;
|
|
90
|
+
}
|
|
91
|
+
/** JCOrgSelect Slots 接口 */
|
|
92
|
+
export interface JCOrgSelectSlots {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
/**
|
|
95
|
+
* 值显示插槽
|
|
96
|
+
*/
|
|
97
|
+
'value-display'?: () => any;
|
|
98
|
+
}
|
|
99
|
+
/** JCOrgSelect 暴露的方法和属性 */
|
|
100
|
+
export interface JCOrgSelectExpose {
|
|
101
|
+
/**
|
|
102
|
+
* 获取完整选项值
|
|
103
|
+
* @returns 完整的选项数组
|
|
104
|
+
*/
|
|
105
|
+
getFullValue: () => Option[] | undefined;
|
|
106
|
+
}
|
|
107
|
+
/** JCOrgSelect 组件类型定义 */
|
|
108
|
+
export type JCOrgSelectComponent = DefineComponent<JCOrgSelectProps, JCOrgSelectExpose, {}, JCOrgSelectSlots, JCOrgSelectEmits, {}, {}, {}>;
|
|
109
|
+
/** JCOrgSelect 实例类型 - 用于 ref 类型定义 */
|
|
110
|
+
export type JCOrgSelectInstance = InstanceType<JCOrgSelectComponent> & JCOrgSelectExpose;
|
|
111
|
+
/**
|
|
112
|
+
* 用于模板中的 Props 类型定义
|
|
113
|
+
*/
|
|
114
|
+
export interface JCOrgSelectTemplateProps extends JCOrgSelectProps {
|
|
115
|
+
}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { QVueGlobals } from 'quasar';
|
|
2
|
+
import { JQConfirmDialogShowParams, IJQConfirmDialog } from './types';
|
|
3
|
+
export type { JQConfirmDialogShowParams, IJQConfirmDialog } from './types';
|
|
4
|
+
declare class GlobalConfirm implements IJQConfirmDialog {
|
|
5
|
+
/**
|
|
6
|
+
* 设置 Quasar 实例(在 rtcptInit 中调用)
|
|
7
|
+
*/
|
|
8
|
+
setQuasarInstance(instance: QVueGlobals): void;
|
|
9
|
+
/**
|
|
10
|
+
* 弹出自定义确认对话框,返回一个 Promise,resolve(true) 表示确定,resolve(false) 表示取消/关闭。
|
|
11
|
+
*/
|
|
12
|
+
show({ title, color, content, confirmButtonText, cancelButtonText, showCancelButton, isDelete, icon, showClose }: JQConfirmDialogShowParams): Promise<boolean>;
|
|
13
|
+
}
|
|
14
|
+
declare const globalConfirm: GlobalConfirm;
|
|
15
|
+
export default globalConfirm;
|
|
16
|
+
tent: {
|
|
12
17
|
type: StringConstructor;
|
|
13
18
|
default: string;
|
|
14
19
|
};
|
package/dist/global.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { JChPieDoughnutProps, JChPieDoughnutSlots } from './components/j-ch-pie-
|
|
|
12
12
|
import { JChRadarProps, JChRadarSlots } from './components/j-ch-radar/types';
|
|
13
13
|
import { JCListEditorTemplateProps, JCListEditorSlots, JCListEditorEmits } from './components/j-c-list-editor/types';
|
|
14
14
|
import { JCNestedSelectProps, JCNestedSelectEmits } from './components/j-c-nested-select/types';
|
|
15
|
+
import { JCOrgSelectTemplateProps, JCOrgSelectSlots, JCOrgSelectEmits } from './components/j-c-org-select/types';
|
|
15
16
|
import { JCPermissionTemplateProps, JCPermissionSlots, JCPermissionEmits } from './components/j-c-permission/types';
|
|
16
17
|
import { JCTableTemplateProps, JCTableSlots, JCTableEmits } from './components/j-c-table/types';
|
|
17
18
|
import { JCTabsTemplateProps, JCTabsSlots, JCTabsEmits } from './components/j-c-tabs/types';
|
|
@@ -170,6 +171,15 @@ declare module 'vue' {
|
|
|
170
171
|
$emit: JCNestedSelectEmits;
|
|
171
172
|
};
|
|
172
173
|
|
|
174
|
+
/**
|
|
175
|
+
* JCOrgSelect - JCOrgSelect 组件
|
|
176
|
+
*/
|
|
177
|
+
JCOrgSelect: new () => {
|
|
178
|
+
$props: JCOrgSelectTemplateProps;
|
|
179
|
+
$slots: JCOrgSelectSlots;
|
|
180
|
+
$emit: JCOrgSelectEmits;
|
|
181
|
+
};
|
|
182
|
+
|
|
173
183
|
/**
|
|
174
184
|
* JCPermission - JCPermission 组件
|
|
175
185
|
*/
|