rtcpts 0.0.25 → 0.0.26

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.
@@ -1,6 +1,6 @@
1
1
  import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComputedRef, ComponentProvideOptions } from 'vue';
2
2
  import { QCard, QCardActions, QCardSection, QIcon, QPopupProxy, ComponentConstructor, QBtn } from 'quasar';
3
- import { t, TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
3
+ import { t, TooltipProps, TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
4
4
  import { JQButtonSizeType, JQButtonTypeType, JQButtonSlots } from '../j-q-button/index';
5
5
  type ModelValueType = any;
6
6
  export interface QInputRef {
@@ -175,10 +175,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
175
175
  default: boolean;
176
176
  };
177
177
  tips: {
178
- type: StringConstructor;
178
+ type: (StringConstructor | NumberConstructor)[];
179
179
  default: string;
180
180
  };
181
+ tooltipConfig: {
182
+ type: PropType<Omit< TooltipProps, "content">>;
183
+ default: undefined;
184
+ };
181
185
  }>, {
186
+ click: (e: Event) => void;
182
187
  computedClass: ComputedRef<{
183
188
  [x: string]: boolean;
184
189
  'j-q-button': boolean;
@@ -194,8 +199,20 @@ declare const _default: DefineComponent<ExtractPropTypes<{
194
199
  iconPadding: ComputedRef<{
195
200
  'j-q-button-label': string | (() => any) | undefined;
196
201
  }>;
197
- click: (e: Event) => void;
202
+ mergedTooltipConfig: ComputedRef<{
203
+ modelValue?: boolean;
204
+ placement?: TooltipPlacement;
205
+ effect?: TooltipEffect;
206
+ trigger?: TooltipTrigger;
207
+ disabled?: boolean;
208
+ showArrow?: boolean;
209
+ openDelay?: number;
210
+ closeDelay?: number;
211
+ maxWidth?: string;
212
+ offset?: number;
213
+ }>;
198
214
  qBtnRef: Ref< QBtn | null, QBtn | null>;
215
+ tooltipContent: ComputedRef<string>;
199
216
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
200
217
  click: (e: Event) => true;
201
218
  }, string, PublicProps, Readonly< ExtractPropTypes<{
@@ -222,9 +239,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
222
239
  default: boolean;
223
240
  };
224
241
  tips: {
225
- type: StringConstructor;
242
+ type: (StringConstructor | NumberConstructor)[];
226
243
  default: string;
227
244
  };
245
+ tooltipConfig: {
246
+ type: PropType<Omit< TooltipProps, "content">>;
247
+ default: undefined;
248
+ };
228
249
  }>> & Readonly<{
229
250
  onClick?: ((e: Event) => any) | undefined;
230
251
  }>, {
@@ -233,7 +254,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
233
254
  label: string;
234
255
  icon: string;
235
256
  loading: boolean;
236
- tips: string;
257
+ tooltipConfig: Omit< TooltipProps, "content">;
258
+ tips: string | number;
237
259
  }, SlotsType< JQButtonSlots>, {
238
260
  QBtn: ComponentConstructor<QBtn>;
239
261
  JCTooltip: DefineComponent<ExtractPropTypes<{
@@ -1,6 +1,7 @@
1
1
  import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { QBtn, ComponentConstructor } from 'quasar';
3
- import { JQButtonSizeType, JQButtonTypeType, JQButtonSlots } from './types';
3
+ import { JQButtonSizeType, JQButtonSlots, JQButtonTypeType } from './types';
4
+ import { TooltipProps } from '../j-c-tooltip/types';
4
5
  import { TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
5
6
  export * from './types';
6
7
  declare const _default: DefineComponent<ExtractPropTypes<{
@@ -51,10 +52,19 @@ declare const _default: DefineComponent<ExtractPropTypes<{
51
52
  * @default ''
52
53
  */
53
54
  tips: {
54
- type: StringConstructor;
55
+ type: (StringConstructor | NumberConstructor)[];
55
56
  default: string;
56
57
  };
58
+ /**
59
+ * Tooltip 配置项
60
+ * @default undefined
61
+ */
62
+ tooltipConfig: {
63
+ type: PropType<Omit<TooltipProps, "content">>;
64
+ default: undefined;
65
+ };
57
66
  }>, {
67
+ click: (e: Event) => void;
58
68
  computedClass: ComputedRef<{
59
69
  [x: string]: boolean;
60
70
  'j-q-button': boolean;
@@ -70,8 +80,20 @@ declare const _default: DefineComponent<ExtractPropTypes<{
70
80
  iconPadding: ComputedRef<{
71
81
  'j-q-button-label': string | (() => any) | undefined;
72
82
  }>;
73
- click: (e: Event) => void;
83
+ mergedTooltipConfig: ComputedRef<{
84
+ modelValue?: boolean;
85
+ placement?: TooltipPlacement;
86
+ effect?: TooltipEffect;
87
+ trigger?: TooltipTrigger;
88
+ disabled?: boolean;
89
+ showArrow?: boolean;
90
+ openDelay?: number;
91
+ closeDelay?: number;
92
+ maxWidth?: string;
93
+ offset?: number;
94
+ }>;
74
95
  qBtnRef: Ref<QBtn | null, QBtn | null>;
96
+ tooltipContent: ComputedRef<string>;
75
97
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
76
98
  /**
77
99
  * 点击事件
@@ -126,9 +148,17 @@ declare const _default: DefineComponent<ExtractPropTypes<{
126
148
  * @default ''
127
149
  */
128
150
  tips: {
129
- type: StringConstructor;
151
+ type: (StringConstructor | NumberConstructor)[];
130
152
  default: string;
131
153
  };
154
+ /**
155
+ * Tooltip 配置项
156
+ * @default undefined
157
+ */
158
+ tooltipConfig: {
159
+ type: PropType<Omit<TooltipProps, "content">>;
160
+ default: undefined;
161
+ };
132
162
  }>> & Readonly<{
133
163
  onClick?: ((e: Event) => any) | undefined;
134
164
  }>, {
@@ -137,7 +167,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
137
167
  label: string;
138
168
  icon: string;
139
169
  loading: boolean;
140
- tips: string;
170
+ tooltipConfig: Omit<TooltipProps, "content">;
171
+ tips: string | number;
141
172
  }, SlotsType<JQButtonSlots>, {
142
173
  QBtn: ComponentConstructor<QBtn>;
143
174
  JCTooltip: DefineComponent<ExtractPropTypes<{
@@ -1,4 +1,5 @@
1
1
  import { QBtnProps } from 'quasar';
2
+ import { TooltipProps } from '../j-c-tooltip/types';
2
3
  import { DefineComponent } from 'vue';
3
4
  export declare const JQButtonSize: {
4
5
  readonly LARGE: "large";
@@ -49,7 +50,12 @@ export interface JQButtonProps {
49
50
  * 按钮提示文字 (tooltip)
50
51
  * @default ''
51
52
  */
52
- tips?: string;
53
+ tips?: string | number;
54
+ /**
55
+ * Tooltip 配置项
56
+ * @default undefined
57
+ */
58
+ tooltipConfig?: Omit<TooltipProps, 'content'>;
53
59
  }
54
60
  /** JQButton Emits 接口 */
55
61
  export interface JQButtonEmits {
@@ -110,4 +116,6 @@ export interface JQButtonTemplateProps extends JQButtonProps {
110
116
  target?: string;
111
117
  /** 路由跳转 (继承自 QBtn) */
112
118
  to?: string | object;
119
+ /** Tooltip 配置项 */
120
+ tooltipConfig?: Omit<TooltipProps, 'content'>;
113
121
  }
@@ -1,7 +1,7 @@
1
1
  import { SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, PropType, Ref, ComponentProvideOptions } from 'vue';
2
2
  import { QPopupProxy, QCard, QCardSection, ComponentConstructor, QBtn } from 'quasar';
3
3
  import { JQButtonSizeType, JQButtonTypeType, JQButtonSlots } from '../j-q-button/index';
4
- import { TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
4
+ import { TooltipProps, TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
5
5
  declare const _default: DefineComponent<ExtractPropTypes<{
6
6
  title: {
7
7
  type: StringConstructor;
@@ -70,10 +70,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
70
70
  default: boolean;
71
71
  };
72
72
  tips: {
73
- type: StringConstructor;
73
+ type: (StringConstructor | NumberConstructor)[];
74
74
  default: string;
75
75
  };
76
+ tooltipConfig: {
77
+ type: PropType<Omit< TooltipProps, "content">>;
78
+ default: undefined;
79
+ };
76
80
  }>, {
81
+ click: (e: Event) => void;
77
82
  computedClass: ComputedRef<{
78
83
  [x: string]: boolean;
79
84
  'j-q-button': boolean;
@@ -89,8 +94,20 @@ declare const _default: DefineComponent<ExtractPropTypes<{
89
94
  iconPadding: ComputedRef<{
90
95
  'j-q-button-label': string | (() => any) | undefined;
91
96
  }>;
92
- click: (e: Event) => void;
97
+ mergedTooltipConfig: ComputedRef<{
98
+ modelValue?: boolean;
99
+ placement?: TooltipPlacement;
100
+ effect?: TooltipEffect;
101
+ trigger?: TooltipTrigger;
102
+ disabled?: boolean;
103
+ showArrow?: boolean;
104
+ openDelay?: number;
105
+ closeDelay?: number;
106
+ maxWidth?: string;
107
+ offset?: number;
108
+ }>;
93
109
  qBtnRef: Ref< QBtn | null, QBtn | null>;
110
+ tooltipContent: ComputedRef<string>;
94
111
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
95
112
  click: (e: Event) => true;
96
113
  }, string, PublicProps, Readonly< ExtractPropTypes<{
@@ -117,9 +134,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
117
134
  default: boolean;
118
135
  };
119
136
  tips: {
120
- type: StringConstructor;
137
+ type: (StringConstructor | NumberConstructor)[];
121
138
  default: string;
122
139
  };
140
+ tooltipConfig: {
141
+ type: PropType<Omit< TooltipProps, "content">>;
142
+ default: undefined;
143
+ };
123
144
  }>> & Readonly<{
124
145
  onClick?: ((e: Event) => any) | undefined;
125
146
  }>, {
@@ -128,7 +149,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
128
149
  label: string;
129
150
  icon: string;
130
151
  loading: boolean;
131
- tips: string;
152
+ tooltipConfig: Omit< TooltipProps, "content">;
153
+ tips: string | number;
132
154
  }, SlotsType< JQButtonSlots>, {
133
155
  QBtn: ComponentConstructor<QBtn>;
134
156
  JCTooltip: DefineComponent<ExtractPropTypes<{
@@ -13,7 +13,8 @@ declare class GlobalConfirm implements IJQConfirmDialog {
13
13
  }
14
14
  declare const globalConfirm: GlobalConfirm;
15
15
  export default globalConfirm;
16
- default: string;
16
+ tructor;
17
+ default: string;
17
18
  };
18
19
  cancelButtonText: {
19
20
  type: StringConstructor;
@@ -130,10 +131,15 @@ export default globalConfirm;
130
131
  default: boolean;
131
132
  };
132
133
  tips: {
133
- type: StringConstructor;
134
+ type: (StringConstructor | NumberConstructor)[];
134
135
  default: string;
135
136
  };
137
+ tooltipConfig: {
138
+ type: PropType<Omit< TooltipProps, "content">>;
139
+ default: undefined;
140
+ };
136
141
  }>, {
142
+ click: (e: Event) => void;
137
143
  computedClass: ComputedRef<{
138
144
  [x: string]: boolean;
139
145
  'j-q-button': boolean;
@@ -149,8 +155,20 @@ export default globalConfirm;
149
155
  iconPadding: ComputedRef<{
150
156
  'j-q-button-label': string | (() => any) | undefined;
151
157
  }>;
152
- click: (e: Event) => void;
158
+ mergedTooltipConfig: ComputedRef<{
159
+ modelValue?: boolean;
160
+ placement?: TooltipPlacement;
161
+ effect?: TooltipEffect;
162
+ trigger?: TooltipTrigger;
163
+ disabled?: boolean;
164
+ showArrow?: boolean;
165
+ openDelay?: number;
166
+ closeDelay?: number;
167
+ maxWidth?: string;
168
+ offset?: number;
169
+ }>;
153
170
  qBtnRef: Ref< QBtn | null, QBtn | null>;
171
+ tooltipContent: ComputedRef<string>;
154
172
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
155
173
  click: (e: Event) => true;
156
174
  }, string, PublicProps, Readonly< ExtractPropTypes<{
@@ -177,9 +195,13 @@ export default globalConfirm;
177
195
  default: boolean;
178
196
  };
179
197
  tips: {
180
- type: StringConstructor;
198
+ type: (StringConstructor | NumberConstructor)[];
181
199
  default: string;
182
200
  };
201
+ tooltipConfig: {
202
+ type: PropType<Omit< TooltipProps, "content">>;
203
+ default: undefined;
204
+ };
183
205
  }>> & Readonly<{
184
206
  onClick?: ((e: Event) => any) | undefined;
185
207
  }>, {
@@ -188,7 +210,8 @@ export default globalConfirm;
188
210
  label: string;
189
211
  icon: string;
190
212
  loading: boolean;
191
- tips: string;
213
+ tooltipConfig: Omit< TooltipProps, "content">;
214
+ tips: string | number;
192
215
  }, SlotsType<JQButtonSlots>, {
193
216
  QBtn: ComponentConstructor<QBtn>;
194
217
  JCTooltip: DefineComponent<ExtractPropTypes<{
@@ -2,7 +2,7 @@ import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableCo
2
2
  import { QDateProps, QField, QFieldProps, QPopupProxy, QDate, QInput, QIcon, ComponentConstructor, QBtn } from 'quasar';
3
3
  import { t } from '../../composables/useI18n.ts';
4
4
  import { JQButtonSizeType, JQButtonTypeType, JQButtonSlots } from '../j-q-button/index';
5
- import { TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
5
+ import { TooltipProps, TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
6
6
  export interface TimeParts {
7
7
  h: number;
8
8
  m: number;
@@ -186,10 +186,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
186
186
  default: boolean;
187
187
  };
188
188
  tips: {
189
- type: StringConstructor;
189
+ type: (StringConstructor | NumberConstructor)[];
190
190
  default: string;
191
191
  };
192
+ tooltipConfig: {
193
+ type: PropType<Omit< TooltipProps, "content">>;
194
+ default: undefined;
195
+ };
192
196
  }>, {
197
+ click: (e: Event) => void;
193
198
  computedClass: ComputedRef<{
194
199
  [x: string]: boolean;
195
200
  'j-q-button': boolean;
@@ -205,8 +210,20 @@ declare const _default: DefineComponent<ExtractPropTypes<{
205
210
  iconPadding: ComputedRef<{
206
211
  'j-q-button-label': string | (() => any) | undefined;
207
212
  }>;
208
- click: (e: Event) => void;
213
+ mergedTooltipConfig: ComputedRef<{
214
+ modelValue?: boolean;
215
+ placement?: TooltipPlacement;
216
+ effect?: TooltipEffect;
217
+ trigger?: TooltipTrigger;
218
+ disabled?: boolean;
219
+ showArrow?: boolean;
220
+ openDelay?: number;
221
+ closeDelay?: number;
222
+ maxWidth?: string;
223
+ offset?: number;
224
+ }>;
209
225
  qBtnRef: Ref< QBtn | null, QBtn | null>;
226
+ tooltipContent: ComputedRef<string>;
210
227
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
211
228
  click: (e: Event) => true;
212
229
  }, string, PublicProps, Readonly< ExtractPropTypes<{
@@ -233,9 +250,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
233
250
  default: boolean;
234
251
  };
235
252
  tips: {
236
- type: StringConstructor;
253
+ type: (StringConstructor | NumberConstructor)[];
237
254
  default: string;
238
255
  };
256
+ tooltipConfig: {
257
+ type: PropType<Omit< TooltipProps, "content">>;
258
+ default: undefined;
259
+ };
239
260
  }>> & Readonly<{
240
261
  onClick?: ((e: Event) => any) | undefined;
241
262
  }>, {
@@ -244,7 +265,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
244
265
  label: string;
245
266
  icon: string;
246
267
  loading: boolean;
247
- tips: string;
268
+ tooltipConfig: Omit< TooltipProps, "content">;
269
+ tips: string | number;
248
270
  }, SlotsType< JQButtonSlots>, {
249
271
  QBtn: ComponentConstructor<QBtn>;
250
272
  JCTooltip: DefineComponent<ExtractPropTypes<{
@@ -1,8 +1,8 @@
1
1
  import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComputedRef, ComponentProvideOptions } from 'vue';
2
2
  import { t } from '../../composables/useI18n.ts';
3
3
  import { JQButtonSizeType, JQButtonTypeType, JQButtonSlots } from '../j-q-button/index';
4
+ import { TooltipProps, TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
4
5
  import { QBtn, ComponentConstructor } from 'quasar';
5
- import { TooltipPlacement, TooltipEffect, TooltipTrigger } from '../..';
6
6
  type SearchFormData = Record<string, any>;
7
7
  declare const _default: DefineComponent<ExtractPropTypes<{
8
8
  modelValue: {
@@ -88,10 +88,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
88
88
  default: boolean;
89
89
  };
90
90
  tips: {
91
- type: StringConstructor;
91
+ type: (StringConstructor | NumberConstructor)[];
92
92
  default: string;
93
93
  };
94
+ tooltipConfig: {
95
+ type: PropType<Omit< TooltipProps, "content">>;
96
+ default: undefined;
97
+ };
94
98
  }>, {
99
+ click: (e: Event) => void;
95
100
  computedClass: ComputedRef<{
96
101
  [x: string]: boolean;
97
102
  'j-q-button': boolean;
@@ -107,8 +112,20 @@ declare const _default: DefineComponent<ExtractPropTypes<{
107
112
  iconPadding: ComputedRef<{
108
113
  'j-q-button-label': string | (() => any) | undefined;
109
114
  }>;
110
- click: (e: Event) => void;
115
+ mergedTooltipConfig: ComputedRef<{
116
+ modelValue?: boolean;
117
+ placement?: TooltipPlacement;
118
+ effect?: TooltipEffect;
119
+ trigger?: TooltipTrigger;
120
+ disabled?: boolean;
121
+ showArrow?: boolean;
122
+ openDelay?: number;
123
+ closeDelay?: number;
124
+ maxWidth?: string;
125
+ offset?: number;
126
+ }>;
111
127
  qBtnRef: Ref< QBtn | null, QBtn | null>;
128
+ tooltipContent: ComputedRef<string>;
112
129
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
113
130
  click: (e: Event) => true;
114
131
  }, string, PublicProps, Readonly< ExtractPropTypes<{
@@ -135,9 +152,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
135
152
  default: boolean;
136
153
  };
137
154
  tips: {
138
- type: StringConstructor;
155
+ type: (StringConstructor | NumberConstructor)[];
139
156
  default: string;
140
157
  };
158
+ tooltipConfig: {
159
+ type: PropType<Omit< TooltipProps, "content">>;
160
+ default: undefined;
161
+ };
141
162
  }>> & Readonly<{
142
163
  onClick?: ((e: Event) => any) | undefined;
143
164
  }>, {
@@ -146,7 +167,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
146
167
  label: string;
147
168
  icon: string;
148
169
  loading: boolean;
149
- tips: string;
170
+ tooltipConfig: Omit< TooltipProps, "content">;
171
+ tips: string | number;
150
172
  }, SlotsType< JQButtonSlots>, {
151
173
  QBtn: ComponentConstructor<QBtn>;
152
174
  JCTooltip: DefineComponent<ExtractPropTypes<{
@@ -1,27 +1,26 @@
1
- import { QInput, QPagination, QSelect, ComponentConstructor } from 'quasar';
2
- import { DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { t } from '../../composables/useI18n.ts';
4
- export interface PaginationInfo {
1
+ export type PaginationParameter = Pick<Paginator, 'page' | 'rowsPerPage'>;
2
+ export interface Paginator {
5
3
  page: number;
6
4
  rowsPerPage: number;
7
5
  rowsNumber: number;
8
6
  }
9
- declare const _default: DefineComponent<ExtractPropTypes<{
10
- paginationInfo: {
11
- type: () => PaginationInfo;
12
- default: () => {
13
- page: number;
14
- rowsPerPage: number;
15
- rowsNumber: number;
16
- };
17
- };
18
- }>, {
19
- t: t;
20
- internalInfo: {
21
- totalPage: number;
22
- currentPage: string | number;
23
- page: number;
24
- rowsPerPage: number;
7
+ export type UsePaginationOptions = {
8
+ page?: number;
9
+ rowsPerPage?: number;
10
+ rowsNumber?: number;
11
+ };
12
+ export type UsePaginationReturn = {
13
+ paginationInfo: Paginator;
14
+ getNum: () => number;
15
+ getPaginationParam: () => PaginationParameter;
16
+ setNum: (value?: number) => void;
17
+ setSize: (value?: number) => void;
18
+ setTotal: (value?: number) => void;
19
+ };
20
+ export declare const DEFAULT_ROWS_PER_PAGE = 15;
21
+ export declare const ROWS_PER_PAGE_OPTIONS: number[];
22
+ export declare function usePagination(options?: UsePaginationOptions): UsePaginationReturn;
23
+ rowsPerPage: number;
25
24
  rowsNumber: number;
26
25
  };
27
26
  rowNumbersArr: number[];