rtcpts 0.0.76 → 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.
Files changed (58) hide show
  1. package/dist/components/j-c-copy/types.d.ts +3 -1
  2. package/dist/components/j-c-duo-list-editor/types.d.ts +4 -2
  3. package/dist/components/j-c-editable-proxy/types.d.ts +3 -1
  4. package/dist/components/j-c-fallback/types.d.ts +3 -1
  5. package/dist/components/j-c-foldable-list/types.d.ts +3 -1
  6. package/dist/components/j-c-format-lookup/types.d.ts +3 -1
  7. package/dist/components/j-c-list-editor/types.d.ts +3 -1
  8. package/dist/components/j-c-more-menu/types.d.ts +3 -1
  9. package/dist/components/j-c-nested-select/types.d.ts +3 -1
  10. package/dist/components/j-c-org-select/types.d.ts +3 -1
  11. package/dist/components/j-c-permission/types.d.ts +3 -1
  12. package/dist/components/j-c-platform/types.d.ts +3 -1
  13. package/dist/components/j-c-table/types.d.ts +3 -1
  14. package/dist/components/j-c-tabs/types.d.ts +3 -1
  15. package/dist/components/j-c-title-line/types.d.ts +3 -1
  16. package/dist/components/j-c-tooltip/types.d.ts +3 -1
  17. package/dist/components/j-c-tooltip-ellipsis/types.d.ts +3 -1
  18. package/dist/components/j-c-tree/types.d.ts +3 -1
  19. package/dist/components/j-c-tree-select/types.d.ts +3 -1
  20. package/dist/components/j-ch-bar/types.d.ts +4 -1
  21. package/dist/components/j-ch-bar-line/types.d.ts +4 -1
  22. package/dist/components/j-ch-bubble/types.d.ts +4 -1
  23. package/dist/components/j-ch-line/types.d.ts +4 -1
  24. package/dist/components/j-ch-pie-doughnut/types.d.ts +4 -1
  25. package/dist/components/j-ch-radar/types.d.ts +4 -1
  26. package/dist/components/j-q-autocomplete/types.d.ts +4 -1
  27. package/dist/components/j-q-button/types.d.ts +4 -1
  28. package/dist/components/j-q-button-dropdown/types.d.ts +4 -1
  29. package/dist/components/j-q-checkbox/types.d.ts +4 -1
  30. package/dist/components/j-q-confirm/types.d.ts +4 -1
  31. package/dist/components/j-q-date/types.d.ts +4 -1
  32. package/dist/components/j-q-date-month/types.d.ts +4 -1
  33. package/dist/components/j-q-date-year/types.d.ts +4 -1
  34. package/dist/components/j-q-datetime/types.d.ts +4 -1
  35. package/dist/components/j-q-detail-list/types.d.ts +4 -1
  36. package/dist/components/j-q-dialog/types.d.ts +2 -1
  37. package/dist/components/j-q-file/types.d.ts +1 -0
  38. package/dist/components/j-q-form-label/types.d.ts +4 -1
  39. package/dist/components/j-q-input/types.d.ts +4 -1
  40. package/dist/components/j-q-input-recognize/types.d.ts +4 -1
  41. package/dist/components/j-q-new-value/types.d.ts +4 -1
  42. package/dist/components/j-q-option-group/types.d.ts +4 -1
  43. package/dist/components/j-q-pagination/types.d.ts +4 -1
  44. package/dist/components/j-q-popover/types.d.ts +4 -1
  45. package/dist/components/j-q-search-form/types.d.ts +4 -1
  46. package/dist/components/j-q-select/types.d.ts +4 -1
  47. package/dist/components/j-q-table/types.d.ts +4 -1
  48. package/dist/components/j-q-tooltip/types.d.ts +4 -1
  49. package/dist/global.d.ts +102 -187
  50. package/dist/index.css +1 -1
  51. package/dist/index.d.ts +5 -3
  52. package/dist/resolver.cjs +1 -1
  53. package/dist/resolver.mjs +72 -25
  54. package/dist/rtcpt.cjs.js +1 -1
  55. package/dist/rtcpt.es.js +1 -0
  56. package/dist/utils/generated-component-names.d.ts +9 -0
  57. package/dist/utils/resolver.d.ts +3 -3
  58. package/package.json +7 -5
