rtcpts 0.0.37 → 0.0.41
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/LICENSE +22 -22
- package/README.md +91 -91
- package/dist/{charts-fA1hE3y8.js → charts-BVD7yH1K.js} +2 -2
- package/dist/{charts-DJRnfFOn.cjs → charts-DR-a8_4o.cjs} +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +1 -1
- package/dist/components/j-c-copy/types.d.ts +39 -0
- package/dist/components/j-c-duo-list-editor/types.d.ts +109 -0
- package/dist/components/j-c-editable-proxy/types.d.ts +106 -0
- package/dist/components/j-c-fallback/types.d.ts +57 -0
- package/dist/components/j-c-foldable-list/types.d.ts +55 -0
- package/dist/components/j-c-format-lookup/types.d.ts +67 -0
- package/dist/components/j-c-list-editor/types.d.ts +77 -0
- package/dist/components/j-c-more-menu/types.d.ts +147 -0
- package/dist/components/j-c-nested-select/types.d.ts +1 -0
- package/dist/components/j-c-permission/types.d.ts +62 -0
- package/dist/components/j-c-table/types.d.ts +67 -9
- package/dist/components/j-c-tabs/types.d.ts +112 -0
- package/dist/components/j-c-title-line/types.d.ts +33 -0
- package/dist/components/j-c-tooltip/types.d.ts +7 -0
- package/dist/components/j-c-tooltip-ellipsis/types.d.ts +1 -0
- package/dist/components/j-c-tree/types.d.ts +75 -0
- package/dist/components/j-c-tree-select/types.d.ts +132 -0
- package/dist/components/j-ch-bar/types.d.ts +13 -1
- package/dist/components/j-ch-bar-line/types.d.ts +1 -0
- package/dist/components/j-ch-bubble/types.d.ts +1 -0
- package/dist/components/j-ch-line/types.d.ts +1 -0
- package/dist/components/j-ch-pie-doughnut/types.d.ts +1 -0
- package/dist/components/j-ch-radar/types.d.ts +1 -0
- package/dist/components/j-q-autocomplete/types.d.ts +85 -0
- package/dist/components/j-q-button/types.d.ts +2 -0
- package/dist/components/j-q-button-dropdown/types.d.ts +2 -0
- package/dist/components/j-q-confirm/types.d.ts +2 -0
- package/dist/components/j-q-date/types.d.ts +145 -0
- package/dist/components/j-q-date-month/types.d.ts +94 -0
- package/dist/components/j-q-date-year/types.d.ts +76 -0
- package/dist/components/j-q-datetime/types.d.ts +145 -0
- package/dist/components/j-q-detail-list/types.d.ts +101 -0
- package/dist/components/j-q-dialog/types.d.ts +138 -0
- package/dist/components/j-q-file/types.d.ts +72 -0
- package/dist/components/j-q-form-label/types.d.ts +66 -0
- package/dist/components/j-q-input/types.d.ts +139 -0
- package/dist/components/j-q-input-recognize/types.d.ts +133 -0
- package/dist/components/j-q-new-value/types.d.ts +107 -0
- package/dist/components/j-q-option-group/types.d.ts +109 -0
- package/dist/components/j-q-pagination/types.d.ts +85 -0
- package/dist/components/j-q-popover/types.d.ts +50 -0
- package/dist/components/j-q-search-form/types.d.ts +80 -0
- package/dist/components/j-q-select/types.d.ts +196 -0
- package/dist/components/j-q-table/types.d.ts +215 -0
- package/dist/components/j-q-tooltip/types.d.ts +41 -0
- package/dist/global.d.ts +319 -9
- package/dist/index.css +1 -1
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +1532 -1518
- package/package.json +87 -87
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/** JCFoldableList Props 接口 */
|
|
3
|
+
export interface JCFoldableListProps {
|
|
4
|
+
/**
|
|
5
|
+
* 最大高度(像素)
|
|
6
|
+
* @default 100
|
|
7
|
+
*/
|
|
8
|
+
maxHeight?: number;
|
|
9
|
+
/**
|
|
10
|
+
* 默认是否折叠
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
defaultCollapsed?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 在对话框中查看全部内容
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
viewInDialog?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 对话框标题
|
|
21
|
+
* @default ''
|
|
22
|
+
*/
|
|
23
|
+
dialogTitle?: string;
|
|
24
|
+
/**
|
|
25
|
+
* 对话框最大宽度
|
|
26
|
+
* @default '50vw'
|
|
27
|
+
*/
|
|
28
|
+
dialogMaxWidth?: string;
|
|
29
|
+
}
|
|
30
|
+
/** JCFoldableList Emits 接口 */
|
|
31
|
+
export interface JCFoldableListEmits {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
/** 组件没有定义事件 */
|
|
34
|
+
(e: 'never', never: never): never;
|
|
35
|
+
}
|
|
36
|
+
/** JCFoldableList Slots 接口 */
|
|
37
|
+
export interface JCFoldableListSlots {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
/** 默认插槽,用于放置需要折叠的内容 */
|
|
40
|
+
default?: () => any;
|
|
41
|
+
}
|
|
42
|
+
/** JCFoldableList 暴露的方法和属性 */
|
|
43
|
+
export interface JCFoldableListExpose {
|
|
44
|
+
/** 重新测量内容高度 */
|
|
45
|
+
remeasure: () => void;
|
|
46
|
+
}
|
|
47
|
+
/** JCFoldableList 组件类型定义 */
|
|
48
|
+
export type JCFoldableListComponent = DefineComponent<JCFoldableListProps, JCFoldableListExpose, {}, JCFoldableListSlots, JCFoldableListEmits, {}, {}, {}>;
|
|
49
|
+
/** JCFoldableList 实例类型 - 用于 ref 类型定义 */
|
|
50
|
+
export type JCFoldableListInstance = InstanceType<JCFoldableListComponent> & JCFoldableListExpose;
|
|
51
|
+
/**
|
|
52
|
+
* 用于模板中的 Props 类型定义
|
|
53
|
+
*/
|
|
54
|
+
export interface JCFoldableListTemplateProps extends JCFoldableListProps {
|
|
55
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/** 通用的选项类型定义 */
|
|
3
|
+
export interface OptionItem {
|
|
4
|
+
label: string;
|
|
5
|
+
value: any;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
/** 查找键的类型 */
|
|
9
|
+
export type LookupKey = 'label' | 'value';
|
|
10
|
+
/** JCFormatLookup Props 接口 */
|
|
11
|
+
export interface JCFormatLookupProps {
|
|
12
|
+
/**
|
|
13
|
+
* 要查找的值
|
|
14
|
+
* @default null
|
|
15
|
+
*/
|
|
16
|
+
value?: any;
|
|
17
|
+
/**
|
|
18
|
+
* 选项列表,组件会在这个列表中进行查找
|
|
19
|
+
* @default null
|
|
20
|
+
* @required true
|
|
21
|
+
*/
|
|
22
|
+
options: OptionItem[];
|
|
23
|
+
/**
|
|
24
|
+
* 匹配的键
|
|
25
|
+
* @default ['value', 'label']
|
|
26
|
+
*/
|
|
27
|
+
matchKeys?: LookupKey[];
|
|
28
|
+
/**
|
|
29
|
+
* 查找失败时显示的内容
|
|
30
|
+
* @default '-'
|
|
31
|
+
*/
|
|
32
|
+
defaultContent?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 查找失败时是否移除DOM
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
rmDom?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/** JCFormatLookup Emits 接口 */
|
|
40
|
+
export interface JCFormatLookupEmits {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
/** 组件没有定义事件 */
|
|
43
|
+
(e: 'never', never: never): never;
|
|
44
|
+
}
|
|
45
|
+
/** JCFormatLookup Slots 接口 */
|
|
46
|
+
export interface JCFormatLookupSlots {
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
/**
|
|
49
|
+
* 默认插槽
|
|
50
|
+
* @param label 显示的标签文本
|
|
51
|
+
*/
|
|
52
|
+
default?: (props: {
|
|
53
|
+
label: string;
|
|
54
|
+
}) => any;
|
|
55
|
+
}
|
|
56
|
+
/** JCFormatLookup 暴露的方法和属性 */
|
|
57
|
+
export interface JCFormatLookupExpose {
|
|
58
|
+
}
|
|
59
|
+
/** JCFormatLookup 组件类型定义 */
|
|
60
|
+
export type JCFormatLookupComponent = DefineComponent<JCFormatLookupProps, JCFormatLookupExpose, {}, JCFormatLookupSlots, JCFormatLookupEmits, {}, {}, {}>;
|
|
61
|
+
/** JCFormatLookup 实例类型 - 用于 ref 类型定义 */
|
|
62
|
+
export type JCFormatLookupInstance = InstanceType<JCFormatLookupComponent> & JCFormatLookupExpose;
|
|
63
|
+
/**
|
|
64
|
+
* 用于模板中的 Props 类型定义
|
|
65
|
+
*/
|
|
66
|
+
export interface JCFormatLookupTemplateProps extends JCFormatLookupProps {
|
|
67
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/** JCListEditor Props 接口 */
|
|
3
|
+
export interface JCListEditorProps {
|
|
4
|
+
/**
|
|
5
|
+
* 双向绑定的列表数据
|
|
6
|
+
* @default ['']
|
|
7
|
+
*/
|
|
8
|
+
modelValue?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* 表单项标签
|
|
11
|
+
* @default null
|
|
12
|
+
* @required true
|
|
13
|
+
*/
|
|
14
|
+
label: string;
|
|
15
|
+
/**
|
|
16
|
+
* 是否必填
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
required?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 验证规则
|
|
22
|
+
* @default null
|
|
23
|
+
*/
|
|
24
|
+
rules?: any[];
|
|
25
|
+
/**
|
|
26
|
+
* 是否只读
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
readonly?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 占位符文本
|
|
32
|
+
* @default ''
|
|
33
|
+
*/
|
|
34
|
+
placeholder?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 新项的默认值
|
|
37
|
+
* @default ''
|
|
38
|
+
*/
|
|
39
|
+
defaultNewValue?: string;
|
|
40
|
+
/**
|
|
41
|
+
* 最大项数
|
|
42
|
+
* @default 5
|
|
43
|
+
*/
|
|
44
|
+
maxItems?: number;
|
|
45
|
+
/**
|
|
46
|
+
* 输入框类型
|
|
47
|
+
* @default 'text'
|
|
48
|
+
*/
|
|
49
|
+
inputType?: string;
|
|
50
|
+
}
|
|
51
|
+
/** JCListEditor Emits 接口 */
|
|
52
|
+
export interface JCListEditorEmits {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
/**
|
|
55
|
+
* 数据更新事件
|
|
56
|
+
* @param value 更新后的值数组
|
|
57
|
+
*/
|
|
58
|
+
(e: 'update:modelValue', value: string[]): void;
|
|
59
|
+
}
|
|
60
|
+
/** JCListEditor Slots 接口 */
|
|
61
|
+
export interface JCListEditorSlots {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
/** 输入框后置插槽 */
|
|
64
|
+
after?: () => any;
|
|
65
|
+
}
|
|
66
|
+
/** JCListEditor 暴露的方法和属性 */
|
|
67
|
+
export interface JCListEditorExpose {
|
|
68
|
+
}
|
|
69
|
+
/** JCListEditor 组件类型定义 */
|
|
70
|
+
export type JCListEditorComponent = DefineComponent<JCListEditorProps, JCListEditorExpose, {}, JCListEditorSlots, JCListEditorEmits, {}, {}, {}>;
|
|
71
|
+
/** JCListEditor 实例类型 - 用于 ref 类型定义 */
|
|
72
|
+
export type JCListEditorInstance = InstanceType<JCListEditorComponent> & JCListEditorExpose;
|
|
73
|
+
/**
|
|
74
|
+
* 用于模板中的 Props 类型定义
|
|
75
|
+
*/
|
|
76
|
+
export interface JCListEditorTemplateProps extends JCListEditorProps {
|
|
77
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
export declare const JCMoreMenuSize: {
|
|
3
|
+
readonly MD: "md";
|
|
4
|
+
readonly LG: "lg";
|
|
5
|
+
};
|
|
6
|
+
/** 菜单尺寸类型 */
|
|
7
|
+
export type JCMoreMenuSizeType = (typeof JCMoreMenuSize)[keyof typeof JCMoreMenuSize];
|
|
8
|
+
/** 布尔值类型(可以是布尔值或返回布尔值的函数) */
|
|
9
|
+
export type BoolLike<T> = boolean | ((item: T) => boolean);
|
|
10
|
+
/** 标签类型(可以是字符串或返回字符串的函数) */
|
|
11
|
+
export type LabelLike<T> = string | ((ctx: {
|
|
12
|
+
item: T;
|
|
13
|
+
action: JCMoreMenuAction<T>;
|
|
14
|
+
}) => string);
|
|
15
|
+
/** 翻译函数类型 */
|
|
16
|
+
export type TranslateFn = (key: string, variables?: Record<string, any>) => string;
|
|
17
|
+
/** JCMoreMenu 动作类型定义 */
|
|
18
|
+
export interface JCMoreMenuAction<T = any> {
|
|
19
|
+
key?: string | number;
|
|
20
|
+
/** 用于图标插槽的唯一标识(选填) */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** 权限码;不传则默认当作有权限 */
|
|
23
|
+
permissionCode?: string | null;
|
|
24
|
+
/** 无权限时是否移除 DOM(默认 true) */
|
|
25
|
+
rmDom?: boolean;
|
|
26
|
+
/** 无权限且 rmDom=false 时显示的默认文案 */
|
|
27
|
+
defaultContent?: string;
|
|
28
|
+
/** 文案:优先 label,其次 i18nKey */
|
|
29
|
+
label?: LabelLike<T>;
|
|
30
|
+
i18nKey?: string;
|
|
31
|
+
/** 是否可点击(默认 true) */
|
|
32
|
+
clickable?: boolean;
|
|
33
|
+
/** 点击后是否自动关闭弹层(默认 true) */
|
|
34
|
+
closePopup?: boolean;
|
|
35
|
+
/** 是否显示该 action(默认 true) */
|
|
36
|
+
visible?: BoolLike<T>;
|
|
37
|
+
/** 是否禁用该 action(默认 false) */
|
|
38
|
+
disabled?: BoolLike<T>;
|
|
39
|
+
/** 点击回调 */
|
|
40
|
+
onClick?: (item: T) => void | Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
/** JCMoreMenu Props 接口 */
|
|
43
|
+
export interface JCMoreMenuProps<T = any> {
|
|
44
|
+
/**
|
|
45
|
+
* 当前行数据
|
|
46
|
+
* @default null
|
|
47
|
+
*/
|
|
48
|
+
item?: T;
|
|
49
|
+
/**
|
|
50
|
+
* 操作列表
|
|
51
|
+
* @default []
|
|
52
|
+
*/
|
|
53
|
+
actions?: JCMoreMenuAction<T>[];
|
|
54
|
+
/**
|
|
55
|
+
* 菜单尺寸
|
|
56
|
+
* @default 'md'
|
|
57
|
+
* @values 'md' | 'lg'
|
|
58
|
+
*/
|
|
59
|
+
size?: JCMoreMenuSizeType;
|
|
60
|
+
/**
|
|
61
|
+
* 是否适应宽度
|
|
62
|
+
* @default undefined
|
|
63
|
+
*/
|
|
64
|
+
fit?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* 是否紧凑模式
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
dense?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* 触发图标大小
|
|
72
|
+
* @default '16px'
|
|
73
|
+
*/
|
|
74
|
+
triggerSize?: string;
|
|
75
|
+
/**
|
|
76
|
+
* 偏移量
|
|
77
|
+
* @default undefined
|
|
78
|
+
*/
|
|
79
|
+
offset?: [number, number];
|
|
80
|
+
/**
|
|
81
|
+
* 锚点位置
|
|
82
|
+
* @default undefined
|
|
83
|
+
*/
|
|
84
|
+
anchor?: string;
|
|
85
|
+
/**
|
|
86
|
+
* 自身位置
|
|
87
|
+
* @default undefined
|
|
88
|
+
*/
|
|
89
|
+
self?: string;
|
|
90
|
+
/**
|
|
91
|
+
* 列表最小宽度
|
|
92
|
+
* @default undefined
|
|
93
|
+
*/
|
|
94
|
+
listMinWidth?: string;
|
|
95
|
+
/**
|
|
96
|
+
* 菜单样式类
|
|
97
|
+
* @default undefined
|
|
98
|
+
*/
|
|
99
|
+
menuClass?: any;
|
|
100
|
+
/**
|
|
101
|
+
* 翻译函数
|
|
102
|
+
* @default undefined
|
|
103
|
+
*/
|
|
104
|
+
translate?: TranslateFn;
|
|
105
|
+
/**
|
|
106
|
+
* 无操作时显示占位符
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
showEmptyPlaceholder?: boolean;
|
|
110
|
+
}
|
|
111
|
+
/** JCMoreMenu Emits 接口 */
|
|
112
|
+
export interface JCMoreMenuEmits<T = any> {
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
/**
|
|
115
|
+
* 动作点击事件
|
|
116
|
+
* @param payload 动作和项目数据
|
|
117
|
+
*/
|
|
118
|
+
(e: 'action', payload: {
|
|
119
|
+
action: JCMoreMenuAction<T>;
|
|
120
|
+
item: T;
|
|
121
|
+
}): void;
|
|
122
|
+
}
|
|
123
|
+
/** JCMoreMenu Slots 接口 */
|
|
124
|
+
export interface JCMoreMenuSlots {
|
|
125
|
+
/**
|
|
126
|
+
* 触发器插槽
|
|
127
|
+
*/
|
|
128
|
+
trigger?: () => any;
|
|
129
|
+
/**
|
|
130
|
+
* 菜单图标插槽(动态插槽名:menu-icon-{id})
|
|
131
|
+
* @param action 动作对象
|
|
132
|
+
* @param item 项目数据
|
|
133
|
+
*/
|
|
134
|
+
[key: string]: any;
|
|
135
|
+
}
|
|
136
|
+
/** JCMoreMenu 暴露的方法和属性 */
|
|
137
|
+
export interface JCMoreMenuExpose {
|
|
138
|
+
}
|
|
139
|
+
/** JCMoreMenu 组件类型定义 */
|
|
140
|
+
export type JCMoreMenuComponent<T = any> = DefineComponent<JCMoreMenuProps<T>, JCMoreMenuExpose, {}, JCMoreMenuSlots, JCMoreMenuEmits<T>, {}, {}, {}>;
|
|
141
|
+
/** JCMoreMenu 实例类型 - 用于 ref 类型定义 */
|
|
142
|
+
export type JCMoreMenuInstance<T = any> = InstanceType<JCMoreMenuComponent<T>> & JCMoreMenuExpose;
|
|
143
|
+
/**
|
|
144
|
+
* 用于模板中的 Props 类型定义
|
|
145
|
+
*/
|
|
146
|
+
export interface JCMoreMenuTemplateProps<T = any> extends JCMoreMenuProps<T> {
|
|
147
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { DefineComponent, InjectionKey } from 'vue';
|
|
2
|
+
/** 权限码类型 */
|
|
3
|
+
export type PermissionCode = string;
|
|
4
|
+
/** 页面权限注入键 */
|
|
5
|
+
export declare const PAGE_ACTION_PERMISSION_KEY: unique symbol;
|
|
6
|
+
/** 页面操作权限注入键 */
|
|
7
|
+
export declare const PAGE_PERMISSION_KEY: unique symbol;
|
|
8
|
+
/** JCPermission Props 接口 */
|
|
9
|
+
export interface JCPermissionProps {
|
|
10
|
+
/**
|
|
11
|
+
* 权限码
|
|
12
|
+
* @default null
|
|
13
|
+
*/
|
|
14
|
+
code?: PermissionCode | null;
|
|
15
|
+
/**
|
|
16
|
+
* 无权限时显示的内容
|
|
17
|
+
* @default '-'
|
|
18
|
+
*/
|
|
19
|
+
defaultContent?: string;
|
|
20
|
+
/**
|
|
21
|
+
* 无权限时是否移除DOM
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
rmDom?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 页面权限码列表
|
|
27
|
+
* @default undefined
|
|
28
|
+
*/
|
|
29
|
+
pagePermissionId?: PermissionCode[];
|
|
30
|
+
/**
|
|
31
|
+
* 操作权限码列表
|
|
32
|
+
* @default undefined
|
|
33
|
+
*/
|
|
34
|
+
pageActionPermissionId?: PermissionCode[];
|
|
35
|
+
}
|
|
36
|
+
/** JCPermission Emits 接口 */
|
|
37
|
+
export interface JCPermissionEmits {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
/** 组件没有定义事件 */
|
|
40
|
+
(e: 'never', never: never): never;
|
|
41
|
+
}
|
|
42
|
+
/** JCPermission Slots 接口 */
|
|
43
|
+
export interface JCPermissionSlots {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
/** 默认插槽,有权限时显示的内容 */
|
|
46
|
+
default?: () => any;
|
|
47
|
+
}
|
|
48
|
+
/** JCPermission 暴露的方法和属性 */
|
|
49
|
+
export interface JCPermissionExpose {
|
|
50
|
+
}
|
|
51
|
+
/** JCPermission 组件类型定义 */
|
|
52
|
+
export type JCPermissionComponent = DefineComponent<JCPermissionProps, JCPermissionExpose, {}, JCPermissionSlots, JCPermissionEmits, {}, {}, {}>;
|
|
53
|
+
/** JCPermission 实例类型 - 用于 ref 类型定义 */
|
|
54
|
+
export type JCPermissionInstance = InstanceType<JCPermissionComponent> & JCPermissionExpose;
|
|
55
|
+
/**
|
|
56
|
+
* 用于模板中的 Props 类型定义
|
|
57
|
+
*/
|
|
58
|
+
export interface JCPermissionTemplateProps extends JCPermissionProps {
|
|
59
|
+
}
|
|
60
|
+
/** 导出注入键的类型 */
|
|
61
|
+
export type PageActionPermissionKey = InjectionKey<PermissionCode[]>;
|
|
62
|
+
export type PagePermissionKey = InjectionKey<PermissionCode[]>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/** JCTable 列配置接口 */
|
|
1
3
|
export interface JCTableColumn {
|
|
2
4
|
/** 列的唯一标识 */
|
|
3
5
|
name: string;
|
|
@@ -34,21 +36,77 @@ export interface JCTableColumn {
|
|
|
34
36
|
/** 自定义 style */
|
|
35
37
|
style?: string | Record<string, any>;
|
|
36
38
|
}
|
|
39
|
+
/** JCTable Props 接口 */
|
|
37
40
|
export interface JCTableProps {
|
|
38
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* 列配置
|
|
43
|
+
* @required
|
|
44
|
+
*/
|
|
39
45
|
columns: JCTableColumn[];
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
/**
|
|
47
|
+
* 行数据
|
|
48
|
+
* @default []
|
|
49
|
+
*/
|
|
50
|
+
rows?: any[];
|
|
51
|
+
/**
|
|
52
|
+
* 行的唯一标识字段
|
|
53
|
+
* @default 'id'
|
|
54
|
+
*/
|
|
43
55
|
rowKey?: string;
|
|
44
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* 空数据提示文本
|
|
58
|
+
* @default '暂无数据'
|
|
59
|
+
*/
|
|
45
60
|
emptyText?: string;
|
|
46
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* 是否固定第一列
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
47
65
|
firstColumnPinned?: boolean;
|
|
48
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* 是否固定最后一列
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
49
70
|
lastColumnPinned?: boolean;
|
|
50
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* 是否固定表头
|
|
73
|
+
* @default true
|
|
74
|
+
*/
|
|
51
75
|
fixedHeader?: boolean;
|
|
52
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* 表体最大高度
|
|
78
|
+
* @default undefined
|
|
79
|
+
*/
|
|
53
80
|
maxBodyHeight?: string | number;
|
|
54
81
|
}
|
|
82
|
+
/** JCTable Emits 接口 */
|
|
83
|
+
export interface JCTableEmits {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
/** 组件没有定义事件 */
|
|
86
|
+
(e: 'never', never: never): never;
|
|
87
|
+
}
|
|
88
|
+
/** JCTable Slots 接口 */
|
|
89
|
+
export interface JCTableSlots {
|
|
90
|
+
/**
|
|
91
|
+
* 表头单元格插槽(动态插槽名:header-{columnName})
|
|
92
|
+
* @param column 列配置
|
|
93
|
+
* @param index 列索引
|
|
94
|
+
*/
|
|
95
|
+
[key: string]: any;
|
|
96
|
+
/**
|
|
97
|
+
* 空数据插槽
|
|
98
|
+
*/
|
|
99
|
+
empty?: () => any;
|
|
100
|
+
}
|
|
101
|
+
/** JCTable 暴露的方法和属性 */
|
|
102
|
+
export interface JCTableExpose {
|
|
103
|
+
}
|
|
104
|
+
/** JCTable 组件类型定义 */
|
|
105
|
+
export type JCTableComponent = DefineComponent<JCTableProps, JCTableExpose, {}, JCTableSlots, JCTableEmits, {}, {}, {}>;
|
|
106
|
+
/** JCTable 实例类型 - 用于 ref 类型定义 */
|
|
107
|
+
export type JCTableInstance = InstanceType<JCTableComponent> & JCTableExpose;
|
|
108
|
+
/**
|
|
109
|
+
* 用于模板中的 Props 类型定义
|
|
110
|
+
*/
|
|
111
|
+
export interface JCTableTemplateProps extends JCTableProps {
|
|
112
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
export declare const JCTabsVariant: {
|
|
3
|
+
readonly DEFAULT: "default";
|
|
4
|
+
readonly FLAT: "flat";
|
|
5
|
+
readonly LINE: "line";
|
|
6
|
+
};
|
|
7
|
+
/** 标签变体类型 */
|
|
8
|
+
export type JCTabsVariantType = (typeof JCTabsVariant)[keyof typeof JCTabsVariant];
|
|
9
|
+
/** 模型值类型 */
|
|
10
|
+
export type TModelValue = string | number | null;
|
|
11
|
+
/** 标签选项接口 */
|
|
12
|
+
export interface TabOption {
|
|
13
|
+
label: string;
|
|
14
|
+
value: TModelValue;
|
|
15
|
+
disable?: boolean;
|
|
16
|
+
/** 单个 tab 的最大宽度(优先级高于 itemMaxWidth) */
|
|
17
|
+
maxWidth?: string | number;
|
|
18
|
+
}
|
|
19
|
+
/** JCTabs Props 接口 */
|
|
20
|
+
export interface JCTabsProps {
|
|
21
|
+
/**
|
|
22
|
+
* 当前选中的值
|
|
23
|
+
* @default null
|
|
24
|
+
*/
|
|
25
|
+
modelValue?: TModelValue;
|
|
26
|
+
/**
|
|
27
|
+
* 标签选项列表
|
|
28
|
+
* @default null
|
|
29
|
+
* @required true
|
|
30
|
+
*/
|
|
31
|
+
options: TabOption[];
|
|
32
|
+
/**
|
|
33
|
+
* 是否禁用
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
disable?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 样式变体
|
|
39
|
+
* @default 'default'
|
|
40
|
+
* @values 'default' | 'flat' | 'line'
|
|
41
|
+
*/
|
|
42
|
+
variant?: JCTabsVariantType;
|
|
43
|
+
/**
|
|
44
|
+
* 是否支持换行
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
wrap?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 是否扩展铺满
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
expand?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* 标签项最大宽度
|
|
55
|
+
* @default undefined
|
|
56
|
+
*/
|
|
57
|
+
itemMaxWidth?: string | number;
|
|
58
|
+
}
|
|
59
|
+
/** JCTabs Emits 接口 */
|
|
60
|
+
export interface JCTabsEmits {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
/**
|
|
63
|
+
* 数据更新事件
|
|
64
|
+
* @param value 更新后的值
|
|
65
|
+
*/
|
|
66
|
+
(e: 'update:modelValue', value: TModelValue): void;
|
|
67
|
+
/**
|
|
68
|
+
* 变更事件
|
|
69
|
+
* @param value 变更后的值
|
|
70
|
+
*/
|
|
71
|
+
(e: 'change', value: TModelValue): void;
|
|
72
|
+
}
|
|
73
|
+
/** JCTabs Slots 接口 */
|
|
74
|
+
export interface JCTabsSlots {
|
|
75
|
+
/**
|
|
76
|
+
* 动态插槽 (item-{slotKey})
|
|
77
|
+
* @param item 标签选项
|
|
78
|
+
* @param index 索引
|
|
79
|
+
* @param active 是否激活
|
|
80
|
+
* @param labelStyle 标签样式
|
|
81
|
+
*/
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
/**
|
|
84
|
+
* 标签项插槽
|
|
85
|
+
* @param item 标签选项
|
|
86
|
+
* @param index 索引
|
|
87
|
+
* @param active 是否激活
|
|
88
|
+
* @param labelStyle 标签样式
|
|
89
|
+
*/
|
|
90
|
+
item?: (props: {
|
|
91
|
+
item: TabOption;
|
|
92
|
+
index: number;
|
|
93
|
+
active: boolean;
|
|
94
|
+
labelStyle: string;
|
|
95
|
+
}) => any;
|
|
96
|
+
/**
|
|
97
|
+
* 默认插槽
|
|
98
|
+
*/
|
|
99
|
+
default?: () => any;
|
|
100
|
+
}
|
|
101
|
+
/** JCTabs 暴露的方法和属性 */
|
|
102
|
+
export interface JCTabsExpose {
|
|
103
|
+
}
|
|
104
|
+
/** JCTabs 组件类型定义 */
|
|
105
|
+
export type JCTabsComponent = DefineComponent<JCTabsProps, JCTabsExpose, {}, JCTabsSlots, JCTabsEmits, {}, {}, {}>;
|
|
106
|
+
/** JCTabs 实例类型 - 用于 ref 类型定义 */
|
|
107
|
+
export type JCTabsInstance = InstanceType<JCTabsComponent> & JCTabsExpose;
|
|
108
|
+
/**
|
|
109
|
+
* 用于模板中的 Props 类型定义
|
|
110
|
+
*/
|
|
111
|
+
export interface JCTabsTemplateProps extends JCTabsProps {
|
|
112
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
/** JCTitleLine Props 接口 */
|
|
3
|
+
export interface JCTitleLineProps {
|
|
4
|
+
/**
|
|
5
|
+
* 标题文本
|
|
6
|
+
* @default null
|
|
7
|
+
*/
|
|
8
|
+
label?: string;
|
|
9
|
+
}
|
|
10
|
+
/** JCTitleLine Emits 接口 */
|
|
11
|
+
export interface JCTitleLineEmits {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
/** 组件没有定义事件 */
|
|
14
|
+
(e: 'never', never: never): never;
|
|
15
|
+
}
|
|
16
|
+
/** JCTitleLine Slots 接口 */
|
|
17
|
+
export interface JCTitleLineSlots {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
/** 默认插槽,用于放置标题后的额外内容 */
|
|
20
|
+
default?: () => any;
|
|
21
|
+
}
|
|
22
|
+
/** JCTitleLine 暴露的方法和属性 */
|
|
23
|
+
export interface JCTitleLineExpose {
|
|
24
|
+
}
|
|
25
|
+
/** JCTitleLine 组件类型定义 */
|
|
26
|
+
export type JCTitleLineComponent = DefineComponent<JCTitleLineProps, JCTitleLineExpose, {}, JCTitleLineSlots, JCTitleLineEmits, {}, {}, {}>;
|
|
27
|
+
/** JCTitleLine 实例类型 - 用于 ref 类型定义 */
|
|
28
|
+
export type JCTitleLineInstance = InstanceType<JCTitleLineComponent> & JCTitleLineExpose;
|
|
29
|
+
/**
|
|
30
|
+
* 用于模板中的 Props 类型定义
|
|
31
|
+
*/
|
|
32
|
+
export interface JCTitleLineTemplateProps extends JCTitleLineProps {
|
|
33
|
+
}
|
|
@@ -94,6 +94,7 @@ export interface JCTooltipProps {
|
|
|
94
94
|
}
|
|
95
95
|
/** JCTooltip Emits 接口 */
|
|
96
96
|
export interface JCTooltipEmits {
|
|
97
|
+
[key: string]: any;
|
|
97
98
|
/**
|
|
98
99
|
* 更新显示状态事件
|
|
99
100
|
* @param value 新的显示状态
|
|
@@ -102,6 +103,7 @@ export interface JCTooltipEmits {
|
|
|
102
103
|
}
|
|
103
104
|
/** JCTooltip Slots 接口 */
|
|
104
105
|
export interface JCTooltipSlots {
|
|
106
|
+
[key: string]: any;
|
|
105
107
|
/** 默认插槽,触发 tooltip 的元素 */
|
|
106
108
|
default?: () => any;
|
|
107
109
|
/** 内容插槽,自定义 tooltip 内容 */
|
|
@@ -132,3 +134,8 @@ export type TooltipEffect = JCTooltipEffectType;
|
|
|
132
134
|
export type TooltipTrigger = JCTooltipTriggerType;
|
|
133
135
|
/** @deprecated 请使用 JCTooltipProps */
|
|
134
136
|
export type TooltipProps = JCTooltipProps;
|
|
137
|
+
/**
|
|
138
|
+
* 用于模板中的 Props 类型定义
|
|
139
|
+
*/
|
|
140
|
+
export interface JCTooltipTemplateProps extends JCTooltipProps {
|
|
141
|
+
}
|