rtcpts 0.0.1

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 (77) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +68 -0
  3. package/dist/charts-D71LM320.cjs +1 -0
  4. package/dist/charts-DFQ978tO.js +826 -0
  5. package/dist/charts.cjs.js +1 -0
  6. package/dist/charts.css +1 -0
  7. package/dist/charts.d.ts +7 -0
  8. package/dist/charts.es.js +9 -0
  9. package/dist/components/j-c-copy/index.d.ts +31 -0
  10. package/dist/components/j-c-duo-list-editor/index.d.ts +102 -0
  11. package/dist/components/j-c-editable-proxy/index.d.ts +146 -0
  12. package/dist/components/j-c-fallback/index.d.ts +56 -0
  13. package/dist/components/j-c-foldable-list/index.d.ts +66 -0
  14. package/dist/components/j-c-format-lookup/index.d.ts +65 -0
  15. package/dist/components/j-c-list-editor/index.d.ts +359 -0
  16. package/dist/components/j-c-more-menu/index.d.ts +220 -0
  17. package/dist/components/j-c-permission/index.d.ts +59 -0
  18. package/dist/components/j-c-tabs/index.d.ts +131 -0
  19. package/dist/components/j-c-title-line/index.d.ts +15 -0
  20. package/dist/components/j-c-tree/index.d.ts +16 -0
  21. package/dist/components/j-c-tree-select/index.d.ts +755 -0
  22. package/dist/components/j-ch-bar/index.d.ts +39 -0
  23. package/dist/components/j-ch-bar-line/index.d.ts +38 -0
  24. package/dist/components/j-ch-bubble/index.d.ts +43 -0
  25. package/dist/components/j-ch-line/index.d.ts +37 -0
  26. package/dist/components/j-ch-pie-doughnut/index.d.ts +49 -0
  27. package/dist/components/j-ch-radar/index.d.ts +38 -0
  28. package/dist/components/j-q-autocomplete/index.d.ts +71 -0
  29. package/dist/components/j-q-confirm/index.d.ts +48 -0
  30. package/dist/components/j-q-confirm-dialog/index.d.ts +65 -0
  31. package/dist/components/j-q-date/index.d.ts +199 -0
  32. package/dist/components/j-q-datetime/index.d.ts +166 -0
  33. package/dist/components/j-q-detail-list/index.d.ts +136 -0
  34. package/dist/components/j-q-dialog/file.d.ts +5 -0
  35. package/dist/components/j-q-dialog/form-rules.d.ts +17 -0
  36. package/dist/components/j-q-dialog/form.d.ts +4 -0
  37. package/dist/components/j-q-dialog/index.d.ts +53 -0
  38. package/dist/components/j-q-file/download.d.ts +2 -0
  39. package/dist/components/j-q-file/index.d.ts +82 -0
  40. package/dist/components/j-q-form-label/index.d.ts +79 -0
  41. package/dist/components/j-q-input/index.d.ts +194 -0
  42. package/dist/components/j-q-message/index.d.ts +19 -0
  43. package/dist/components/j-q-new-value/index.d.ts +117 -0
  44. package/dist/components/j-q-option-group/index.d.ts +133 -0
  45. package/dist/components/j-q-popover/index.d.ts +49 -0
  46. package/dist/components/j-q-search-form/index.d.ts +67 -0
  47. package/dist/components/j-q-select/index.d.ts +252 -0
  48. package/dist/components/j-q-table/index.d.ts +251 -0
  49. package/dist/components/j-q-table/pagination.d.ts +52 -0
  50. package/dist/components/j-q-tooltip/index.d.ts +44 -0
  51. package/dist/components/j-q-tooltip/tooltip.d.ts +3 -0
  52. package/dist/composables/useI18n.d.ts +14 -0
  53. package/dist/en-US-BfaBFOjR.cjs +1 -0
  54. package/dist/en-US-Di49EX5C.js +106 -0
  55. package/dist/i18n/en-US/index.d.ts +59 -0
  56. package/dist/i18n/index.d.ts +10 -0
  57. package/dist/i18n/zh-CN/index.d.ts +59 -0
  58. package/dist/index-BXXYZm9Q.cjs +1 -0
  59. package/dist/index-CHKEi8Wc.js +49 -0
  60. package/dist/index-EGZV35Ev.js +49 -0
  61. package/dist/index-zt6HltZK.cjs +1 -0
  62. package/dist/index.css +1 -0
  63. package/dist/index.d.ts +47 -0
  64. package/dist/rtcpt-styles.css +1 -0
  65. package/dist/rtcpt-styles.d.ts +1 -0
  66. package/dist/rtcpt-styles.js +1 -0
  67. package/dist/rtcpt.cjs.js +1 -0
  68. package/dist/rtcpt.es.js +5016 -0
  69. package/dist/types.d.ts +25 -0
  70. package/dist/utils/custom-svg.d.ts +3 -0
  71. package/dist/utils/icon-map.d.ts +9 -0
  72. package/dist/utils/init.d.ts +15 -0
  73. package/dist/utils/storage.d.ts +3 -0
  74. package/dist/utils/tool.d.ts +31 -0
  75. package/dist/zh-CN-BoRskSmh.js +111 -0
  76. package/dist/zh-CN-DWWgisNr.cjs +1 -0
  77. package/package.json +80 -0
