rtcpts 0.0.29 → 0.0.30
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-nested-select/NestedMenuItem.d.ts +51 -0
- package/dist/components/j-c-nested-select/index.d.ts +199 -0
- package/dist/components/j-c-nested-select/types.d.ts +27 -0
- package/dist/components/j-q-confirm-dialog/index.d.ts +0 -326
- package/dist/components/j-q-message/index.d.ts +1 -1
- package/dist/components/j-q-table/pagination.d.ts +19 -20
- package/dist/global.d.ts +10 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/rtcpt-styles.css +1 -1
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +2404 -2111
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { QItem, QItemSection, QIcon, QMenu, QList, ClosePopup, ComponentConstructor } from 'quasar';
|
|
2
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { NestedSelectOption } from './types';
|
|
4
|
+
type TModelValue = string | number | null | undefined;
|
|
5
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
closeOnSelect: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
option: {
|
|
11
|
+
type: PropType<NestedSelectOption>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selectedValue: {
|
|
15
|
+
type: PropType<TModelValue>;
|
|
16
|
+
default: null;
|
|
17
|
+
};
|
|
18
|
+
}>, {
|
|
19
|
+
hasChildren: ComputedRef<boolean | undefined>;
|
|
20
|
+
handleClick: () => void;
|
|
21
|
+
handleSelect: (value: TModelValue) => void;
|
|
22
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
23
|
+
select: (value: TModelValue) => true;
|
|
24
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
25
|
+
closeOnSelect: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
option: {
|
|
30
|
+
type: PropType<NestedSelectOption>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
selectedValue: {
|
|
34
|
+
type: PropType<TModelValue>;
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{
|
|
38
|
+
onSelect?: ((value: TModelValue) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
closeOnSelect: boolean;
|
|
41
|
+
selectedValue: TModelValue;
|
|
42
|
+
}, {}, {
|
|
43
|
+
QItem: ComponentConstructor<QItem>;
|
|
44
|
+
QItemSection: ComponentConstructor<QItemSection>;
|
|
45
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
46
|
+
QMenu: ComponentConstructor<QMenu>;
|
|
47
|
+
QList: ComponentConstructor<QList>;
|
|
48
|
+
}, {
|
|
49
|
+
ClosePopup: ClosePopup;
|
|
50
|
+
}, string, ComponentProvideOptions, true, {}, any>;
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { QList, QMenu, QSelect, ComponentConstructor, QItem, QItemSection, QIcon, ClosePopup } from 'quasar';
|
|
2
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComputedRef, WritableComputedRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { NestedSelectOption } from './types';
|
|
4
|
+
type TModelValue = string | number | null | undefined;
|
|
5
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
clearable: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
closeOnSelect: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
customClass: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
disable: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
displayValueFn: {
|
|
23
|
+
type: PropType<(value: TModelValue, options: NestedSelectOption[]) => string>;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
ellipsis: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
label: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
maxWidth: {
|
|
35
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
modelValue: {
|
|
39
|
+
type: PropType<TModelValue>;
|
|
40
|
+
default: null;
|
|
41
|
+
};
|
|
42
|
+
options: {
|
|
43
|
+
type: PropType<NestedSelectOption[]>;
|
|
44
|
+
required: true;
|
|
45
|
+
default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
optionsOrigin: {
|
|
48
|
+
type: PropType<NestedSelectOption[]>;
|
|
49
|
+
default: () => never[];
|
|
50
|
+
};
|
|
51
|
+
popupContentClass: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
readonly: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
smInput: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
}>, {
|
|
64
|
+
computedMaxWidth: ComputedRef<string>;
|
|
65
|
+
displayValue: ComputedRef<string>;
|
|
66
|
+
handleSelect: (value: TModelValue) => void;
|
|
67
|
+
innerValue: WritableComputedRef<TModelValue, TModelValue>;
|
|
68
|
+
qSelectRef: Ref<QSelect | null, QSelect | null>;
|
|
69
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
70
|
+
'update:modelValue': (value: TModelValue) => true;
|
|
71
|
+
change: (value: TModelValue) => true;
|
|
72
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
73
|
+
clearable: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
closeOnSelect: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
customClass: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
disable: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
displayValueFn: {
|
|
90
|
+
type: PropType<(value: TModelValue, options: NestedSelectOption[]) => string>;
|
|
91
|
+
default: undefined;
|
|
92
|
+
};
|
|
93
|
+
ellipsis: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
label: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
maxWidth: {
|
|
102
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
modelValue: {
|
|
106
|
+
type: PropType<TModelValue>;
|
|
107
|
+
default: null;
|
|
108
|
+
};
|
|
109
|
+
options: {
|
|
110
|
+
type: PropType<NestedSelectOption[]>;
|
|
111
|
+
required: true;
|
|
112
|
+
default: () => never[];
|
|
113
|
+
};
|
|
114
|
+
optionsOrigin: {
|
|
115
|
+
type: PropType<NestedSelectOption[]>;
|
|
116
|
+
default: () => never[];
|
|
117
|
+
};
|
|
118
|
+
popupContentClass: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
readonly: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
smInput: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
}>> & Readonly<{
|
|
131
|
+
"onUpdate:modelValue"?: ((value: TModelValue) => any) | undefined;
|
|
132
|
+
onChange?: ((value: TModelValue) => any) | undefined;
|
|
133
|
+
}>, {
|
|
134
|
+
modelValue: TModelValue;
|
|
135
|
+
label: string;
|
|
136
|
+
disable: boolean;
|
|
137
|
+
maxWidth: string | number;
|
|
138
|
+
readonly: boolean;
|
|
139
|
+
smInput: boolean;
|
|
140
|
+
clearable: boolean;
|
|
141
|
+
popupContentClass: string;
|
|
142
|
+
closeOnSelect: boolean;
|
|
143
|
+
options: NestedSelectOption[];
|
|
144
|
+
customClass: string;
|
|
145
|
+
displayValueFn: (value: TModelValue, options: NestedSelectOption[]) => string;
|
|
146
|
+
ellipsis: boolean;
|
|
147
|
+
optionsOrigin: NestedSelectOption[];
|
|
148
|
+
}, {}, {
|
|
149
|
+
NestedMenuItem: DefineComponent<ExtractPropTypes<{
|
|
150
|
+
closeOnSelect: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
option: {
|
|
155
|
+
type: PropType<NestedSelectOption>;
|
|
156
|
+
required: true;
|
|
157
|
+
};
|
|
158
|
+
selectedValue: {
|
|
159
|
+
type: PropType<string | number | null | undefined>;
|
|
160
|
+
default: null;
|
|
161
|
+
};
|
|
162
|
+
}>, {
|
|
163
|
+
hasChildren: ComputedRef<boolean | undefined>;
|
|
164
|
+
handleClick: () => void;
|
|
165
|
+
handleSelect: (value: string | number | null | undefined) => void;
|
|
166
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
167
|
+
select: (value: string | number | null | undefined) => true;
|
|
168
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
169
|
+
closeOnSelect: {
|
|
170
|
+
type: BooleanConstructor;
|
|
171
|
+
default: boolean;
|
|
172
|
+
};
|
|
173
|
+
option: {
|
|
174
|
+
type: PropType<NestedSelectOption>;
|
|
175
|
+
required: true;
|
|
176
|
+
};
|
|
177
|
+
selectedValue: {
|
|
178
|
+
type: PropType<string | number | null | undefined>;
|
|
179
|
+
default: null;
|
|
180
|
+
};
|
|
181
|
+
}>> & Readonly<{
|
|
182
|
+
onSelect?: ((value: string | number | null | undefined) => any) | undefined;
|
|
183
|
+
}>, {
|
|
184
|
+
closeOnSelect: boolean;
|
|
185
|
+
selectedValue: string | number | null | undefined;
|
|
186
|
+
}, {}, {
|
|
187
|
+
QItem: ComponentConstructor<QItem>;
|
|
188
|
+
QItemSection: ComponentConstructor<QItemSection>;
|
|
189
|
+
QIcon: ComponentConstructor<QIcon>;
|
|
190
|
+
QMenu: ComponentConstructor<QMenu>;
|
|
191
|
+
QList: ComponentConstructor<QList>;
|
|
192
|
+
}, {
|
|
193
|
+
ClosePopup: ClosePopup;
|
|
194
|
+
}, string, ComponentProvideOptions, true, {}, any>;
|
|
195
|
+
QSelect: ComponentConstructor<QSelect>;
|
|
196
|
+
QMenu: ComponentConstructor<QMenu>;
|
|
197
|
+
QList: ComponentConstructor<QList>;
|
|
198
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
199
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface NestedSelectOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
children?: NestedSelectOption[];
|
|
5
|
+
parent?: NestedSelectOption;
|
|
6
|
+
}
|
|
7
|
+
export type NestedSelectModelValue = string | number | null | undefined;
|
|
8
|
+
export interface JCNestedSelectProps {
|
|
9
|
+
clearable?: boolean;
|
|
10
|
+
closeOnSelect?: boolean;
|
|
11
|
+
customClass?: string;
|
|
12
|
+
disable?: boolean;
|
|
13
|
+
displayValueFn?: (value: NestedSelectModelValue, options: NestedSelectOption[]) => string;
|
|
14
|
+
ellipsis?: boolean;
|
|
15
|
+
label?: string;
|
|
16
|
+
maxWidth?: string | number;
|
|
17
|
+
modelValue?: NestedSelectModelValue;
|
|
18
|
+
options: NestedSelectOption[];
|
|
19
|
+
optionsOrigin?: NestedSelectOption[];
|
|
20
|
+
popupContentClass?: string;
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
smInput?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface JCNestedSelectEmits {
|
|
25
|
+
(e: 'update:modelValue', value: NestedSelectModelValue): void;
|
|
26
|
+
(e: 'change', value: NestedSelectModelValue): void;
|
|
27
|
+
}
|
|
@@ -13,329 +13,3 @@ declare class GlobalConfirm implements IJQConfirmDialog {
|
|
|
13
13
|
}
|
|
14
14
|
declare const globalConfirm: GlobalConfirm;
|
|
15
15
|
export default globalConfirm;
|
|
16
|
-
tent: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
confirmButtonText: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
cancelButtonText: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
cancel: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
isDelete: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
default: boolean;
|
|
35
|
-
};
|
|
36
|
-
color: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
icon: {
|
|
41
|
-
type: PropType<string | VNode | VueComponent>;
|
|
42
|
-
default: null;
|
|
43
|
-
};
|
|
44
|
-
showClose: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
}>, {
|
|
49
|
-
dialogRef: Ref<QDialog | undefined, QDialog | undefined>;
|
|
50
|
-
onDialogHide: () => void;
|
|
51
|
-
onOKClick(): void;
|
|
52
|
-
onCancelClick: () => void;
|
|
53
|
-
computedCancelText: ComputedRef<string>;
|
|
54
|
-
computedConfirmText: ComputedRef<string>;
|
|
55
|
-
computedButtonColor: ComputedRef<string>;
|
|
56
|
-
isIconString: ComputedRef<boolean>;
|
|
57
|
-
onCloseClick: () => void;
|
|
58
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("hide" | "ok")[], "hide" | "ok", PublicProps, Readonly< ExtractPropTypes<{
|
|
59
|
-
title: {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
default: string;
|
|
62
|
-
};
|
|
63
|
-
content: {
|
|
64
|
-
type: StringConstructor;
|
|
65
|
-
default: string;
|
|
66
|
-
};
|
|
67
|
-
confirmButtonText: {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
default: string;
|
|
70
|
-
};
|
|
71
|
-
cancelButtonText: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
default: string;
|
|
74
|
-
};
|
|
75
|
-
cancel: {
|
|
76
|
-
type: BooleanConstructor;
|
|
77
|
-
default: boolean;
|
|
78
|
-
};
|
|
79
|
-
isDelete: {
|
|
80
|
-
type: BooleanConstructor;
|
|
81
|
-
default: boolean;
|
|
82
|
-
};
|
|
83
|
-
color: {
|
|
84
|
-
type: StringConstructor;
|
|
85
|
-
default: string;
|
|
86
|
-
};
|
|
87
|
-
icon: {
|
|
88
|
-
type: PropType<string | VNode | VueComponent>;
|
|
89
|
-
default: null;
|
|
90
|
-
};
|
|
91
|
-
showClose: {
|
|
92
|
-
type: BooleanConstructor;
|
|
93
|
-
default: boolean;
|
|
94
|
-
};
|
|
95
|
-
}>> & Readonly<{
|
|
96
|
-
onHide?: ((...args: any[]) => any) | undefined;
|
|
97
|
-
onOk?: ((...args: any[]) => any) | undefined;
|
|
98
|
-
}>, {
|
|
99
|
-
color: string;
|
|
100
|
-
title: string;
|
|
101
|
-
icon: string | VNode< RendererNode, RendererElement, {
|
|
102
|
-
[key: string]: any;
|
|
103
|
-
}> | VueComponent;
|
|
104
|
-
content: string;
|
|
105
|
-
cancel: boolean;
|
|
106
|
-
confirmButtonText: string;
|
|
107
|
-
cancelButtonText: string;
|
|
108
|
-
isDelete: boolean;
|
|
109
|
-
showClose: boolean;
|
|
110
|
-
}, {}, {
|
|
111
|
-
QDialog: ComponentConstructor<QDialog>;
|
|
112
|
-
QCard: ComponentConstructor<QCard>;
|
|
113
|
-
QCardSection: ComponentConstructor<QCardSection>;
|
|
114
|
-
QIcon: ComponentConstructor<QIcon>;
|
|
115
|
-
JQButton: DefineComponent<ExtractPropTypes<{
|
|
116
|
-
size: {
|
|
117
|
-
type: PropType< JQButtonSizeType>;
|
|
118
|
-
default: "large";
|
|
119
|
-
validator: (value: JQButtonSizeType) => boolean;
|
|
120
|
-
};
|
|
121
|
-
type: {
|
|
122
|
-
type: PropType< JQButtonTypeType>;
|
|
123
|
-
default: "primary";
|
|
124
|
-
validator: (value: JQButtonTypeType) => boolean;
|
|
125
|
-
};
|
|
126
|
-
label: {
|
|
127
|
-
type: StringConstructor;
|
|
128
|
-
default: string;
|
|
129
|
-
};
|
|
130
|
-
icon: {
|
|
131
|
-
type: StringConstructor;
|
|
132
|
-
default: undefined;
|
|
133
|
-
};
|
|
134
|
-
loading: {
|
|
135
|
-
type: BooleanConstructor;
|
|
136
|
-
default: boolean;
|
|
137
|
-
};
|
|
138
|
-
tips: {
|
|
139
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
|
-
tooltipConfig: {
|
|
143
|
-
type: PropType<Omit< TooltipProps, "content">>;
|
|
144
|
-
default: undefined;
|
|
145
|
-
};
|
|
146
|
-
}>, {
|
|
147
|
-
click: (e: Event) => void;
|
|
148
|
-
computedClass: ComputedRef<{
|
|
149
|
-
[x: string]: boolean;
|
|
150
|
-
'j-q-button': boolean;
|
|
151
|
-
'j-q-button--primary': boolean;
|
|
152
|
-
'j-q-button--secondary': boolean;
|
|
153
|
-
'j-q-button--text'?: undefined;
|
|
154
|
-
} | {
|
|
155
|
-
'j-q-button--text': boolean;
|
|
156
|
-
'j-q-button'?: undefined;
|
|
157
|
-
'j-q-button--primary'?: undefined;
|
|
158
|
-
'j-q-button--secondary'?: undefined;
|
|
159
|
-
}>;
|
|
160
|
-
iconPadding: ComputedRef<{
|
|
161
|
-
'j-q-button-label': string | (() => any) | undefined;
|
|
162
|
-
}>;
|
|
163
|
-
mergedTooltipConfig: ComputedRef<{
|
|
164
|
-
modelValue?: boolean;
|
|
165
|
-
placement?: JCTooltipPlacementType;
|
|
166
|
-
effect?: JCTooltipEffectType;
|
|
167
|
-
trigger?: JCTooltipTriggerType;
|
|
168
|
-
disabled?: boolean;
|
|
169
|
-
showArrow?: boolean;
|
|
170
|
-
openDelay?: number;
|
|
171
|
-
closeDelay?: number;
|
|
172
|
-
maxWidth?: string;
|
|
173
|
-
offset?: number;
|
|
174
|
-
}>;
|
|
175
|
-
qBtnRef: Ref< QBtn | null, QBtn | null>;
|
|
176
|
-
tooltipContent: ComputedRef<string>;
|
|
177
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
178
|
-
click: (e: Event) => true;
|
|
179
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
180
|
-
size: {
|
|
181
|
-
type: PropType< JQButtonSizeType>;
|
|
182
|
-
default: "large";
|
|
183
|
-
validator: (value: JQButtonSizeType) => boolean;
|
|
184
|
-
};
|
|
185
|
-
type: {
|
|
186
|
-
type: PropType< JQButtonTypeType>;
|
|
187
|
-
default: "primary";
|
|
188
|
-
validator: (value: JQButtonTypeType) => boolean;
|
|
189
|
-
};
|
|
190
|
-
label: {
|
|
191
|
-
type: StringConstructor;
|
|
192
|
-
default: string;
|
|
193
|
-
};
|
|
194
|
-
icon: {
|
|
195
|
-
type: StringConstructor;
|
|
196
|
-
default: undefined;
|
|
197
|
-
};
|
|
198
|
-
loading: {
|
|
199
|
-
type: BooleanConstructor;
|
|
200
|
-
default: boolean;
|
|
201
|
-
};
|
|
202
|
-
tips: {
|
|
203
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
204
|
-
default: string;
|
|
205
|
-
};
|
|
206
|
-
tooltipConfig: {
|
|
207
|
-
type: PropType<Omit< TooltipProps, "content">>;
|
|
208
|
-
default: undefined;
|
|
209
|
-
};
|
|
210
|
-
}>> & Readonly<{
|
|
211
|
-
onClick?: ((e: Event) => any) | undefined;
|
|
212
|
-
}>, {
|
|
213
|
-
type: JQButtonTypeType;
|
|
214
|
-
size: JQButtonSizeType;
|
|
215
|
-
label: string;
|
|
216
|
-
icon: string;
|
|
217
|
-
loading: boolean;
|
|
218
|
-
tooltipConfig: Omit< JCTooltipProps, "content">;
|
|
219
|
-
tips: string | number;
|
|
220
|
-
}, SlotsType<JQButtonSlots>, {
|
|
221
|
-
QBtn: ComponentConstructor<QBtn>;
|
|
222
|
-
JCTooltip: DefineComponent<ExtractPropTypes<{
|
|
223
|
-
content: {
|
|
224
|
-
type: StringConstructor;
|
|
225
|
-
default: string;
|
|
226
|
-
};
|
|
227
|
-
placement: {
|
|
228
|
-
type: PropType< TooltipPlacement>;
|
|
229
|
-
default: string;
|
|
230
|
-
};
|
|
231
|
-
effect: {
|
|
232
|
-
type: PropType< TooltipEffect>;
|
|
233
|
-
default: string;
|
|
234
|
-
};
|
|
235
|
-
trigger: {
|
|
236
|
-
type: PropType< TooltipTrigger>;
|
|
237
|
-
default: string;
|
|
238
|
-
};
|
|
239
|
-
disabled: {
|
|
240
|
-
type: BooleanConstructor;
|
|
241
|
-
default: boolean;
|
|
242
|
-
};
|
|
243
|
-
showArrow: {
|
|
244
|
-
type: BooleanConstructor;
|
|
245
|
-
default: boolean;
|
|
246
|
-
};
|
|
247
|
-
openDelay: {
|
|
248
|
-
type: NumberConstructor;
|
|
249
|
-
default: number;
|
|
250
|
-
};
|
|
251
|
-
closeDelay: {
|
|
252
|
-
type: NumberConstructor;
|
|
253
|
-
default: number;
|
|
254
|
-
};
|
|
255
|
-
maxWidth: {
|
|
256
|
-
type: StringConstructor;
|
|
257
|
-
default: string;
|
|
258
|
-
};
|
|
259
|
-
offset: {
|
|
260
|
-
type: NumberConstructor;
|
|
261
|
-
default: number;
|
|
262
|
-
};
|
|
263
|
-
modelValue: {
|
|
264
|
-
type: BooleanConstructor;
|
|
265
|
-
default: undefined;
|
|
266
|
-
};
|
|
267
|
-
}>, {
|
|
268
|
-
tooltipRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
269
|
-
popperRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
270
|
-
visible: Ref<boolean, boolean>;
|
|
271
|
-
currentPlacement: Ref<JCTooltipPlacementType, JCTooltipPlacementType>;
|
|
272
|
-
popperStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
273
|
-
arrowStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
274
|
-
handleMouseEnter: () => void;
|
|
275
|
-
handleMouseLeave: () => void;
|
|
276
|
-
handleClick: () => void;
|
|
277
|
-
handlePopperMouseEnter: () => void;
|
|
278
|
-
handlePopperMouseLeave: () => void;
|
|
279
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly< ExtractPropTypes<{
|
|
280
|
-
content: {
|
|
281
|
-
type: StringConstructor;
|
|
282
|
-
default: string;
|
|
283
|
-
};
|
|
284
|
-
placement: {
|
|
285
|
-
type: PropType< TooltipPlacement>;
|
|
286
|
-
default: string;
|
|
287
|
-
};
|
|
288
|
-
effect: {
|
|
289
|
-
type: PropType< TooltipEffect>;
|
|
290
|
-
default: string;
|
|
291
|
-
};
|
|
292
|
-
trigger: {
|
|
293
|
-
type: PropType< TooltipTrigger>;
|
|
294
|
-
default: string;
|
|
295
|
-
};
|
|
296
|
-
disabled: {
|
|
297
|
-
type: BooleanConstructor;
|
|
298
|
-
default: boolean;
|
|
299
|
-
};
|
|
300
|
-
showArrow: {
|
|
301
|
-
type: BooleanConstructor;
|
|
302
|
-
default: boolean;
|
|
303
|
-
};
|
|
304
|
-
openDelay: {
|
|
305
|
-
type: NumberConstructor;
|
|
306
|
-
default: number;
|
|
307
|
-
};
|
|
308
|
-
closeDelay: {
|
|
309
|
-
type: NumberConstructor;
|
|
310
|
-
default: number;
|
|
311
|
-
};
|
|
312
|
-
maxWidth: {
|
|
313
|
-
type: StringConstructor;
|
|
314
|
-
default: string;
|
|
315
|
-
};
|
|
316
|
-
offset: {
|
|
317
|
-
type: NumberConstructor;
|
|
318
|
-
default: number;
|
|
319
|
-
};
|
|
320
|
-
modelValue: {
|
|
321
|
-
type: BooleanConstructor;
|
|
322
|
-
default: undefined;
|
|
323
|
-
};
|
|
324
|
-
}>> & Readonly<{
|
|
325
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
326
|
-
}>, {
|
|
327
|
-
modelValue: boolean;
|
|
328
|
-
content: string;
|
|
329
|
-
placement: JCTooltipPlacementType;
|
|
330
|
-
effect: JCTooltipEffectType;
|
|
331
|
-
trigger: JCTooltipTriggerType;
|
|
332
|
-
disabled: boolean;
|
|
333
|
-
showArrow: boolean;
|
|
334
|
-
openDelay: number;
|
|
335
|
-
closeDelay: number;
|
|
336
|
-
maxWidth: string;
|
|
337
|
-
offset: number;
|
|
338
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
339
|
-
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
340
|
-
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
341
|
-
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QVueGlobals } from 'quasar';
|
|
2
2
|
type Position = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top' | 'bottom' | 'left' | 'right' | 'center' | undefined;
|
|
3
3
|
type showParams = {
|
|
4
|
-
type:
|
|
4
|
+
type: 'error' | 'warn' | 'success';
|
|
5
5
|
content: string;
|
|
6
6
|
position?: Position;
|
|
7
7
|
isNotify?: boolean;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { t } from '../../composables/useI18n.ts';
|
|
4
|
-
export interface PaginationInfo {
|
|
1
|
+
export type PaginationParameter = Pick<Paginator, 'page' | 'rowsPerPage'>;
|
|
2
|
+
export interface Paginator {
|
|
5
3
|
page: number;
|
|
6
4
|
rowsPerPage: number;
|
|
7
5
|
rowsNumber: number;
|
|
8
6
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
export type UsePaginationOptions = {
|
|
8
|
+
page?: number;
|
|
9
|
+
rowsPerPage?: number;
|
|
10
|
+
rowsNumber?: number;
|
|
11
|
+
};
|
|
12
|
+
export type UsePaginationReturn = {
|
|
13
|
+
paginationInfo: Paginator;
|
|
14
|
+
getNum: () => number;
|
|
15
|
+
getPaginationParam: () => PaginationParameter;
|
|
16
|
+
setNum: (value?: number) => void;
|
|
17
|
+
setSize: (value?: number) => void;
|
|
18
|
+
setTotal: (value?: number) => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const DEFAULT_ROWS_PER_PAGE = 15;
|
|
21
|
+
export declare const ROWS_PER_PAGE_OPTIONS: number[];
|
|
22
|
+
export declare function usePagination(options?: UsePaginationOptions): UsePaginationReturn;
|
|
23
|
+
rowsPerPage: number;
|
|
25
24
|
rowsNumber: number;
|
|
26
25
|
};
|
|
27
26
|
rowNumbersArr: number[];
|
package/dist/global.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { JChBubbleProps, JChBubbleSlots } from './components/j-ch-bubble/types';
|
|
|
4
4
|
import { JChLineProps, JChLineSlots } from './components/j-ch-line/types';
|
|
5
5
|
import { JChPieDoughnutProps, JChPieDoughnutSlots } from './components/j-ch-pie-doughnut/types';
|
|
6
6
|
import { JChRadarProps, JChRadarSlots } from './components/j-ch-radar/types';
|
|
7
|
+
import { JCNestedSelectProps, JCNestedSelectEmits } from './components/j-c-nested-select/types';
|
|
7
8
|
import { JCTableProps } from './components/j-c-table/types';
|
|
8
9
|
import { JCTooltipProps, JCTooltipSlots, JCTooltipEmits } from './components/j-c-tooltip/types';
|
|
9
10
|
import { JCTooltipEllipsisProps, JCTooltipEllipsisSlots } from './components/j-c-tooltip-ellipsis/types';
|
|
@@ -66,6 +67,15 @@ declare module 'vue' {
|
|
|
66
67
|
$emit: {};
|
|
67
68
|
};
|
|
68
69
|
|
|
70
|
+
/**
|
|
71
|
+
* JCNestedSelect - JCNestedSelect 组件
|
|
72
|
+
*/
|
|
73
|
+
JCNestedSelect: new () => {
|
|
74
|
+
$props: JCNestedSelectProps;
|
|
75
|
+
$slots: {};
|
|
76
|
+
$emit: JCNestedSelectEmits;
|
|
77
|
+
};
|
|
78
|
+
|
|
69
79
|
/**
|
|
70
80
|
* JCTable - JCTable 组件
|
|
71
81
|
*/
|