rtcpts 0.0.76 → 0.0.78
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/components/j-c-copy/types.d.ts +3 -1
- package/dist/components/j-c-duo-list-editor/types.d.ts +4 -2
- package/dist/components/j-c-editable-proxy/types.d.ts +3 -1
- package/dist/components/j-c-fallback/types.d.ts +3 -1
- package/dist/components/j-c-foldable-list/types.d.ts +3 -1
- package/dist/components/j-c-format-lookup/types.d.ts +3 -1
- package/dist/components/j-c-list-editor/types.d.ts +3 -1
- package/dist/components/j-c-more-menu/types.d.ts +12 -7
- package/dist/components/j-c-nested-select/types.d.ts +3 -1
- package/dist/components/j-c-org-select/types.d.ts +3 -1
- package/dist/components/j-c-permission/types.d.ts +3 -1
- package/dist/components/j-c-platform/types.d.ts +3 -1
- package/dist/components/j-c-table/types.d.ts +25 -5
- package/dist/components/j-c-tabs/types.d.ts +22 -15
- package/dist/components/j-c-title-line/types.d.ts +3 -1
- package/dist/components/j-c-tooltip/types.d.ts +3 -1
- package/dist/components/j-c-tooltip-ellipsis/types.d.ts +3 -1
- package/dist/components/j-c-tree/types.d.ts +3 -1
- package/dist/components/j-c-tree-select/types.d.ts +3 -1
- package/dist/components/j-ch-bar/types.d.ts +4 -1
- package/dist/components/j-ch-bar-line/types.d.ts +4 -1
- package/dist/components/j-ch-bubble/types.d.ts +4 -1
- package/dist/components/j-ch-line/types.d.ts +4 -1
- package/dist/components/j-ch-pie-doughnut/types.d.ts +4 -1
- package/dist/components/j-ch-radar/types.d.ts +4 -1
- package/dist/components/j-q-autocomplete/types.d.ts +4 -1
- package/dist/components/j-q-button/types.d.ts +4 -1
- package/dist/components/j-q-button-dropdown/types.d.ts +4 -1
- package/dist/components/j-q-checkbox/types.d.ts +4 -1
- package/dist/components/j-q-confirm/types.d.ts +4 -1
- package/dist/components/j-q-date/types.d.ts +4 -1
- package/dist/components/j-q-date-month/types.d.ts +4 -1
- package/dist/components/j-q-date-year/types.d.ts +4 -1
- package/dist/components/j-q-datetime/types.d.ts +4 -1
- package/dist/components/j-q-detail-list/types.d.ts +4 -1
- package/dist/components/j-q-dialog/prompt-content.d.ts +51 -72
- package/dist/components/j-q-dialog/types.d.ts +2 -1
- package/dist/components/j-q-file/types.d.ts +1 -0
- package/dist/components/j-q-form-label/types.d.ts +4 -1
- package/dist/components/j-q-input/types.d.ts +4 -1
- package/dist/components/j-q-input-recognize/types.d.ts +4 -1
- package/dist/components/j-q-new-value/types.d.ts +7 -7
- package/dist/components/j-q-option-group/types.d.ts +4 -1
- package/dist/components/j-q-pagination/types.d.ts +4 -1
- package/dist/components/j-q-popover/types.d.ts +4 -1
- package/dist/components/j-q-search-form/types.d.ts +4 -1
- package/dist/components/j-q-select/index.d.ts +13 -20
- package/dist/components/j-q-select/types.d.ts +9 -6
- package/dist/components/j-q-table/types.d.ts +4 -1
- package/dist/components/j-q-tooltip/types.d.ts +4 -1
- package/dist/global.d.ts +102 -187
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.mjs +72 -25
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +8 -5
- package/dist/utils/generated-component-names.d.ts +9 -0
- package/dist/utils/resolver.d.ts +3 -3
- package/package.json +99 -97
|
@@ -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
|
* 双向绑定的列表数据
|
|
@@ -54,7 +56,7 @@ export interface JCDuoListEditorEmits {
|
|
|
54
56
|
* 数据更新事件
|
|
55
57
|
* @param value 更新后的值数组
|
|
56
58
|
*/
|
|
57
|
-
(e: 'update:modelValue', value: TModelValue
|
|
59
|
+
(e: 'update:modelValue', value: TModelValue): void;
|
|
58
60
|
}
|
|
59
61
|
/** JCDuoListEditor Slots 接口 */
|
|
60
62
|
export interface JCDuoListEditorSlots {
|
|
@@ -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
|
* 双向绑定的值
|
|
@@ -1,7 +1,9 @@
|
|
|
1
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
|
* 需要判断是否存在的值
|
|
@@ -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
|
* 要查找的值
|
|
@@ -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
|
* 当前行数据
|
|
@@ -129,15 +131,18 @@ export interface JCMoreMenuSlots {
|
|
|
129
131
|
/** 菜单列表内容 */
|
|
130
132
|
default?: () => any;
|
|
131
133
|
/**
|
|
132
|
-
*
|
|
134
|
+
* 菜单图标插槽(动态插槽名:menu-icon-{id})
|
|
135
|
+
* @param props.action 动作对象
|
|
136
|
+
* @param props.item 项目数据
|
|
133
137
|
*/
|
|
134
|
-
|
|
138
|
+
[key: `menu-icon-${string}`]: (props: {
|
|
139
|
+
action: JCMoreMenuAction;
|
|
140
|
+
item: any;
|
|
141
|
+
}) => any;
|
|
135
142
|
/**
|
|
136
|
-
*
|
|
137
|
-
* @param action 动作对象
|
|
138
|
-
* @param item 项目数据
|
|
143
|
+
* 触发器插槽
|
|
139
144
|
*/
|
|
140
|
-
|
|
145
|
+
trigger?: () => any;
|
|
141
146
|
}
|
|
142
147
|
/** JCMoreMenu 暴露的方法和属性 */
|
|
143
148
|
export interface JCMoreMenuExpose {
|
|
@@ -14,7 +14,9 @@ export interface NestedSelectOption {
|
|
|
14
14
|
export type NestedSelectModelValue = string | number | null | undefined;
|
|
15
15
|
/** 组件内部使用的模型值类型别名 */
|
|
16
16
|
export type TModelValue = NestedSelectModelValue;
|
|
17
|
-
/** JCNestedSelect Props 接口
|
|
17
|
+
/** JCNestedSelect Props 接口
|
|
18
|
+
* @description 嵌套级联选择器,支持多层级的树形选项选择
|
|
19
|
+
*/
|
|
18
20
|
export interface JCNestedSelectProps {
|
|
19
21
|
/**
|
|
20
22
|
* 是否允许选择包含子项的父选项
|
|
@@ -6,7 +6,9 @@ export type ModelValue = (string | number)[];
|
|
|
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
|
* 选中的节点值数组
|
|
@@ -6,7 +6,9 @@ export type PermissionCode = string;
|
|
|
6
6
|
export declare const PAGE_ACTION_PERMISSION_KEY: InjectionKey<Ref<PermissionCode[]>>;
|
|
7
7
|
/** 页面权限注入键 */
|
|
8
8
|
export declare const PAGE_PERMISSION_KEY: InjectionKey<Ref<PermissionCode[]>>;
|
|
9
|
-
/** JCPermission Props 接口
|
|
9
|
+
/** JCPermission Props 接口
|
|
10
|
+
* @description 权限控制组件,根据权限码控制内容的显示与隐藏
|
|
11
|
+
*/
|
|
10
12
|
export interface JCPermissionProps {
|
|
11
13
|
/**
|
|
12
14
|
* 权限码
|
|
@@ -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
|
* 列配置
|
|
@@ -85,15 +87,33 @@ export interface JCTableEmits {
|
|
|
85
87
|
/** JCTable Slots 接口 */
|
|
86
88
|
export interface JCTableSlots {
|
|
87
89
|
/**
|
|
88
|
-
*
|
|
89
|
-
* @param
|
|
90
|
-
* @param
|
|
90
|
+
* 表体单元格插槽(动态插槽名:body-{columnName})
|
|
91
|
+
* @param props.colIndex 列索引
|
|
92
|
+
* @param props.column 列配置
|
|
93
|
+
* @param props.row 行数据
|
|
94
|
+
* @param props.rowIndex 行索引
|
|
95
|
+
* @param props.value 单元格值
|
|
91
96
|
*/
|
|
92
|
-
[key: string]:
|
|
97
|
+
[key: `body-${string}`]: (props: {
|
|
98
|
+
colIndex: number;
|
|
99
|
+
column: JCTableColumn;
|
|
100
|
+
row: any;
|
|
101
|
+
rowIndex: number;
|
|
102
|
+
value: any;
|
|
103
|
+
}) => any;
|
|
93
104
|
/**
|
|
94
105
|
* 空数据插槽
|
|
95
106
|
*/
|
|
96
107
|
empty?: () => any;
|
|
108
|
+
/**
|
|
109
|
+
* 表头单元格插槽(动态插槽名:header-{columnName})
|
|
110
|
+
* @param props.column 列配置
|
|
111
|
+
* @param props.index 列索引
|
|
112
|
+
*/
|
|
113
|
+
[key: `header-${string}`]: (props: {
|
|
114
|
+
column: JCTableColumn;
|
|
115
|
+
index: number;
|
|
116
|
+
}) => any;
|
|
97
117
|
}
|
|
98
118
|
/** JCTable 暴露的方法和属性 */
|
|
99
119
|
export interface JCTableExpose {
|
|
@@ -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
|
* 当前选中的值
|
|
@@ -72,30 +74,35 @@ export interface JCTabsEmits {
|
|
|
72
74
|
/** JCTabs Slots 接口 */
|
|
73
75
|
export interface JCTabsSlots {
|
|
74
76
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @param item 标签选项
|
|
77
|
-
* @param index 索引
|
|
78
|
-
* @param active 是否激活
|
|
79
|
-
* @param labelStyle 标签样式
|
|
77
|
+
* 默认插槽
|
|
80
78
|
*/
|
|
81
|
-
|
|
79
|
+
default?: () => any;
|
|
82
80
|
/**
|
|
83
81
|
* 标签项插槽
|
|
84
|
-
* @param
|
|
85
|
-
* @param index 索引
|
|
86
|
-
* @param
|
|
87
|
-
* @param labelStyle 标签样式
|
|
82
|
+
* @param props.active 是否激活
|
|
83
|
+
* @param props.index 索引
|
|
84
|
+
* @param props.item 标签选项
|
|
85
|
+
* @param props.labelStyle 标签样式
|
|
88
86
|
*/
|
|
89
87
|
item?: (props: {
|
|
90
|
-
item: TabOption;
|
|
91
|
-
index: number;
|
|
92
88
|
active: boolean;
|
|
89
|
+
index: number;
|
|
90
|
+
item: TabOption;
|
|
93
91
|
labelStyle: string;
|
|
94
92
|
}) => any;
|
|
95
93
|
/**
|
|
96
|
-
*
|
|
94
|
+
* 动态插槽 (item-{slotKey})
|
|
95
|
+
* @param props.active 是否激活
|
|
96
|
+
* @param props.index 索引
|
|
97
|
+
* @param props.item 标签选项
|
|
98
|
+
* @param props.labelStyle 标签样式
|
|
97
99
|
*/
|
|
98
|
-
|
|
100
|
+
[key: `item-${string}`]: (props: {
|
|
101
|
+
active: boolean;
|
|
102
|
+
index: number;
|
|
103
|
+
item: TabOption;
|
|
104
|
+
labelStyle: string;
|
|
105
|
+
}) => any;
|
|
99
106
|
}
|
|
100
107
|
/** JCTabs 暴露的方法和属性 */
|
|
101
108
|
export interface JCTabsExpose {
|
|
@@ -31,7 +31,9 @@ export type JCTooltipPlacementType = (typeof JCTooltipPlacement)[keyof typeof JC
|
|
|
31
31
|
export type JCTooltipEffectType = (typeof JCTooltipEffect)[keyof typeof JCTooltipEffect];
|
|
32
32
|
/** Tooltip 触发方式类型 */
|
|
33
33
|
export type JCTooltipTriggerType = (typeof JCTooltipTrigger)[keyof typeof JCTooltipTrigger];
|
|
34
|
-
/** JCTooltip Props 接口
|
|
34
|
+
/** JCTooltip Props 接口
|
|
35
|
+
* @description 文字提示组件,支持多种位置、触发方式和主题风格
|
|
36
|
+
*/
|
|
35
37
|
export interface JCTooltipProps {
|
|
36
38
|
/**
|
|
37
39
|
* 显示的内容
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { RtcptComponent } from '../../component-types';
|
|
2
2
|
import { JCTooltipPlacementType, JCTooltipEffectType } from '../j-c-tooltip/types';
|
|
3
|
-
/** JCTooltipEllipsis Props 接口
|
|
3
|
+
/** JCTooltipEllipsis Props 接口
|
|
4
|
+
* @description 文字省略提示组件,文本超出时自动省略并悬浮显示完整内容
|
|
5
|
+
*/
|
|
4
6
|
export interface JCTooltipEllipsisProps {
|
|
5
7
|
/**
|
|
6
8
|
* 文本内容
|
|
@@ -7,7 +7,9 @@ export type ModelValue = (string | number)[];
|
|
|
7
7
|
export type Option = any;
|
|
8
8
|
/** 勾选策略类型 */
|
|
9
9
|
export type TickStrategy = QTreeProps['tickStrategy'];
|
|
10
|
-
/** JCTree Props 接口
|
|
10
|
+
/** JCTree Props 接口
|
|
11
|
+
* @description 树形组件,支持单选、多选和勾选策略配置
|
|
12
|
+
*/
|
|
11
13
|
export interface JCTreeProps {
|
|
12
14
|
/**
|
|
13
15
|
* 选中的节点值数组
|
|
@@ -8,7 +8,9 @@ export type Option = Record<string, any>;
|
|
|
8
8
|
export type TickStrategy = QTreeProps['tickStrategy'];
|
|
9
9
|
/** 值显示函数类型 */
|
|
10
10
|
export type ValueDisplayFn = (value: ModelValue, options: Option[]) => string;
|
|
11
|
-
/** JCTreeSelect Props 接口
|
|
11
|
+
/** JCTreeSelect Props 接口
|
|
12
|
+
* @description 树形选择器,支持树形节点的筛选、单选和多选
|
|
13
|
+
*/
|
|
12
14
|
export interface JCTreeSelectProps {
|
|
13
15
|
/**
|
|
14
16
|
* 选中的节点值数组
|
|
@@ -2,7 +2,10 @@ import { RtcptComponent } from '../../component-types';
|
|
|
2
2
|
import { ChartDataset, ChartOptions } from 'chart.js/auto';
|
|
3
3
|
/** 柱状图数据集类型 */
|
|
4
4
|
export type JChBarDataset = ChartDataset<'bar'>;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* JChBar Props 接口
|
|
7
|
+
* @description 柱状图组件,用于展示分类数据的数值对比
|
|
8
|
+
*/
|
|
6
9
|
export interface JChBarProps {
|
|
7
10
|
/**
|
|
8
11
|
* X 轴标签数组
|
|
@@ -2,7 +2,10 @@ import { RtcptComponent } from '../../component-types';
|
|
|
2
2
|
import { ChartDataset, ChartOptions } from 'chart.js/auto';
|
|
3
3
|
/** 混合图数据集类型(支持 bar 和 line) */
|
|
4
4
|
export type JChBarLineDataset = ChartDataset<'bar'> | ChartDataset<'line'>;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* JChBarLine Props 接口
|
|
7
|
+
* @description 柱线混合图组件,支持柱状图和折线图的组合展示
|
|
8
|
+
*/
|
|
6
9
|
export interface JChBarLineProps {
|
|
7
10
|
/**
|
|
8
11
|
* X 轴标签数组
|
|
@@ -11,7 +11,10 @@ export interface JChBubbleDataPoint {
|
|
|
11
11
|
}
|
|
12
12
|
/** 气泡图数据集类型 */
|
|
13
13
|
export type JChBubbleDataset = ChartDataset<'bubble', JChBubbleDataPoint[]>;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* JChBubble Props 接口
|
|
16
|
+
* @description 气泡图组件,用于展示三维数据的关系分布
|
|
17
|
+
*/
|
|
15
18
|
export interface JChBubbleProps {
|
|
16
19
|
/**
|
|
17
20
|
* X 轴标签数组
|
|
@@ -4,7 +4,10 @@ import { ChartDataset, ChartOptions } from 'chart.js/auto';
|
|
|
4
4
|
export type JChLineDataset = ChartDataset<'line'>;
|
|
5
5
|
/** 折线样式配置 */
|
|
6
6
|
export type JChLineStyle = Partial<Pick<JChLineDataset, 'tension' | 'pointRadius' | 'borderWidth' | 'fill'>>;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* JChLine Props 接口
|
|
9
|
+
* @description 折线图组件,用于展示数据随时间或有序类别的变化趋势
|
|
10
|
+
*/
|
|
8
11
|
export interface JChLineProps {
|
|
9
12
|
/**
|
|
10
13
|
* X 轴标签数组
|
|
@@ -9,7 +9,10 @@ export declare const JChPieDoughnutType: {
|
|
|
9
9
|
export type JChPieDoughnutTypeType = (typeof JChPieDoughnutType)[keyof typeof JChPieDoughnutType];
|
|
10
10
|
/** 饼图/环形图数据集类型 */
|
|
11
11
|
export type JChPieDoughnutDataset = ChartDataset<'pie'> | ChartDataset<'doughnut'>;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* JChPieDoughnut Props 接口
|
|
14
|
+
* @description 饼图/环形图组件,用于展示各部分占总体的比例关系
|
|
15
|
+
*/
|
|
13
16
|
export interface JChPieDoughnutProps {
|
|
14
17
|
/**
|
|
15
18
|
* 图表类型
|
|
@@ -2,7 +2,10 @@ import { RtcptComponent } from '../../component-types';
|
|
|
2
2
|
import { ChartDataset, ChartOptions } from 'chart.js/auto';
|
|
3
3
|
/** 雷达图数据集类型 */
|
|
4
4
|
export type JChRadarDataset = ChartDataset<'radar'>;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* JChRadar Props 接口
|
|
7
|
+
* @description 雷达图组件,用于展示多维度数据的综合对比
|
|
8
|
+
*/
|
|
6
9
|
export interface JChRadarProps {
|
|
7
10
|
/**
|
|
8
11
|
* 轴标签数组
|
|
@@ -15,7 +15,10 @@ export declare const JQButtonType: {
|
|
|
15
15
|
export type JQButtonSizeType = (typeof JQButtonSize)[keyof typeof JQButtonSize];
|
|
16
16
|
/** 按钮类型 */
|
|
17
17
|
export type JQButtonTypeType = (typeof JQButtonType)[keyof typeof JQButtonType];
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* JQButton Props 接口
|
|
20
|
+
* @description 基于 Quasar QBtn 封装的通用按钮组件,支持多种尺寸、类型和加载状态
|
|
21
|
+
*/
|
|
19
22
|
export interface JQButtonProps {
|
|
20
23
|
/**
|
|
21
24
|
* 按钮大小
|
|
@@ -28,7 +28,10 @@ export interface JQButtonDropdownItem {
|
|
|
28
28
|
/** 权限码,用于权限控制,不传则默认显示 */
|
|
29
29
|
code?: string | null;
|
|
30
30
|
}
|
|
31
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* JQButtonDropdown Props 接口
|
|
33
|
+
* @description 带下拉菜单的按钮组件,支持配置菜单项列表和权限控制
|
|
34
|
+
*/
|
|
32
35
|
export interface JQButtonDropdownProps {
|
|
33
36
|
/**
|
|
34
37
|
* 按钮标签文字
|
|
@@ -2,7 +2,10 @@ import { RtcptComponent } from '../../component-types';
|
|
|
2
2
|
import { QFieldProps, QCheckboxProps } from 'quasar';
|
|
3
3
|
/** 勾选框模型值类型(兼容布尔/数组/任意值模式) */
|
|
4
4
|
export type CheckboxModelValue = QCheckboxProps['modelValue'];
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* JQCheckbox Props 接口
|
|
7
|
+
* @description 勾选框组件,支持单值、数组和不确定态等多种勾选模式
|
|
8
|
+
*/
|
|
6
9
|
export interface JQCheckboxProps {
|
|
7
10
|
/**
|
|
8
11
|
* 绑定值(v-model)
|
|
@@ -8,7 +8,10 @@ export type DateModelValue = QDateProps['modelValue'] | number | Date | {
|
|
|
8
8
|
};
|
|
9
9
|
/** 日期显示值函数类型 */
|
|
10
10
|
export type DateValueDisplayFn = (value: DateModelValue) => string | number | null | undefined;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* JQDate Props 接口
|
|
13
|
+
* @description 日期选择器组件,支持单日期和日期范围选择
|
|
14
|
+
*/
|
|
12
15
|
export interface JQDateProps {
|
|
13
16
|
/**
|
|
14
17
|
* 绑定值
|
|
@@ -10,7 +10,10 @@ export type MonthValueDisplayFn = (value: MonthModelValue) => any;
|
|
|
10
10
|
export type MonthOptionDisabledFn = (optionValue: number, options: {
|
|
11
11
|
rangeStartValue?: number;
|
|
12
12
|
}) => boolean;
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* JQDateMonth Props 接口
|
|
15
|
+
* @description 月份选择器组件,支持单月份和月份范围选择
|
|
16
|
+
*/
|
|
14
17
|
export interface JQDateMonthProps {
|
|
15
18
|
/**
|
|
16
19
|
* 绑定值
|
|
@@ -4,7 +4,10 @@ import { QFieldProps } from 'quasar';
|
|
|
4
4
|
export type YearModelValue = any;
|
|
5
5
|
/** 年份显示值函数类型 */
|
|
6
6
|
export type YearValueDisplayFn = (value: YearModelValue) => any;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* JQDateYear Props 接口
|
|
9
|
+
* @description 年份选择器组件
|
|
10
|
+
*/
|
|
8
11
|
export interface JQDateYearProps {
|
|
9
12
|
/**
|
|
10
13
|
* 绑定值
|
|
@@ -27,7 +27,10 @@ export interface QDateRangeValue {
|
|
|
27
27
|
export type DateTimeModelValue = DateTimeRangeValue | SingleDateTimeValue | number | Date;
|
|
28
28
|
/** 日期时间显示值函数类型 */
|
|
29
29
|
export type DateTimeValueDisplayFn = (value: DateTimeModelValue) => string | number | null | undefined;
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* JQDateTime Props 接口
|
|
32
|
+
* @description 日期时间选择器组件,支持选择日期和时间,以及日期时间范围选择
|
|
33
|
+
*/
|
|
31
34
|
export interface JQDateTimeProps {
|
|
32
35
|
/**
|
|
33
36
|
* 绑定值
|
|
@@ -41,7 +41,10 @@ export interface DetailItem {
|
|
|
41
41
|
onDetailClick?: (value: string, row: DetailData) => void;
|
|
42
42
|
[key: string]: any;
|
|
43
43
|
}
|
|
44
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* JQDetailList Props 接口
|
|
46
|
+
* @description 详情列表展示组件,以标签-值网格形式展示数据对象的字段信息,支持垂直和水平两种布局
|
|
47
|
+
*/
|
|
45
48
|
export interface JQDetailListProps {
|
|
46
49
|
/**
|
|
47
50
|
* 详情项配置数组
|