@@ -0,0 +1,359 @@
1
+ import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, WritableComputedRef, ComponentOptionsMixin, PublicProps, Slot, ComponentProvideOptions, Ref } from 'vue';
2
+ import { QBtn, ComponentConstructor, QIcon, QTooltip, QInputProps, QInput } from 'quasar';
3
+ import { t } from '../../composables/useI18n.ts';
4
+ type TModelValue = string[];
5
+ declare const _default: DefineComponent<ExtractPropTypes<{
6
+ modelValue: {
7
+ type: PropType<TModelValue>;
8
+ default: () => string[];
9
+ };
10
+ label: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ required: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ rules: {
19
+ type: PropType<any[]>;
20
+ };
21
+ readonly: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ placeholder: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ defaultNewValue: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ maxItems: {
34
+ type: PropType<number>;
35
+ default: number;
36
+ };
37
+ inputType: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ }>, {
42
+ computedPlaceholder: ComputedRef<string>;
43
+ innerValue: WritableComputedRef<TModelValue, TModelValue>;
44
+ updateItem: (index: number, value: string | number | FileList | null | undefined) => void;
45
+ addItem: (index: number) => void;
46
+ removeItem: (index: number) => void;
47
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
48
+ modelValue: {
49
+ type: PropType<TModelValue>;
50
+ default: () => string[];
51
+ };
52
+ label: {
53
+ type: StringConstructor;
54
+ required: true;
55
+ };
56
+ required: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ rules: {
61
+ type: PropType<any[]>;
62
+ };
63
+ readonly: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ placeholder: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ defaultNewValue: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ maxItems: {
76
+ type: PropType<number>;
77
+ default: number;
78
+ };
79
+ inputType: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ }>> & Readonly<{
84
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
85
+ }>, {
86
+ required: boolean;
87
+ placeholder: string;
88
+ modelValue: TModelValue;
89
+ maxItems: number;
90
+ readonly: boolean;
91
+ defaultNewValue: string;
92
+ inputType: string;
93
+ }, SlotsType<{
94
+ after: void;
95
+ }>, {
96
+ JQFormLabel: DefineComponent<ExtractPropTypes<{
97
+ label: {
98
+ type: StringConstructor;
99
+ };
100
+ labelClass: {
101
+ type: PropType<string | Record<string, boolean> | (string | Record<string, boolean>)[]>;
102
+ };
103
+ valueClass: {
104
+ type: PropType<string | Record<string, boolean> | (string | Record<string, boolean>)[]>;
105
+ };
106
+ vertical: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ horizontal: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ required: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ tip: {
119
+ type: StringConstructor;
120
+ default: string;
121
+ };
122
+ }>, {
123
+ directionClass: ComputedRef<"form-label--vertical" | "form-label--horizontal">;
124
+ showLabel: ComputedRef<true>;
125
+ slots: Readonly<{
126
+ default: Slot<void>;
127
+ 'label-hint': Slot<void>;
128
+ 'form-item-detail': Slot<void>;
129
+ label: Slot<void>;
130
+ }>;
131
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
132
+ label: {
133
+ type: StringConstructor;
134
+ };
135
+ labelClass: {
136
+ type: PropType<string | Record<string, boolean> | (string | Record<string, boolean>)[]>;
137
+ };
138
+ valueClass: {
139
+ type: PropType<string | Record<string, boolean> | (string | Record<string, boolean>)[]>;
140
+ };
141
+ vertical: {
142
+ type: BooleanConstructor;
143
+ default: boolean;
144
+ };
145
+ horizontal: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ required: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ tip: {
154
+ type: StringConstructor;
155
+ default: string;
156
+ };
157
+ }>> & Readonly<{}>, {
158
+ required: boolean;
159
+ horizontal: boolean;
160
+ vertical: boolean;
161
+ tip: string;
162
+ }, SlotsType<{
163
+ default: void;
164
+ 'label-hint': void;
165
+ 'form-item-detail': void;
166
+ label: void;
167
+ }>, {
168
+ QIcon: ComponentConstructor<QIcon>;
169
+ QTooltip: ComponentConstructor<QTooltip>;
170
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
171
+ JQInput: DefineComponent<ExtractPropTypes<{
172
+ modelValue: {
173
+ type: PropType<string | number | FileList | null | undefined>;
174
+ };
175
+ bgColor: {
176
+ type: PropType< QInputProps["bgColor"]>;
177
+ };
178
+ borderless: {
179
+ type: PropType< QInputProps["borderless"]>;
180
+ };
181
+ dense: {
182
+ type: PropType< QInputProps["dense"]>;
183
+ default: boolean;
184
+ };
185
+ disable: {
186
+ type: PropType< QInputProps["disable"]>;
187
+ };
188
+ inputLimitFn: {
189
+ type: PropType<(value: string | number | FileList | null | undefined) => boolean>;
190
+ default: () => boolean;
191
+ };
192
+ label: {
193
+ type: PropType< QInputProps["label"]>;
194
+ };
195
+ maxlength: {
196
+ type: PropType<string | number | null>;
197
+ default: number;
198
+ };
199
+ outlined: {
200
+ type: PropType< QInputProps["outlined"]>;
201
+ default: boolean;
202
+ };
203
+ readonly: {
204
+ type: BooleanConstructor;
205
+ };
206
+ rules: {
207
+ type: () => QInputProps["rules"];
208
+ };
209
+ type: {
210
+ type: PropType< QInputProps["type"]>;
211
+ };
212
+ customType: {
213
+ type: PropType<"text" | "password" | "secret">;
214
+ default: string;
215
+ required: false;
216
+ };
217
+ smInput: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ }>, {
222
+ t: t;
223
+ innerModel: Ref<string | number | {
224
+ [x: number]: {
225
+ readonly lastModified: number;
226
+ readonly name: string;
227
+ readonly webkitRelativePath: string;
228
+ readonly size: number;
229
+ readonly type: string;
230
+ arrayBuffer: () => Promise<ArrayBuffer>;
231
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
232
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
233
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
234
+ text: () => Promise<string>;
235
+ };
236
+ readonly length: number;
237
+ item: (index: number) => File | null;
238
+ [Symbol.iterator]: () => ArrayIterator<File>;
239
+ } | null | undefined, string | number | FileList | {
240
+ [x: number]: {
241
+ readonly lastModified: number;
242
+ readonly name: string;
243
+ readonly webkitRelativePath: string;
244
+ readonly size: number;
245
+ readonly type: string;
246
+ arrayBuffer: () => Promise<ArrayBuffer>;
247
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
248
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
249
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
250
+ text: () => Promise<string>;
251
+ };
252
+ readonly length: number;
253
+ item: (index: number) => File | null;
254
+ [Symbol.iterator]: () => ArrayIterator<File>;
255
+ } | null | undefined>;
256
+ computedInputValue: ComputedRef<string | number | {
257
+ [x: number]: {
258
+ readonly lastModified: number;
259
+ readonly name: string;
260
+ readonly webkitRelativePath: string;
261
+ readonly size: number;
262
+ readonly type: string;
263
+ arrayBuffer: () => Promise<ArrayBuffer>;
264
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
265
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
266
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
267
+ text: () => Promise<string>;
268
+ };
269
+ readonly length: number;
270
+ item: (index: number) => File | null;
271
+ [Symbol.iterator]: () => ArrayIterator<File>;
272
+ } | null | undefined>;
273
+ computedDisplayValue: ComputedRef<string>;
274
+ computedClass: ComputedRef<{
275
+ 'input-password': boolean;
276
+ 'j-q-input--table': string | undefined;
277
+ 'j-q-input--form': boolean;
278
+ 'j-q-input--textarea': boolean;
279
+ 'j-q-input--sm': boolean;
280
+ }>;
281
+ change: (val: string | number | FileList | null | undefined) => void;
282
+ qInputRef: Ref< QInput | null, QInput | null>;
283
+ isContentVisible: Ref<boolean, boolean>;
284
+ toggleVisibility: () => void;
285
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
286
+ change: (value: string | number | FileList | null | undefined) => true;
287
+ 'update:modelValue': (value: string | number | FileList | null | undefined) => true;
288
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
289
+ modelValue: {
290
+ type: PropType<string | number | FileList | null | undefined>;
291
+ };
292
+ bgColor: {
293
+ type: PropType< QInputProps["bgColor"]>;
294
+ };
295
+ borderless: {
296
+ type: PropType< QInputProps["borderless"]>;
297
+ };
298
+ dense: {
299
+ type: PropType< QInputProps["dense"]>;
300
+ default: boolean;
301
+ };
302
+ disable: {
303
+ type: PropType< QInputProps["disable"]>;
304
+ };
305
+ inputLimitFn: {
306
+ type: PropType<(value: string | number | FileList | null | undefined) => boolean>;
307
+ default: () => boolean;
308
+ };
309
+ label: {
310
+ type: PropType< QInputProps["label"]>;
311
+ };
312
+ maxlength: {
313
+ type: PropType<string | number | null>;
314
+ default: number;
315
+ };
316
+ outlined: {
317
+ type: PropType< QInputProps["outlined"]>;
318
+ default: boolean;
319
+ };
320
+ readonly: {
321
+ type: BooleanConstructor;
322
+ };
323
+ rules: {
324
+ type: () => QInputProps["rules"];
325
+ };
326
+ type: {
327
+ type: PropType< QInputProps["type"]>;
328
+ };
329
+ customType: {
330
+ type: PropType<"text" | "password" | "secret">;
331
+ default: string;
332
+ required: false;
333
+ };
334
+ smInput: {
335
+ type: BooleanConstructor;
336
+ default: boolean;
337
+ };
338
+ }>> & Readonly<{
339
+ "onUpdate:modelValue"?: ((value: string | number | FileList | null | undefined) => any) | undefined;
340
+ onChange?: ((value: string | number | FileList | null | undefined) => any) | undefined;
341
+ }>, {
342
+ dense: boolean | undefined;
343
+ outlined: boolean | undefined;
344
+ inputLimitFn: (value: string | number | FileList | null | undefined) => boolean;
345
+ maxlength: string | number | null;
346
+ readonly: boolean;
347
+ customType: "text" | "password" | "secret";
348
+ smInput: boolean;
349
+ }, SlotsType<{
350
+ after?: void | undefined;
351
+ append?: void | undefined;
352
+ prepend?: void | undefined;
353
+ default?: void | undefined;
354
+ }>, {
355
+ QInput: ComponentConstructor<QInput>;
356
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
357
+ QBtn: ComponentConstructor<QBtn>;
358
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
359
+ export default _default;
@@ -0,0 +1,220 @@
1
+ import { PropType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, SlotsType, ComponentProvideOptions } from 'vue';
2
+ import { QIcon, QItem, QItemSection, QList, QMenu, QMenuProps, ComponentConstructor } from 'quasar';
3
+ type BoolLike<T> = boolean | ((item: T) => boolean);
4
+ type LabelLike<T> = string | ((ctx: {
5
+ item: T;
6
+ action: JCMoreMenuAction<T>;
7
+ }) => string);
8
+ type TranslateFn = (key: string, variables?: Record<string, any>) => string;
9
+ export type JCMoreMenuAction<T = any> = {
10
+ key?: string | number;
11
+ permissionCode?: string | null;
12
+ rmDom?: boolean;
13
+ defaultContent?: string;
14
+ label?: LabelLike<T>;
15
+ i18nKey?: string;
16
+ clickable?: boolean;
17
+ closePopup?: boolean;
18
+ visible?: BoolLike<T>;
19
+ disabled?: BoolLike<T>;
20
+ onClick?: (item: T) => void | Promise<void>;
21
+ };
22
+ declare const _default: DefineComponent<ExtractPropTypes<{
23
+ item: {
24
+ type: PropType<any>;
25
+ default: null;
26
+ };
27
+ actions: {
28
+ type: PropType<JCMoreMenuAction<any>[]>;
29
+ default: () => never[];
30
+ };
31
+ preset: {
32
+ type: PropType<"option" | "action">;
33
+ default: string;
34
+ };
35
+ fit: {
36
+ type: PropType<boolean | undefined>;
37
+ default: undefined;
38
+ };
39
+ dense: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ triggerSize: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ offset: {
48
+ type: PropType<[number, number]>;
49
+ default: undefined;
50
+ };
51
+ anchor: {
52
+ type: PropType<QMenuProps["anchor"]>;
53
+ default: undefined;
54
+ };
55
+ self: {
56
+ type: PropType<QMenuProps["self"]>;
57
+ default: undefined;
58
+ };
59
+ listMinWidth: {
60
+ type: PropType<string | undefined>;
61
+ default: undefined;
62
+ };
63
+ menuClass: {
64
+ type: PropType<any>;
65
+ default: undefined;
66
+ };
67
+ translate: {
68
+ type: PropType<TranslateFn | undefined>;
69
+ default: undefined;
70
+ };
71
+ }>, {
72
+ hasVisibleActions: ComputedRef<boolean>;
73
+ isActionVisible: (action: JCMoreMenuAction<any>) => boolean;
74
+ isActionDisabled: (action: JCMoreMenuAction<any>) => boolean;
75
+ preset: ComputedRef<"option" | "action">;
76
+ computedFit: ComputedRef<boolean>;
77
+ computedOffset: ComputedRef<[number, number] | undefined>;
78
+ computedAnchor: ComputedRef<"top middle" | "top left" | "top right" | "top start" | "top end" | "center left" | "center middle" | "center right" | "center start" | "center end" | "bottom left" | "bottom middle" | "bottom right" | "bottom start" | "bottom end" | undefined>;
79
+ computedSelf: ComputedRef<"top middle" | "top left" | "top right" | "top start" | "top end" | "center left" | "center middle" | "center right" | "center start" | "center end" | "bottom left" | "bottom middle" | "bottom right" | "bottom start" | "bottom end" | undefined>;
80
+ computedListStyle: ComputedRef<{
81
+ minWidth: string;
82
+ } | undefined>;
83
+ computedMenuClass: ComputedRef<any>;
84
+ computedMenuAttrs: ComputedRef<Record<string, string | undefined>>;
85
+ getActionLabel: (action: JCMoreMenuAction<any>) => string;
86
+ handleActionClick: (action: JCMoreMenuAction<any>) => Promise<void>;
87
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
88
+ action: (payload: {
89
+ action: JCMoreMenuAction<any>;
90
+ item: any;
91
+ }) => true;
92
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
93
+ item: {
94
+ type: PropType<any>;
95
+ default: null;
96
+ };
97
+ actions: {
98
+ type: PropType<JCMoreMenuAction<any>[]>;
99
+ default: () => never[];
100
+ };
101
+ preset: {
102
+ type: PropType<"option" | "action">;
103
+ default: string;
104
+ };
105
+ fit: {
106
+ type: PropType<boolean | undefined>;
107
+ default: undefined;
108
+ };
109
+ dense: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ triggerSize: {
114
+ type: StringConstructor;
115
+ default: string;
116
+ };
117
+ offset: {
118
+ type: PropType<[number, number]>;
119
+ default: undefined;
120
+ };
121
+ anchor: {
122
+ type: PropType<QMenuProps["anchor"]>;
123
+ default: undefined;
124
+ };
125
+ self: {
126
+ type: PropType<QMenuProps["self"]>;
127
+ default: undefined;
128
+ };
129
+ listMinWidth: {
130
+ type: PropType<string | undefined>;
131
+ default: undefined;
132
+ };
133
+ menuClass: {
134
+ type: PropType<any>;
135
+ default: undefined;
136
+ };
137
+ translate: {
138
+ type: PropType<TranslateFn | undefined>;
139
+ default: undefined;
140
+ };
141
+ }>> & Readonly<{
142
+ onAction?: ((payload: {
143
+ action: JCMoreMenuAction<any>;
144
+ item: any;
145
+ }) => any) | undefined;
146
+ }>, {
147
+ anchor: "top middle" | "top left" | "top right" | "top start" | "top end" | "center left" | "center middle" | "center right" | "center start" | "center end" | "bottom left" | "bottom middle" | "bottom right" | "bottom start" | "bottom end" | undefined;
148
+ item: any;
149
+ dense: boolean;
150
+ self: "top middle" | "top left" | "top right" | "top start" | "top end" | "center left" | "center middle" | "center right" | "center start" | "center end" | "bottom left" | "bottom middle" | "bottom right" | "bottom start" | "bottom end" | undefined;
151
+ offset: [number, number];
152
+ actions: JCMoreMenuAction<any>[];
153
+ preset: "option" | "action";
154
+ fit: boolean | undefined;
155
+ triggerSize: string;
156
+ listMinWidth: string | undefined;
157
+ menuClass: any;
158
+ translate: TranslateFn | undefined;
159
+ }, {}, {
160
+ QIcon: ComponentConstructor<QIcon>;
161
+ QMenu: ComponentConstructor<QMenu>;
162
+ QList: ComponentConstructor<QList>;
163
+ QItem: ComponentConstructor<QItem>;
164
+ QItemSection: ComponentConstructor<QItemSection>;
165
+ JCPermission: DefineComponent<ExtractPropTypes<{
166
+ code: {
167
+ type: PropType<string | null>;
168
+ default: null;
169
+ };
170
+ defaultContent: {
171
+ type: StringConstructor;
172
+ default: string;
173
+ };
174
+ rmDom: {
175
+ type: BooleanConstructor;
176
+ default: boolean;
177
+ };
178
+ pagePermissionId: {
179
+ type: PropType<string[]>;
180
+ default: undefined;
181
+ };
182
+ pageActionPermissionId: {
183
+ type: PropType<string[]>;
184
+ default: undefined;
185
+ };
186
+ }>, {
187
+ hasPermission: ComputedRef<boolean>;
188
+ canRender: ComputedRef<boolean>;
189
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
190
+ code: {
191
+ type: PropType<string | null>;
192
+ default: null;
193
+ };
194
+ defaultContent: {
195
+ type: StringConstructor;
196
+ default: string;
197
+ };
198
+ rmDom: {
199
+ type: BooleanConstructor;
200
+ default: boolean;
201
+ };
202
+ pagePermissionId: {
203
+ type: PropType<string[]>;
204
+ default: undefined;
205
+ };
206
+ pageActionPermissionId: {
207
+ type: PropType<string[]>;
208
+ default: undefined;
209
+ };
210
+ }>> & Readonly<{}>, {
211
+ code: string | null;
212
+ pageActionPermissionId: string[];
213
+ pagePermissionId: string[];
214
+ defaultContent: string;
215
+ rmDom: boolean;
216
+ }, SlotsType<{
217
+ default: void;
218
+ }>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
219
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
220
+ export default _default;
@@ -0,0 +1,59 @@
1
+ import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type PermissionCode = string;
3
+ export declare const PAGE_ACTION_PERMISSION_KEY: unique symbol;
4
+ export declare const PAGE_PERMISSION_KEY: unique symbol;
5
+ declare const _default: DefineComponent<ExtractPropTypes<{
6
+ code: {
7
+ type: PropType<PermissionCode | null>;
8
+ default: null;
9
+ };
10
+ defaultContent: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ rmDom: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ pagePermissionId: {
19
+ type: PropType<PermissionCode[]>;
20
+ default: undefined;
21
+ };
22
+ pageActionPermissionId: {
23
+ type: PropType<PermissionCode[]>;
24
+ default: undefined;
25
+ };
26
+ }>, {
27
+ hasPermission: ComputedRef<boolean>;
28
+ canRender: ComputedRef<boolean>;
29
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
30
+ code: {
31
+ type: PropType<PermissionCode | null>;
32
+ default: null;
33
+ };
34
+ defaultContent: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ rmDom: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ pagePermissionId: {
43
+ type: PropType<PermissionCode[]>;
44
+ default: undefined;
45
+ };
46
+ pageActionPermissionId: {
47
+ type: PropType<PermissionCode[]>;
48
+ default: undefined;
49
+ };
50
+ }>> & Readonly<{}>, {
51
+ code: string | null;
52
+ pageActionPermissionId: string[];
53
+ pagePermissionId: string[];
54
+ defaultContent: string;
55
+ rmDom: boolean;
56
+ }, SlotsType<{
57
+ default: void;
58
+ }>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
59
+ export default _default;