rtcpts 0.0.74 → 0.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/component-types.d.ts +8 -0
  2. package/dist/components/j-c-copy/types.d.ts +2 -5
  3. package/dist/components/j-c-duo-list-editor/types.d.ts +2 -3
  4. package/dist/components/j-c-editable-proxy/index.d.ts +7 -6
  5. package/dist/components/j-c-editable-proxy/types.d.ts +2 -3
  6. package/dist/components/j-c-fallback/types.d.ts +2 -5
  7. package/dist/components/j-c-foldable-list/types.d.ts +2 -5
  8. package/dist/components/j-c-format-lookup/types.d.ts +2 -5
  9. package/dist/components/j-c-list-editor/types.d.ts +2 -3
  10. package/dist/components/j-c-more-menu/index.d.ts +7 -6
  11. package/dist/components/j-c-more-menu/types.d.ts +4 -3
  12. package/dist/components/j-c-nested-select/types.d.ts +21 -1
  13. package/dist/components/j-c-org-select/types.d.ts +2 -3
  14. package/dist/components/j-c-permission/index.d.ts +2 -3
  15. package/dist/components/j-c-permission/types.d.ts +8 -10
  16. package/dist/components/j-c-platform/types.d.ts +2 -5
  17. package/dist/components/j-c-table/types.d.ts +2 -5
  18. package/dist/components/j-c-tabs/types.d.ts +2 -3
  19. package/dist/components/j-c-title-line/types.d.ts +2 -5
  20. package/dist/components/j-c-tooltip/types.d.ts +2 -2
  21. package/dist/components/j-c-tooltip-ellipsis/types.d.ts +2 -2
  22. package/dist/components/j-c-tree/component.d.ts +277 -0
  23. package/dist/components/j-c-tree/types.d.ts +3 -3
  24. package/dist/components/j-c-tree-select/types.d.ts +2 -3
  25. package/dist/components/j-ch-bar/types.d.ts +2 -5
  26. package/dist/components/j-ch-bar-line/types.d.ts +2 -2
  27. package/dist/components/j-ch-bubble/types.d.ts +2 -2
  28. package/dist/components/j-ch-line/types.d.ts +7 -2
  29. package/dist/components/j-ch-pie-doughnut/types.d.ts +2 -2
  30. package/dist/components/j-ch-radar/types.d.ts +2 -2
  31. package/dist/components/j-q-autocomplete/types.d.ts +2 -3
  32. package/dist/components/j-q-button/types.d.ts +2 -3
  33. package/dist/components/j-q-button-dropdown/types.d.ts +2 -3
  34. package/dist/components/j-q-checkbox/types.d.ts +2 -3
  35. package/dist/components/j-q-confirm/types.d.ts +2 -3
  36. package/dist/components/j-q-confirm-dialog/component.d.ts +335 -0
  37. package/dist/components/j-q-confirm-dialog/index.d.ts +0 -321
  38. package/dist/components/j-q-confirm-dialog/types.d.ts +79 -1
  39. package/dist/components/j-q-date/types.d.ts +3 -3
  40. package/dist/components/j-q-date-month/types.d.ts +2 -3
  41. package/dist/components/j-q-date-year/types.d.ts +2 -3
  42. package/dist/components/j-q-datetime/types.d.ts +3 -6
  43. package/dist/components/j-q-detail-list/types.d.ts +2 -2
  44. package/dist/components/j-q-dialog/component.d.ts +409 -0
  45. package/dist/components/j-q-dialog/types.d.ts +2 -2
  46. package/dist/components/j-q-file/types.d.ts +2 -3
  47. package/dist/components/j-q-form-label/types.d.ts +2 -3
  48. package/dist/components/j-q-input/types.d.ts +2 -3
  49. package/dist/components/j-q-input-recognize/types.d.ts +2 -3
  50. package/dist/components/j-q-new-value/types.d.ts +2 -3
  51. package/dist/components/j-q-option-group/types.d.ts +2 -3
  52. package/dist/components/j-q-pagination/component.d.ts +92 -0
  53. package/dist/components/j-q-pagination/types.d.ts +2 -3
  54. package/dist/components/j-q-popover/types.d.ts +2 -3
  55. package/dist/components/j-q-search-form/types.d.ts +2 -3
  56. package/dist/components/j-q-select/types.d.ts +2 -3
  57. package/dist/components/j-q-table/index.d.ts +5 -2
  58. package/dist/components/j-q-table/types.d.ts +2 -3
  59. package/dist/components/j-q-tooltip/types.d.ts +2 -3
  60. package/dist/global.d.ts +17 -7
  61. package/dist/index.css +1 -1
  62. package/dist/index.d.ts +5 -5
  63. package/dist/rtcpt.cjs.js +1 -1
  64. package/dist/rtcpt.es.js +357 -332
  65. package/dist/vue-shim.d.ts +6 -0
  66. package/package.json +6 -4
