rtcpts 0.0.39 → 0.0.42

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 (57) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +91 -91
  3. package/dist/{charts-DR-a8_4o.cjs → charts-DJRnfFOn.cjs} +1 -1
  4. package/dist/{charts-BVD7yH1K.js → charts-fA1hE3y8.js} +2 -2
  5. package/dist/charts.cjs.js +1 -1
  6. package/dist/charts.es.js +1 -1
  7. package/dist/components/j-c-copy/types.d.ts +39 -0
  8. package/dist/components/j-c-duo-list-editor/types.d.ts +109 -0
  9. package/dist/components/j-c-editable-proxy/types.d.ts +106 -0
  10. package/dist/components/j-c-fallback/types.d.ts +57 -0
  11. package/dist/components/j-c-foldable-list/types.d.ts +55 -0
  12. package/dist/components/j-c-format-lookup/types.d.ts +67 -0
  13. package/dist/components/j-c-list-editor/types.d.ts +77 -0
  14. package/dist/components/j-c-more-menu/types.d.ts +147 -0
  15. package/dist/components/j-c-nested-select/types.d.ts +1 -0
  16. package/dist/components/j-c-permission/types.d.ts +62 -0
  17. package/dist/components/j-c-table/types.d.ts +67 -9
  18. package/dist/components/j-c-tabs/types.d.ts +112 -0
  19. package/dist/components/j-c-title-line/types.d.ts +33 -0
  20. package/dist/components/j-c-tooltip/types.d.ts +7 -0
  21. package/dist/components/j-c-tooltip-ellipsis/types.d.ts +1 -0
  22. package/dist/components/j-c-tree/types.d.ts +75 -0
  23. package/dist/components/j-c-tree-select/types.d.ts +132 -0
  24. package/dist/components/j-ch-bar/types.d.ts +13 -1
  25. package/dist/components/j-ch-bar-line/types.d.ts +1 -0
  26. package/dist/components/j-ch-bubble/types.d.ts +1 -0
  27. package/dist/components/j-ch-line/types.d.ts +1 -0
  28. package/dist/components/j-ch-pie-doughnut/types.d.ts +1 -0
  29. package/dist/components/j-ch-radar/types.d.ts +1 -0
  30. package/dist/components/j-q-autocomplete/types.d.ts +85 -0
  31. package/dist/components/j-q-button/types.d.ts +2 -0
  32. package/dist/components/j-q-button-dropdown/types.d.ts +2 -0
  33. package/dist/components/j-q-confirm/types.d.ts +2 -0
  34. package/dist/components/j-q-confirm-dialog/index.d.ts +16 -11
  35. package/dist/components/j-q-date/types.d.ts +145 -0
  36. package/dist/components/j-q-date-month/types.d.ts +94 -0
  37. package/dist/components/j-q-date-year/types.d.ts +76 -0
  38. package/dist/components/j-q-datetime/types.d.ts +145 -0
  39. package/dist/components/j-q-detail-list/types.d.ts +101 -0
  40. package/dist/components/j-q-dialog/types.d.ts +138 -0
  41. package/dist/components/j-q-file/types.d.ts +72 -0
  42. package/dist/components/j-q-form-label/types.d.ts +66 -0
  43. package/dist/components/j-q-input/types.d.ts +139 -0
  44. package/dist/components/j-q-input-recognize/types.d.ts +133 -0
  45. package/dist/components/j-q-new-value/types.d.ts +107 -0
  46. package/dist/components/j-q-option-group/types.d.ts +109 -0
  47. package/dist/components/j-q-pagination/types.d.ts +85 -0
  48. package/dist/components/j-q-popover/types.d.ts +50 -0
  49. package/dist/components/j-q-search-form/types.d.ts +80 -0
  50. package/dist/components/j-q-select/types.d.ts +196 -0
  51. package/dist/components/j-q-table/types.d.ts +215 -0
  52. package/dist/components/j-q-tooltip/types.d.ts +41 -0
  53. package/dist/global.d.ts +319 -9
  54. package/dist/index.css +1 -1
  55. package/dist/rtcpt.cjs.js +1 -1
  56. package/dist/rtcpt.es.js +966 -958
  57. package/package.json +87 -87
