rtcpts 0.0.75 → 0.0.77
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 +5 -6
- package/dist/components/j-c-duo-list-editor/types.d.ts +6 -5
- package/dist/components/j-c-editable-proxy/index.d.ts +7 -6
- package/dist/components/j-c-editable-proxy/types.d.ts +5 -4
- package/dist/components/j-c-fallback/types.d.ts +5 -6
- package/dist/components/j-c-foldable-list/types.d.ts +5 -6
- package/dist/components/j-c-format-lookup/types.d.ts +5 -6
- package/dist/components/j-c-list-editor/types.d.ts +5 -4
- package/dist/components/j-c-more-menu/index.d.ts +7 -6
- package/dist/components/j-c-more-menu/types.d.ts +7 -4
- package/dist/components/j-c-nested-select/types.d.ts +24 -2
- package/dist/components/j-c-org-select/types.d.ts +5 -4
- package/dist/components/j-c-permission/index.d.ts +2 -3
- package/dist/components/j-c-permission/types.d.ts +11 -11
- package/dist/components/j-c-platform/types.d.ts +5 -6
- package/dist/components/j-c-table/types.d.ts +5 -6
- package/dist/components/j-c-tabs/types.d.ts +5 -4
- package/dist/components/j-c-title-line/types.d.ts +5 -6
- package/dist/components/j-c-tooltip/types.d.ts +5 -3
- package/dist/components/j-c-tooltip-ellipsis/types.d.ts +5 -3
- package/dist/components/j-c-tree/component.d.ts +277 -0
- package/dist/components/j-c-tree/types.d.ts +6 -4
- package/dist/components/j-c-tree-select/types.d.ts +5 -4
- package/dist/components/j-ch-bar/types.d.ts +6 -6
- package/dist/components/j-ch-bar-line/types.d.ts +6 -3
- package/dist/components/j-ch-bubble/types.d.ts +6 -3
- package/dist/components/j-ch-line/types.d.ts +11 -3
- package/dist/components/j-ch-pie-doughnut/types.d.ts +6 -3
- package/dist/components/j-ch-radar/types.d.ts +6 -3
- package/dist/components/j-q-autocomplete/types.d.ts +6 -4
- package/dist/components/j-q-button/types.d.ts +6 -4
- package/dist/components/j-q-button-dropdown/types.d.ts +6 -4
- package/dist/components/j-q-checkbox/types.d.ts +6 -4
- package/dist/components/j-q-confirm/types.d.ts +6 -4
- 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 +7 -4
- package/dist/components/j-q-date-month/types.d.ts +6 -4
- package/dist/components/j-q-date-year/types.d.ts +6 -4
- package/dist/components/j-q-datetime/types.d.ts +7 -7
- package/dist/components/j-q-detail-list/types.d.ts +6 -3
- package/dist/components/j-q-dialog/component.d.ts +409 -0
- package/dist/components/j-q-dialog/types.d.ts +4 -3
- package/dist/components/j-q-file/types.d.ts +3 -3
- package/dist/components/j-q-form-label/types.d.ts +6 -4
- package/dist/components/j-q-input/types.d.ts +6 -4
- package/dist/components/j-q-input-recognize/types.d.ts +6 -4
- package/dist/components/j-q-new-value/types.d.ts +6 -4
- package/dist/components/j-q-option-group/types.d.ts +6 -4
- package/dist/components/j-q-pagination/component.d.ts +92 -0
- package/dist/components/j-q-pagination/types.d.ts +6 -4
- package/dist/components/j-q-popover/types.d.ts +6 -4
- package/dist/components/j-q-search-form/types.d.ts +6 -4
- package/dist/components/j-q-select/types.d.ts +6 -4
- package/dist/components/j-q-table/index.d.ts +5 -2
- package/dist/components/j-q-table/types.d.ts +6 -4
- package/dist/components/j-q-tooltip/types.d.ts +6 -4
- package/dist/global.d.ts +115 -190
- package/dist/index.css +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.mjs +72 -25
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +332 -327
- package/dist/utils/generated-component-names.d.ts +9 -0
- package/dist/utils/resolver.d.ts +3 -3
- package/dist/vue-shim.d.ts +6 -0
- package/package.json +9 -5
|
@@ -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,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** JCCopy Props 接口
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
|
+
/** JCCopy Props 接口
|
|
3
|
+
* @description 点击复制文本内容到剪贴板
|
|
4
|
+
*/
|
|
3
5
|
export interface JCCopyProps {
|
|
4
6
|
/**
|
|
5
7
|
* 要复制的文本内容
|
|
@@ -15,9 +17,6 @@ export interface JCCopyProps {
|
|
|
15
17
|
}
|
|
16
18
|
/** JCCopy Emits 接口 */
|
|
17
19
|
export interface JCCopyEmits {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
/** 组件没有定义事件 */
|
|
20
|
-
(e: 'never', never: never): never;
|
|
21
20
|
}
|
|
22
21
|
/** JCCopy Slots 接口 */
|
|
23
22
|
export interface JCCopySlots {
|
|
@@ -29,7 +28,7 @@ export interface JCCopySlots {
|
|
|
29
28
|
export interface JCCopyExpose {
|
|
30
29
|
}
|
|
31
30
|
/** JCCopy 组件类型定义 */
|
|
32
|
-
export type JCCopyComponent =
|
|
31
|
+
export type JCCopyComponent = RtcptComponent<JCCopyProps, JCCopyExpose, JCCopySlots>;
|
|
33
32
|
/** JCCopy 实例类型 - 用于 ref 类型定义 */
|
|
34
33
|
export type JCCopyInstance = InstanceType<JCCopyComponent> & JCCopyExpose;
|
|
35
34
|
/**
|
|
@@ -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";
|
|
@@ -9,7 +9,9 @@ export type JCDuoListEditorActionModeType = (typeof JCDuoListEditorActionMode)[k
|
|
|
9
9
|
export type TModelItem = any;
|
|
10
10
|
/** 列表值类型 */
|
|
11
11
|
export type TModelValue = TModelItem[];
|
|
12
|
-
/** JCDuoListEditor Props 接口
|
|
12
|
+
/** JCDuoListEditor Props 接口
|
|
13
|
+
* @description 动态双向列表编辑器,支持添加和删除列表项
|
|
14
|
+
*/
|
|
13
15
|
export interface JCDuoListEditorProps {
|
|
14
16
|
/**
|
|
15
17
|
* 双向绑定的列表数据
|
|
@@ -50,12 +52,11 @@ export interface JCDuoListEditorProps {
|
|
|
50
52
|
}
|
|
51
53
|
/** JCDuoListEditor Emits 接口 */
|
|
52
54
|
export interface JCDuoListEditorEmits {
|
|
53
|
-
[key: string]: any;
|
|
54
55
|
/**
|
|
55
56
|
* 数据更新事件
|
|
56
57
|
* @param value 更新后的值数组
|
|
57
58
|
*/
|
|
58
|
-
(e: 'update:modelValue', value: TModelValue
|
|
59
|
+
(e: 'update:modelValue', value: TModelValue): void;
|
|
59
60
|
}
|
|
60
61
|
/** JCDuoListEditor Slots 接口 */
|
|
61
62
|
export interface JCDuoListEditorSlots {
|
|
@@ -99,7 +100,7 @@ export interface JCDuoListEditorSlots {
|
|
|
99
100
|
export interface JCDuoListEditorExpose {
|
|
100
101
|
}
|
|
101
102
|
/** JCDuoListEditor 组件类型定义 */
|
|
102
|
-
export type JCDuoListEditorComponent =
|
|
103
|
+
export type JCDuoListEditorComponent = RtcptComponent<JCDuoListEditorProps, JCDuoListEditorExpose, JCDuoListEditorSlots>;
|
|
103
104
|
/** JCDuoListEditor 实例类型 - 用于 ref 类型定义 */
|
|
104
105
|
export type JCDuoListEditorInstance = InstanceType<JCDuoListEditorComponent> & JCDuoListEditorExpose;
|
|
105
106
|
/**
|
|
@@ -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 接口 */
|
|
@@ -6,7 +6,9 @@ export interface QInputRef {
|
|
|
6
6
|
validate: () => boolean;
|
|
7
7
|
resetValidation: () => void;
|
|
8
8
|
}
|
|
9
|
-
/** JCEditableProxy Props 接口
|
|
9
|
+
/** JCEditableProxy Props 接口
|
|
10
|
+
* @description 内联编辑代理组件,点击编辑图标弹出编辑器修改内容
|
|
11
|
+
*/
|
|
10
12
|
export interface JCEditableProxyProps {
|
|
11
13
|
/**
|
|
12
14
|
* 双向绑定的值
|
|
@@ -51,7 +53,6 @@ export interface JCEditableProxyProps {
|
|
|
51
53
|
}
|
|
52
54
|
/** JCEditableProxy Emits 接口 */
|
|
53
55
|
export interface JCEditableProxyEmits {
|
|
54
|
-
[key: string]: any;
|
|
55
56
|
/**
|
|
56
57
|
* 数据更新事件
|
|
57
58
|
* @param value 更新后的值
|
|
@@ -96,7 +97,7 @@ export interface JCEditableProxySlots {
|
|
|
96
97
|
export interface JCEditableProxyExpose {
|
|
97
98
|
}
|
|
98
99
|
/** JCEditableProxy 组件类型定义 */
|
|
99
|
-
export type JCEditableProxyComponent =
|
|
100
|
+
export type JCEditableProxyComponent = RtcptComponent<JCEditableProxyProps, JCEditableProxyExpose, JCEditableProxySlots>;
|
|
100
101
|
/** JCEditableProxy 实例类型 - 用于 ref 类型定义 */
|
|
101
102
|
export type JCEditableProxyInstance = InstanceType<JCEditableProxyComponent> & JCEditableProxyExpose;
|
|
102
103
|
/**
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** 回退值类型 */
|
|
3
3
|
export type FallbackValue = any;
|
|
4
|
-
/** JCFallback Props 接口
|
|
4
|
+
/** JCFallback Props 接口
|
|
5
|
+
* @description 空值回退显示组件,当值为空时显示默认占位内容
|
|
6
|
+
*/
|
|
5
7
|
export interface JCFallbackProps {
|
|
6
8
|
/**
|
|
7
9
|
* 需要判断是否存在的值
|
|
@@ -31,9 +33,6 @@ export interface JCFallbackProps {
|
|
|
31
33
|
}
|
|
32
34
|
/** JCFallback Emits 接口 */
|
|
33
35
|
export interface JCFallbackEmits {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
/** 组件没有定义事件 */
|
|
36
|
-
(e: 'never', never: never): never;
|
|
37
36
|
}
|
|
38
37
|
/** JCFallback Slots 接口 */
|
|
39
38
|
export interface JCFallbackSlots {
|
|
@@ -47,7 +46,7 @@ export interface JCFallbackSlots {
|
|
|
47
46
|
export interface JCFallbackExpose {
|
|
48
47
|
}
|
|
49
48
|
/** JCFallback 组件类型定义 */
|
|
50
|
-
export type JCFallbackComponent =
|
|
49
|
+
export type JCFallbackComponent = RtcptComponent<JCFallbackProps, JCFallbackExpose, JCFallbackSlots>;
|
|
51
50
|
/** JCFallback 实例类型 - 用于 ref 类型定义 */
|
|
52
51
|
export type JCFallbackInstance = InstanceType<JCFallbackComponent> & JCFallbackExpose;
|
|
53
52
|
/**
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** JCFoldableList Props 接口
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
|
+
/** JCFoldableList Props 接口
|
|
3
|
+
* @description 可折叠列表组件,内容超出最大高度时可折叠展开
|
|
4
|
+
*/
|
|
3
5
|
export interface JCFoldableListProps {
|
|
4
6
|
/**
|
|
5
7
|
* 最大高度(像素)
|
|
@@ -29,9 +31,6 @@ export interface JCFoldableListProps {
|
|
|
29
31
|
}
|
|
30
32
|
/** JCFoldableList Emits 接口 */
|
|
31
33
|
export interface JCFoldableListEmits {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
/** 组件没有定义事件 */
|
|
34
|
-
(e: 'never', never: never): never;
|
|
35
34
|
}
|
|
36
35
|
/** JCFoldableList Slots 接口 */
|
|
37
36
|
export interface JCFoldableListSlots {
|
|
@@ -45,7 +44,7 @@ export interface JCFoldableListExpose {
|
|
|
45
44
|
remeasure: () => void;
|
|
46
45
|
}
|
|
47
46
|
/** JCFoldableList 组件类型定义 */
|
|
48
|
-
export type JCFoldableListComponent =
|
|
47
|
+
export type JCFoldableListComponent = RtcptComponent<JCFoldableListProps, JCFoldableListExpose, JCFoldableListSlots>;
|
|
49
48
|
/** JCFoldableList 实例类型 - 用于 ref 类型定义 */
|
|
50
49
|
export type JCFoldableListInstance = InstanceType<JCFoldableListComponent> & JCFoldableListExpose;
|
|
51
50
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** 通用的选项类型定义 */
|
|
3
3
|
export interface OptionItem {
|
|
4
4
|
label: string;
|
|
@@ -7,7 +7,9 @@ export interface OptionItem {
|
|
|
7
7
|
}
|
|
8
8
|
/** 查找键的类型 */
|
|
9
9
|
export type LookupKey = 'label' | 'value';
|
|
10
|
-
/** JCFormatLookup Props 接口
|
|
10
|
+
/** JCFormatLookup Props 接口
|
|
11
|
+
* @description 格式化查找组件,根据值在选项列表中查找并显示对应标签
|
|
12
|
+
*/
|
|
11
13
|
export interface JCFormatLookupProps {
|
|
12
14
|
/**
|
|
13
15
|
* 要查找的值
|
|
@@ -38,9 +40,6 @@ export interface JCFormatLookupProps {
|
|
|
38
40
|
}
|
|
39
41
|
/** JCFormatLookup Emits 接口 */
|
|
40
42
|
export interface JCFormatLookupEmits {
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
/** 组件没有定义事件 */
|
|
43
|
-
(e: 'never', never: never): never;
|
|
44
43
|
}
|
|
45
44
|
/** JCFormatLookup Slots 接口 */
|
|
46
45
|
export interface JCFormatLookupSlots {
|
|
@@ -57,7 +56,7 @@ export interface JCFormatLookupSlots {
|
|
|
57
56
|
export interface JCFormatLookupExpose {
|
|
58
57
|
}
|
|
59
58
|
/** JCFormatLookup 组件类型定义 */
|
|
60
|
-
export type JCFormatLookupComponent =
|
|
59
|
+
export type JCFormatLookupComponent = RtcptComponent<JCFormatLookupProps, JCFormatLookupExpose, JCFormatLookupSlots>;
|
|
61
60
|
/** JCFormatLookup 实例类型 - 用于 ref 类型定义 */
|
|
62
61
|
export type JCFormatLookupInstance = InstanceType<JCFormatLookupComponent> & JCFormatLookupExpose;
|
|
63
62
|
/**
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** JCListEditor Props 接口
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
|
+
/** JCListEditor Props 接口
|
|
3
|
+
* @description 字符串列表编辑器,支持动态添加和删除列表项
|
|
4
|
+
*/
|
|
3
5
|
export interface JCListEditorProps {
|
|
4
6
|
/**
|
|
5
7
|
* 双向绑定的列表数据
|
|
@@ -50,7 +52,6 @@ export interface JCListEditorProps {
|
|
|
50
52
|
}
|
|
51
53
|
/** JCListEditor Emits 接口 */
|
|
52
54
|
export interface JCListEditorEmits {
|
|
53
|
-
[key: string]: any;
|
|
54
55
|
/**
|
|
55
56
|
* 数据更新事件
|
|
56
57
|
* @param value 更新后的值数组
|
|
@@ -67,7 +68,7 @@ export interface JCListEditorSlots {
|
|
|
67
68
|
export interface JCListEditorExpose {
|
|
68
69
|
}
|
|
69
70
|
/** JCListEditor 组件类型定义 */
|
|
70
|
-
export type JCListEditorComponent =
|
|
71
|
+
export type JCListEditorComponent = RtcptComponent<JCListEditorProps, JCListEditorExpose, JCListEditorSlots>;
|
|
71
72
|
/** JCListEditor 实例类型 - 用于 ref 类型定义 */
|
|
72
73
|
export type JCListEditorInstance = InstanceType<JCListEditorComponent> & JCListEditorExpose;
|
|
73
74
|
/**
|
|
@@ -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";
|
|
@@ -39,7 +39,9 @@ export interface JCMoreMenuAction<T = any> {
|
|
|
39
39
|
/** 点击回调 */
|
|
40
40
|
onClick?: (item: T) => void | Promise<void>;
|
|
41
41
|
}
|
|
42
|
-
/** JCMoreMenu Props 接口
|
|
42
|
+
/** JCMoreMenu Props 接口
|
|
43
|
+
* @description 更多操作菜单组件,提供下拉菜单展示操作项列表
|
|
44
|
+
*/
|
|
43
45
|
export interface JCMoreMenuProps<T = any> {
|
|
44
46
|
/**
|
|
45
47
|
* 当前行数据
|
|
@@ -115,7 +117,6 @@ export interface JCMoreMenuProps<T = any> {
|
|
|
115
117
|
}
|
|
116
118
|
/** JCMoreMenu Emits 接口 */
|
|
117
119
|
export interface JCMoreMenuEmits<T = any> {
|
|
118
|
-
[key: string]: any;
|
|
119
120
|
/**
|
|
120
121
|
* 动作点击事件
|
|
121
122
|
* @param payload 动作和项目数据
|
|
@@ -127,6 +128,8 @@ export interface JCMoreMenuEmits<T = any> {
|
|
|
127
128
|
}
|
|
128
129
|
/** JCMoreMenu Slots 接口 */
|
|
129
130
|
export interface JCMoreMenuSlots {
|
|
131
|
+
/** 菜单列表内容 */
|
|
132
|
+
default?: () => any;
|
|
130
133
|
/**
|
|
131
134
|
* 触发器插槽
|
|
132
135
|
*/
|
|
@@ -142,7 +145,7 @@ export interface JCMoreMenuSlots {
|
|
|
142
145
|
export interface JCMoreMenuExpose {
|
|
143
146
|
}
|
|
144
147
|
/** JCMoreMenu 组件类型定义 */
|
|
145
|
-
export type JCMoreMenuComponent<T = any> =
|
|
148
|
+
export type JCMoreMenuComponent<T = any> = RtcptComponent<JCMoreMenuProps<T>, JCMoreMenuExpose, JCMoreMenuSlots>;
|
|
146
149
|
/** JCMoreMenu 实例类型 - 用于 ref 类型定义 */
|
|
147
150
|
export type JCMoreMenuInstance<T = any> = InstanceType<JCMoreMenuComponent<T>> & JCMoreMenuExpose;
|
|
148
151
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
1
2
|
/** 嵌套选择器选项接口 */
|
|
2
3
|
export interface NestedSelectOption {
|
|
3
4
|
/** 选项显示文本 */
|
|
@@ -13,7 +14,9 @@ export interface NestedSelectOption {
|
|
|
13
14
|
export type NestedSelectModelValue = string | number | null | undefined;
|
|
14
15
|
/** 组件内部使用的模型值类型别名 */
|
|
15
16
|
export type TModelValue = NestedSelectModelValue;
|
|
16
|
-
/** JCNestedSelect Props 接口
|
|
17
|
+
/** JCNestedSelect Props 接口
|
|
18
|
+
* @description 嵌套级联选择器,支持多层级的树形选项选择
|
|
19
|
+
*/
|
|
17
20
|
export interface JCNestedSelectProps {
|
|
18
21
|
/**
|
|
19
22
|
* 是否允许选择包含子项的父选项
|
|
@@ -94,7 +97,6 @@ export interface JCNestedSelectProps {
|
|
|
94
97
|
}
|
|
95
98
|
/** JCNestedSelect Emits 接口 */
|
|
96
99
|
export interface JCNestedSelectEmits {
|
|
97
|
-
[key: string]: any;
|
|
98
100
|
/**
|
|
99
101
|
* 数据更新事件
|
|
100
102
|
* @param value 更新后的值
|
|
@@ -106,3 +108,23 @@ export interface JCNestedSelectEmits {
|
|
|
106
108
|
*/
|
|
107
109
|
(e: 'change', value: NestedSelectModelValue): void;
|
|
108
110
|
}
|
|
111
|
+
/** JCNestedSelect Slots 接口(组件当前不提供自定义插槽) */
|
|
112
|
+
export interface JCNestedSelectSlots {
|
|
113
|
+
}
|
|
114
|
+
/** JCNestedSelect 暴露的方法和属性 */
|
|
115
|
+
export interface JCNestedSelectExpose {
|
|
116
|
+
}
|
|
117
|
+
/** Emits 配置对象格式 */
|
|
118
|
+
export type JCNestedSelectEmitsOptions = {
|
|
119
|
+
'update:modelValue': (value: NestedSelectModelValue) => true;
|
|
120
|
+
change: (value: NestedSelectModelValue) => true;
|
|
121
|
+
};
|
|
122
|
+
/** JCNestedSelect 组件类型定义 */
|
|
123
|
+
export type JCNestedSelectComponent = RtcptComponent<JCNestedSelectProps, JCNestedSelectExpose, JCNestedSelectSlots, JCNestedSelectEmitsOptions>;
|
|
124
|
+
/** JCNestedSelect 实例类型 */
|
|
125
|
+
export type JCNestedSelectInstance = InstanceType<JCNestedSelectComponent> & JCNestedSelectExpose;
|
|
126
|
+
/** 模板中使用的 Props 类型 */
|
|
127
|
+
export interface JCNestedSelectTemplateProps extends JCNestedSelectProps {
|
|
128
|
+
'onUpdate:modelValue'?: (value: NestedSelectModelValue) => void;
|
|
129
|
+
onChange?: (value: NestedSelectModelValue) => void;
|
|
130
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
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
|
/** 选项类型 */
|
|
6
6
|
export type Option = Record<string, any>;
|
|
7
7
|
/** 值显示函数类型 */
|
|
8
8
|
export type ValueDisplayFn = (value: ModelValue, options: Option[]) => string;
|
|
9
|
-
/** JCOrgSelect Props 接口
|
|
9
|
+
/** JCOrgSelect Props 接口
|
|
10
|
+
* @description 组织架构选择器,支持树形组织节点的筛选和多选
|
|
11
|
+
*/
|
|
10
12
|
export interface JCOrgSelectProps {
|
|
11
13
|
/**
|
|
12
14
|
* 选中的节点值数组
|
|
@@ -81,7 +83,6 @@ export interface JCOrgSelectProps {
|
|
|
81
83
|
}
|
|
82
84
|
/** JCOrgSelect Emits 接口 */
|
|
83
85
|
export interface JCOrgSelectEmits {
|
|
84
|
-
[key: string]: any;
|
|
85
86
|
/**
|
|
86
87
|
* 数据更新事件
|
|
87
88
|
* @param value 更新后的值数组
|
|
@@ -105,7 +106,7 @@ export interface JCOrgSelectExpose {
|
|
|
105
106
|
getFullValue: () => Option[] | undefined;
|
|
106
107
|
}
|
|
107
108
|
/** JCOrgSelect 组件类型定义 */
|
|
108
|
-
export type JCOrgSelectComponent =
|
|
109
|
+
export type JCOrgSelectComponent = RtcptComponent<JCOrgSelectProps, JCOrgSelectExpose, JCOrgSelectSlots>;
|
|
109
110
|
/** JCOrgSelect 实例类型 - 用于 ref 类型定义 */
|
|
110
111
|
export type JCOrgSelectInstance = InstanceType<JCOrgSelectComponent> & JCOrgSelectExpose;
|
|
111
112
|
/**
|
|
@@ -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,11 +1,14 @@
|
|
|
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
|
|
8
|
-
/**
|
|
6
|
+
export declare const PAGE_ACTION_PERMISSION_KEY: InjectionKey<Ref<PermissionCode[]>>;
|
|
7
|
+
/** 页面权限注入键 */
|
|
8
|
+
export declare const PAGE_PERMISSION_KEY: InjectionKey<Ref<PermissionCode[]>>;
|
|
9
|
+
/** JCPermission Props 接口
|
|
10
|
+
* @description 权限控制组件,根据权限码控制内容的显示与隐藏
|
|
11
|
+
*/
|
|
9
12
|
export interface JCPermissionProps {
|
|
10
13
|
/**
|
|
11
14
|
* 权限码
|
|
@@ -35,9 +38,6 @@ export interface JCPermissionProps {
|
|
|
35
38
|
}
|
|
36
39
|
/** JCPermission Emits 接口 */
|
|
37
40
|
export interface JCPermissionEmits {
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
/** 组件没有定义事件 */
|
|
40
|
-
(e: 'never', never: never): never;
|
|
41
41
|
}
|
|
42
42
|
/** JCPermission Slots 接口 */
|
|
43
43
|
export interface JCPermissionSlots {
|
|
@@ -49,7 +49,7 @@ export interface JCPermissionSlots {
|
|
|
49
49
|
export interface JCPermissionExpose {
|
|
50
50
|
}
|
|
51
51
|
/** JCPermission 组件类型定义 */
|
|
52
|
-
export type JCPermissionComponent =
|
|
52
|
+
export type JCPermissionComponent = RtcptComponent<JCPermissionProps, JCPermissionExpose, JCPermissionSlots>;
|
|
53
53
|
/** JCPermission 实例类型 - 用于 ref 类型定义 */
|
|
54
54
|
export type JCPermissionInstance = InstanceType<JCPermissionComponent> & JCPermissionExpose;
|
|
55
55
|
/**
|
|
@@ -58,5 +58,5 @@ export type JCPermissionInstance = InstanceType<JCPermissionComponent> & JCPermi
|
|
|
58
58
|
export interface JCPermissionTemplateProps extends JCPermissionProps {
|
|
59
59
|
}
|
|
60
60
|
/** 导出注入键的类型 */
|
|
61
|
-
export type PageActionPermissionKey =
|
|
62
|
-
export type PagePermissionKey =
|
|
61
|
+
export type PageActionPermissionKey = typeof PAGE_ACTION_PERMISSION_KEY;
|
|
62
|
+
export type PagePermissionKey = typeof PAGE_PERMISSION_KEY;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
export interface IUserRole {
|
|
3
3
|
platform: string;
|
|
4
4
|
role: string;
|
|
5
5
|
}
|
|
6
|
-
/** JCPlatform Props 接口
|
|
6
|
+
/** JCPlatform Props 接口
|
|
7
|
+
* @description 平台信息组件,展示当前平台名称和用户角色
|
|
8
|
+
*/
|
|
7
9
|
export interface JCPlatformProps {
|
|
8
10
|
/**
|
|
9
11
|
* 当前激活的平台名称
|
|
@@ -18,9 +20,6 @@ export interface JCPlatformProps {
|
|
|
18
20
|
}
|
|
19
21
|
/** JCPlatform Emits 接口 */
|
|
20
22
|
export interface JCPlatformEmits {
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
/** 组件没有定义事件 */
|
|
23
|
-
(e: 'never', never: never): never;
|
|
24
23
|
}
|
|
25
24
|
/** JCPlatform Slots 接口 */
|
|
26
25
|
export interface JCPlatformSlots {
|
|
@@ -32,7 +31,7 @@ export interface JCPlatformSlots {
|
|
|
32
31
|
export interface JCPlatformExpose {
|
|
33
32
|
}
|
|
34
33
|
/** JCPlatform 组件类型定义 */
|
|
35
|
-
export type JCPlatformComponent =
|
|
34
|
+
export type JCPlatformComponent = RtcptComponent<JCPlatformProps, JCPlatformExpose, JCPlatformSlots>;
|
|
36
35
|
/** JCPlatform 实例类型 - 用于 ref 类型定义 */
|
|
37
36
|
export type JCPlatformInstance = InstanceType<JCPlatformComponent> & JCPlatformExpose;
|
|
38
37
|
/** 用于模板中的 Props 类型定义 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
/** JCTable 列配置接口 */
|
|
3
3
|
export interface JCTableColumn {
|
|
4
4
|
/** 列的唯一标识 */
|
|
@@ -36,7 +36,9 @@ export interface JCTableColumn {
|
|
|
36
36
|
/** 自定义 style */
|
|
37
37
|
style?: string | Record<string, any>;
|
|
38
38
|
}
|
|
39
|
-
/** JCTable Props 接口
|
|
39
|
+
/** JCTable Props 接口
|
|
40
|
+
* @description 数据表格组件,支持列配置、固定列和自定义单元格内容
|
|
41
|
+
*/
|
|
40
42
|
export interface JCTableProps {
|
|
41
43
|
/**
|
|
42
44
|
* 列配置
|
|
@@ -81,9 +83,6 @@ export interface JCTableProps {
|
|
|
81
83
|
}
|
|
82
84
|
/** JCTable Emits 接口 */
|
|
83
85
|
export interface JCTableEmits {
|
|
84
|
-
[key: string]: any;
|
|
85
|
-
/** 组件没有定义事件 */
|
|
86
|
-
(e: 'never', never: never): never;
|
|
87
86
|
}
|
|
88
87
|
/** JCTable Slots 接口 */
|
|
89
88
|
export interface JCTableSlots {
|
|
@@ -102,7 +101,7 @@ export interface JCTableSlots {
|
|
|
102
101
|
export interface JCTableExpose {
|
|
103
102
|
}
|
|
104
103
|
/** JCTable 组件类型定义 */
|
|
105
|
-
export type JCTableComponent =
|
|
104
|
+
export type JCTableComponent = RtcptComponent<JCTableProps, JCTableExpose, JCTableSlots>;
|
|
106
105
|
/** JCTable 实例类型 - 用于 ref 类型定义 */
|
|
107
106
|
export type JCTableInstance = InstanceType<JCTableComponent> & JCTableExpose;
|
|
108
107
|
/**
|
|
@@ -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";
|
|
@@ -16,7 +16,9 @@ export interface TabOption {
|
|
|
16
16
|
/** 单个 tab 的最大宽度(优先级高于 itemMaxWidth) */
|
|
17
17
|
maxWidth?: string | number;
|
|
18
18
|
}
|
|
19
|
-
/** JCTabs Props 接口
|
|
19
|
+
/** JCTabs Props 接口
|
|
20
|
+
* @description 标签页切换组件,支持多种样式变体和自定义标签内容
|
|
21
|
+
*/
|
|
20
22
|
export interface JCTabsProps {
|
|
21
23
|
/**
|
|
22
24
|
* 当前选中的值
|
|
@@ -58,7 +60,6 @@ export interface JCTabsProps {
|
|
|
58
60
|
}
|
|
59
61
|
/** JCTabs Emits 接口 */
|
|
60
62
|
export interface JCTabsEmits {
|
|
61
|
-
[key: string]: any;
|
|
62
63
|
/**
|
|
63
64
|
* 数据更新事件
|
|
64
65
|
* @param value 更新后的值
|
|
@@ -102,7 +103,7 @@ export interface JCTabsSlots {
|
|
|
102
103
|
export interface JCTabsExpose {
|
|
103
104
|
}
|
|
104
105
|
/** JCTabs 组件类型定义 */
|
|
105
|
-
export type JCTabsComponent =
|
|
106
|
+
export type JCTabsComponent = RtcptComponent<JCTabsProps, JCTabsExpose, JCTabsSlots>;
|
|
106
107
|
/** JCTabs 实例类型 - 用于 ref 类型定义 */
|
|
107
108
|
export type JCTabsInstance = InstanceType<JCTabsComponent> & JCTabsExpose;
|
|
108
109
|
/**
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** JCTitleLine Props 接口
|
|
1
|
+
import { RtcptComponent } from '../../component-types';
|
|
2
|
+
/** JCTitleLine Props 接口
|
|
3
|
+
* @description 标题分割线组件,用于分区展示标题和额外内容
|
|
4
|
+
*/
|
|
3
5
|
export interface JCTitleLineProps {
|
|
4
6
|
/**
|
|
5
7
|
* 标题文本
|
|
@@ -9,9 +11,6 @@ export interface JCTitleLineProps {
|
|
|
9
11
|
}
|
|
10
12
|
/** JCTitleLine Emits 接口 */
|
|
11
13
|
export interface JCTitleLineEmits {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
/** 组件没有定义事件 */
|
|
14
|
-
(e: 'never', never: never): never;
|
|
15
14
|
}
|
|
16
15
|
/** JCTitleLine Slots 接口 */
|
|
17
16
|
export interface JCTitleLineSlots {
|
|
@@ -23,7 +22,7 @@ export interface JCTitleLineSlots {
|
|
|
23
22
|
export interface JCTitleLineExpose {
|
|
24
23
|
}
|
|
25
24
|
/** JCTitleLine 组件类型定义 */
|
|
26
|
-
export type JCTitleLineComponent =
|
|
25
|
+
export type JCTitleLineComponent = RtcptComponent<JCTitleLineProps, JCTitleLineExpose, JCTitleLineSlots>;
|
|
27
26
|
/** JCTitleLine 实例类型 - 用于 ref 类型定义 */
|
|
28
27
|
export type JCTitleLineInstance = InstanceType<JCTitleLineComponent> & JCTitleLineExpose;
|
|
29
28
|
/**
|