@@ -1,5 +1,50 @@
1
+ import { RtcptComponent } from '../../component-types';
1
2
  import { QVueGlobals } from 'quasar';
2
3
  import { VNode, Component } from 'vue';
4
+ /** 确认弹窗图标类型 */
5
+ export type JQConfirmDialogIcon = string | VNode | Component;
6
+ /**
7
+ * JQConfirmDialog 内部组件 Props 接口
8
+ * @description 该组件由 Quasar Dialog 插件创建;业务侧命令式调用请使用 JQConfirmDialogShowParams
9
+ */
10
+ export interface JQConfirmDialogProps {
11
+ /** 对话框标题
12
+ * @default ''
13
+ */
14
+ title?: string;
15
+ /** 支持 HTML 的对话框内容
16
+ * @default ''
17
+ */
18
+ content?: string;
19
+ /** 确认按钮文本
20
+ * @default ''
21
+ */
22
+ confirmButtonText?: string;
23
+ /** 取消按钮文本
24
+ * @default ''
25
+ */
26
+ cancelButtonText?: string;
27
+ /** 是否显示取消按钮
28
+ * @default true
29
+ */
30
+ cancel?: boolean;
31
+ /** 是否为删除确认对话框
32
+ * @default false
33
+ */
34
+ isDelete?: boolean;
35
+ /** 确认按钮颜色
36
+ * @default ''
37
+ */
38
+ color?: string;
39
+ /** 自定义图标
40
+ * @default null
41
+ */
42
+ icon?: JQConfirmDialogIcon | null;
43
+ /** 是否显示关闭按钮
44
+ * @default true
45
+ */
46
+ showClose?: boolean;
47
+ }
3
48
  /** JQConfirmDialog 显示参数接口 */
