rtcpts 0.0.61 → 0.0.63
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-editable-proxy/index.d.ts +23 -24
- package/dist/components/j-c-list-editor/index.d.ts +20 -22
- package/dist/components/j-c-nested-select/index.d.ts +1 -1
- package/dist/components/j-c-org-select/index.d.ts +25 -27
- package/dist/components/j-c-table/index.d.ts +20 -22
- package/dist/components/j-c-tooltip/JCTooltipContent.d.ts +84 -0
- package/dist/components/j-c-tooltip/index.d.ts +20 -21
- package/dist/components/j-c-tooltip/types.d.ts +16 -16
- package/dist/components/j-c-tooltip-ellipsis/index.d.ts +25 -26
- package/dist/components/j-c-tooltip-ellipsis/types.d.ts +3 -3
- package/dist/components/j-c-tree-select/index.d.ts +73 -77
- package/dist/components/j-ch-bar/index.d.ts +1 -1
- package/dist/components/j-ch-bar-line/index.d.ts +1 -1
- package/dist/components/j-ch-bubble/index.d.ts +1 -1
- package/dist/components/j-ch-line/index.d.ts +1 -1
- package/dist/components/j-ch-pie-doughnut/index.d.ts +1 -1
- package/dist/components/j-ch-radar/index.d.ts +1 -1
- package/dist/components/j-q-autocomplete/index.d.ts +20 -22
- package/dist/components/j-q-button/index.d.ts +25 -25
- package/dist/components/j-q-button/types.d.ts +4 -6
- package/dist/components/j-q-checkbox/index.d.ts +282 -0
- package/dist/components/j-q-checkbox/types.d.ts +125 -0
- package/dist/components/j-q-confirm/index.d.ts +23 -24
- package/dist/components/j-q-confirm-dialog/index.d.ts +22 -27
- package/dist/components/j-q-detail-list/index.d.ts +42 -45
- package/dist/components/j-q-dialog/prompt-content.d.ts +6 -6
- package/dist/components/j-q-file/index.d.ts +45 -47
- package/dist/components/j-q-form-label/index.d.ts +20 -22
- package/dist/components/j-q-new-value/index.d.ts +1 -1
- package/dist/components/j-q-option-group/index.d.ts +21 -23
- package/dist/components/j-q-search-form/index.d.ts +23 -24
- package/dist/components/j-q-select/index.d.ts +1 -1
- package/dist/components/j-q-table/index.d.ts +20 -22
- package/dist/global.d.ts +12 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +4826 -3629
- package/package.json +11 -3
|
@@ -43,7 +43,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
43
43
|
};
|
|
44
44
|
}>> & Readonly<{}>, {
|
|
45
45
|
options: {};
|
|
46
|
-
labels: unknown[];
|
|
47
46
|
height: number;
|
|
47
|
+
labels: unknown[];
|
|
48
48
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
49
49
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, VNode, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { QIcon, QInput, ComponentConstructor } from 'quasar';
|
|
3
|
-
import {
|
|
4
|
-
import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../j-c-tooltip/types';
|
|
3
|
+
import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../..';
|
|
5
4
|
export interface HistoryItem {
|
|
6
5
|
id: number;
|
|
7
6
|
value: string;
|
|
@@ -93,15 +92,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
93
92
|
default: string;
|
|
94
93
|
};
|
|
95
94
|
placement: {
|
|
96
|
-
type: PropType<
|
|
95
|
+
type: PropType< JCTooltipPlacementType>;
|
|
97
96
|
default: string;
|
|
98
97
|
};
|
|
99
98
|
effect: {
|
|
100
|
-
type: PropType<
|
|
99
|
+
type: PropType< JCTooltipEffectType>;
|
|
101
100
|
default: string;
|
|
102
101
|
};
|
|
103
102
|
trigger: {
|
|
104
|
-
type: PropType<
|
|
103
|
+
type: PropType< JCTooltipTriggerType>;
|
|
105
104
|
default: string;
|
|
106
105
|
};
|
|
107
106
|
disabled: {
|
|
@@ -132,33 +131,27 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
132
131
|
type: BooleanConstructor;
|
|
133
132
|
default: undefined;
|
|
134
133
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
handleMouseEnter: () => void;
|
|
143
|
-
handleMouseLeave: () => void;
|
|
144
|
-
handleClick: () => void;
|
|
145
|
-
handlePopperMouseEnter: () => void;
|
|
146
|
-
handlePopperMouseLeave: () => void;
|
|
147
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
|
|
134
|
+
showOnFocus: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
}>[] | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
|
|
148
141
|
content: {
|
|
149
142
|
type: StringConstructor;
|
|
150
143
|
default: string;
|
|
151
144
|
};
|
|
152
145
|
placement: {
|
|
153
|
-
type: PropType<
|
|
146
|
+
type: PropType< JCTooltipPlacementType>;
|
|
154
147
|
default: string;
|
|
155
148
|
};
|
|
156
149
|
effect: {
|
|
157
|
-
type: PropType<
|
|
150
|
+
type: PropType< JCTooltipEffectType>;
|
|
158
151
|
default: string;
|
|
159
152
|
};
|
|
160
153
|
trigger: {
|
|
161
|
-
type: PropType<
|
|
154
|
+
type: PropType< JCTooltipTriggerType>;
|
|
162
155
|
default: string;
|
|
163
156
|
};
|
|
164
157
|
disabled: {
|
|
@@ -189,6 +182,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
189
182
|
type: BooleanConstructor;
|
|
190
183
|
default: undefined;
|
|
191
184
|
};
|
|
185
|
+
showOnFocus: {
|
|
186
|
+
type: BooleanConstructor;
|
|
187
|
+
default: boolean;
|
|
188
|
+
};
|
|
192
189
|
}>> & Readonly<{
|
|
193
190
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
194
191
|
}>, {
|
|
@@ -203,6 +200,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
203
200
|
closeDelay: number;
|
|
204
201
|
maxWidth: string;
|
|
205
202
|
offset: number;
|
|
203
|
+
showOnFocus: boolean;
|
|
206
204
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
207
205
|
QIcon: ComponentConstructor<QIcon>;
|
|
208
206
|
QInput: ComponentConstructor<QInput>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, VNode, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { QBtn, ComponentConstructor } from 'quasar';
|
|
3
3
|
import { JQButtonSizeType, JQButtonSlots, JQButtonTypeType } from './types';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { JCTooltipProps } from '../j-c-tooltip/types';
|
|
5
|
+
import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../..';
|
|
6
6
|
export * from './types';
|
|
7
7
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
8
8
|
/**
|
|
@@ -60,7 +60,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
60
60
|
* @default undefined
|
|
61
61
|
*/
|
|
62
62
|
tooltipConfig: {
|
|
63
|
-
type: PropType<Omit<
|
|
63
|
+
type: PropType<Omit<JCTooltipProps, "content">>;
|
|
64
64
|
default: undefined;
|
|
65
65
|
};
|
|
66
66
|
}>, {
|
|
@@ -91,6 +91,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
91
91
|
closeDelay?: number;
|
|
92
92
|
maxWidth?: string;
|
|
93
93
|
offset?: number;
|
|
94
|
+
showOnFocus?: boolean;
|
|
94
95
|
}>;
|
|
95
96
|
qBtnRef: Ref<QBtn | null, QBtn | null>;
|
|
96
97
|
tooltipContent: ComputedRef<string>;
|
|
@@ -156,7 +157,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
156
157
|
* @default undefined
|
|
157
158
|
*/
|
|
158
159
|
tooltipConfig: {
|
|
159
|
-
type: PropType<Omit<
|
|
160
|
+
type: PropType<Omit<JCTooltipProps, "content">>;
|
|
160
161
|
default: undefined;
|
|
161
162
|
};
|
|
162
163
|
}>> & Readonly<{
|
|
@@ -167,7 +168,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
167
168
|
label: string;
|
|
168
169
|
icon: string;
|
|
169
170
|
loading: boolean;
|
|
170
|
-
tooltipConfig: Omit<
|
|
171
|
+
tooltipConfig: Omit<JCTooltipProps, "content">;
|
|
171
172
|
tips: string | number;
|
|
172
173
|
}, SlotsType<JQButtonSlots>, {
|
|
173
174
|
QBtn: ComponentConstructor<QBtn>;
|
|
@@ -177,15 +178,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
177
178
|
default: string;
|
|
178
179
|
};
|
|
179
180
|
placement: {
|
|
180
|
-
type: PropType<
|
|
181
|
+
type: PropType< JCTooltipPlacementType>;
|
|
181
182
|
default: string;
|
|
182
183
|
};
|
|
183
184
|
effect: {
|
|
184
|
-
type: PropType<
|
|
185
|
+
type: PropType< JCTooltipEffectType>;
|
|
185
186
|
default: string;
|
|
186
187
|
};
|
|
187
188
|
trigger: {
|
|
188
|
-
type: PropType<
|
|
189
|
+
type: PropType< JCTooltipTriggerType>;
|
|
189
190
|
default: string;
|
|
190
191
|
};
|
|
191
192
|
disabled: {
|
|
@@ -216,33 +217,27 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
216
217
|
type: BooleanConstructor;
|
|
217
218
|
default: undefined;
|
|
218
219
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
handleMouseEnter: () => void;
|
|
227
|
-
handleMouseLeave: () => void;
|
|
228
|
-
handleClick: () => void;
|
|
229
|
-
handlePopperMouseEnter: () => void;
|
|
230
|
-
handlePopperMouseLeave: () => void;
|
|
231
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
|
|
220
|
+
showOnFocus: {
|
|
221
|
+
type: BooleanConstructor;
|
|
222
|
+
default: boolean;
|
|
223
|
+
};
|
|
224
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
225
|
+
[key: string]: any;
|
|
226
|
+
}>[] | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
|
|
232
227
|
content: {
|
|
233
228
|
type: StringConstructor;
|
|
234
229
|
default: string;
|
|
235
230
|
};
|
|
236
231
|
placement: {
|
|
237
|
-
type: PropType<
|
|
232
|
+
type: PropType< JCTooltipPlacementType>;
|
|
238
233
|
default: string;
|
|
239
234
|
};
|
|
240
235
|
effect: {
|
|
241
|
-
type: PropType<
|
|
236
|
+
type: PropType< JCTooltipEffectType>;
|
|
242
237
|
default: string;
|
|
243
238
|
};
|
|
244
239
|
trigger: {
|
|
245
|
-
type: PropType<
|
|
240
|
+
type: PropType< JCTooltipTriggerType>;
|
|
246
241
|
default: string;
|
|
247
242
|
};
|
|
248
243
|
disabled: {
|
|
@@ -273,6 +268,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
273
268
|
type: BooleanConstructor;
|
|
274
269
|
default: undefined;
|
|
275
270
|
};
|
|
271
|
+
showOnFocus: {
|
|
272
|
+
type: BooleanConstructor;
|
|
273
|
+
default: boolean;
|
|
274
|
+
};
|
|
276
275
|
}>> & Readonly<{
|
|
277
276
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
278
277
|
}>, {
|
|
@@ -287,6 +286,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
287
286
|
closeDelay: number;
|
|
288
287
|
maxWidth: string;
|
|
289
288
|
offset: number;
|
|
289
|
+
showOnFocus: boolean;
|
|
290
290
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
291
291
|
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
292
292
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QBtnProps } from 'quasar';
|
|
2
|
-
import {
|
|
2
|
+
import { JCTooltipProps } from '../j-c-tooltip/types';
|
|
3
3
|
import { DefineComponent } from 'vue';
|
|
4
4
|
export declare const JQButtonSize: {
|
|
5
5
|
readonly LARGE: "large";
|
|
@@ -55,7 +55,7 @@ export interface JQButtonProps {
|
|
|
55
55
|
* Tooltip 配置项
|
|
56
56
|
* @default undefined
|
|
57
57
|
*/
|
|
58
|
-
tooltipConfig?: Omit<
|
|
58
|
+
tooltipConfig?: Omit<JCTooltipProps, 'content'>;
|
|
59
59
|
}
|
|
60
60
|
/** JQButton Emits 接口 */
|
|
61
61
|
export interface JQButtonEmits {
|
|
@@ -78,9 +78,7 @@ export interface JQButtonSlots {
|
|
|
78
78
|
}
|
|
79
79
|
/** JQButton 暴露的方法和属性 */
|
|
80
80
|
export interface JQButtonExpose {
|
|
81
|
-
/**
|
|
82
|
-
$el: HTMLElement | undefined;
|
|
83
|
-
/** 触发点击事件 */
|
|
81
|
+
/** 触发点击事件(等价于对内部 <button> 调用原生 click()) */
|
|
84
82
|
click: () => void;
|
|
85
83
|
}
|
|
86
84
|
/** 合并后的完整 Props 类型 (包含 QBtn 的 Props) */
|
|
@@ -119,5 +117,5 @@ export interface JQButtonTemplateProps extends JQButtonProps {
|
|
|
119
117
|
/** 路由跳转 (继承自 QBtn) */
|
|
120
118
|
to?: string | object;
|
|
121
119
|
/** Tooltip 配置项 */
|
|
122
|
-
tooltipConfig?: Omit<
|
|
120
|
+
tooltipConfig?: Omit<JCTooltipProps, 'content'>;
|
|
123
121
|
}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, VNode, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { QField, QCheckbox, QIcon, QFieldProps, QCheckboxProps, ComponentConstructor } from 'quasar';
|
|
3
|
+
import { JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../..';
|
|
4
|
+
type TModelValue = QCheckboxProps['modelValue'];
|
|
5
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: PropType<TModelValue>;
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
10
|
+
val: {
|
|
11
|
+
type: PropType<QCheckboxProps["val"]>;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
text: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
tip: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
trueValue: {
|
|
23
|
+
type: PropType<QCheckboxProps["trueValue"]>;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
falseValue: {
|
|
27
|
+
type: PropType<QCheckboxProps["falseValue"]>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
indeterminateValue: {
|
|
31
|
+
type: PropType<QCheckboxProps["indeterminateValue"]>;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
toggleIndeterminate: {
|
|
35
|
+
type: PropType<QCheckboxProps["toggleIndeterminate"]>;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
disable: {
|
|
39
|
+
type: PropType<QCheckboxProps["disable"]>;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
size: {
|
|
43
|
+
type: PropType<QCheckboxProps["size"]>;
|
|
44
|
+
};
|
|
45
|
+
color: {
|
|
46
|
+
type: PropType<QCheckboxProps["color"]>;
|
|
47
|
+
};
|
|
48
|
+
keepColor: {
|
|
49
|
+
type: PropType<QCheckboxProps["keepColor"]>;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
label: {
|
|
53
|
+
type: PropType<QFieldProps["label"]>;
|
|
54
|
+
};
|
|
55
|
+
rules: {
|
|
56
|
+
type: () => QFieldProps["rules"];
|
|
57
|
+
};
|
|
58
|
+
outlined: {
|
|
59
|
+
type: PropType<QFieldProps["outlined"]>;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
dense: {
|
|
63
|
+
type: PropType<QFieldProps["dense"]>;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
filedClass: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
required: false;
|
|
70
|
+
};
|
|
71
|
+
}>, {
|
|
72
|
+
innerModel: Ref<any, any>;
|
|
73
|
+
hasInlineSlot: ComputedRef<boolean>;
|
|
74
|
+
onChange: (val: TModelValue) => void;
|
|
75
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
76
|
+
change: (value: TModelValue) => true;
|
|
77
|
+
'update:modelValue': (value: TModelValue) => true;
|
|
78
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
79
|
+
modelValue: {
|
|
80
|
+
type: PropType<TModelValue>;
|
|
81
|
+
default: null;
|
|
82
|
+
};
|
|
83
|
+
val: {
|
|
84
|
+
type: PropType<QCheckboxProps["val"]>;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
text: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
tip: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
trueValue: {
|
|
96
|
+
type: PropType<QCheckboxProps["trueValue"]>;
|
|
97
|
+
default: undefined;
|
|
98
|
+
};
|
|
99
|
+
falseValue: {
|
|
100
|
+
type: PropType<QCheckboxProps["falseValue"]>;
|
|
101
|
+
default: undefined;
|
|
102
|
+
};
|
|
103
|
+
indeterminateValue: {
|
|
104
|
+
type: PropType<QCheckboxProps["indeterminateValue"]>;
|
|
105
|
+
default: undefined;
|
|
106
|
+
};
|
|
107
|
+
toggleIndeterminate: {
|
|
108
|
+
type: PropType<QCheckboxProps["toggleIndeterminate"]>;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
disable: {
|
|
112
|
+
type: PropType<QCheckboxProps["disable"]>;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
size: {
|
|
116
|
+
type: PropType<QCheckboxProps["size"]>;
|
|
117
|
+
};
|
|
118
|
+
color: {
|
|
119
|
+
type: PropType<QCheckboxProps["color"]>;
|
|
120
|
+
};
|
|
121
|
+
keepColor: {
|
|
122
|
+
type: PropType<QCheckboxProps["keepColor"]>;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
label: {
|
|
126
|
+
type: PropType<QFieldProps["label"]>;
|
|
127
|
+
};
|
|
128
|
+
rules: {
|
|
129
|
+
type: () => QFieldProps["rules"];
|
|
130
|
+
};
|
|
131
|
+
outlined: {
|
|
132
|
+
type: PropType<QFieldProps["outlined"]>;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
dense: {
|
|
136
|
+
type: PropType<QFieldProps["dense"]>;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
filedClass: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
default: string;
|
|
142
|
+
required: false;
|
|
143
|
+
};
|
|
144
|
+
}>> & Readonly<{
|
|
145
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
146
|
+
onChange?: ((value: any) => any) | undefined;
|
|
147
|
+
}>, {
|
|
148
|
+
text: string;
|
|
149
|
+
modelValue: any;
|
|
150
|
+
dense: boolean | undefined;
|
|
151
|
+
disable: boolean | undefined;
|
|
152
|
+
outlined: boolean | undefined;
|
|
153
|
+
tip: string;
|
|
154
|
+
val: any;
|
|
155
|
+
trueValue: any;
|
|
156
|
+
falseValue: any;
|
|
157
|
+
indeterminateValue: any;
|
|
158
|
+
toggleIndeterminate: boolean | undefined;
|
|
159
|
+
keepColor: boolean | undefined;
|
|
160
|
+
filedClass: string;
|
|
161
|
+
}, {}, {
|
|
162
|
+
QField: ComponentConstructor<QField>;
|
|
163
|
+
QCheckbox: ComponentConstructor<QCheckbox>;
|
|
164
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
165
|
+
JCTooltip: DefineComponent<ExtractPropTypes<{
|
|
166
|
+
content: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
default: string;
|
|
169
|
+
};
|
|
170
|
+
placement: {
|
|
171
|
+
type: PropType< JCTooltipPlacementType>;
|
|
172
|
+
default: string;
|
|
173
|
+
};
|
|
174
|
+
effect: {
|
|
175
|
+
type: PropType< JCTooltipEffectType>;
|
|
176
|
+
default: string;
|
|
177
|
+
};
|
|
178
|
+
trigger: {
|
|
179
|
+
type: PropType< JCTooltipTriggerType>;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
|
+
disabled: {
|
|
183
|
+
type: BooleanConstructor;
|
|
184
|
+
default: boolean;
|
|
185
|
+
};
|
|
186
|
+
showArrow: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
openDelay: {
|
|
191
|
+
type: NumberConstructor;
|
|
192
|
+
default: number;
|
|
193
|
+
};
|
|
194
|
+
closeDelay: {
|
|
195
|
+
type: NumberConstructor;
|
|
196
|
+
default: number;
|
|
197
|
+
};
|
|
198
|
+
maxWidth: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
offset: {
|
|
203
|
+
type: NumberConstructor;
|
|
204
|
+
default: number;
|
|
205
|
+
};
|
|
206
|
+
modelValue: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: undefined;
|
|
209
|
+
};
|
|
210
|
+
showOnFocus: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
214
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
215
|
+
[key: string]: any;
|
|
216
|
+
}>[] | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
|
|
217
|
+
content: {
|
|
218
|
+
type: StringConstructor;
|
|
219
|
+
default: string;
|
|
220
|
+
};
|
|
221
|
+
placement: {
|
|
222
|
+
type: PropType< JCTooltipPlacementType>;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
effect: {
|
|
226
|
+
type: PropType< JCTooltipEffectType>;
|
|
227
|
+
default: string;
|
|
228
|
+
};
|
|
229
|
+
trigger: {
|
|
230
|
+
type: PropType< JCTooltipTriggerType>;
|
|
231
|
+
default: string;
|
|
232
|
+
};
|
|
233
|
+
disabled: {
|
|
234
|
+
type: BooleanConstructor;
|
|
235
|
+
default: boolean;
|
|
236
|
+
};
|
|
237
|
+
showArrow: {
|
|
238
|
+
type: BooleanConstructor;
|
|
239
|
+
default: boolean;
|
|
240
|
+
};
|
|
241
|
+
openDelay: {
|
|
242
|
+
type: NumberConstructor;
|
|
243
|
+
default: number;
|
|
244
|
+
};
|
|
245
|
+
closeDelay: {
|
|
246
|
+
type: NumberConstructor;
|
|
247
|
+
default: number;
|
|
248
|
+
};
|
|
249
|
+
maxWidth: {
|
|
250
|
+
type: StringConstructor;
|
|
251
|
+
default: string;
|
|
252
|
+
};
|
|
253
|
+
offset: {
|
|
254
|
+
type: NumberConstructor;
|
|
255
|
+
default: number;
|
|
256
|
+
};
|
|
257
|
+
modelValue: {
|
|
258
|
+
type: BooleanConstructor;
|
|
259
|
+
default: undefined;
|
|
260
|
+
};
|
|
261
|
+
showOnFocus: {
|
|
262
|
+
type: BooleanConstructor;
|
|
263
|
+
default: boolean;
|
|
264
|
+
};
|
|
265
|
+
}>> & Readonly<{
|
|
266
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
267
|
+
}>, {
|
|
268
|
+
modelValue: boolean;
|
|
269
|
+
content: string;
|
|
270
|
+
placement: JCTooltipPlacementType;
|
|
271
|
+
effect: JCTooltipEffectType;
|
|
272
|
+
trigger: JCTooltipTriggerType;
|
|
273
|
+
disabled: boolean;
|
|
274
|
+
showArrow: boolean;
|
|
275
|
+
openDelay: number;
|
|
276
|
+
closeDelay: number;
|
|
277
|
+
maxWidth: string;
|
|
278
|
+
offset: number;
|
|
279
|
+
showOnFocus: boolean;
|
|
280
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
281
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
282
|
+
export default _default;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { DefineComponent, SlotsType } from 'vue';
|
|
2
|
+
import { QFieldProps, QCheckboxProps } from 'quasar';
|
|
3
|
+
/** 勾选框模型值类型(兼容布尔/数组/任意值模式) */
|
|
4
|
+
export type CheckboxModelValue = QCheckboxProps['modelValue'];
|
|
5
|
+
/** JQCheckbox Props 接口 */
|
|
6
|
+
export interface JQCheckboxProps {
|
|
7
|
+
/**
|
|
8
|
+
* 绑定值(v-model)
|
|
9
|
+
* - 单值模式:布尔或自定义 trueValue/falseValue
|
|
10
|
+
* - 数组模式:数组(配合 val 使用)
|
|
11
|
+
* @default null
|
|
12
|
+
*/
|
|
13
|
+
modelValue?: CheckboxModelValue;
|
|
14
|
+
/**
|
|
15
|
+
* 数组模式下勾选时写入数组的值
|
|
16
|
+
*/
|
|
17
|
+
val?: QCheckboxProps['val'];
|
|
18
|
+
/**
|
|
19
|
+
* 勾选框旁显示的文本
|
|
20
|
+
*/
|
|
21
|
+
text?: string;
|
|
22
|
+
/**
|
|
23
|
+
* 文本旁的问号提示(鼠标悬停展示)
|
|
24
|
+
* @default ''
|
|
25
|
+
*/
|
|
26
|
+
tip?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 勾选时绑定的值
|
|
29
|
+
*/
|
|
30
|
+
trueValue?: QCheckboxProps['trueValue'];
|
|
31
|
+
/**
|
|
32
|
+
* 取消勾选时绑定的值
|
|
33
|
+
*/
|
|
34
|
+
falseValue?: QCheckboxProps['falseValue'];
|
|
35
|
+
/**
|
|
36
|
+
* 不确定态绑定的值
|
|
37
|
+
*/
|
|
38
|
+
indeterminateValue?: QCheckboxProps['indeterminateValue'];
|
|
39
|
+
/**
|
|
40
|
+
* 是否启用不确定态切换
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
toggleIndeterminate?: QCheckboxProps['toggleIndeterminate'];
|
|
44
|
+
/**
|
|
45
|
+
* 是否禁用
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
disable?: QCheckboxProps['disable'];
|
|
49
|
+
/**
|
|
50
|
+
* 尺寸
|
|
51
|
+
*/
|
|
52
|
+
size?: QCheckboxProps['size'];
|
|
53
|
+
/**
|
|
54
|
+
* 颜色
|
|
55
|
+
*/
|
|
56
|
+
color?: QCheckboxProps['color'];
|
|
57
|
+
/**
|
|
58
|
+
* 保持颜色(未勾选时也使用 color)
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
keepColor?: QCheckboxProps['keepColor'];
|
|
62
|
+
/**
|
|
63
|
+
* 表单标签文本(堆叠在控件上方)
|
|
64
|
+
*/
|
|
65
|
+
label?: QFieldProps['label'];
|
|
66
|
+
/**
|
|
67
|
+
* 校验规则
|
|
68
|
+
*/
|
|
69
|
+
rules?: QFieldProps['rules'];
|
|
70
|
+
/**
|
|
71
|
+
* 是否显示外边框
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
outlined?: QFieldProps['outlined'];
|
|
75
|
+
/**
|
|
76
|
+
* 紧凑模式
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
dense?: QFieldProps['dense'];
|
|
80
|
+
/**
|
|
81
|
+
* 字段自定义 class
|
|
82
|
+
* @default ''
|
|
83
|
+
*/
|
|
84
|
+
filedClass?: string;
|
|
85
|
+
}
|
|
86
|
+
/** JQCheckbox Emits 接口 */
|
|
87
|
+
export interface JQCheckboxEmits {
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
/**
|
|
90
|
+
* 值变更事件
|
|
91
|
+
* @param value 新值
|
|
92
|
+
*/
|
|
93
|
+
(e: 'change', value: CheckboxModelValue): void;
|
|
94
|
+
/**
|
|
95
|
+
* 更新 modelValue 事件
|
|
96
|
+
* @param value 新值
|
|
97
|
+
*/
|
|
98
|
+
(e: 'update:modelValue', value: CheckboxModelValue): void;
|
|
99
|
+
}
|
|
100
|
+
/** JQCheckbox Slots 接口 */
|
|
101
|
+
export interface JQCheckboxSlots {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
/** 文本扩展插槽,可在 text/tip 之后追加自定义内容 */
|
|
104
|
+
text?: () => any;
|
|
105
|
+
}
|
|
106
|
+
/** JQCheckbox 暴露的方法和属性 */
|
|
107
|
+
export interface JQCheckboxExpose {
|
|
108
|
+
}
|
|
109
|
+
/** JQCheckbox 组件类型定义 */
|
|
110
|
+
export type JQCheckboxComponent = DefineComponent<JQCheckboxProps, JQCheckboxExpose, {}, {}, {}, {}, SlotsType<JQCheckboxSlots>, {
|
|
111
|
+
change: (value: CheckboxModelValue) => true;
|
|
112
|
+
'update:modelValue': (value: CheckboxModelValue) => true;
|
|
113
|
+
}>;
|
|
114
|
+
/** JQCheckbox 实例类型 - 用于 ref 类型定义 */
|
|
115
|
+
export type JQCheckboxInstance = InstanceType<JQCheckboxComponent> & JQCheckboxExpose;
|
|
116
|
+
/**
|
|
117
|
+
* 用于模板中的 Props 类型定义
|
|
118
|
+
* 包含事件处理器
|
|
119
|
+
*/
|
|
120
|
+
export interface JQCheckboxTemplateProps extends JQCheckboxProps {
|
|
121
|
+
/** 变更事件处理器 */
|
|
122
|
+
onChange?: (value: CheckboxModelValue) => void;
|
|
123
|
+
/** 更新 modelValue 事件处理器 */
|
|
124
|
+
'onUpdate:modelValue'?: (value: CheckboxModelValue) => void;
|
|
125
|
+
}
|