@@ -1,5 +1,7 @@
1
1
  import { RtcptComponent } from '../../component-types';
2
- /** JCCopy Props 接口 */
2
+ /** JCCopy Props 接口
3
+ * @description 点击复制文本内容到剪贴板
4
+ */
3
5
  export interface JCCopyProps {
4
6
  /**
5
7
  * 要复制的文本内容
@@ -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[]): void;
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
  * 需要判断是否存在的值
@@ -1,5 +1,7 @@
1
1
  import { RtcptComponent } from '../../component-types';
2
- /** JCFoldableList Props 接口 */
2
+ /** JCFoldableList Props 接口
3
+ * @description 可折叠列表组件,内容超出最大高度时可折叠展开
4
+ */
3
5
  export interface JCFoldableListProps {
4
6
  /**
5
7
  * 最大高度(像素)
@@ -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
  * 要查找的值
@@ -1,5 +1,7 @@
1
1
  import { RtcptComponent } from '../../component-types';
2
- /** JCListEditor Props 接口 */
2
+ /** JCListEditor Props 接口
3
+ * @description 字符串列表编辑器,支持动态添加和删除列表项
4
+ */
3
5
  export interface JCListEditorProps {
4
6
  /**
5
7
  * 双向绑定的列表数据
@@ -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
  * 当前行数据
@@ -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
  * 权限码
@@ -3,7 +3,9 @@ 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
  * 当前激活的平台名称
@@ -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
  * 列配置
@@ -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
  * 当前选中的值
@@ -1,5 +1,7 @@
1
1
  import { RtcptComponent } from '../../component-types';
2
- /** JCTitleLine Props 接口 */
2
+ /** JCTitleLine Props 接口
3
+ * @description 标题分割线组件,用于分区展示标题和额外内容
4
+ */
3
5
  export interface JCTitleLineProps {
4
6
  /**
5
7
  * 标题文本
@@ -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
- /** JChBar Props 接口 */
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
- /** JChBarLine Props 接口 */
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
- /** JChBubble Props 接口 */
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
- /** JChLine Props 接口 */
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
- /** JChPieDoughnut Props 接口 */
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
- /** JChRadar Props 接口 */
5
+ /**
6
+ * JChRadar Props 接口
7
+ * @description 雷达图组件,用于展示多维度数据的综合对比
8
+ */
6
9
  export interface JChRadarProps {
7
10
  /**
8
11
  * 轴标签数组
@@ -5,7 +5,10 @@ export interface HistoryItem {
5
5
  id: number;
6
6
  value: string;
7
7
  }
8
- /** JQAutocomplete Props 接口 */
8
+ /**
9
+ * JQAutocomplete Props 接口
10
+ * @description 带搜索历史记录的自动完成输入框组件
11
+ */
9
12
  export interface JQAutocompleteProps {
10
13
  /**
11
14
  * 是否显示删除按钮
@@ -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
- /** JQButton Props 接口 */
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
- /** JQButtonDropdown Props 接口 */
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
- /** JQCheckbox Props 接口 */
5
+ /**
6
+ * JQCheckbox Props 接口
7
+ * @description 勾选框组件,支持单值、数组和不确定态等多种勾选模式
8
+ */
6
9
  export interface JQCheckboxProps {
7
10
  /**
8
11
  * 绑定值(v-model)
@@ -1,5 +1,8 @@
1
1
  import { RtcptComponent } from '../../component-types';
2
- /** JQConfirm Props 接口 */
2
+ /**
3
+ * JQConfirm Props 接口
4
+ * @description 确认弹窗触发组件,包裹任意元素作为触发器,点击后弹出确认/取消操作卡片
5
+ */
3
6
  export interface JQConfirmProps {
4
7
  /**
5
8
  * 确认弹窗标题
@@ -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
- /** JQDate Props 接口 */
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
- /** JQDateMonth Props 接口 */
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
- /** JQDateYear Props 接口 */
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
- /** JQDateTime Props 接口 */
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
- /** JQDetailList Props 接口 */
44
+ /**
45
+ * JQDetailList Props 接口
46
+ * @description 详情列表展示组件,以标签-值网格形式展示数据对象的字段信息,支持垂直和水平两种布局
47
+ */
45
48
  export interface JQDetailListProps {
46
49
  /**
47
50
  * 详情项配置数组
@@ -12,7 +12,8 @@ export declare const DialogPosition: {
12
12
  /** 对话框位置类型 */
13
13
  export type DialogPositionType = (typeof DialogPosition)[keyof typeof DialogPosition];
14
14
  /**
15
- * JQDialog 组件 Props(与 `index.vue` 中 `props` 一致)。
15
+ * JQDialog Props 接口
16
+ * @description 对话框组件,支持标准/侧边栏等多种弹出位置,可嵌入动态组件,提供标题栏和确认/取消操作按钮
16
17
  *
17
18
  * 使用方式:模板内挂载后通过 `ref` 调用 `open` / `close` 等(见 `JQDialogExpose`);命令式创建请用 `DialogProvider.register`(见 `index.ts` 的 `JQDialogRegisterProps`)。
18
19
  */
@@ -8,6 +8,7 @@ export type FileChangeFnReturn = File[] | void;
8
8
  export type FileChangeFn = (files: File[]) => FileChangeFnReturn | Promise<FileChangeFnReturn>;
9
9
  /**
10
10
  * JQFile 组件 Props。
11
+ * @description 文件上传组件,支持点击上传和拖拽上传,可限制文件类型和大小
11
12
  *
12
13
  * 使用方式:通过 `v-model`(或 `:model-value` + `@update:modelValue`)绑定 `File[]`;`accept` 建议始终传入,与原生 `input[type=file]` 的 `accept` 语法一致(逗号分隔,如 `.pdf,image/*`)。可选 `#hint` 插槽在控件下方展示补充说明。
13
14
  *
@@ -1,7 +1,10 @@
1
1
  import { RtcptComponent } from '../../component-types';
2
2
  /** Vue 类类型 */
3
3
  export type VueClass = string | Record<string, boolean> | (string | Record<string, boolean>)[];
4
- /** JQFormLabel Props 接口 */
4
+ /**
5
+ * JQFormLabel Props 接口
6
+ * @description 表单标签组件,提供标签-内容的标准化表单布局,支持水平和垂直两种排列方向
7
+ */
5
8
  export interface JQFormLabelProps {
6
9
  /**
7
10
  * 标签文本
@@ -8,7 +8,10 @@ export type InputLimitFn = (value: InputModelValue) => boolean;
8
8
  export type InputMaxlength = string | number | null;
9
9
  /** 自定义输入类型 */
10
10
  export type InputCustomType = 'text' | 'password' | 'secret';
11
- /** JQInput Props 接口 */
11
+ /**
12
+ * JQInput Props 接口
13
+ * @description 文本输入框组件,支持密码模式、输入限制和自定义格式
14
+ */
12
15
  export interface JQInputProps {
13
16
  /**
14
17
  * 绑定值
@@ -3,7 +3,10 @@ import { RtcptComponent } from '../../component-types';
3
3
  export type RecognizeRule = RegExp | ((value: string) => boolean | string);
4
4
  /** 输入框验证规则类型 */
5
5
  export type InputRule = (value: string) => boolean | string;
6
- /** JQInputRecognize Props 接口 */
6
+ /**
7
+ * JQInputRecognize Props 接口
8
+ * @description 带识别功能的输入组件,支持按正则或函数规则识别和提取文本内容中的项目
9
+ */
7
10
  export interface JQInputRecognizeProps {
8
11
  /**
9
12
  * 绑定值
@@ -4,7 +4,10 @@ import { QInputProps, QSelectProps } from 'quasar';
4
4
  export type NewValueModelValue = QSelectProps['modelValue'];
5
5
  /** 新值选项类型 */
6
6
  export type NewValueOptions = QSelectProps['options'];
7
- /** JQNewValue Props 接口 */
7
+ /**
8
+ * JQNewValue Props 接口
9
+ * @description 支持输入新值的多选组件,可从下拉选项中选择或自定义输入新值
10
+ */
8
11
  export interface JQNewValueProps {
9
12
  /**
10
13
  * 绑定值
@@ -4,7 +4,10 @@ import { QFieldProps, QOptionGroupProps } from 'quasar';
4
4
  export type OptionGroupModelValue = QOptionGroupProps['modelValue'];
5
5
  /** 选项组选项类型 */
6
6
  export type OptionGroupOptions = QOptionGroupProps['options'];
7
- /** JQOptionGroup Props 接口 */
7
+ /**
8
+ * JQOptionGroup Props 接口
9
+ * @description 选项组组件,封装 Quasar 单选/多选组,支持内联和块级展示,带表单验证功能
10
+ */
8
11
  export interface JQOptionGroupProps {
9
12
  /**
10
13
  * 绑定值
@@ -8,7 +8,10 @@ export interface PaginationConfig {
8
8
  /** 总条数 */
9
9
  total: number;
10
10
  }
11
- /** JQPagination Props 接口 */
11
+ /**
12
+ * JQPagination Props 接口
13
+ * @description 分页组件,提供页码导航、每页条数选择和总条数显示,支持 mini 简洁模式
14
+ */
12
15
  export interface JQPaginationProps {
13
16
  /**
14
17
  * 当前页码
@@ -6,7 +6,10 @@ export declare const PopoverTrigger: {
6
6
  };
7
7
  /** 弹出框触发方式类型 */
8
8
  export type PopoverTriggerType = (typeof PopoverTrigger)[keyof typeof PopoverTrigger];
9
- /** JQPopover Props 接口 */
9
+ /**
10
+ * JQPopover Props 接口
11
+ * @description 弹出框组件,包裹任意元素作为触发器,支持点击和悬停两种触发方式,用于展示提示或操作内容
12
+ */
10
13
  export interface JQPopoverProps {
11
14
  /**
12
15
  * 弹出框标题
@@ -1,7 +1,10 @@
1
1
  import { RtcptComponent } from '../../component-types';
2
2
  /** 搜索表单数据类型 */
3
3
  export type SearchFormData = Record<string, any>;
4
- /** JQSearchForm Props 接口 */
4
+ /**
5
+ * JQSearchForm Props 接口
6
+ * @description 搜索表单组件,提供查询和重置按钮,支持自定义表单项插槽和额外操作区域
7
+ */
5
8
  export interface JQSearchFormProps {
6
9
  /**
7
10
  * 表单数据对象
@@ -6,7 +6,10 @@ export type SelectModelValue = QSelectProps['modelValue'];
6
6
  export type SelectFilterFn = (inputValue: string, callback: (filterOptions?: any[]) => void) => void;
7
7
  /** 值显示函数类型 */
8
8
  export type SelectValueDisplayFn = (value: SelectModelValue) => string;
9
- /** JQSelect Props 接口 */
9
+ /**
10
+ * JQSelect Props 接口
11
+ * @description 下拉选择器组件,支持单选、多选、筛选和远程搜索
12
+ */
10
13
  export interface JQSelectProps {
11
14
  /**
12
15
  * 绑定值
@@ -25,7 +25,10 @@ export interface TableColumn extends Partial<QTableColumn> {
25
25
  whiteSpace?: number | boolean;
26
26
  [key: string]: any;
27
27
  }
28
- /** JQTable Props 接口 */
28
+ /**
29
+ * JQTable Props 接口
30
+ * @description 表格组件,基于 Quasar QTable 封装,集成多选、自定义列配置和内置分页功能
31
+ */
29
32
  export interface JQTableProps {
30
33
  /**
31
34
  * 切换页面时是否自动滚动
@@ -1,5 +1,8 @@
1
1
  import { RtcptComponent } from '../../component-types';
2
- /** JQTooltip Props 接口 */
2
+ /**
3
+ * JQTooltip Props 接口
4
+ * @description 文本提示组件,内容超出指定行数时显示省略号,悬停时通过 Quasar Tooltip 展示完整文本
5
+ */
3
6
  export interface JQTooltipProps {
4
7
  /**
5
8
  * 显示内容