@@ -0,0 +1,139 @@
1
+ import { DefineComponent, SlotsType } from 'vue';
2
+ import { QInputProps } from 'quasar';
3
+ /** 输入框模型值类型 */
4
+ export type InputModelValue = QInputProps['modelValue'];
5
+ /** 输入限制函数类型 */
6
+ export type InputLimitFn = (value: InputModelValue) => boolean;
7
+ /** 最大长度类型 */
8
+ export type InputMaxlength = string | number | null;
9
+ /** 自定义输入类型 */
10
+ export type InputCustomType = 'text' | 'password' | 'secret';
11
+ /** JQInput Props 接口 */
12
+ export interface JQInputProps {
13
+ /**
14
+ * 绑定值
15
+ */
16
+ modelValue?: InputModelValue;
17
+ /**
18
+ * 背景颜色
19
+ */
20
+ bgColor?: QInputProps['bgColor'];
21
+ /**
22
+ * 是否无边框
23
+ */
24
+ borderless?: QInputProps['borderless'];
25
+ /**
26
+ * 是否紧凑模式
27
+ * @default true
28
+ */
29
+ dense?: QInputProps['dense'];
30
+ /**
31
+ * 是否禁用
32
+ */
33
+ disable?: QInputProps['disable'];
34
+ /**
35
+ * 输入限制函数
36
+ * @default () => true
37
+ */
38
+ inputLimitFn?: InputLimitFn;
39
+ /**
40
+ * 标签文本
41
+ */
42
+ label?: QInputProps['label'];
43
+ /**
44
+ * 最大长度
45
+ * @default 64
46
+ */
47
+ maxlength?: InputMaxlength;
48
+ /**
49
+ * 是否显示边框
50
+ * @default true
51
+ */
52
+ outlined?: QInputProps['outlined'];
53
+ /**
54
+ * 是否只读
55
+ */
56
+ readonly?: boolean;
57
+ /**
58
+ * 验证规则
59
+ */
60
+ rules?: QInputProps['rules'];
61
+ /**
62
+ * 输入框类型
63
+ */
64
+ type?: QInputProps['type'];
65
+ /**
66
+ * 自定义输入类型
67
+ * @default 'text'
68
+ */
69
+ customType?: InputCustomType;
70
+ /**
71
+ * 是否为小尺寸输入框
72
+ * @default false
73
+ */
74
+ smInput?: boolean;
75
+ }
76
+ /** JQInput Emits 接口 */
77
+ export interface JQInputEmits {
78
+ [key: string]: any;
79
+ /**
80
+ * 变更事件
81
+ * @param value 新值
82
+ */
83
+ (e: 'change', value: InputModelValue): void;
84
+ /**
85
+ * 更新 modelValue 事件
86
+ * @param value 新值
87
+ */
88
+ (e: 'update:modelValue', value: InputModelValue): void;
89
+ }
90
+ /** JQInput Slots 接口 */
91
+ export interface JQInputSlots {
92
+ [key: string]: any;
93
+ /** 后置内容插槽 */
94
+ after?: () => any;
95
+ /** 附加内容插槽 */
96
+ append?: (props: {
97
+ 'toggle-visibility': () => void;
98
+ 'custom-type': InputCustomType;
99
+ 'raw-value': InputModelValue;
100
+ 'display-value': string;
101
+ 'is-content-visible': boolean;
102
+ }) => any;
103
+ /** 前置内容插槽 */
104
+ prepend?: () => any;
105
+ /** 默认插槽 */
106
+ default?: () => any;
107
+ }
108
+ /** JQInput 暴露的方法和属性 */
109
+ export interface JQInputExpose {
110
+ /**
111
+ * 验证输入框
112
+ */
113
+ validate: () => boolean;
114
+ /**
115
+ * 重置验证状态
116
+ */
117
+ resetValidation: () => void;
118
+ /**
119
+ * 切换内容可见性
120
+ */
121
+ toggleVisibility: () => void;
122
+ }
123
+ /** JQInput 组件类型定义 */
124
+ export type JQInputComponent = DefineComponent<JQInputProps, JQInputExpose, {}, {}, {}, {}, SlotsType<JQInputSlots>, {
125
+ change: (value: InputModelValue) => true;
126
+ 'update:modelValue': (value: InputModelValue) => true;
127
+ }>;
128
+ /** JQInput 实例类型 - 用于 ref 类型定义 */
129
+ export type JQInputInstance = InstanceType<JQInputComponent> & JQInputExpose;
130
+ /**
131
+ * 用于模板中的 Props 类型定义
132
+ * 包含事件处理器
133
+ */
134
+ export interface JQInputTemplateProps extends JQInputProps {
135
+ /** 变更事件处理器 */
136
+ onChange?: (value: InputModelValue) => void;
137
+ /** 更新 modelValue 事件处理器 */
138
+ 'onUpdate:modelValue'?: (value: InputModelValue) => void;
139
+ }
@@ -0,0 +1,133 @@
1
+ import { DefineComponent, SlotsType } from 'vue';
2
+ /** 验证规则类型 */
3
+ export type RecognizeRule = RegExp | ((value: string) => boolean | string);
4
+ /** 输入框验证规则类型 */
5
+ export type InputRule = (value: string) => boolean | string;
6
+ /** JQInputRecognize Props 接口 */
7
+ export interface JQInputRecognizeProps {
8
+ /**
9
+ * 绑定值
10
+ * @default ''
11
+ */
12
+ modelValue?: string;
13
+ /**
14
+ * 标签文本
15
+ * @default ''
16
+ */
17
+ label?: string;
18
+ /**
19
+ * 最大识别数量
20
+ */
21
+ max?: number;
22
+ /**
23
+ * 输入框验证规则(用于 j-q-input 的 rules)
24
+ * @default []
25
+ */
26
+ inputRules?: InputRule[];
27
+ /**
28
+ * 识别规则,用于验证识别出的每个项目
29
+ * 可以是正则表达式或验证函数
30
+ * 正则:匹配则通过
31
+ * 函数:返回 true 或字符串(字符串表示错误信息)
32
+ * @default []
33
+ */
34
+ recognizeRules?: RecognizeRule[];
35
+ /**
36
+ * 验证规则(向后兼容,等同于 recognizeRules)
37
+ * @deprecated 请使用 recognizeRules
38
+ * @default []
39
+ */
40
+ rules?: RecognizeRule[];
41
+ /**
42
+ * 是否允许重复项
43
+ * @default false
44
+ */
45
+ allowDuplicate?: boolean;
46
+ /**
47
+ * 是否紧凑模式
48
+ * @default false
49
+ */
50
+ dense?: boolean;
51
+ /**
52
+ * 是否显示边框
53
+ * @default true
54
+ */
55
+ outlined?: boolean;
56
+ /**
57
+ * 是否禁用
58
+ * @default false
59
+ */
60
+ disable?: boolean;
61
+ /**
62
+ * 是否只读
63
+ * @default false
64
+ */
65
+ readonly?: boolean;
66
+ /**
67
+ * 最大长度
68
+ */
69
+ maxlength?: string | number;
70
+ }
71
+ /** JQInputRecognize Emits 接口 */
72
+ export interface JQInputRecognizeEmits {
73
+ [key: string]: any;
74
+ /**
75
+ * 更新 modelValue 事件
76
+ * @param value 新值
77
+ */
78
+ (e: 'update:modelValue', value: string): void;
79
+ /**
80
+ * 变更事件
81
+ * @param value 输入值
82
+ * @param recognizedItems 识别出的项目数组
83
+ */
84
+ (e: 'change', value: string, recognizedItems: string[]): void;
85
+ /**
86
+ * 更新识别项事件
87
+ * @param items 识别出的项目数组
88
+ */
89
+ (e: 'update:recognizedItems', items: string[]): void;
90
+ }
91
+ /** JQInputRecognize Slots 接口 */
92
+ export interface JQInputRecognizeSlots {
93
+ [key: string]: any;
94
+ /** 默认插槽(暂无内容) */
95
+ default?: () => any;
96
+ }
97
+ /** JQInputRecognize 暴露的方法和属性 */
98
+ export interface JQInputRecognizeExpose {
99
+ /**
100
+ * 验证输入框
101
+ */
102
+ validate: () => boolean;
103
+ /**
104
+ * 重置验证状态
105
+ */
106
+ resetValidation: () => void;
107
+ /**
108
+ * 识别出的项目(计算属性)
109
+ */
110
+ recognizedItems: {
111
+ value: string[];
112
+ };
113
+ }
114
+ /** JQInputRecognize 组件类型定义 */
115
+ export type JQInputRecognizeComponent = DefineComponent<JQInputRecognizeProps, JQInputRecognizeExpose, {}, {}, {}, {}, SlotsType<JQInputRecognizeSlots>, {
116
+ 'update:modelValue': (value: string) => true;
117
+ change: (value: string, recognizedItems: string[]) => true;
118
+ 'update:recognizedItems': (items: string[]) => true;
119
+ }>;
120
+ /** JQInputRecognize 实例类型 - 用于 ref 类型定义 */
121
+ export type JQInputRecognizeInstance = InstanceType<JQInputRecognizeComponent> & JQInputRecognizeExpose;
122
+ /**
123
+ * 用于模板中的 Props 类型定义
124
+ * 包含事件处理器
125
+ */
126
+ export interface JQInputRecognizeTemplateProps extends JQInputRecognizeProps {
127
+ /** 更新 modelValue 事件处理器 */
128
+ 'onUpdate:modelValue'?: (value: string) => void;
129
+ /** 变更事件处理器 */
130
+ onChange?: (value: string, recognizedItems: string[]) => void;
131
+ /** 更新识别项事件处理器 */
132
+ 'onUpdate:recognizedItems'?: (items: string[]) => void;
133
+ }
@@ -0,0 +1,107 @@
1
+ import { DefineComponent, SlotsType } from 'vue';
2
+ import { QInputProps, QSelectProps } from 'quasar';
3
+ /** 新值模型值类型 */
4
+ export type NewValueModelValue = QSelectProps['modelValue'];
5
+ /** 新值选项类型 */
6
+ export type NewValueOptions = QSelectProps['options'];
7
+ /** JQNewValue Props 接口 */
8
+ export interface JQNewValueProps {
9
+ /**
10
+ * 绑定值
11
+ * @default []
12
+ */
13
+ modelValue?: NewValueModelValue;
14
+ /**
15
+ * 选项列表
16
+ * @default []
17
+ */
18
+ options?: NewValueOptions;
19
+ /**
20
+ * 标签文本
21
+ */
22
+ label?: QInputProps['label'];
23
+ /**
24
+ * 是否紧凑模式
25
+ * @default true
26
+ */
27
+ dense?: QInputProps['dense'];
28
+ /**
29
+ * 是否禁用
30
+ */
31
+ disable?: QInputProps['disable'];
32
+ /**
33
+ * 是否只读
34
+ */
35
+ readonly?: QInputProps['readonly'];
36
+ /**
37
+ * 验证规则
38
+ */
39
+ rules?: QInputProps['rules'];
40
+ /**
41
+ * 添加验证规则名称
42
+ * @default ''
43
+ */
44
+ addRulesName?: string;
45
+ /**
46
+ * 是否使用芯片样式
47
+ * @default false
48
+ */
49
+ useChips?: QSelectProps['useChips'];
50
+ /**
51
+ * 是否允许重复项
52
+ * @default false
53
+ */
54
+ allowDuplicates?: boolean;
55
+ /**
56
+ * 最大长度
57
+ * @default -1
58
+ */
59
+ maxlength?: number;
60
+ }
61
+ /** JQNewValue Emits 接口 */
62
+ export interface JQNewValueEmits {
63
+ [key: string]: any;
64
+ /**
65
+ * 变更事件
66
+ * @param value 新值
67
+ */
68
+ (e: 'change', value: NewValueModelValue): void;
69
+ /**
70
+ * 更新 modelValue 事件
71
+ * @param value 新值
72
+ */
73
+ (e: 'update:modelValue', value: NewValueModelValue): void;
74
+ }
75
+ /** JQNewValue Slots 接口 */
76
+ export interface JQNewValueSlots {
77
+ /** 动态插槽(继承 QSelect 的所有插槽) */
78
+ [key: string]: any;
79
+ }
80
+ /** JQNewValue 暴露的方法和属性 */
81
+ export interface JQNewValueExpose {
82
+ /**
83
+ * 验证选择器
84
+ */
85
+ validate: () => boolean;
86
+ /**
87
+ * 重置验证状态
88
+ */
89
+ resetValidation: () => void;
90
+ }
91
+ /** JQNewValue 组件类型定义 */
92
+ export type JQNewValueComponent = DefineComponent<JQNewValueProps, JQNewValueExpose, {}, {}, {}, {}, SlotsType<JQNewValueSlots>, {
93
+ change: (value: NewValueModelValue) => true;
94
+ 'update:modelValue': (value: NewValueModelValue) => true;
95
+ }>;
96
+ /** JQNewValue 实例类型 - 用于 ref 类型定义 */
97
+ export type JQNewValueInstance = InstanceType<JQNewValueComponent> & JQNewValueExpose;
98
+ /**
99
+ * 用于模板中的 Props 类型定义
100
+ * 包含事件处理器
101
+ */
102
+ export interface JQNewValueTemplateProps extends JQNewValueProps {
103
+ /** 变更事件处理器 */
104
+ onChange?: (value: NewValueModelValue) => void;
105
+ /** 更新 modelValue 事件处理器 */
106
+ 'onUpdate:modelValue'?: (value: NewValueModelValue) => void;
107
+ }
@@ -0,0 +1,109 @@
1
+ import { DefineComponent, SlotsType } from 'vue';
2
+ import { QFieldProps, QOptionGroupProps } from 'quasar';
3
+ /** 选项组模型值类型 */
4
+ export type OptionGroupModelValue = QOptionGroupProps['modelValue'];
5
+ /** 选项组选项类型 */
6
+ export type OptionGroupOptions = QOptionGroupProps['options'];
7
+ /** JQOptionGroup Props 接口 */
8
+ export interface JQOptionGroupProps {
9
+ /**
10
+ * 绑定值
11
+ * @default null
12
+ */
13
+ modelValue?: OptionGroupModelValue;
14
+ /**
15
+ * 选项列表
16
+ */
17
+ options: OptionGroupOptions;
18
+ /**
19
+ * 是否禁用
20
+ * @default false
21
+ */
22
+ disable?: QOptionGroupProps['disable'];
23
+ /**
24
+ * 是否内联显示
25
+ * @default false
26
+ */
27
+ inline?: QOptionGroupProps['inline'];
28
+ /**
29
+ * 尺寸
30
+ */
31
+ size?: QOptionGroupProps['size'];
32
+ /**
33
+ * 颜色
34
+ */
35
+ color?: QOptionGroupProps['color'];
36
+ /**
37
+ * 标签文本
38
+ */
39
+ label?: QFieldProps['label'];
40
+ /**
41
+ * 验证规则
42
+ */
43
+ rules?: QFieldProps['rules'];
44
+ /**
45
+ * 是否显示边框
46
+ * @default true
47
+ */
48
+ outlined?: QFieldProps['outlined'];
49
+ /**
50
+ * 是否紧凑模式
51
+ * @default true
52
+ */
53
+ dense?: QFieldProps['dense'];
54
+ /**
55
+ * 选项类型
56
+ * @default 'radio'
57
+ */
58
+ type?: QOptionGroupProps['type'];
59
+ /**
60
+ * 内联每行显示数量
61
+ * @default 3
62
+ */
63
+ inlineSpanCount?: number;
64
+ /**
65
+ * 字段样式类
66
+ * @default ''
67
+ */
68
+ filedClass?: string;
69
+ }
70
+ /** JQOptionGroup Emits 接口 */
71
+ export interface JQOptionGroupEmits {
72
+ [key: string]: any;
73
+ /**
74
+ * 变更事件
75
+ * @param value 新值
76
+ */
77
+ (e: 'change', value: OptionGroupModelValue): void;
78
+ /**
79
+ * 更新 modelValue 事件
80
+ * @param value 新值
81
+ */
82
+ (e: 'update:modelValue', value: OptionGroupModelValue): void;
83
+ }
84
+ /** JQOptionGroup Slots 接口 */
85
+ export interface JQOptionGroupSlots {
86
+ [key: string]: any;
87
+ /** 默认插槽(暂无内容) */
88
+ default?: () => any;
89
+ }
90
+ /** JQOptionGroup 暴露的方法和属性 */
91
+ export interface JQOptionGroupExpose {
92
+ }
93
+ /** JQOptionGroup 组件类型定义 */
94
+ export type JQOptionGroupComponent = DefineComponent<JQOptionGroupProps, JQOptionGroupExpose, {}, {}, {}, {}, SlotsType<JQOptionGroupSlots>, {
95
+ change: (value: OptionGroupModelValue) => true;
96
+ 'update:modelValue': (value: OptionGroupModelValue) => true;
97
+ }>;
98
+ /** JQOptionGroup 实例类型 - 用于 ref 类型定义 */
99
+ export type JQOptionGroupInstance = InstanceType<JQOptionGroupComponent> & JQOptionGroupExpose;
100
+ /**
101
+ * 用于模板中的 Props 类型定义
102
+ * 包含事件处理器
103
+ */
104
+ export interface JQOptionGroupTemplateProps extends JQOptionGroupProps {
105
+ /** 变更事件处理器 */
106
+ onChange?: (value: OptionGroupModelValue) => void;
107
+ /** 更新 modelValue 事件处理器 */
108
+ 'onUpdate:modelValue'?: (value: OptionGroupModelValue) => void;
109
+ }
@@ -0,0 +1,85 @@
1
+ import { DefineComponent, SlotsType } from 'vue';
2
+ /** 默认每页显示数量 */
3
+ export declare const DEFAULT_PAGE_SIZE: 20;
4
+ /** 默认每页显示数量选项 */
5
+ export declare const DEFAULT_PAGE_SIZE_OPTIONS: readonly [20, 50, 100, 200];
6
+ /** 分页配置接口 */
7
+ export interface PaginationConfig {
8
+ /** 当前页码 */
9
+ currentPage: number;
10
+ /** 每页显示数量 */
11
+ pageSize: number;
12
+ /** 总条数 */
13
+ total: number;
14
+ }
15
+ /** JQPagination Props 接口 */
16
+ export interface JQPaginationProps {
17
+ /**
18
+ * 当前页码
19
+ * @default 1
20
+ */
21
+ currentPage?: number;
22
+ /**
23
+ * 每页显示数量
24
+ * @default 20
25
+ */
26
+ pageSize?: number;
27
+ /**
28
+ * 总条数
29
+ * @default 0
30
+ */
31
+ total?: number;
32
+ /**
33
+ * 每页显示数量选项
34
+ * @default [20, 50, 100, 200]
35
+ */
36
+ pageSizeOptions?: number[];
37
+ }
38
+ /** JQPagination Emits 接口 */
39
+ export interface JQPaginationEmits {
40
+ [key: string]: any;
41
+ /**
42
+ * 更新当前页码事件
43
+ * @param page 新页码
44
+ */
45
+ (e: 'update:currentPage', page: number): void;
46
+ /**
47
+ * 更新每页显示数量事件
48
+ * @param size 新的每页数量
49
+ */
50
+ (e: 'update:pageSize', size: number): void;
51
+ /**
52
+ * 分页变化事件
53
+ * @param config 分页配置
54
+ */
55
+ (e: 'change', config: PaginationConfig): void;
56
+ }
57
+ /** JQPagination Slots 接口 */
58
+ export interface JQPaginationSlots {
59
+ [key: string]: any;
60
+ /** 默认插槽(暂无内容) */
61
+ default?: () => any;
62
+ }
63
+ /** JQPagination 暴露的方法和属性 */
64
+ export interface JQPaginationExpose {
65
+ }
66
+ /** JQPagination 组件类型定义 */
67
+ export type JQPaginationComponent = DefineComponent<JQPaginationProps, JQPaginationExpose, {}, {}, {}, {}, SlotsType<JQPaginationSlots>, {
68
+ 'update:currentPage': (page: number) => true;
69
+ 'update:pageSize': (size: number) => true;
70
+ change: (config: PaginationConfig) => true;
71
+ }>;
72
+ /** JQPagination 实例类型 - 用于 ref 类型定义 */
73
+ export type JQPaginationInstance = InstanceType<JQPaginationComponent> & JQPaginationExpose;
74
+ /**
75
+ * 用于模板中的 Props 类型定义
76
+ * 包含事件处理器
77
+ */
78
+ export interface JQPaginationTemplateProps extends JQPaginationProps {
79
+ /** 更新当前页码事件处理器 */
80
+ 'onUpdate:currentPage'?: (page: number) => void;
81
+ /** 更新每页显示数量事件处理器 */
82
+ 'onUpdate:pageSize'?: (size: number) => void;
83
+ /** 分页变化事件处理器 */
84
+ onChange?: (config: PaginationConfig) => void;
85
+ }
@@ -0,0 +1,50 @@
1
+ import { DefineComponent, SlotsType } from 'vue';
2
+ /** 弹出框触发方式 */
3
+ export declare const PopoverTrigger: {
4
+ readonly CLICK: "click";
5
+ readonly HOVER: "hover";
6
+ };
7
+ /** 弹出框触发方式类型 */
8
+ export type PopoverTriggerType = (typeof PopoverTrigger)[keyof typeof PopoverTrigger];
9
+ /** JQPopover Props 接口 */
10
+ export interface JQPopoverProps {
11
+ /**
12
+ * 弹出框标题
13
+ * @default ''
14
+ */
15
+ title?: string;
16
+ /**
17
+ * 弹出框宽度
18
+ * @default 200
19
+ */
20
+ width?: string | number;
21
+ /**
22
+ * 触发方式
23
+ * @default 'click'
24
+ */
25
+ trigger?: PopoverTriggerType;
26
+ }
27
+ /** JQPopover Emits 接口 */
28
+ export interface JQPopoverEmits {
29
+ [key: string]: any;
30
+ }
31
+ /** JQPopover Slots 接口 */
32
+ export interface JQPopoverSlots {
33
+ [key: string]: any;
34
+ /** 默认触发器插槽 */
35
+ default?: () => any;
36
+ /** 内容插槽 */
37
+ content?: () => any;
38
+ }
39
+ /** JQPopover 暴露的方法和属性 */
40
+ export interface JQPopoverExpose {
41
+ }
42
+ /** JQPopover 组件类型定义 */
43
+ export type JQPopoverComponent = DefineComponent<JQPopoverProps, JQPopoverExpose, {}, {}, {}, {}, SlotsType<JQPopoverSlots>, {}>;
44
+ /** JQPopover 实例类型 - 用于 ref 类型定义 */
45
+ export type JQPopoverInstance = InstanceType<JQPopoverComponent> & JQPopoverExpose;
46
+ /**
47
+ * 用于模板中的 Props 类型定义
48
+ */
49
+ export interface JQPopoverTemplateProps extends JQPopoverProps {
50
+ }
@@ -0,0 +1,80 @@
1
+ import { DefineComponent, SlotsType } from 'vue';
2
+ /** 搜索表单数据类型 */
3
+ export type SearchFormData = Record<string, any>;
4
+ /** JQSearchForm Props 接口 */
5
+ export interface JQSearchFormProps {
6
+ /**
7
+ * 表单数据对象
8
+ */
9
+ modelValue: SearchFormData;
10
+ /**
11
+ * 查询按钮加载状态
12
+ */
13
+ queryLoading?: boolean;
14
+ /**
15
+ * 重置按钮加载状态
16
+ */
17
+ resetLoading?: boolean;
18
+ /**
19
+ * 是否显示重置按钮
20
+ * @default true
21
+ */
22
+ resetVisible?: boolean;
23
+ /**
24
+ * 是否显示操作按钮
25
+ * @default true
26
+ */
27
+ operationVisible?: boolean;
28
+ }
29
+ /** JQSearchForm Emits 接口 */
30
+ export interface JQSearchFormEmits {
31
+ [key: string]: any;
32
+ /**
33
+ * 更新 modelValue 事件
34
+ * @param value 新值
35
+ */
36
+ (e: 'update:modelValue', value: SearchFormData): void;
37
+ /**
38
+ * 查询事件
39
+ */
40
+ (e: 'query'): void;
41
+ /**
42
+ * 重置事件
43
+ */
44
+ (e: 'reset'): void;
45
+ }
46
+ /** JQSearchForm Slots 接口 */
47
+ export interface JQSearchFormSlots {
48
+ [key: string]: any;
49
+ /** 默认表单项插槽 */
50
+ default?: () => any;
51
+ /** 额外操作插槽 */
52
+ 'extra-operation'?: () => any;
53
+ }
54
+ /** JQSearchForm 暴露的方法和属性 */
55
+ export interface JQSearchFormExpose {
56
+ /**
57
+ * 搜索表单引用
58
+ */
59
+ searchFormRef: any;
60
+ }
61
+ /** JQSearchForm 组件类型定义 */
62
+ export type JQSearchFormComponent = DefineComponent<JQSearchFormProps, JQSearchFormExpose, {}, {}, {}, {}, SlotsType<JQSearchFormSlots>, {
63
+ 'update:modelValue': (value: SearchFormData) => true;
64
+ query: () => true;
65
+ reset: () => true;
66
+ }>;
67
+ /** JQSearchForm 实例类型 - 用于 ref 类型定义 */
68
+ export type JQSearchFormInstance = InstanceType<JQSearchFormComponent> & JQSearchFormExpose;
69
+ /**
70
+ * 用于模板中的 Props 类型定义
71
+ * 包含事件处理器
72
+ */
73
+ export interface JQSearchFormTemplateProps extends JQSearchFormProps {
74
+ /** 更新 modelValue 事件处理器 */
75
+ 'onUpdate:modelValue'?: (value: SearchFormData) => void;
76
+ /** 查询事件处理器 */
77
+ onQuery?: () => void;
78
+ /** 重置事件处理器 */
79
+ onReset?: () => void;
80
+ }