4
49
  export interface JQConfirmDialogShowParams {
5
50
  /**
@@ -46,7 +91,7 @@ export interface JQConfirmDialogShowParams {
46
91
  * @default undefined
47
92
  * @description 可以是 Quasar 图标名称字符串或 Vue 组件
48
93
  */
49
- icon?: string | VNode | Component;
94
+ icon?: JQConfirmDialogIcon;
50
95
  /**
51
96
  * 是否显示关闭按钮
52
97
  * @default true
@@ -71,3 +116,36 @@ export interface IJQConfirmDialog {
71
116
  }
72
117
  /** @deprecated 使用 IJQConfirmDialog 代替 */
73
118
  export type IGlobalConfirm = IJQConfirmDialog;
119
+ /** JQConfirmDialog Emits 接口 */
120
+ export interface JQConfirmDialogEmits {
121
+ /** 确认事件 */
122
+ (e: 'ok', payload?: any): void;
123
+ /** 弹窗隐藏事件 */
124
+ (e: 'hide'): void;
125
+ }
126
+ /** JQConfirmDialog 不提供插槽 */
127
+ export interface JQConfirmDialogSlots {
128
+ }
129
+ /** Quasar Dialog 插件要求组件公开的方法 */
130
+ export interface JQConfirmDialogExpose {
131
+ /** 显示弹窗 */
132
+ show: () => void;
133
+ /** 隐藏弹窗 */
134
+ hide: () => void;
135
+ }
136
+ /** JQConfirmDialog Emits 配置对象 */
137
+ export type JQConfirmDialogEmitsOptions = {
138
+ ok: (payload?: any) => true;
139
+ hide: () => true;
140
+ };
141
+ /** JQConfirmDialog 内部组件类型 */
142
+ export type JQConfirmDialogComponent = RtcptComponent<JQConfirmDialogProps, JQConfirmDialogExpose, JQConfirmDialogSlots, JQConfirmDialogEmitsOptions>;
143
+ /** JQConfirmDialog 内部组件实例类型 */
144
+ export type JQConfirmDialogInstance = InstanceType<JQConfirmDialogComponent> & JQConfirmDialogExpose;
145
+ /** JQConfirmDialog 模板 Props 类型 */
146
+ export interface JQConfirmDialogTemplateProps extends JQConfirmDialogProps {
147
+ /** 确认事件处理器 */
148
+ onOk?: (payload?: any) => void;
149
+ /** 弹窗隐藏事件处理器 */
150
+ onHide?: () => void;
151
+ }
@@ -1,4 +1,5 @@
1
- import { CSSProperties, DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
+ import { CSSProperties } from 'vue';
2
3
  import { QDateProps, QFieldProps } from 'quasar';
3
4
  /** 日期模型值类型 */
4
5
  export type DateModelValue = QDateProps['modelValue'] | number | Date | {
@@ -73,7 +74,6 @@ export interface JQDateProps {
73
74
  }
74
75
  /** JQDate Emits 接口 */
75
76
  export interface JQDateEmits {
76
- [key: string]: any;
77
77
  /**
78
78
  * 弹窗隐藏事件
79
79
  * @param evt 事件对象
@@ -126,7 +126,7 @@ export type JQDateEmitsOptions = {
126
126
  'update:modelValue': (value: any) => true;
127
127
  };
128
128
  /** JQDate 组件类型定义 */
129
- export type JQDateComponent = DefineComponent<JQDateProps, JQDateExpose, {}, {}, {}, {}, SlotsType<JQDateSlots>, JQDateEmitsOptions>;
129
+ export type JQDateComponent = RtcptComponent<JQDateProps, JQDateExpose, JQDateSlots, JQDateEmitsOptions>;
130
130
  /** JQDate 实例类型 - 用于 ref 类型定义 */
131
131
  export type JQDateInstance = InstanceType<JQDateComponent> & JQDateExpose;
132
132
  /**
@@ -1,4 +1,4 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  import { QFieldProps } from 'quasar';
3
3
  /** 月份模型值类型 */
4
4
  export type MonthModelValue = any;
@@ -62,7 +62,6 @@ export interface JQDateMonthProps {
62
62
  }
63
63
  /** JQDateMonth Emits 接口 */
64
64
  export interface JQDateMonthEmits {
65
- [key: string]: any;
66
65
  /**
67
66
  * 更新 modelValue 事件
68
67
  * @param value 新值
@@ -79,7 +78,7 @@ export interface JQDateMonthSlots {
79
78
  export interface JQDateMonthExpose {
80
79
  }
81
80
  /** JQDateMonth 组件类型定义 */
82
- export type JQDateMonthComponent = DefineComponent<JQDateMonthProps, JQDateMonthExpose, {}, {}, {}, {}, SlotsType<JQDateMonthSlots>, {
81
+ export type JQDateMonthComponent = RtcptComponent<JQDateMonthProps, JQDateMonthExpose, JQDateMonthSlots, {
83
82
  'update:modelValue': (value: MonthModelValue) => true;
84
83
  }>;
85
84
  /** JQDateMonth 实例类型 - 用于 ref 类型定义 */
@@ -1,4 +1,4 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  import { QFieldProps } from 'quasar';
3
3
  /** 年份模型值类型 */
4
4
  export type YearModelValue = any;
@@ -44,7 +44,6 @@ export interface JQDateYearProps {
44
44
  }
45
45
  /** JQDateYear Emits 接口 */
46
46
  export interface JQDateYearEmits {
47
- [key: string]: any;
48
47
  /**
49
48
  * 更新 modelValue 事件
50
49
  * @param value 新值
@@ -61,7 +60,7 @@ export interface JQDateYearSlots {
61
60
  export interface JQDateYearExpose {
62
61
  }
63
62
  /** JQDateYear 组件类型定义 */
64
- export type JQDateYearComponent = DefineComponent<JQDateYearProps, JQDateYearExpose, {}, {}, {}, {}, SlotsType<JQDateYearSlots>, {
63
+ export type JQDateYearComponent = RtcptComponent<JQDateYearProps, JQDateYearExpose, JQDateYearSlots, {
65
64
  'update:modelValue': (value: YearModelValue) => true;
66
65
  }>;
67
66
  /** JQDateYear 实例类型 - 用于 ref 类型定义 */
@@ -1,4 +1,4 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  import { QDateProps, QFieldProps } from 'quasar';
3
3
  /** 日期时间掩码 */
4
4
  export declare const DATETIME_MASK: "YYYY-MM-DD HH:mm:ss";
@@ -91,7 +91,6 @@ export interface JQDateTimeProps {
91
91
  }
92
92
  /** JQDateTime Emits 接口 */
93
93
  export interface JQDateTimeEmits {
94
- [key: string]: any;
95
94
  /**
96
95
  * 弹窗隐藏事件
97
96
  * @param evt 事件对象
@@ -122,12 +121,10 @@ export interface JQDateTimeExpose {
122
121
  /**
123
122
  * 弹窗可见性状态
124
123
  */
125
- popupVisible: {
126
- value: boolean;
127
- };
124
+ popupVisible: boolean;
128
125
  }
129
126
  /** JQDateTime 组件类型定义 */
130
- export type JQDateTimeComponent = DefineComponent<JQDateTimeProps, JQDateTimeExpose, {}, {}, {}, {}, SlotsType<JQDateTimeSlots>, {
127
+ export type JQDateTimeComponent = RtcptComponent<JQDateTimeProps, JQDateTimeExpose, JQDateTimeSlots, {
131
128
  hide: (evt: any) => true;
132
129
  'update:modelValue': (value: DateTimeModelValue) => true;
133
130
  }>;
@@ -1,4 +1,4 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  /** 详情列表数据类型 */
3
3
  export type DetailData = Record<string, any>;
4
4
  /** 详情项配置接口 */
@@ -91,7 +91,7 @@ export interface JQDetailListSlots {
91
91
  export interface JQDetailListExpose {
92
92
  }
93
93
  /** JQDetailList 组件类型定义 */
94
- export type JQDetailListComponent = DefineComponent<JQDetailListProps, JQDetailListExpose, {}, {}, {}, {}, SlotsType<JQDetailListSlots>, {}>;
94
+ export type JQDetailListComponent = RtcptComponent<JQDetailListProps, JQDetailListExpose, JQDetailListSlots>;
95
95
  /** JQDetailList 实例类型 - 用于 ref 类型定义 */
96
96
  export type JQDetailListInstance = InstanceType<JQDetailListComponent> & JQDetailListExpose;
97
97
  /**
@@ -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 { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  import { IEnterFileType } from './file';
3
3
  import { formRules } from './form-rules';
4
4
  /** 对话框位置类型 */
@@ -143,7 +143,7 @@ export interface JQDialogExpose {
143
143
  beforeFile: (files: File[], config?: IEnterFileType) => File[] | undefined;
144
144
  }
145
145
  /** JQDialog 组件类型定义 */
146
- export type JQDialogComponent = DefineComponent<JQDialogProps, JQDialogExpose, {}, {}, {}, {}, SlotsType<JQDialogSlots>, {}>;
146
+ export type JQDialogComponent = RtcptComponent<JQDialogProps, JQDialogExpose, JQDialogSlots>;
147
147
  /** JQDialog 实例类型 - 用于 ref 类型定义 */
148
148
  export type JQDialogInstance = InstanceType<JQDialogComponent> & JQDialogExpose;
149
149
  /**
@@ -1,4 +1,4 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  import { QFieldProps } from 'quasar';
3
3
  /** 文件模型值类型 */
4
4
  export type FileModelValue = File[];
@@ -67,7 +67,6 @@ export interface JQFileProps {
67
67
  }
68
68
  /** JQFile Emits 接口 */
69
69
  export interface JQFileEmits {
70
- [key: string]: any;
71
70
  /**
72
71
  * 更新 modelValue 事件
73
72
  * @param value 文件列表
@@ -84,7 +83,7 @@ export interface JQFileSlots {
84
83
  export interface JQFileExpose {
85
84
  }
86
85
  /** JQFile 组件类型定义 */
87
- export type JQFileComponent = DefineComponent<JQFileProps, JQFileExpose, {}, {}, {}, {}, SlotsType<JQFileSlots>, {
86
+ export type JQFileComponent = RtcptComponent<JQFileProps, JQFileExpose, JQFileSlots, {
88
87
  'update:modelValue': (value: FileModelValue) => true;
89
88
  }>;
90
89
  /** JQFile 实例类型 - 用于 ref 类型定义 */
@@ -1,4 +1,4 @@
1
- import { DefineComponent, SlotsType } from 'vue';
1
+ import { RtcptComponent } from '../../component-types';
2
2
  /** Vue 类类型 */
3
3
  export type VueClass = string | Record<string, boolean> | (string | Record<string, boolean>)[];
4
4
  /** JQFormLabel Props 接口 */
@@ -38,7 +38,6 @@ export interface JQFormLabelProps {
38
38
  }
39
39
  /** JQFormLabel Emits 接口 */
40
40
  export interface JQFormLabelEmits {
41
- [key: string]: any;
42
41
  }
43
42
  /** JQFormLabel Slots 接口 */
44
43
  export interface JQFormLabelSlots {
@@ -56,7 +55,7 @@ export interface JQFormLabelSlots {
56
55
  export interface JQFormLabelExpose {
57
56
  }
58
57
  /** JQFormLabel 组件类型定义 */
59
- export type JQFormLabelComponent = DefineComponent<JQFormLabelProps, JQFormLabelExpose, {}, {}, {}, {}, SlotsType<JQFormLabelSlots>, {}>;
58
+ export type JQFormLabelComponent = RtcptComponent<JQFormLabelProps, JQFormLabelExpose, JQFormLabelSlots>;
60
59
  /** JQFormLabel 实例类型 - 用于 ref 类型定义 */
61
60
  export type JQFormLabelInstance = InstanceType<JQFormLabelComponent> & JQFormLabelExpose;
62
61
  /**