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.
@@ -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<{