rtcpts 0.0.77 → 0.0.79

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.
@@ -131,15 +131,18 @@ export interface JCMoreMenuSlots {
131
131
  /** 菜单列表内容 */
132
132
  default?: () => any;
133
133
  /**
134
- * 触发器插槽
134
+ * 菜单图标插槽(动态插槽名:menu-icon-{id})
135
+ * @param props.action 动作对象
136
+ * @param props.item 项目数据
135
137
  */
136
- trigger?: () => any;
138
+ [key: `menu-icon-${string}`]: (props: {
139
+ action: JCMoreMenuAction;
140
+ item: any;
141
+ }) => any;
137
142
  /**
138
- * 菜单图标插槽(动态插槽名:menu-icon-{id})
139
- * @param action 动作对象
140
- * @param item 项目数据
143
+ * 触发器插槽
141
144
  */
142
- [key: string]: any;
145
+ trigger?: () => any;
143
146
  }
144
147
  /** JCMoreMenu 暴露的方法和属性 */
145
148
  export interface JCMoreMenuExpose {
@@ -9,6 +9,7 @@ import { t, Locale } from '../../composables/useI18n';
9
9
  */
10
10
  declare const _default: DefineComponent<{
11
11
  readonly platformName?: string | undefined;
12
+ readonly showIcon?: boolean | undefined;
12
13
  readonly userRoleList?: IUserRole[] | undefined;
13
14
  }, {
14
15
  handleClickPlatform: (item: IPlatform) => void;
@@ -20,9 +21,11 @@ declare const _default: DefineComponent<{
20
21
  displayPlatformList: ComputedRef<IPlatform[]>;
21
22
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
22
23
  readonly platformName?: string | undefined;
24
+ readonly showIcon?: boolean | undefined;
23
25
  readonly userRoleList?: IUserRole[] | undefined;
24
26
  }> & Readonly<{}>, {
25
27
  platformName: string;
28
+ showIcon: NonNullable<boolean | undefined>;
26
29
  userRoleList: IUserRole[];
27
30
  }, {}, {
28
31
  QList: ComponentConstructor<QList>;
@@ -12,6 +12,11 @@ export interface JCPlatformProps {
12
12
  * @default ''
13
13
  */
14
14
  platformName?: string;
15
+ /**
16
+ * 是否显示平台图标
17
+ * @default true
18
+ */
19
+ showIcon?: boolean;
15
20
  /**
16
21
  * 用户角色列表
17
22
  * @default []
@@ -87,15 +87,33 @@ export interface JCTableEmits {
87
87
  /** JCTable Slots 接口 */
88
88
  export interface JCTableSlots {
89
89
  /**
90
- * 表头单元格插槽(动态插槽名:header-{columnName})
91
- * @param column 列配置
92
- * @param index 列索引
90
+ * 表体单元格插槽(动态插槽名:body-{columnName})
91
+ * @param props.colIndex 列索引
92
+ * @param props.column 列配置
93
+ * @param props.row 行数据
94
+ * @param props.rowIndex 行索引
95
+ * @param props.value 单元格值
93
96
  */
94
- [key: string]: any;
97
+ [key: `body-${string}`]: (props: {
98
+ colIndex: number;
99
+ column: JCTableColumn;
100
+ row: any;
101
+ rowIndex: number;
102
+ value: any;
103
+ }) => any;
95
104
  /**
96
105
  * 空数据插槽
97
106
  */
98
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;
99
117
  }
100
118
  /** JCTable 暴露的方法和属性 */
101
119
  export interface JCTableExpose {
@@ -74,30 +74,35 @@ export interface JCTabsEmits {
74
74
  /** JCTabs Slots 接口 */
75
75
  export interface JCTabsSlots {
76
76
  /**
77
- * 动态插槽 (item-{slotKey})
78
- * @param item 标签选项
79
- * @param index 索引
80
- * @param active 是否激活
81
- * @param labelStyle 标签样式
77
+ * 默认插槽
82
78
  */
83
- [key: string]: any;
79
+ default?: () => any;
84
80
  /**
85
81
  * 标签项插槽
86
- * @param item 标签选项
87
- * @param index 索引
88
- * @param active 是否激活
89
- * @param labelStyle 标签样式
82
+ * @param props.active 是否激活
83
+ * @param props.index 索引
84
+ * @param props.item 标签选项
85
+ * @param props.labelStyle 标签样式
90
86
  */
91
87
  item?: (props: {
92
- item: TabOption;
93
- index: number;
94
88
  active: boolean;
89
+ index: number;
90
+ item: TabOption;
95
91
  labelStyle: string;
96
92
  }) => any;
97
93
  /**
98
- * 默认插槽
94
+ * 动态插槽 (item-{slotKey})
95
+ * @param props.active 是否激活
96
+ * @param props.index 索引
97
+ * @param props.item 标签选项
98
+ * @param props.labelStyle 标签样式
99
99
  */
100
- default?: () => any;
100
+ [key: `item-${string}`]: (props: {
101
+ active: boolean;
102
+ index: number;
103
+ item: TabOption;
104
+ labelStyle: string;
105
+ }) => any;
101
106
  }
102
107
  /** JCTabs 暴露的方法和属性 */
103
108
  export interface JCTabsExpose {
@@ -1,7 +1,8 @@
1
- import { PropType, DefineComponent, ExtractPropTypes, Ref, CreateComponentPublicInstanceWithMixins, ComputedRef, ComponentOptionsMixin, PublicProps, SlotsType, GlobalComponents, GlobalDirectives, ComponentProvideOptions, WritableComputedRef, Slot } from 'vue';
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
- prepend?: Slot<void | undefined> | undefined;
723
- after?: Slot<void | undefined> | undefined;
724
- append?: Slot<void | undefined> | undefined;
725
- 'chip-value-display'?: Slot<void | undefined> | undefined;
726
- hint?: Slot<void | undefined> | undefined;
727
- 'no-option'?: Slot<void | undefined> | undefined;
728
- option?: Slot<void | undefined> | undefined;
729
- 'value-display'?: Slot<void | undefined> | undefined;
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
- prepend?: Slot<void | undefined> | undefined;
883
- after?: Slot<void | undefined> | undefined;
884
- append?: Slot<void | undefined> | undefined;
885
- 'chip-value-display'?: Slot<void | undefined> | undefined;
886
- hint?: Slot<void | undefined> | undefined;
887
- 'no-option'?: Slot<void | undefined> | undefined;
888
- option?: Slot<void | undefined> | undefined;
889
- 'value-display'?: Slot<void | undefined> | undefined;
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
- prepend?: Slot<void | undefined> | undefined;
1018
- after?: Slot<void | undefined> | undefined;
1019
- append?: Slot<void | undefined> | undefined;
1020
- 'chip-value-display'?: Slot<void | undefined> | undefined;
1021
- hint?: Slot<void | undefined> | undefined;
1022
- 'no-option'?: Slot<void | undefined> | undefined;
1023
- option?: Slot<void | undefined> | undefined;
1024
- 'value-display'?: Slot<void | undefined> | undefined;
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
- prepend?: Slot<void | undefined> | undefined;
1178
- after?: Slot<void | undefined> | undefined;
1179
- append?: Slot<void | undefined> | undefined;
1180
- 'chip-value-display'?: Slot<void | undefined> | undefined;
1181
- hint?: Slot<void | undefined> | undefined;
1182
- 'no-option'?: Slot<void | undefined> | undefined;
1183
- option?: Slot<void | undefined> | undefined;
1184
- 'value-display'?: Slot<void | undefined> | undefined;
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
- prepend?: Slot<void | undefined> | undefined;
1582
- after?: Slot<void | undefined> | undefined;
1583
- append?: Slot<void | undefined> | undefined;
1584
- 'chip-value-display'?: Slot<void | undefined> | undefined;
1585
- hint?: Slot<void | undefined> | undefined;
1586
- 'no-option'?: Slot<void | undefined> | undefined;
1587
- option?: Slot<void | undefined> | undefined;
1588
- 'value-display'?: Slot<void | undefined> | undefined;
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>;
@@ -1,5 +1,5 @@
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
  /** 新值选项类型 */
@@ -74,11 +74,8 @@ export interface JQNewValueEmits {
74
74
  */
75
75
  (e: 'update:modelValue', value: NewValueModelValue): void;
76
76
  }
77
- /** JQNewValue Slots 接口 */
78
- export interface JQNewValueSlots {
79
- /** 动态插槽(继承 QSelect 的所有插槽) */
80
- [key: string]: any;
81
- }
77
+ /** JQNewValue Slots 接口(透传 QSelect 插槽及其 scope) */
78
+ export type JQNewValueSlots = Partial<QSelectSlots>;
82
79
  /** JQNewValue 暴露的方法和属性 */
83
80
  export interface JQNewValueExpose {
84
81
  /**
@@ -1,5 +1,6 @@
1
- import { QSelectProps, QSelect, QSpinner, QItem, QItemSection, QIcon, ComponentConstructor } from 'quasar';
2
- import { PropType, SlotsType, DefineComponent, ExtractPropTypes, Ref, WritableComputedRef, ComputedRef, Slot, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
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
- prepend?: Slot<void | undefined> | undefined;
115
- after?: Slot<void | undefined> | undefined;
116
- append?: Slot<void | undefined> | undefined;
117
- 'chip-value-display'?: Slot<void | undefined> | undefined;
118
- hint?: Slot<void | undefined> | undefined;
119
- 'no-option'?: Slot<void | undefined> | undefined;
120
- option?: Slot<void | undefined> | undefined;
121
- 'value-display'?: Slot<void | undefined> | undefined;
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,5 +1,5 @@
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
  /** 过滤函数类型 */
@@ -153,14 +153,14 @@ export interface JQSelectSlots {
153
153
  after?: () => any;
154
154
  /** 附加内容插槽 */
155
155
  append?: () => any;
156
- /** 芯片值显示插槽 */
157
- 'chip-value-display'?: () => any;
156
+ /** 芯片值显示插槽(透传 QSelect selected-item scope) */
157
+ 'chip-value-display'?: QSelectSlots['selected-item'];
158
158
  /** 提示信息插槽 */
159
159
  hint?: () => any;
160
160
  /** 无数据选项插槽 */
161
161
  'no-option'?: () => any;
162
- /** 选项插槽 */
163
- option?: () => any;
162
+ /** 选项插槽(透传 QSelect option scope) */
163
+ option?: QSelectSlots['option'];
164
164
  /** 值显示插槽 */
165
165
  'value-display'?: () => any;
166
166
  }