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
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { PropType, DefineComponent, ExtractPropTypes, Ref, CreateComponentPublicInstanceWithMixins, ComputedRef, ComponentOptionsMixin, PublicProps, SlotsType, GlobalComponents, GlobalDirectives, ComponentProvideOptions, WritableComputedRef
|
|
2
|
-
import { QInputProps, QInput, ComponentConstructor, QSelectProps, QSelect, QSpinner, QItem, QItemSection, QIcon, ValidationRule } from 'quasar';
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, Ref, CreateComponentPublicInstanceWithMixins, ComputedRef, ComponentOptionsMixin, PublicProps, SlotsType, GlobalComponents, GlobalDirectives, ComponentProvideOptions, WritableComputedRef } from 'vue';
|
|
2
|
+
import { QInputProps, QInput, ComponentConstructor, QSelectProps, QSelect, QSelectSlots, QSpinner, QItem, QItemSection, QIcon, ValidationRule } from 'quasar';
|
|
3
3
|
import { t } from '../..';
|
|
4
4
|
import { JQInputSlots } from '../j-q-input/types';
|
|
5
|
+
import { JQSelectSlots } from '../j-q-select/types';
|
|
5
6
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
7
|
/** 初始值 */
|
|
7
8
|
modelValue: {
|
|
@@ -719,14 +720,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
719
720
|
computedPopupContentClass: ComputedRef<string>;
|
|
720
721
|
computedOptions: ComputedRef<any[]>;
|
|
721
722
|
slots: Readonly<{
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
option?:
|
|
729
|
-
|
|
723
|
+
[x: string]: any;
|
|
724
|
+
prepend?: (() => any) | undefined;
|
|
725
|
+
after?: (() => any) | undefined;
|
|
726
|
+
append?: (() => any) | undefined;
|
|
727
|
+
'chip-value-display'?: QSelectSlots["selected-item"] | undefined;
|
|
728
|
+
hint?: (() => any) | undefined;
|
|
729
|
+
'no-option'?: (() => any) | undefined;
|
|
730
|
+
option?: QSelectSlots["option"] | undefined;
|
|
731
|
+
'value-display'?: (() => any) | undefined;
|
|
730
732
|
}>;
|
|
731
733
|
handleManualChange: (val: any) => void;
|
|
732
734
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -747,16 +749,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
747
749
|
closeOnSelect: boolean;
|
|
748
750
|
optionLabel: string;
|
|
749
751
|
optionValue: string;
|
|
750
|
-
}, true, {}, SlotsType<{
|
|
751
|
-
prepend?: void | undefined;
|
|
752
|
-
after?: void | undefined;
|
|
753
|
-
append?: void | undefined;
|
|
754
|
-
'chip-value-display'?: void | undefined;
|
|
755
|
-
hint?: void | undefined;
|
|
756
|
-
'no-option'?: void | undefined;
|
|
757
|
-
option?: void | undefined;
|
|
758
|
-
'value-display'?: void | undefined;
|
|
759
|
-
}>, {
|
|
752
|
+
}, true, {}, SlotsType<JQSelectSlots>, {
|
|
760
753
|
QSelect: ComponentConstructor<QSelect>;
|
|
761
754
|
QSpinner: ComponentConstructor<QSpinner>;
|
|
762
755
|
QItem: ComponentConstructor<QItem>;
|
|
@@ -879,14 +872,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
879
872
|
computedPopupContentClass: ComputedRef<string>;
|
|
880
873
|
computedOptions: ComputedRef<any[]>;
|
|
881
874
|
slots: Readonly<{
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
option?:
|
|
889
|
-
|
|
875
|
+
[x: string]: any;
|
|
876
|
+
prepend?: (() => any) | undefined;
|
|
877
|
+
after?: (() => any) | undefined;
|
|
878
|
+
append?: (() => any) | undefined;
|
|
879
|
+
'chip-value-display'?: QSelectSlots["selected-item"] | undefined;
|
|
880
|
+
hint?: (() => any) | undefined;
|
|
881
|
+
'no-option'?: (() => any) | undefined;
|
|
882
|
+
option?: QSelectSlots["option"] | undefined;
|
|
883
|
+
'value-display'?: (() => any) | undefined;
|
|
890
884
|
}>;
|
|
891
885
|
handleManualChange: (val: any) => void;
|
|
892
886
|
}, {}, {}, {}, {
|
|
@@ -1014,14 +1008,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1014
1008
|
computedPopupContentClass: ComputedRef<string>;
|
|
1015
1009
|
computedOptions: ComputedRef<any[]>;
|
|
1016
1010
|
slots: Readonly<{
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
option?:
|
|
1024
|
-
|
|
1011
|
+
[x: string]: any;
|
|
1012
|
+
prepend?: (() => any) | undefined;
|
|
1013
|
+
after?: (() => any) | undefined;
|
|
1014
|
+
append?: (() => any) | undefined;
|
|
1015
|
+
'chip-value-display'?: QSelectSlots["selected-item"] | undefined;
|
|
1016
|
+
hint?: (() => any) | undefined;
|
|
1017
|
+
'no-option'?: (() => any) | undefined;
|
|
1018
|
+
option?: QSelectSlots["option"] | undefined;
|
|
1019
|
+
'value-display'?: (() => any) | undefined;
|
|
1025
1020
|
}>;
|
|
1026
1021
|
handleManualChange: (val: any) => void;
|
|
1027
1022
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -1042,16 +1037,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1042
1037
|
closeOnSelect: boolean;
|
|
1043
1038
|
optionLabel: string;
|
|
1044
1039
|
optionValue: string;
|
|
1045
|
-
}, true, {}, SlotsType<{
|
|
1046
|
-
prepend?: void | undefined;
|
|
1047
|
-
after?: void | undefined;
|
|
1048
|
-
append?: void | undefined;
|
|
1049
|
-
'chip-value-display'?: void | undefined;
|
|
1050
|
-
hint?: void | undefined;
|
|
1051
|
-
'no-option'?: void | undefined;
|
|
1052
|
-
option?: void | undefined;
|
|
1053
|
-
'value-display'?: void | undefined;
|
|
1054
|
-
}>, {
|
|
1040
|
+
}, true, {}, SlotsType<JQSelectSlots>, {
|
|
1055
1041
|
QSelect: ComponentConstructor<QSelect>;
|
|
1056
1042
|
QSpinner: ComponentConstructor<QSpinner>;
|
|
1057
1043
|
QItem: ComponentConstructor<QItem>;
|
|
@@ -1174,14 +1160,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1174
1160
|
computedPopupContentClass: ComputedRef<string>;
|
|
1175
1161
|
computedOptions: ComputedRef<any[]>;
|
|
1176
1162
|
slots: Readonly<{
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
option?:
|
|
1184
|
-
|
|
1163
|
+
[x: string]: any;
|
|
1164
|
+
prepend?: (() => any) | undefined;
|
|
1165
|
+
after?: (() => any) | undefined;
|
|
1166
|
+
append?: (() => any) | undefined;
|
|
1167
|
+
'chip-value-display'?: QSelectSlots["selected-item"] | undefined;
|
|
1168
|
+
hint?: (() => any) | undefined;
|
|
1169
|
+
'no-option'?: (() => any) | undefined;
|
|
1170
|
+
option?: QSelectSlots["option"] | undefined;
|
|
1171
|
+
'value-display'?: (() => any) | undefined;
|
|
1185
1172
|
}>;
|
|
1186
1173
|
handleManualChange: (val: any) => void;
|
|
1187
1174
|
}, {}, {}, {}, {
|
|
@@ -1578,14 +1565,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1578
1565
|
computedPopupContentClass: ComputedRef<string>;
|
|
1579
1566
|
computedOptions: ComputedRef<any[]>;
|
|
1580
1567
|
slots: Readonly<{
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
option?:
|
|
1588
|
-
|
|
1568
|
+
[x: string]: any;
|
|
1569
|
+
prepend?: (() => any) | undefined;
|
|
1570
|
+
after?: (() => any) | undefined;
|
|
1571
|
+
append?: (() => any) | undefined;
|
|
1572
|
+
'chip-value-display'?: QSelectSlots["selected-item"] | undefined;
|
|
1573
|
+
hint?: (() => any) | undefined;
|
|
1574
|
+
'no-option'?: (() => any) | undefined;
|
|
1575
|
+
option?: QSelectSlots["option"] | undefined;
|
|
1576
|
+
'value-display'?: (() => any) | undefined;
|
|
1589
1577
|
}>;
|
|
1590
1578
|
handleManualChange: (val: any) => void;
|
|
1591
1579
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -1703,16 +1691,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1703
1691
|
closeOnSelect: boolean;
|
|
1704
1692
|
optionLabel: string;
|
|
1705
1693
|
optionValue: string;
|
|
1706
|
-
}, SlotsType<{
|
|
1707
|
-
prepend?: void | undefined;
|
|
1708
|
-
after?: void | undefined;
|
|
1709
|
-
append?: void | undefined;
|
|
1710
|
-
'chip-value-display'?: void | undefined;
|
|
1711
|
-
hint?: void | undefined;
|
|
1712
|
-
'no-option'?: void | undefined;
|
|
1713
|
-
option?: void | undefined;
|
|
1714
|
-
'value-display'?: void | undefined;
|
|
1715
|
-
}>, {
|
|
1694
|
+
}, SlotsType<JQSelectSlots>, {
|
|
1716
1695
|
QSelect: ComponentConstructor<QSelect>;
|
|
1717
1696
|
QSpinner: ComponentConstructor<QSpinner>;
|
|
1718
1697
|
QItem: ComponentConstructor<QItem>;
|
|
@@ -12,7 +12,8 @@ export declare const DialogPosition: {
|
|
|
12
12
|
/** 对话框位置类型 */
|
|
13
13
|
export type DialogPositionType = (typeof DialogPosition)[keyof typeof DialogPosition];
|
|
14
14
|
/**
|
|
15
|
-
* JQDialog
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* JQInputRecognize Props 接口
|
|
8
|
+
* @description 带识别功能的输入组件,支持按正则或函数规则识别和提取文本内容中的项目
|
|
9
|
+
*/
|
|
7
10
|
export interface JQInputRecognizeProps {
|
|
8
11
|
/**
|
|
9
12
|
* 绑定值
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { RtcptComponent } from '../../component-types';
|
|
2
|
-
import { QInputProps, QSelectProps } from 'quasar';
|
|
2
|
+
import { QInputProps, QSelectProps, QSelectSlots } from 'quasar';
|
|
3
3
|
/** 新值模型值类型 */
|
|
4
4
|
export type NewValueModelValue = QSelectProps['modelValue'];
|
|
5
5
|
/** 新值选项类型 */
|
|
6
6
|
export type NewValueOptions = QSelectProps['options'];
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* JQNewValue Props 接口
|
|
9
|
+
* @description 支持输入新值的多选组件,可从下拉选项中选择或自定义输入新值
|
|
10
|
+
*/
|
|
8
11
|
export interface JQNewValueProps {
|
|
9
12
|
/**
|
|
10
13
|
* 绑定值
|
|
@@ -71,11 +74,8 @@ export interface JQNewValueEmits {
|
|
|
71
74
|
*/
|
|
72
75
|
(e: 'update:modelValue', value: NewValueModelValue): void;
|
|
73
76
|
}
|
|
74
|
-
/** JQNewValue Slots
|
|
75
|
-
export
|
|
76
|
-
/** 动态插槽(继承 QSelect 的所有插槽) */
|
|
77
|
-
[key: string]: any;
|
|
78
|
-
}
|
|
77
|
+
/** JQNewValue Slots 接口(透传 QSelect 插槽及其 scope) */
|
|
78
|
+
export type JQNewValueSlots = Partial<QSelectSlots>;
|
|
79
79
|
/** JQNewValue 暴露的方法和属性 */
|
|
80
80
|
export interface JQNewValueExpose {
|
|
81
81
|
/**
|
|
@@ -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
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* JQOptionGroup Props 接口
|
|
9
|
+
* @description 选项组组件,封装 Quasar 单选/多选组,支持内联和块级展示,带表单验证功能
|
|
10
|
+
*/
|
|
8
11
|
export interface JQOptionGroupProps {
|
|
9
12
|
/**
|
|
10
13
|
* 绑定值
|
|
@@ -6,7 +6,10 @@ export declare const PopoverTrigger: {
|
|
|
6
6
|
};
|
|
7
7
|
/** 弹出框触发方式类型 */
|
|
8
8
|
export type PopoverTriggerType = (typeof PopoverTrigger)[keyof typeof PopoverTrigger];
|
|
9
|
-
/**
|
|
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
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* JQSearchForm Props 接口
|
|
6
|
+
* @description 搜索表单组件,提供查询和重置按钮,支持自定义表单项插槽和额外操作区域
|
|
7
|
+
*/
|
|
5
8
|
export interface JQSearchFormProps {
|
|
6
9
|
/**
|
|
7
10
|
* 表单数据对象
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { QSelectProps, QSelect, QSpinner, QItem, QItemSection, QIcon, ComponentConstructor } from 'quasar';
|
|
2
|
-
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableComputedRef, ComputedRef,
|
|
1
|
+
import { QSelectProps, QSelect, QSpinner, QItem, QItemSection, QIcon, QSelectSlots, ComponentConstructor } from 'quasar';
|
|
2
|
+
import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableComputedRef, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { JQSelectSlots } from './types';
|
|
3
4
|
import { t } from '../../composables/useI18n.ts';
|
|
4
5
|
type TModelValue = QSelectProps['modelValue'];
|
|
5
6
|
type TFilterFn = (inputValue: string, callback: (filterOptions?: any[]) => void) => void;
|
|
@@ -111,14 +112,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
111
112
|
computedPopupContentClass: ComputedRef<string>;
|
|
112
113
|
computedOptions: ComputedRef<any[]>;
|
|
113
114
|
slots: Readonly<{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
option?:
|
|
121
|
-
|
|
115
|
+
[x: string]: any;
|
|
116
|
+
prepend?: (() => any) | undefined;
|
|
117
|
+
after?: (() => any) | undefined;
|
|
118
|
+
append?: (() => any) | undefined;
|
|
119
|
+
'chip-value-display'?: QSelectSlots["selected-item"] | undefined;
|
|
120
|
+
hint?: (() => any) | undefined;
|
|
121
|
+
'no-option'?: (() => any) | undefined;
|
|
122
|
+
option?: QSelectSlots["option"] | undefined;
|
|
123
|
+
'value-display'?: (() => any) | undefined;
|
|
122
124
|
}>;
|
|
123
125
|
handleManualChange: (val: TModelValue) => void;
|
|
124
126
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -236,16 +238,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
236
238
|
closeOnSelect: boolean;
|
|
237
239
|
optionLabel: string;
|
|
238
240
|
optionValue: string;
|
|
239
|
-
}, SlotsType<{
|
|
240
|
-
prepend?: void | undefined;
|
|
241
|
-
after?: void | undefined;
|
|
242
|
-
append?: void | undefined;
|
|
243
|
-
'chip-value-display'?: void | undefined;
|
|
244
|
-
hint?: void | undefined;
|
|
245
|
-
'no-option'?: void | undefined;
|
|
246
|
-
option?: void | undefined;
|
|
247
|
-
'value-display'?: void | undefined;
|
|
248
|
-
}>, {
|
|
241
|
+
}, SlotsType<JQSelectSlots>, {
|
|
249
242
|
QSelect: ComponentConstructor<QSelect>;
|
|
250
243
|
QSpinner: ComponentConstructor<QSpinner>;
|
|
251
244
|
QItem: ComponentConstructor<QItem>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { RtcptComponent } from '../../component-types';
|
|
2
|
-
import { QSelectProps, QInputProps } from 'quasar';
|
|
2
|
+
import { QSelectProps, QSelectSlots, QInputProps } from 'quasar';
|
|
3
3
|
/** 选择器模型值类型 */
|
|
4
4
|
export type SelectModelValue = QSelectProps['modelValue'];
|
|
5
5
|
/** 过滤函数类型 */
|
|
6
6
|
export type SelectFilterFn = (inputValue: string, callback: (filterOptions?: any[]) => void) => void;
|
|
7
7
|
/** 值显示函数类型 */
|
|
8
8
|
export type SelectValueDisplayFn = (value: SelectModelValue) => string;
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* JQSelect Props 接口
|
|
11
|
+
* @description 下拉选择器组件,支持单选、多选、筛选和远程搜索
|
|
12
|
+
*/
|
|
10
13
|
export interface JQSelectProps {
|
|
11
14
|
/**
|
|
12
15
|
* 绑定值
|
|
@@ -150,14 +153,14 @@ export interface JQSelectSlots {
|
|
|
150
153
|
after?: () => any;
|
|
151
154
|
/** 附加内容插槽 */
|
|
152
155
|
append?: () => any;
|
|
153
|
-
/**
|
|
154
|
-
'chip-value-display'?:
|
|
156
|
+
/** 芯片值显示插槽(透传 QSelect selected-item scope) */
|
|
157
|
+
'chip-value-display'?: QSelectSlots['selected-item'];
|
|
155
158
|
/** 提示信息插槽 */
|
|
156
159
|
hint?: () => any;
|
|
157
160
|
/** 无数据选项插槽 */
|
|
158
161
|
'no-option'?: () => any;
|
|
159
|
-
/**
|
|
160
|
-
option?:
|
|
162
|
+
/** 选项插槽(透传 QSelect option scope) */
|
|
163
|
+
option?: QSelectSlots['option'];
|
|
161
164
|
/** 值显示插槽 */
|
|
162
165
|
'value-display'?: () => any;
|
|
163
166
|
}
|
|
@@ -25,7 +25,10 @@ export interface TableColumn extends Partial<QTableColumn> {
|
|
|
25
25
|
whiteSpace?: number | boolean;
|
|
26
26
|
[key: string]: any;
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* JQTable Props 接口
|
|
30
|
+
* @description 表格组件,基于 Quasar QTable 封装,集成多选、自定义列配置和内置分页功能
|
|
31
|
+
*/
|
|
29
32
|
export interface JQTableProps {
|
|
30
33
|
/**
|
|
31
34
|
* 切换页面时是否自动滚动
|