twcpt 0.0.4 → 0.0.5
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 +3 -3
- package/dist/components/j-tw-form-item/index.d.ts +2 -2
- package/dist/components/j-tw-input/index.d.ts +17 -5
- package/dist/components/j-tw-input/types.d.ts +1 -0
- package/dist/components/j-tw-select/index.d.ts +4451 -0
- package/dist/components/j-tw-select/types.d.ts +87 -0
- package/dist/components/j-tw-table/index.d.ts +1 -1
- package/dist/components/j-tw-tree-select-input/index.d.ts +5384 -0
- package/dist/components/j-tw-tree-select-input/types.d.ts +65 -0
- package/dist/global.d.ts +20 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/twcpt-styles.css +1 -1
- package/dist/twcpt.cjs.js +3 -3
- package/dist/twcpt.es.js +2545 -2027
- package/package.json +1 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
export interface JTWSelectProps {
|
|
3
|
+
modelValue?: any;
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
valueKey?: string;
|
|
7
|
+
size?: 'large' | 'default' | 'small';
|
|
8
|
+
clearable?: boolean;
|
|
9
|
+
collapseTags?: boolean;
|
|
10
|
+
collapseTagsTooltip?: boolean;
|
|
11
|
+
multipleLimit?: number;
|
|
12
|
+
name?: string;
|
|
13
|
+
effect?: 'light' | 'dark';
|
|
14
|
+
autocomplete?: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
filterable?: boolean;
|
|
17
|
+
allowCreate?: boolean;
|
|
18
|
+
filterMethod?: (query: string) => void;
|
|
19
|
+
remote?: boolean;
|
|
20
|
+
remoteMethod?: (query: string) => void;
|
|
21
|
+
remoteShowSuffix?: boolean;
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
loadingText?: string;
|
|
24
|
+
noMatchText?: string;
|
|
25
|
+
noDataText?: string;
|
|
26
|
+
popperClass?: string;
|
|
27
|
+
reserveKeyword?: boolean;
|
|
28
|
+
defaultFirstOption?: boolean;
|
|
29
|
+
teleported?: boolean;
|
|
30
|
+
persistent?: boolean;
|
|
31
|
+
automaticDropdown?: boolean;
|
|
32
|
+
clearIcon?: string;
|
|
33
|
+
fitInputWidth?: boolean;
|
|
34
|
+
suffixIcon?: string;
|
|
35
|
+
tagType?: 'success' | 'info' | 'warning' | 'danger';
|
|
36
|
+
validateEvent?: boolean;
|
|
37
|
+
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
|
38
|
+
maxCollapseTags?: number;
|
|
39
|
+
bgGrey?: boolean;
|
|
40
|
+
options?: any[];
|
|
41
|
+
props?: {
|
|
42
|
+
label?: string;
|
|
43
|
+
value?: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface JTWSelectEmits {
|
|
47
|
+
(e: 'update:modelValue', value: any): void;
|
|
48
|
+
(e: 'change', value: any): void;
|
|
49
|
+
(e: 'visible-change', visible: boolean): void;
|
|
50
|
+
(e: 'remove-tag', tag: any): void;
|
|
51
|
+
(e: 'clear'): void;
|
|
52
|
+
(e: 'blur', event: FocusEvent): void;
|
|
53
|
+
(e: 'focus', event: FocusEvent): void;
|
|
54
|
+
}
|
|
55
|
+
export interface JTWSelectSlots {
|
|
56
|
+
default?: () => any;
|
|
57
|
+
prefix?: () => any;
|
|
58
|
+
empty?: () => any;
|
|
59
|
+
header?: () => any;
|
|
60
|
+
footer?: () => any;
|
|
61
|
+
}
|
|
62
|
+
export interface JTWSelectExpose {
|
|
63
|
+
focus: () => void;
|
|
64
|
+
blur: () => void;
|
|
65
|
+
}
|
|
66
|
+
export type JTWSelectEmitsOptions = {
|
|
67
|
+
'update:modelValue': (value: any) => true;
|
|
68
|
+
change: (value: any) => true;
|
|
69
|
+
'visible-change': (visible: boolean) => true;
|
|
70
|
+
'remove-tag': (tag: any) => true;
|
|
71
|
+
clear: () => true;
|
|
72
|
+
blur: (event: FocusEvent) => true;
|
|
73
|
+
focus: (event: FocusEvent) => true;
|
|
74
|
+
};
|
|
75
|
+
export type JTWSelectComponent = DefineComponent<JTWSelectProps, JTWSelectExpose, {}, {}, {}, {}, {}, JTWSelectEmitsOptions>;
|
|
76
|
+
export type JTWSelectInstance = InstanceType<JTWSelectComponent> & JTWSelectExpose;
|
|
77
|
+
export interface JTWSelectTemplateProps extends JTWSelectProps {
|
|
78
|
+
'onUpdate:modelValue'?: (value: any) => void;
|
|
79
|
+
onChange?: (value: any) => void;
|
|
80
|
+
'onVisible-change'?: (visible: boolean) => void;
|
|
81
|
+
'onRemove-tag'?: (tag: any) => void;
|
|
82
|
+
onClear?: () => void;
|
|
83
|
+
onBlur?: (event: FocusEvent) => void;
|
|
84
|
+
onFocus?: (event: FocusEvent) => void;
|
|
85
|
+
class?: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
86
|
+
style?: string | Record<string, string>;
|
|
87
|
+
}
|
|
@@ -141,6 +141,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
141
141
|
}>, {
|
|
142
142
|
loading: boolean;
|
|
143
143
|
height: string | number;
|
|
144
|
+
emptyText: string;
|
|
144
145
|
dense: boolean;
|
|
145
146
|
rows: any[];
|
|
146
147
|
columns: JTWTableColumn[];
|
|
@@ -150,7 +151,6 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
150
151
|
selection: boolean;
|
|
151
152
|
bordered: boolean;
|
|
152
153
|
stripe: boolean;
|
|
153
|
-
emptyText: string;
|
|
154
154
|
}, {}, {
|
|
155
155
|
ElCheckbox: {
|
|
156
156
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< CheckboxProps> & Readonly<{
|