twcpt 0.0.18 → 0.0.19
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-tw-date-picker/index.d.ts +2 -2
- package/dist/components/j-tw-datetime-picker/index.d.ts +2 -2
- package/dist/components/j-tw-input/index.d.ts +2 -2
- package/dist/components/j-tw-multi-select-btn/index.d.ts +3 -0
- package/dist/components/j-tw-multi-select-btn/types.d.ts +82 -0
- package/dist/components/j-tw-select/index.d.ts +8 -8
- package/dist/components/j-tw-table/index.d.ts +1 -1
- package/dist/components/j-tw-toggle/index.d.ts +4 -4
- package/dist/components/j-tw-tree-select/index.d.ts +2 -2
- package/dist/components/j-tw-tree-select-btn/index.d.ts +2 -2
- package/dist/components/j-tw-tree-select-input/index.d.ts +12 -12
- package/dist/global.d.ts +10 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/twcpt.cjs.js +10 -10
- package/dist/twcpt.es.js +3586 -3174
- package/package.json +1 -1
|
@@ -1182,15 +1182,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1182
1182
|
popperOptions: Record<string, any>;
|
|
1183
1183
|
placeholder: string;
|
|
1184
1184
|
modelValue: [string, string] | [Date, Date] | [number, number];
|
|
1185
|
-
clearable: boolean;
|
|
1186
1185
|
validateEvent: boolean;
|
|
1186
|
+
clearable: boolean;
|
|
1187
|
+
readonly: boolean;
|
|
1187
1188
|
bgGrey: boolean;
|
|
1188
1189
|
format: string;
|
|
1189
1190
|
valueFormat: string;
|
|
1190
1191
|
startPlaceholder: string;
|
|
1191
1192
|
endPlaceholder: string;
|
|
1192
1193
|
disable: boolean;
|
|
1193
|
-
readonly: boolean;
|
|
1194
1194
|
disabledDate: (date: Date) => boolean;
|
|
1195
1195
|
minDate: string | number | Date;
|
|
1196
1196
|
maxDate: string | number | Date;
|
|
@@ -1182,15 +1182,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
1182
1182
|
popperOptions: Record<string, any>;
|
|
1183
1183
|
placeholder: string;
|
|
1184
1184
|
modelValue: [string, string] | [Date, Date] | [number, number];
|
|
1185
|
-
clearable: boolean;
|
|
1186
1185
|
validateEvent: boolean;
|
|
1186
|
+
clearable: boolean;
|
|
1187
|
+
readonly: boolean;
|
|
1187
1188
|
bgGrey: boolean;
|
|
1188
1189
|
format: string;
|
|
1189
1190
|
valueFormat: string;
|
|
1190
1191
|
startPlaceholder: string;
|
|
1191
1192
|
endPlaceholder: string;
|
|
1192
1193
|
disable: boolean;
|
|
1193
|
-
readonly: boolean;
|
|
1194
1194
|
disabledDate: (date: Date) => boolean;
|
|
1195
1195
|
minDate: string | number | Date;
|
|
1196
1196
|
maxDate: string | number | Date;
|
|
@@ -164,7 +164,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
164
164
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
165
165
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
166
166
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
167
|
-
}>, "focus" | "type" | "disabled" | "ref" | "clear" | "input" | "select" | "textarea" | "modelValue" | "blur" | "
|
|
167
|
+
}>, "focus" | "type" | "disabled" | "ref" | "clear" | "input" | "select" | "textarea" | "modelValue" | "blur" | "tabindex" | "validateEvent" | "rows" | "autosize" | "autocomplete" | "inputStyle" | "textareaStyle" | "resizeTextarea" | "modelModifiers" | "clearIcon" | "wordLimitPosition" | "isComposing"> & ShallowUnwrapRef<{
|
|
168
168
|
input: ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
169
169
|
textarea: ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
170
170
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -346,7 +346,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
346
346
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
347
347
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
348
348
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
349
|
-
}>, "focus" | "type" | "disabled" | "ref" | "clear" | "input" | "select" | "textarea" | "modelValue" | "blur" | "
|
|
349
|
+
}>, "focus" | "type" | "disabled" | "ref" | "clear" | "input" | "select" | "textarea" | "modelValue" | "blur" | "tabindex" | "validateEvent" | "rows" | "autosize" | "autocomplete" | "inputStyle" | "textareaStyle" | "resizeTextarea" | "modelModifiers" | "clearIcon" | "wordLimitPosition" | "isComposing"> & ShallowUnwrapRef<{
|
|
350
350
|
input: ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
351
351
|
textarea: ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
352
352
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { JTWBtnProps } from '../j-tw-btn/types';
|
|
3
|
+
export interface JTWMultiSelectOption {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
label: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @description JTWMultiSelectBtn 按钮触发多选下拉组件
|
|
10
|
+
* 只支持 primary 颜色,不支持 color 属性
|
|
11
|
+
*/
|
|
12
|
+
export interface JTWMultiSelectBtnProps extends Omit<JTWBtnProps, 'color'> {
|
|
13
|
+
/**
|
|
14
|
+
* 本地选项列表
|
|
15
|
+
*/
|
|
16
|
+
data?: JTWMultiSelectOption[];
|
|
17
|
+
/**
|
|
18
|
+
* 下拉框最大高度
|
|
19
|
+
*/
|
|
20
|
+
dropdownMaxHeight?: number;
|
|
21
|
+
/**
|
|
22
|
+
* 下拉框宽度
|
|
23
|
+
*/
|
|
24
|
+
dropdownWidth?: number;
|
|
25
|
+
/**
|
|
26
|
+
* 远程加载方法(包含远程搜索)
|
|
27
|
+
*/
|
|
28
|
+
fetchOptions?: (keyword: string) => Promise<JTWMultiSelectOption[]>;
|
|
29
|
+
/**
|
|
30
|
+
* 本地搜索过滤方法
|
|
31
|
+
*/
|
|
32
|
+
filterMethod?: (option: JTWMultiSelectOption, keyword: string) => boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 选中值
|
|
35
|
+
*/
|
|
36
|
+
modelValue?: Array<string | number>;
|
|
37
|
+
/**
|
|
38
|
+
* 无数据文案
|
|
39
|
+
*/
|
|
40
|
+
noDataText?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 搜索框占位符
|
|
43
|
+
*/
|
|
44
|
+
searchPlaceholder?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 搜索防抖时长(ms)
|
|
47
|
+
*/
|
|
48
|
+
searchDebounce?: number;
|
|
49
|
+
}
|
|
50
|
+
export interface JTWMultiSelectBtnEmits {
|
|
51
|
+
(e: 'click', event: MouseEvent): void;
|
|
52
|
+
(e: 'search', keyword: string): void;
|
|
53
|
+
(e: 'select', options: JTWMultiSelectOption[]): void;
|
|
54
|
+
(e: 'update:modelValue', value: Array<string | number>): void;
|
|
55
|
+
}
|
|
56
|
+
export interface JTWMultiSelectBtnSlots {
|
|
57
|
+
default?: () => any;
|
|
58
|
+
icon?: () => any;
|
|
59
|
+
loading?: () => any;
|
|
60
|
+
}
|
|
61
|
+
export interface JTWMultiSelectBtnExpose {
|
|
62
|
+
$el: HTMLElement | undefined;
|
|
63
|
+
click: () => void;
|
|
64
|
+
closeDropdown: () => void;
|
|
65
|
+
openDropdown: () => void;
|
|
66
|
+
}
|
|
67
|
+
export type JTWMultiSelectBtnEmitsOptions = {
|
|
68
|
+
click: (e: MouseEvent) => true;
|
|
69
|
+
search: (keyword: string) => true;
|
|
70
|
+
select: (options: JTWMultiSelectOption[]) => true;
|
|
71
|
+
'update:modelValue': (value: Array<string | number>) => true;
|
|
72
|
+
};
|
|
73
|
+
export type JTWMultiSelectBtnComponent = DefineComponent<JTWMultiSelectBtnProps, JTWMultiSelectBtnExpose, {}, {}, {}, {}, {}, JTWMultiSelectBtnEmitsOptions>;
|
|
74
|
+
export type JTWMultiSelectBtnInstance = InstanceType<JTWMultiSelectBtnComponent> & JTWMultiSelectBtnExpose;
|
|
75
|
+
export interface JTWMultiSelectBtnTemplateProps extends JTWMultiSelectBtnProps {
|
|
76
|
+
onClick?: (event: MouseEvent) => void;
|
|
77
|
+
onSearch?: (keyword: string) => void;
|
|
78
|
+
onSelect?: (options: JTWMultiSelectOption[]) => void;
|
|
79
|
+
'onUpdate:modelValue'?: (value: Array<string | number>) => void;
|
|
80
|
+
class?: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
81
|
+
style?: string | Record<string, string>;
|
|
82
|
+
}
|
|
@@ -4225,9 +4225,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4225
4225
|
readonly persistent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4226
4226
|
readonly teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4227
4227
|
readonly props: Props;
|
|
4228
|
-
readonly
|
|
4228
|
+
readonly tabindex: EpPropMergeType<(StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
4229
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4229
4230
|
readonly clearable: boolean;
|
|
4231
|
+
readonly suffixIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown>;
|
|
4230
4232
|
readonly autocomplete: string;
|
|
4233
|
+
readonly clearIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown>;
|
|
4234
|
+
readonly multiple: boolean;
|
|
4231
4235
|
readonly automaticDropdown: boolean;
|
|
4232
4236
|
readonly filterable: boolean;
|
|
4233
4237
|
readonly allowCreate: boolean;
|
|
@@ -4241,14 +4245,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4241
4245
|
readonly collapseTagsTooltip: boolean;
|
|
4242
4246
|
readonly tagTooltip: TagTooltipProps;
|
|
4243
4247
|
readonly maxCollapseTags: number;
|
|
4244
|
-
readonly clearIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown>;
|
|
4245
4248
|
readonly fitInputWidth: boolean;
|
|
4246
|
-
readonly suffixIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown>;
|
|
4247
4249
|
readonly tagType: EpPropMergeType<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
4248
4250
|
readonly tagEffect: EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>;
|
|
4249
|
-
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4250
4251
|
readonly remoteShowSuffix: boolean;
|
|
4251
|
-
readonly tabindex: EpPropMergeType<(StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
4252
4252
|
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "small" | "default", never> | undefined;
|
|
4253
4253
|
readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
4254
4254
|
readonly id?: string | undefined;
|
|
@@ -4259,13 +4259,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4259
4259
|
readonly placeholder?: string | undefined;
|
|
4260
4260
|
readonly options?: Record<string, any>[] | undefined;
|
|
4261
4261
|
readonly modelValue?: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Record<string, any> | EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown>[]) | (() => EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown> | EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown>[] | null) | ((new (...args: any[]) => string | number | boolean | Record<string, any> | EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown>[]) | (() => EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown> | EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown>[] | null) | null)[], unknown, unknown> | undefined;
|
|
4262
|
+
readonly filterMethod?: ((query: string) => void) | undefined;
|
|
4263
|
+
readonly noDataText?: string | undefined;
|
|
4262
4264
|
readonly emptyValues?: unknown[] | undefined;
|
|
4263
4265
|
readonly valueOnClear?: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | null)[], unknown, unknown> | undefined;
|
|
4264
4266
|
readonly loadingText?: string | undefined;
|
|
4265
4267
|
readonly noMatchText?: string | undefined;
|
|
4266
|
-
readonly noDataText?: string | undefined;
|
|
4267
4268
|
readonly remoteMethod?: ((query: string) => void) | undefined;
|
|
4268
|
-
readonly filterMethod?: ((query: string) => void) | undefined;
|
|
4269
4269
|
readonly onChange?: ((...args: any[]) => any) | undefined | undefined;
|
|
4270
4270
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined | undefined;
|
|
4271
4271
|
readonly onFocus?: ((...args: any[]) => any) | undefined | undefined;
|
|
@@ -4274,7 +4274,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4274
4274
|
readonly "onVisible-change"?: ((...args: any[]) => any) | undefined | undefined;
|
|
4275
4275
|
readonly "onRemove-tag"?: ((...args: any[]) => any) | undefined | undefined;
|
|
4276
4276
|
readonly "onPopup-scroll"?: ((...args: any[]) => any) | undefined | undefined;
|
|
4277
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "loading" | "disabled" | "effect" | "popperClass" | "fallbackPlacements" | "offset" | "placement" | "popperOptions" | "showArrow" | "persistent" | "teleported" | "props" | "modelValue" | "
|
|
4277
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "loading" | "disabled" | "effect" | "popperClass" | "fallbackPlacements" | "offset" | "placement" | "popperOptions" | "showArrow" | "persistent" | "teleported" | "props" | "modelValue" | "tabindex" | "validateEvent" | "clearable" | "suffixIcon" | "autocomplete" | "clearIcon" | "multiple" | "valueOnClear" | "automaticDropdown" | "filterable" | "allowCreate" | "remote" | "debounce" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "tagTooltip" | "maxCollapseTags" | "fitInputWidth" | "tagType" | "tagEffect" | "remoteShowSuffix">>) => void;
|
|
4278
4278
|
} & {
|
|
4279
4279
|
Option: DefineComponent<ExtractPropTypes<{
|
|
4280
4280
|
value: {
|
|
@@ -141,9 +141,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
141
141
|
}>, {
|
|
142
142
|
loading: boolean;
|
|
143
143
|
height: string | number;
|
|
144
|
+
rows: any[];
|
|
144
145
|
emptyText: string;
|
|
145
146
|
dense: boolean;
|
|
146
|
-
rows: any[];
|
|
147
147
|
columns: JTWTableColumn[];
|
|
148
148
|
rowKey: string | ((row: any) => string);
|
|
149
149
|
pagination: false | JTWTablePagination;
|
|
@@ -175,13 +175,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
175
175
|
id: string;
|
|
176
176
|
name: string;
|
|
177
177
|
modelValue: string | number | boolean;
|
|
178
|
-
|
|
178
|
+
trueValue: string | number | boolean;
|
|
179
|
+
falseValue: string | number | boolean;
|
|
179
180
|
tabindex: string | number;
|
|
180
|
-
|
|
181
|
+
validateEvent: boolean;
|
|
181
182
|
readonly: boolean;
|
|
183
|
+
disable: boolean;
|
|
182
184
|
dense: boolean;
|
|
183
|
-
trueValue: string | number | boolean;
|
|
184
|
-
falseValue: string | number | boolean;
|
|
185
185
|
leftLabel: boolean;
|
|
186
186
|
keepColor: boolean;
|
|
187
187
|
checkedIcon: string;
|
|
@@ -146,12 +146,12 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
146
146
|
}>, {
|
|
147
147
|
data: JTWTreeNode[];
|
|
148
148
|
modelValue: string | number | (string | number)[];
|
|
149
|
+
validateEvent: boolean;
|
|
149
150
|
searchPlaceholder: string;
|
|
151
|
+
maxHeight: number;
|
|
150
152
|
accordion: boolean;
|
|
151
153
|
multiple: boolean;
|
|
152
154
|
defaultExpandFirst: boolean;
|
|
153
|
-
maxHeight: number;
|
|
154
|
-
validateEvent: boolean;
|
|
155
155
|
bordered: boolean;
|
|
156
156
|
checkStrictly: boolean;
|
|
157
157
|
externalSearchText: string;
|
|
@@ -426,9 +426,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
426
426
|
tooltipConfig: JTWBtnTooltipConfig;
|
|
427
427
|
data: JTWTreeNode[];
|
|
428
428
|
modelValue: string | number | (string | number)[];
|
|
429
|
-
searchPlaceholder: string;
|
|
430
|
-
dropdownWidth: number;
|
|
431
429
|
dropdownMaxHeight: number;
|
|
430
|
+
dropdownWidth: number;
|
|
431
|
+
searchPlaceholder: string;
|
|
432
432
|
accordion: boolean;
|
|
433
433
|
multiple: boolean;
|
|
434
434
|
defaultExpandFirst: boolean;
|
|
@@ -2419,17 +2419,17 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
2419
2419
|
data: JTWTreeNode[];
|
|
2420
2420
|
placeholder: string;
|
|
2421
2421
|
modelValue: string | number | (string | number)[];
|
|
2422
|
-
|
|
2423
|
-
|
|
2422
|
+
clearable: boolean;
|
|
2423
|
+
bgGrey: boolean;
|
|
2424
2424
|
dropdownMaxHeight: number;
|
|
2425
|
+
dropdownWidth: number;
|
|
2426
|
+
searchPlaceholder: string;
|
|
2425
2427
|
accordion: boolean;
|
|
2426
2428
|
multiple: boolean;
|
|
2427
2429
|
defaultExpandFirst: boolean;
|
|
2428
|
-
clearable: boolean;
|
|
2429
2430
|
autoFill: boolean;
|
|
2430
2431
|
hideFooter: boolean;
|
|
2431
2432
|
allowRadioDeselect: boolean;
|
|
2432
|
-
bgGrey: boolean;
|
|
2433
2433
|
}, {}, {
|
|
2434
2434
|
ElSelect: {
|
|
2435
2435
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -4386,9 +4386,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4386
4386
|
readonly persistent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4387
4387
|
readonly teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4388
4388
|
readonly props: Props;
|
|
4389
|
-
readonly
|
|
4389
|
+
readonly tabindex: EpPropMergeType<(StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
4390
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4390
4391
|
readonly clearable: boolean;
|
|
4392
|
+
readonly suffixIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown>;
|
|
4391
4393
|
readonly autocomplete: string;
|
|
4394
|
+
readonly clearIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown>;
|
|
4395
|
+
readonly multiple: boolean;
|
|
4392
4396
|
readonly automaticDropdown: boolean;
|
|
4393
4397
|
readonly filterable: boolean;
|
|
4394
4398
|
readonly allowCreate: boolean;
|
|
@@ -4402,14 +4406,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4402
4406
|
readonly collapseTagsTooltip: boolean;
|
|
4403
4407
|
readonly tagTooltip: TagTooltipProps;
|
|
4404
4408
|
readonly maxCollapseTags: number;
|
|
4405
|
-
readonly clearIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown>;
|
|
4406
4409
|
readonly fitInputWidth: boolean;
|
|
4407
|
-
readonly suffixIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown>;
|
|
4408
4410
|
readonly tagType: EpPropMergeType<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
4409
4411
|
readonly tagEffect: EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>;
|
|
4410
|
-
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4411
4412
|
readonly remoteShowSuffix: boolean;
|
|
4412
|
-
readonly tabindex: EpPropMergeType<(StringConstructor | NumberConstructor)[], unknown, unknown>;
|
|
4413
4413
|
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "small" | "default", never> | undefined;
|
|
4414
4414
|
readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
4415
4415
|
readonly id?: string | undefined;
|
|
@@ -4420,13 +4420,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4420
4420
|
readonly placeholder?: string | undefined;
|
|
4421
4421
|
readonly options?: Record<string, any>[] | undefined;
|
|
4422
4422
|
readonly modelValue?: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Record<string, any> | EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown>[]) | (() => EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown> | EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown>[] | null) | ((new (...args: any[]) => string | number | boolean | Record<string, any> | EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown>[]) | (() => EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown> | EpPropMergeType<(BooleanConstructor | NumberConstructor | ObjectConstructor | StringConstructor)[], unknown, unknown>[] | null) | null)[], unknown, unknown> | undefined;
|
|
4423
|
+
readonly filterMethod?: ((query: string) => void) | undefined;
|
|
4424
|
+
readonly noDataText?: string | undefined;
|
|
4423
4425
|
readonly emptyValues?: unknown[] | undefined;
|
|
4424
4426
|
readonly valueOnClear?: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | null)[], unknown, unknown> | undefined;
|
|
4425
4427
|
readonly loadingText?: string | undefined;
|
|
4426
4428
|
readonly noMatchText?: string | undefined;
|
|
4427
|
-
readonly noDataText?: string | undefined;
|
|
4428
4429
|
readonly remoteMethod?: ((query: string) => void) | undefined;
|
|
4429
|
-
readonly filterMethod?: ((query: string) => void) | undefined;
|
|
4430
4430
|
readonly onChange?: ((...args: any[]) => any) | undefined | undefined;
|
|
4431
4431
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined | undefined;
|
|
4432
4432
|
readonly onFocus?: ((...args: any[]) => any) | undefined | undefined;
|
|
@@ -4435,7 +4435,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4435
4435
|
readonly "onVisible-change"?: ((...args: any[]) => any) | undefined | undefined;
|
|
4436
4436
|
readonly "onRemove-tag"?: ((...args: any[]) => any) | undefined | undefined;
|
|
4437
4437
|
readonly "onPopup-scroll"?: ((...args: any[]) => any) | undefined | undefined;
|
|
4438
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "loading" | "disabled" | "effect" | "popperClass" | "fallbackPlacements" | "offset" | "placement" | "popperOptions" | "showArrow" | "persistent" | "teleported" | "props" | "modelValue" | "
|
|
4438
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "loading" | "disabled" | "effect" | "popperClass" | "fallbackPlacements" | "offset" | "placement" | "popperOptions" | "showArrow" | "persistent" | "teleported" | "props" | "modelValue" | "tabindex" | "validateEvent" | "clearable" | "suffixIcon" | "autocomplete" | "clearIcon" | "multiple" | "valueOnClear" | "automaticDropdown" | "filterable" | "allowCreate" | "remote" | "debounce" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "tagTooltip" | "maxCollapseTags" | "fitInputWidth" | "tagType" | "tagEffect" | "remoteShowSuffix">>) => void;
|
|
4439
4439
|
} & {
|
|
4440
4440
|
Option: DefineComponent<ExtractPropTypes<{
|
|
4441
4441
|
value: {
|
package/dist/global.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { JTWDropdownBtnTemplateProps, JTWDropdownBtnSlots, JTWDropdownBtnEmits }
|
|
|
10
10
|
import { JTWFormProps, JTWFormSlots, JTWFormEmits } from './components/j-tw-form/types';
|
|
11
11
|
import { JTWFormItemProps, JTWFormItemSlots } from './components/j-tw-form-item/types';
|
|
12
12
|
import { JTWInputTemplateProps, JTWInputSlots, JTWInputEmits } from './components/j-tw-input/types';
|
|
13
|
+
import { JTWMultiSelectBtnTemplateProps, JTWMultiSelectBtnSlots, JTWMultiSelectBtnEmits } from './components/j-tw-multi-select-btn/types';
|
|
13
14
|
import { JTWPaginationTemplateProps, JTWPaginationEmits } from './components/j-tw-pagination/types';
|
|
14
15
|
import { JTWRadioTemplateProps, JTWRadioSlots, JTWRadioEmits } from './components/j-tw-radio/types';
|
|
15
16
|
import { JTWRadioGroupTemplateProps, JTWRadioGroupSlots, JTWRadioGroupEmits } from './components/j-tw-radio-group/types';
|
|
@@ -131,6 +132,15 @@ declare module 'vue' {
|
|
|
131
132
|
$emit: JTWInputEmits;
|
|
132
133
|
};
|
|
133
134
|
|
|
135
|
+
/**
|
|
136
|
+
* JTWMultiSelectBtn - JTWMultiSelectBtn 按钮触发多选下拉组件
|
|
137
|
+
*/
|
|
138
|
+
JTWMultiSelectBtn: new () => {
|
|
139
|
+
$props: JTWMultiSelectBtnTemplateProps;
|
|
140
|
+
$slots: JTWMultiSelectBtnSlots;
|
|
141
|
+
$emit: JTWMultiSelectBtnEmits;
|
|
142
|
+
};
|
|
143
|
+
|
|
134
144
|
/**
|
|
135
145
|
* JTWPagination - JTWPagination 组件
|
|
136
146
|
*/
|