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.
- package/dist/component-types.d.ts +8 -0
- package/dist/components/j-c-copy/types.d.ts +2 -5
- package/dist/components/j-c-duo-list-editor/types.d.ts +2 -3
- package/dist/components/j-c-editable-proxy/index.d.ts +7 -6
- package/dist/components/j-c-editable-proxy/types.d.ts +2 -3
- package/dist/components/j-c-fallback/types.d.ts +2 -5
- package/dist/components/j-c-foldable-list/types.d.ts +2 -5
- package/dist/components/j-c-format-lookup/types.d.ts +2 -5
- package/dist/components/j-c-list-editor/types.d.ts +2 -3
- package/dist/components/j-c-more-menu/index.d.ts +7 -6
- package/dist/components/j-c-more-menu/types.d.ts +4 -3
- package/dist/components/j-c-nested-select/types.d.ts +21 -1
- package/dist/components/j-c-org-select/types.d.ts +2 -3
- package/dist/components/j-c-permission/index.d.ts +2 -3
- package/dist/components/j-c-permission/types.d.ts +8 -10
- package/dist/components/j-c-platform/types.d.ts +2 -5
- package/dist/components/j-c-table/types.d.ts +2 -5
- package/dist/components/j-c-tabs/types.d.ts +2 -3
- package/dist/components/j-c-title-line/types.d.ts +2 -5
- package/dist/components/j-c-tooltip/types.d.ts +2 -2
- package/dist/components/j-c-tooltip-ellipsis/types.d.ts +2 -2
- package/dist/components/j-c-tree/component.d.ts +277 -0
- package/dist/components/j-c-tree/types.d.ts +3 -3
- package/dist/components/j-c-tree-select/types.d.ts +2 -3
- package/dist/components/j-ch-bar/types.d.ts +2 -5
- package/dist/components/j-ch-bar-line/types.d.ts +2 -2
- package/dist/components/j-ch-bubble/types.d.ts +2 -2
- package/dist/components/j-ch-line/types.d.ts +7 -2
- package/dist/components/j-ch-pie-doughnut/types.d.ts +2 -2
- package/dist/components/j-ch-radar/types.d.ts +2 -2
- package/dist/components/j-q-autocomplete/types.d.ts +2 -3
- package/dist/components/j-q-button/types.d.ts +2 -3
- package/dist/components/j-q-button-dropdown/types.d.ts +2 -3
- package/dist/components/j-q-checkbox/types.d.ts +2 -3
- package/dist/components/j-q-confirm/types.d.ts +2 -3
- package/dist/components/j-q-confirm-dialog/component.d.ts +335 -0
- package/dist/components/j-q-confirm-dialog/index.d.ts +0 -321
- package/dist/components/j-q-confirm-dialog/types.d.ts +79 -1
- package/dist/components/j-q-date/types.d.ts +3 -3
- package/dist/components/j-q-date-month/types.d.ts +2 -3
- package/dist/components/j-q-date-year/types.d.ts +2 -3
- package/dist/components/j-q-datetime/types.d.ts +3 -6
- package/dist/components/j-q-detail-list/types.d.ts +2 -2
- package/dist/components/j-q-dialog/component.d.ts +409 -0
- package/dist/components/j-q-dialog/types.d.ts +2 -2
- package/dist/components/j-q-file/types.d.ts +2 -3
- package/dist/components/j-q-form-label/types.d.ts +2 -3
- package/dist/components/j-q-input/types.d.ts +2 -3
- package/dist/components/j-q-input-recognize/types.d.ts +2 -3
- package/dist/components/j-q-new-value/types.d.ts +2 -3
- package/dist/components/j-q-option-group/types.d.ts +2 -3
- package/dist/components/j-q-pagination/component.d.ts +92 -0
- package/dist/components/j-q-pagination/types.d.ts +2 -3
- package/dist/components/j-q-popover/types.d.ts +2 -3
- package/dist/components/j-q-search-form/types.d.ts +2 -3
- package/dist/components/j-q-select/types.d.ts +2 -3
- package/dist/components/j-q-table/index.d.ts +5 -2
- package/dist/components/j-q-table/types.d.ts +2 -3
- package/dist/components/j-q-tooltip/types.d.ts +2 -3
- package/dist/global.d.ts +17 -7
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +357 -332
- package/dist/vue-shim.d.ts +6 -0
- package/package.json +6 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefineComponent, EmitsOptions, PublicProps, SlotsType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 组件库手写公开类型的统一骨架。
|
|
4
|
+
*
|
|
5
|
+
* Vue 的 DefineComponent 泛型位置较多,直接逐组件填写容易把 slots/emits
|
|
6
|
+
* 错放到 computed/methods。该类型只暴露组件库实际需要维护的四个维度。
|
|
7
|
+
*/
|
|
8
|
+
export type RtcptComponent<Props extends Record<string, any>, Bindings = {}, Slots extends Record<string, any> = {}, Emits extends EmitsOptions = {}> = DefineComponent<Props, Bindings, {}, {}, {}, {}, {}, Emits, string, PublicProps, Readonly<Props>, {}, SlotsType<Slots>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** JCCopy Props 接口 */
|
|
3
3
|
export interface JCCopyProps {
|
|
4
4
|
/**
|
|
@@ -15,9 +15,6 @@ export interface JCCopyProps {
|
|
|
15
15
|
}
|
|
16
16
|
/** JCCopy Emits 接口 */
|
|
17
17
|
export interface JCCopyEmits {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
/** 组件没有定义事件 */
|
|
20
|
-
(e: 'never', never: never): never;
|
|
21
18
|
}
|
|
22
19
|
/** JCCopy Slots 接口 */
|
|
23
20
|
export interface JCCopySlots {
|
|
@@ -29,7 +26,7 @@ export interface JCCopySlots {
|
|
|
29
26
|
export interface JCCopyExpose {
|
|
30
27
|
}
|
|
31
28
|
/** JCCopy 组件类型定义 */
|
|
32
|
-
export type JCCopyComponent =
|
|
29
|
+
export type JCCopyComponent = RtcptComponent<JCCopyProps, JCCopyExpose, JCCopySlots>;
|
|
33
30
|
/** JCCopy 实例类型 - 用于 ref 类型定义 */
|
|
34
31
|
export type JCCopyInstance = InstanceType<JCCopyComponent> & JCCopyExpose;
|
|
35
32
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
export declare const JCDuoListEditorActionMode: {
|
|
3
3
|
readonly INLINE: "inline";
|
|
4
4
|
readonly COMPACT: "compact";
|
|
@@ -50,7 +50,6 @@ export interface JCDuoListEditorProps {
|
|
|
50
50
|
}
|
|
51
51
|
/** JCDuoListEditor Emits 接口 */
|
|
52
52
|
export interface JCDuoListEditorEmits {
|
|
53
|
-
[key: string]: any;
|
|
54
53
|
/**
|
|
55
54
|
* 数据更新事件
|
|
56
55
|
* @param value 更新后的值数组
|
|
@@ -99,7 +98,7 @@ export interface JCDuoListEditorSlots {
|
|
|
99
98
|
export interface JCDuoListEditorExpose {
|
|
100
99
|
}
|
|
101
100
|
/** JCDuoListEditor 组件类型定义 */
|
|
102
|
-
export type JCDuoListEditorComponent =
|
|
101
|
+
export type JCDuoListEditorComponent = RtcptComponent<JCDuoListEditorProps, JCDuoListEditorExpose, JCDuoListEditorSlots>;
|
|
103
102
|
/** JCDuoListEditor 实例类型 - 用于 ref 类型定义 */
|
|
104
103
|
export type JCDuoListEditorInstance = InstanceType<JCDuoListEditorComponent> & JCDuoListEditorExpose;
|
|
105
104
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComputedRef, ComponentProvideOptions, VNode, RendererNode, RendererElement } from 'vue';
|
|
2
2
|
import { QCard, QCardActions, QCardSection, QIcon, QPopupProxy, ComponentConstructor, QBtn } from 'quasar';
|
|
3
3
|
import { t, JCTooltipProps, JCTooltipPlacementType, JCTooltipEffectType, JCTooltipTriggerType } from '../..';
|
|
4
|
+
import { PermissionCode } from '../j-c-permission/types';
|
|
4
5
|
import { JQButtonSizeType, JQButtonTypeType, JQButtonSlots } from '../j-q-button/index';
|
|
5
6
|
type ModelValueType = any;
|
|
6
7
|
export interface QInputRef {
|
|
@@ -113,7 +114,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
113
114
|
}>, {
|
|
114
115
|
JCPermission: DefineComponent<ExtractPropTypes<{
|
|
115
116
|
code: {
|
|
116
|
-
type: PropType<
|
|
117
|
+
type: PropType< PermissionCode | null>;
|
|
117
118
|
default: null;
|
|
118
119
|
};
|
|
119
120
|
defaultContent: {
|
|
@@ -125,11 +126,11 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
125
126
|
default: boolean;
|
|
126
127
|
};
|
|
127
128
|
pagePermissionId: {
|
|
128
|
-
type: PropType<
|
|
129
|
+
type: PropType< PermissionCode[]>;
|
|
129
130
|
default: undefined;
|
|
130
131
|
};
|
|
131
132
|
pageActionPermissionId: {
|
|
132
|
-
type: PropType<
|
|
133
|
+
type: PropType< PermissionCode[]>;
|
|
133
134
|
default: undefined;
|
|
134
135
|
};
|
|
135
136
|
}>, {
|
|
@@ -137,7 +138,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
137
138
|
canRender: ComputedRef<boolean>;
|
|
138
139
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
139
140
|
code: {
|
|
140
|
-
type: PropType<
|
|
141
|
+
type: PropType< PermissionCode | null>;
|
|
141
142
|
default: null;
|
|
142
143
|
};
|
|
143
144
|
defaultContent: {
|
|
@@ -149,11 +150,11 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
149
150
|
default: boolean;
|
|
150
151
|
};
|
|
151
152
|
pagePermissionId: {
|
|
152
|
-
type: PropType<
|
|
153
|
+
type: PropType< PermissionCode[]>;
|
|
153
154
|
default: undefined;
|
|
154
155
|
};
|
|
155
156
|
pageActionPermissionId: {
|
|
156
|
-
type: PropType<
|
|
157
|
+
type: PropType< PermissionCode[]>;
|
|
157
158
|
default: undefined;
|
|
158
159
|
};
|
|
159
160
|
}>> & Readonly<{}>, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** 模型值类型 */
|
|
3
3
|
export type ModelValueType = any;
|
|
4
4
|
/** QInputRef 接口 */
|
|
@@ -51,7 +51,6 @@ export interface JCEditableProxyProps {
|
|
|
51
51
|
}
|
|
52
52
|
/** JCEditableProxy Emits 接口 */
|
|
53
53
|
export interface JCEditableProxyEmits {
|
|
54
|
-
[key: string]: any;
|
|
55
54
|
/**
|
|
56
55
|
* 数据更新事件
|
|
57
56
|
* @param value 更新后的值
|
|
@@ -96,7 +95,7 @@ export interface JCEditableProxySlots {
|
|
|
96
95
|
export interface JCEditableProxyExpose {
|
|
97
96
|
}
|
|
98
97
|
/** JCEditableProxy 组件类型定义 */
|
|
99
|
-
export type JCEditableProxyComponent =
|
|
98
|
+
export type JCEditableProxyComponent = RtcptComponent<JCEditableProxyProps, JCEditableProxyExpose, JCEditableProxySlots>;
|
|
100
99
|
/** JCEditableProxy 实例类型 - 用于 ref 类型定义 */
|
|
101
100
|
export type JCEditableProxyInstance = InstanceType<JCEditableProxyComponent> & JCEditableProxyExpose;
|
|
102
101
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** 回退值类型 */
|
|
3
3
|
export type FallbackValue = any;
|
|
4
4
|
/** JCFallback Props 接口 */
|
|
@@ -31,9 +31,6 @@ export interface JCFallbackProps {
|
|
|
31
31
|
}
|
|
32
32
|
/** JCFallback Emits 接口 */
|
|
33
33
|
export interface JCFallbackEmits {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
/** 组件没有定义事件 */
|
|
36
|
-
(e: 'never', never: never): never;
|
|
37
34
|
}
|
|
38
35
|
/** JCFallback Slots 接口 */
|
|
39
36
|
export interface JCFallbackSlots {
|
|
@@ -47,7 +44,7 @@ export interface JCFallbackSlots {
|
|
|
47
44
|
export interface JCFallbackExpose {
|
|
48
45
|
}
|
|
49
46
|
/** JCFallback 组件类型定义 */
|
|
50
|
-
export type JCFallbackComponent =
|
|
47
|
+
export type JCFallbackComponent = RtcptComponent<JCFallbackProps, JCFallbackExpose, JCFallbackSlots>;
|
|
51
48
|
/** JCFallback 实例类型 - 用于 ref 类型定义 */
|
|
52
49
|
export type JCFallbackInstance = InstanceType<JCFallbackComponent> & JCFallbackExpose;
|
|
53
50
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** JCFoldableList Props 接口 */
|
|
3
3
|
export interface JCFoldableListProps {
|
|
4
4
|
/**
|
|
@@ -29,9 +29,6 @@ export interface JCFoldableListProps {
|
|
|
29
29
|
}
|
|
30
30
|
/** JCFoldableList Emits 接口 */
|
|
31
31
|
export interface JCFoldableListEmits {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
/** 组件没有定义事件 */
|
|
34
|
-
(e: 'never', never: never): never;
|
|
35
32
|
}
|
|
36
33
|
/** JCFoldableList Slots 接口 */
|
|
37
34
|
export interface JCFoldableListSlots {
|
|
@@ -45,7 +42,7 @@ export interface JCFoldableListExpose {
|
|
|
45
42
|
remeasure: () => void;
|
|
46
43
|
}
|
|
47
44
|
/** JCFoldableList 组件类型定义 */
|
|
48
|
-
export type JCFoldableListComponent =
|
|
45
|
+
export type JCFoldableListComponent = RtcptComponent<JCFoldableListProps, JCFoldableListExpose, JCFoldableListSlots>;
|
|
49
46
|
/** JCFoldableList 实例类型 - 用于 ref 类型定义 */
|
|
50
47
|
export type JCFoldableListInstance = InstanceType<JCFoldableListComponent> & JCFoldableListExpose;
|
|
51
48
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** 通用的选项类型定义 */
|
|
3
3
|
export interface OptionItem {
|
|
4
4
|
label: string;
|
|
@@ -38,9 +38,6 @@ export interface JCFormatLookupProps {
|
|
|
38
38
|
}
|
|
39
39
|
/** JCFormatLookup Emits 接口 */
|
|
40
40
|
export interface JCFormatLookupEmits {
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
/** 组件没有定义事件 */
|
|
43
|
-
(e: 'never', never: never): never;
|
|
44
41
|
}
|
|
45
42
|
/** JCFormatLookup Slots 接口 */
|
|
46
43
|
export interface JCFormatLookupSlots {
|
|
@@ -57,7 +54,7 @@ export interface JCFormatLookupSlots {
|
|
|
57
54
|
export interface JCFormatLookupExpose {
|
|
58
55
|
}
|
|
59
56
|
/** JCFormatLookup 组件类型定义 */
|
|
60
|
-
export type JCFormatLookupComponent =
|
|
57
|
+
export type JCFormatLookupComponent = RtcptComponent<JCFormatLookupProps, JCFormatLookupExpose, JCFormatLookupSlots>;
|
|
61
58
|
/** JCFormatLookup 实例类型 - 用于 ref 类型定义 */
|
|
62
59
|
export type JCFormatLookupInstance = InstanceType<JCFormatLookupComponent> & JCFormatLookupExpose;
|
|
63
60
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** JCListEditor Props 接口 */
|
|
3
3
|
export interface JCListEditorProps {
|
|
4
4
|
/**
|
|
@@ -50,7 +50,6 @@ export interface JCListEditorProps {
|
|
|
50
50
|
}
|
|
51
51
|
/** JCListEditor Emits 接口 */
|
|
52
52
|
export interface JCListEditorEmits {
|
|
53
|
-
[key: string]: any;
|
|
54
53
|
/**
|
|
55
54
|
* 数据更新事件
|
|
56
55
|
* @param value 更新后的值数组
|
|
@@ -67,7 +66,7 @@ export interface JCListEditorSlots {
|
|
|
67
66
|
export interface JCListEditorExpose {
|
|
68
67
|
}
|
|
69
68
|
/** JCListEditor 组件类型定义 */
|
|
70
|
-
export type JCListEditorComponent =
|
|
69
|
+
export type JCListEditorComponent = RtcptComponent<JCListEditorProps, JCListEditorExpose, JCListEditorSlots>;
|
|
71
70
|
/** JCListEditor 实例类型 - 用于 ref 类型定义 */
|
|
72
71
|
export type JCListEditorInstance = InstanceType<JCListEditorComponent> & JCListEditorExpose;
|
|
73
72
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, SlotsType, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { QIcon, QItem, QItemSection, QList, QMenu, QBtn, QMenuProps, ComponentConstructor } from 'quasar';
|
|
3
|
+
import { PermissionCode } from '../j-c-permission/types';
|
|
3
4
|
type BoolLike<T> = boolean | ((item: T) => boolean);
|
|
4
5
|
type LabelLike<T> = string | ((ctx: {
|
|
5
6
|
item: T;
|
|
@@ -209,7 +210,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
209
210
|
QBtn: ComponentConstructor<QBtn>;
|
|
210
211
|
JCPermission: DefineComponent<ExtractPropTypes<{
|
|
211
212
|
code: {
|
|
212
|
-
type: PropType<
|
|
213
|
+
type: PropType< PermissionCode | null>;
|
|
213
214
|
default: null;
|
|
214
215
|
};
|
|
215
216
|
defaultContent: {
|
|
@@ -221,11 +222,11 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
221
222
|
default: boolean;
|
|
222
223
|
};
|
|
223
224
|
pagePermissionId: {
|
|
224
|
-
type: PropType<
|
|
225
|
+
type: PropType< PermissionCode[]>;
|
|
225
226
|
default: undefined;
|
|
226
227
|
};
|
|
227
228
|
pageActionPermissionId: {
|
|
228
|
-
type: PropType<
|
|
229
|
+
type: PropType< PermissionCode[]>;
|
|
229
230
|
default: undefined;
|
|
230
231
|
};
|
|
231
232
|
}>, {
|
|
@@ -233,7 +234,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
233
234
|
canRender: ComputedRef<boolean>;
|
|
234
235
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
235
236
|
code: {
|
|
236
|
-
type: PropType<
|
|
237
|
+
type: PropType< PermissionCode | null>;
|
|
237
238
|
default: null;
|
|
238
239
|
};
|
|
239
240
|
defaultContent: {
|
|
@@ -245,11 +246,11 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
245
246
|
default: boolean;
|
|
246
247
|
};
|
|
247
248
|
pagePermissionId: {
|
|
248
|
-
type: PropType<
|
|
249
|
+
type: PropType< PermissionCode[]>;
|
|
249
250
|
default: undefined;
|
|
250
251
|
};
|
|
251
252
|
pageActionPermissionId: {
|
|
252
|
-
type: PropType<
|
|
253
|
+
type: PropType< PermissionCode[]>;
|
|
253
254
|
default: undefined;
|
|
254
255
|
};
|
|
255
256
|
}>> & Readonly<{}>, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
export declare const JCMoreMenuSize: {
|
|
3
3
|
readonly MD: "md";
|
|
4
4
|
readonly LG: "lg";
|
|
@@ -115,7 +115,6 @@ export interface JCMoreMenuProps<T = any> {
|
|
|
115
115
|
}
|
|
116
116
|
/** JCMoreMenu Emits 接口 */
|
|
117
117
|
export interface JCMoreMenuEmits<T = any> {
|
|
118
|
-
[key: string]: any;
|
|
119
118
|
/**
|
|
120
119
|
* 动作点击事件
|
|
121
120
|
* @param payload 动作和项目数据
|
|
@@ -127,6 +126,8 @@ export interface JCMoreMenuEmits<T = any> {
|
|
|
127
126
|
}
|
|
128
127
|
/** JCMoreMenu Slots 接口 */
|
|
129
128
|
export interface JCMoreMenuSlots {
|
|
129
|
+
/** 菜单列表内容 */
|
|
130
|
+
default?: () => any;
|
|
130
131
|
/**
|
|
131
132
|
* 触发器插槽
|
|
132
133
|
*/
|
|
@@ -142,7 +143,7 @@ export interface JCMoreMenuSlots {
|
|
|
142
143
|
export interface JCMoreMenuExpose {
|
|
143
144
|
}
|
|
144
145
|
/** JCMoreMenu 组件类型定义 */
|
|
145
|
-
export type JCMoreMenuComponent<T = any> =
|
|
146
|
+
export type JCMoreMenuComponent<T = any> = RtcptComponent<JCMoreMenuProps<T>, JCMoreMenuExpose, JCMoreMenuSlots>;
|
|
146
147
|
/** JCMoreMenu 实例类型 - 用于 ref 类型定义 */
|
|
147
148
|
export type JCMoreMenuInstance<T = any> = InstanceType<JCMoreMenuComponent<T>> & JCMoreMenuExpose;
|
|
148
149
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
1
2
|
/** 嵌套选择器选项接口 */
|
|
2
3
|
export interface NestedSelectOption {
|
|
3
4
|
/** 选项显示文本 */
|
|
@@ -94,7 +95,6 @@ export interface JCNestedSelectProps {
|
|
|
94
95
|
}
|
|
95
96
|
/** JCNestedSelect Emits 接口 */
|
|
96
97
|
export interface JCNestedSelectEmits {
|
|
97
|
-
[key: string]: any;
|
|
98
98
|
/**
|
|
99
99
|
* 数据更新事件
|
|
100
100
|
* @param value 更新后的值
|
|
@@ -106,3 +106,23 @@ export interface JCNestedSelectEmits {
|
|
|
106
106
|
*/
|
|
107
107
|
(e: 'change', value: NestedSelectModelValue): void;
|
|
108
108
|
}
|
|
109
|
+
/** JCNestedSelect Slots 接口(组件当前不提供自定义插槽) */
|
|
110
|
+
export interface JCNestedSelectSlots {
|
|
111
|
+
}
|
|
112
|
+
/** JCNestedSelect 暴露的方法和属性 */
|
|
113
|
+
export interface JCNestedSelectExpose {
|
|
114
|
+
}
|
|
115
|
+
/** Emits 配置对象格式 */
|
|
116
|
+
export type JCNestedSelectEmitsOptions = {
|
|
117
|
+
'update:modelValue': (value: NestedSelectModelValue) => true;
|
|
118
|
+
change: (value: NestedSelectModelValue) => true;
|
|
119
|
+
};
|
|
120
|
+
/** JCNestedSelect 组件类型定义 */
|
|
121
|
+
export type JCNestedSelectComponent = RtcptComponent<JCNestedSelectProps, JCNestedSelectExpose, JCNestedSelectSlots, JCNestedSelectEmitsOptions>;
|
|
122
|
+
/** JCNestedSelect 实例类型 */
|
|
123
|
+
export type JCNestedSelectInstance = InstanceType<JCNestedSelectComponent> & JCNestedSelectExpose;
|
|
124
|
+
/** 模板中使用的 Props 类型 */
|
|
125
|
+
export interface JCNestedSelectTemplateProps extends JCNestedSelectProps {
|
|
126
|
+
'onUpdate:modelValue'?: (value: NestedSelectModelValue) => void;
|
|
127
|
+
onChange?: (value: NestedSelectModelValue) => void;
|
|
128
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
1
2
|
import { QFieldProps } from 'quasar';
|
|
2
|
-
import { DefineComponent } from 'vue';
|
|
3
3
|
/** 模型值类型 */
|
|
4
4
|
export type ModelValue = (string | number)[];
|
|
5
5
|
/** 选项类型 */
|
|
@@ -81,7 +81,6 @@ export interface JCOrgSelectProps {
|
|
|
81
81
|
}
|
|
82
82
|
/** JCOrgSelect Emits 接口 */
|
|
83
83
|
export interface JCOrgSelectEmits {
|
|
84
|
-
[key: string]: any;
|
|
85
84
|
/**
|
|
86
85
|
* 数据更新事件
|
|
87
86
|
* @param value 更新后的值数组
|
|
@@ -105,7 +104,7 @@ export interface JCOrgSelectExpose {
|
|
|
105
104
|
getFullValue: () => Option[] | undefined;
|
|
106
105
|
}
|
|
107
106
|
/** JCOrgSelect 组件类型定义 */
|
|
108
|
-
export type JCOrgSelectComponent =
|
|
107
|
+
export type JCOrgSelectComponent = RtcptComponent<JCOrgSelectProps, JCOrgSelectExpose, JCOrgSelectSlots>;
|
|
109
108
|
/** JCOrgSelect 实例类型 - 用于 ref 类型定义 */
|
|
110
109
|
export type JCOrgSelectInstance = InstanceType<JCOrgSelectComponent> & JCOrgSelectExpose;
|
|
111
110
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export declare const PAGE_PERMISSION_KEY: unique symbol;
|
|
2
|
+
import { PermissionCode } from './types';
|
|
3
|
+
export { PAGE_ACTION_PERMISSION_KEY, PAGE_PERMISSION_KEY } from './types';
|
|
5
4
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
5
|
/**
|
|
7
6
|
* 权限码。如果传递 falsy 值(如 null, undefined, 或空字符串),则默认认为有权限(用来测试或特殊逻辑)
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
3
|
/** 权限码类型 */
|
|
3
4
|
export type PermissionCode = string;
|
|
4
|
-
/** 页面权限注入键 */
|
|
5
|
-
export declare const PAGE_ACTION_PERMISSION_KEY: unique symbol;
|
|
6
5
|
/** 页面操作权限注入键 */
|
|
7
|
-
export declare const
|
|
6
|
+
export declare const PAGE_ACTION_PERMISSION_KEY: InjectionKey<Ref<PermissionCode[]>>;
|
|
7
|
+
/** 页面权限注入键 */
|
|
8
|
+
export declare const PAGE_PERMISSION_KEY: InjectionKey<Ref<PermissionCode[]>>;
|
|
8
9
|
/** JCPermission Props 接口 */
|
|
9
10
|
export interface JCPermissionProps {
|
|
10
11
|
/**
|
|
@@ -35,9 +36,6 @@ export interface JCPermissionProps {
|
|
|
35
36
|
}
|
|
36
37
|
/** JCPermission Emits 接口 */
|
|
37
38
|
export interface JCPermissionEmits {
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
/** 组件没有定义事件 */
|
|
40
|
-
(e: 'never', never: never): never;
|
|
41
39
|
}
|
|
42
40
|
/** JCPermission Slots 接口 */
|
|
43
41
|
export interface JCPermissionSlots {
|
|
@@ -49,7 +47,7 @@ export interface JCPermissionSlots {
|
|
|
49
47
|
export interface JCPermissionExpose {
|
|
50
48
|
}
|
|
51
49
|
/** JCPermission 组件类型定义 */
|
|
52
|
-
export type JCPermissionComponent =
|
|
50
|
+
export type JCPermissionComponent = RtcptComponent<JCPermissionProps, JCPermissionExpose, JCPermissionSlots>;
|
|
53
51
|
/** JCPermission 实例类型 - 用于 ref 类型定义 */
|
|
54
52
|
export type JCPermissionInstance = InstanceType<JCPermissionComponent> & JCPermissionExpose;
|
|
55
53
|
/**
|
|
@@ -58,5 +56,5 @@ export type JCPermissionInstance = InstanceType<JCPermissionComponent> & JCPermi
|
|
|
58
56
|
export interface JCPermissionTemplateProps extends JCPermissionProps {
|
|
59
57
|
}
|
|
60
58
|
/** 导出注入键的类型 */
|
|
61
|
-
export type PageActionPermissionKey =
|
|
62
|
-
export type PagePermissionKey =
|
|
59
|
+
export type PageActionPermissionKey = typeof PAGE_ACTION_PERMISSION_KEY;
|
|
60
|
+
export type PagePermissionKey = typeof PAGE_PERMISSION_KEY;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
export interface IUserRole {
|
|
3
3
|
platform: string;
|
|
4
4
|
role: string;
|
|
@@ -18,9 +18,6 @@ export interface JCPlatformProps {
|
|
|
18
18
|
}
|
|
19
19
|
/** JCPlatform Emits 接口 */
|
|
20
20
|
export interface JCPlatformEmits {
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
/** 组件没有定义事件 */
|
|
23
|
-
(e: 'never', never: never): never;
|
|
24
21
|
}
|
|
25
22
|
/** JCPlatform Slots 接口 */
|
|
26
23
|
export interface JCPlatformSlots {
|
|
@@ -32,7 +29,7 @@ export interface JCPlatformSlots {
|
|
|
32
29
|
export interface JCPlatformExpose {
|
|
33
30
|
}
|
|
34
31
|
/** JCPlatform 组件类型定义 */
|
|
35
|
-
export type JCPlatformComponent =
|
|
32
|
+
export type JCPlatformComponent = RtcptComponent<JCPlatformProps, JCPlatformExpose, JCPlatformSlots>;
|
|
36
33
|
/** JCPlatform 实例类型 - 用于 ref 类型定义 */
|
|
37
34
|
export type JCPlatformInstance = InstanceType<JCPlatformComponent> & JCPlatformExpose;
|
|
38
35
|
/** 用于模板中的 Props 类型定义 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** JCTable 列配置接口 */
|
|
3
3
|
export interface JCTableColumn {
|
|
4
4
|
/** 列的唯一标识 */
|
|
@@ -81,9 +81,6 @@ export interface JCTableProps {
|
|
|
81
81
|
}
|
|
82
82
|
/** JCTable Emits 接口 */
|
|
83
83
|
export interface JCTableEmits {
|
|
84
|
-
[key: string]: any;
|
|
85
|
-
/** 组件没有定义事件 */
|
|
86
|
-
(e: 'never', never: never): never;
|
|
87
84
|
}
|
|
88
85
|
/** JCTable Slots 接口 */
|
|
89
86
|
export interface JCTableSlots {
|
|
@@ -102,7 +99,7 @@ export interface JCTableSlots {
|
|
|
102
99
|
export interface JCTableExpose {
|
|
103
100
|
}
|
|
104
101
|
/** JCTable 组件类型定义 */
|
|
105
|
-
export type JCTableComponent =
|
|
102
|
+
export type JCTableComponent = RtcptComponent<JCTableProps, JCTableExpose, JCTableSlots>;
|
|
106
103
|
/** JCTable 实例类型 - 用于 ref 类型定义 */
|
|
107
104
|
export type JCTableInstance = InstanceType<JCTableComponent> & JCTableExpose;
|
|
108
105
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
export declare const JCTabsVariant: {
|
|
3
3
|
readonly DEFAULT: "default";
|
|
4
4
|
readonly FLAT: "flat";
|
|
@@ -58,7 +58,6 @@ export interface JCTabsProps {
|
|
|
58
58
|
}
|
|
59
59
|
/** JCTabs Emits 接口 */
|
|
60
60
|
export interface JCTabsEmits {
|
|
61
|
-
[key: string]: any;
|
|
62
61
|
/**
|
|
63
62
|
* 数据更新事件
|
|
64
63
|
* @param value 更新后的值
|
|
@@ -102,7 +101,7 @@ export interface JCTabsSlots {
|
|
|
102
101
|
export interface JCTabsExpose {
|
|
103
102
|
}
|
|
104
103
|
/** JCTabs 组件类型定义 */
|
|
105
|
-
export type JCTabsComponent =
|
|
104
|
+
export type JCTabsComponent = RtcptComponent<JCTabsProps, JCTabsExpose, JCTabsSlots>;
|
|
106
105
|
/** JCTabs 实例类型 - 用于 ref 类型定义 */
|
|
107
106
|
export type JCTabsInstance = InstanceType<JCTabsComponent> & JCTabsExpose;
|
|
108
107
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** JCTitleLine Props 接口 */
|
|
3
3
|
export interface JCTitleLineProps {
|
|
4
4
|
/**
|
|
@@ -9,9 +9,6 @@ export interface JCTitleLineProps {
|
|
|
9
9
|
}
|
|
10
10
|
/** JCTitleLine Emits 接口 */
|
|
11
11
|
export interface JCTitleLineEmits {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
/** 组件没有定义事件 */
|
|
14
|
-
(e: 'never', never: never): never;
|
|
15
12
|
}
|
|
16
13
|
/** JCTitleLine Slots 接口 */
|
|
17
14
|
export interface JCTitleLineSlots {
|
|
@@ -23,7 +20,7 @@ export interface JCTitleLineSlots {
|
|
|
23
20
|
export interface JCTitleLineExpose {
|
|
24
21
|
}
|
|
25
22
|
/** JCTitleLine 组件类型定义 */
|
|
26
|
-
export type JCTitleLineComponent =
|
|
23
|
+
export type JCTitleLineComponent = RtcptComponent<JCTitleLineProps, JCTitleLineExpose, JCTitleLineSlots>;
|
|
27
24
|
/** JCTitleLine 实例类型 - 用于 ref 类型定义 */
|
|
28
25
|
export type JCTitleLineInstance = InstanceType<JCTitleLineComponent> & JCTitleLineExpose;
|
|
29
26
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** Tooltip 位置常量 */
|
|
3
3
|
export declare const JCTooltipPlacement: {
|
|
4
4
|
readonly TOP: "top";
|
|
@@ -134,7 +134,7 @@ export type JCTooltipEmitsOptions = {
|
|
|
134
134
|
'update:modelValue': (value: boolean) => true;
|
|
135
135
|
};
|
|
136
136
|
/** JCTooltip 组件类型定义 */
|
|
137
|
-
export type JCTooltipComponent =
|
|
137
|
+
export type JCTooltipComponent = RtcptComponent<JCTooltipProps, JCTooltipExpose, JCTooltipSlots, JCTooltipEmitsOptions>;
|
|
138
138
|
/** JCTooltip 实例类型 - 用于 ref 类型定义 */
|
|
139
139
|
export type JCTooltipInstance = InstanceType<JCTooltipComponent> & JCTooltipExpose;
|
|
140
140
|
/** @deprecated 使用 JCTooltipProps 代替。保留用于 global.d.ts 自动生成的兼容 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
import { JCTooltipPlacementType, JCTooltipEffectType } from '../j-c-tooltip/types';
|
|
3
3
|
/** JCTooltipEllipsis Props 接口 */
|
|
4
4
|
export interface JCTooltipEllipsisProps {
|
|
@@ -46,6 +46,6 @@ export interface JCTooltipEllipsisSlots {
|
|
|
46
46
|
default?: () => any;
|
|
47
47
|
}
|
|
48
48
|
/** JCTooltipEllipsis 组件类型定义 */
|
|
49
|
-
export type JCTooltipEllipsisComponent =
|
|
49
|
+
export type JCTooltipEllipsisComponent = RtcptComponent<JCTooltipEllipsisProps, {}, JCTooltipEllipsisSlots>;
|
|
50
50
|
/** JCTooltipEllipsis 实例类型 - 用于 ref 类型定义 */
|
|
51
51
|
export type JCTooltipEllipsisInstance = InstanceType<JCTooltipEllipsisComponent>;
|