lew-ui 2.4.8 → 2.4.9

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.
@@ -28,8 +28,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
28
28
  validator: (value: string | number) => boolean;
29
29
  };
30
30
  }>> & Readonly<{}>, {
31
- value: string | number;
32
31
  color: string;
32
+ value: string | number;
33
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
34
34
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
35
  export default _default;
@@ -119,9 +119,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
119
119
  onClick?: ((...args: any[]) => any) | undefined;
120
120
  }>, {
121
121
  type: import('./props').ButtonType;
122
+ color: import('../../..').LewColor;
122
123
  size: import('./props').ButtonSize;
123
124
  text: string;
124
- color: import('../../..').LewColor;
125
125
  round: boolean;
126
126
  disabled: boolean;
127
127
  loading: boolean;
@@ -60,6 +60,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
60
60
  };
61
61
  description: string;
62
62
  };
63
+ zIndex: {
64
+ type: NumberConstructor;
65
+ default: number;
66
+ description: string;
67
+ };
63
68
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
64
69
  cancel: (...args: any[]) => void;
65
70
  ok: (...args: any[]) => void;
@@ -120,6 +125,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
120
125
  };
121
126
  description: string;
122
127
  };
128
+ zIndex: {
129
+ type: NumberConstructor;
130
+ default: number;
131
+ description: string;
132
+ };
123
133
  }>> & Readonly<{
124
134
  onCancel?: ((...args: any[]) => any) | undefined;
125
135
  onOk?: ((...args: any[]) => any) | undefined;
@@ -131,9 +141,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
131
141
  closeByEsc: boolean;
132
142
  okProps: {
133
143
  type: import('../../..').ButtonType;
144
+ color: import('../../..').LewColor;
134
145
  size: import('../../..').ButtonSize;
135
146
  text: string;
136
- color: import('../../..').LewColor;
137
147
  round: boolean;
138
148
  disabled: boolean;
139
149
  loading: boolean;
@@ -143,9 +153,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
143
153
  };
144
154
  cancelProps: {
145
155
  type: import('../../..').ButtonType;
156
+ color: import('../../..').LewColor;
146
157
  size: import('../../..').ButtonSize;
147
158
  text: string;
148
- color: import('../../..').LewColor;
149
159
  round: boolean;
150
160
  disabled: boolean;
151
161
  loading: boolean;
@@ -154,6 +164,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
154
164
  request: Function;
155
165
  };
156
166
  closeOnClickOverlay: boolean;
167
+ zIndex: number;
157
168
  position: string;
158
169
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
159
170
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -64,5 +64,10 @@ export declare const drawerProps: {
64
64
  };
65
65
  description: string;
66
66
  };
67
+ zIndex: {
68
+ type: NumberConstructor;
69
+ default: number;
70
+ description: string;
71
+ };
67
72
  };
68
73
  export type DrawerProps = ExtractPropTypes<typeof drawerProps>;
@@ -65,7 +65,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
65
65
  description: string;
66
66
  };
67
67
  rule: {
68
- type: PropType<Record<string, any>>;
68
+ type: PropType<any | string>;
69
69
  description: string;
70
70
  };
71
71
  props: {
@@ -92,6 +92,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
92
92
  }>, {
93
93
  validate: () => void;
94
94
  setError: (message: any) => void;
95
+ curRule: globalThis.ComputedRef<any>;
95
96
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
96
97
  change: (...args: any[]) => void;
97
98
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
@@ -161,7 +162,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
161
162
  description: string;
162
163
  };
163
164
  rule: {
164
- type: PropType<Record<string, any>>;
165
+ type: PropType<any | string>;
165
166
  description: string;
166
167
  };
167
168
  props: {
@@ -123,7 +123,7 @@ export declare const formItemProps: {
123
123
  description: string;
124
124
  };
125
125
  rule: {
126
- type: PropType<Record<string, any>>;
126
+ type: PropType<any | string>;
127
127
  description: string;
128
128
  };
129
129
  props: {
@@ -151,3 +151,4 @@ export declare const formItemProps: {
151
151
  export declare const requiredIconSizeMap: Record<LewSize, number>;
152
152
  export type FormProps = ExtractPropTypes<typeof formProps>;
153
153
  export type FormItemProps = ExtractPropTypes<typeof formItemProps>;
154
+ export declare const formTypeAsMap: Record<string, any>;
@@ -55,7 +55,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
55
55
  description: string;
56
56
  validator: (value: string) => boolean;
57
57
  };
58
- previewKey: {
58
+ previewGroupKey: {
59
59
  type: StringConstructor;
60
60
  default: string;
61
61
  description: string;
@@ -114,7 +114,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
114
114
  description: string;
115
115
  validator: (value: string) => boolean;
116
116
  };
117
- previewKey: {
117
+ previewGroupKey: {
118
118
  type: StringConstructor;
119
119
  default: string;
120
120
  description: string;
@@ -129,7 +129,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
129
129
  alt: string;
130
130
  objectFit: import('../../..').ObjectFit;
131
131
  objectPosition: string;
132
- previewKey: string;
132
+ previewGroupKey: string;
133
133
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
134
134
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
135
135
  export default _default;
@@ -54,7 +54,7 @@ export declare const imageProps: {
54
54
  description: string;
55
55
  validator: (value: string) => boolean;
56
56
  };
57
- previewKey: {
57
+ previewGroupKey: {
58
58
  type: StringConstructor;
59
59
  default: string;
60
60
  description: string;
@@ -54,8 +54,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
54
54
  }>> & Readonly<{
55
55
  onClick?: ((...args: any[]) => any) | undefined;
56
56
  }>, {
57
- bold: string | (100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900);
58
57
  color: "gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown";
58
+ bold: string | (100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900);
59
59
  round: boolean;
60
60
  cursor: "default" | "text" | "pointer" | "move" | "not-allowed";
61
61
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -65,6 +65,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
65
65
  default: boolean;
66
66
  description: string;
67
67
  };
68
+ zIndex: {
69
+ type: NumberConstructor;
70
+ default: number;
71
+ description: string;
72
+ };
68
73
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
69
74
  cancel: (...args: any[]) => void;
70
75
  close: (...args: any[]) => void;
@@ -131,6 +136,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
131
136
  default: boolean;
132
137
  description: string;
133
138
  };
139
+ zIndex: {
140
+ type: NumberConstructor;
141
+ default: number;
142
+ description: string;
143
+ };
134
144
  }>> & Readonly<{
135
145
  onCancel?: ((...args: any[]) => any) | undefined;
136
146
  onClose?: ((...args: any[]) => any) | undefined;
@@ -143,9 +153,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
143
153
  closeByEsc: boolean;
144
154
  okProps: {
145
155
  type: import('../../..').ButtonType;
156
+ color: import('../../..').LewColor;
146
157
  size: import('../../..').ButtonSize;
147
158
  text: string;
148
- color: import('../../..').LewColor;
149
159
  round: boolean;
150
160
  disabled: boolean;
151
161
  loading: boolean;
@@ -155,9 +165,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
155
165
  };
156
166
  cancelProps: {
157
167
  type: import('../../..').ButtonType;
168
+ color: import('../../..').LewColor;
158
169
  size: import('../../..').ButtonSize;
159
170
  text: string;
160
- color: import('../../..').LewColor;
161
171
  round: boolean;
162
172
  disabled: boolean;
163
173
  loading: boolean;
@@ -168,6 +178,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
168
178
  hideOkButton: boolean;
169
179
  hideCancelButton: boolean;
170
180
  closeOnClickOverlay: boolean;
181
+ zIndex: number;
171
182
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
172
183
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
173
184
  export default _default;
@@ -69,5 +69,10 @@ export declare const modalProps: {
69
69
  default: boolean;
70
70
  description: string;
71
71
  };
72
+ zIndex: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ description: string;
76
+ };
72
77
  };
73
78
  export type ModalProps = ExtractPropTypes<typeof modalProps>;
@@ -109,9 +109,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
109
109
  placement: import('../../..').PopoverPlacement;
110
110
  okProps: {
111
111
  type: import('../../..').ButtonType;
112
+ color: import('../../..').LewColor;
112
113
  size: import('../../..').ButtonSize;
113
114
  text: string;
114
- color: import('../../..').LewColor;
115
115
  round: boolean;
116
116
  disabled: boolean;
117
117
  loading: boolean;
@@ -121,9 +121,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
121
121
  };
122
122
  cancelProps: {
123
123
  type: import('../../..').ButtonType;
124
+ color: import('../../..').LewColor;
124
125
  size: import('../../..').ButtonSize;
125
126
  text: string;
126
- color: import('../../..').LewColor;
127
127
  round: boolean;
128
128
  disabled: boolean;
129
129
  loading: boolean;
@@ -87,9 +87,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
87
87
  onClose?: ((...args: any[]) => any) | undefined;
88
88
  }>, {
89
89
  type: import('../../..').TagType;
90
+ color: import('../../..').LewColor;
90
91
  size: import('../../..').LewSize;
91
92
  text: string;
92
- color: import('../../..').LewColor;
93
93
  round: boolean;
94
94
  disabled: boolean;
95
95
  closable: boolean;
@@ -40,9 +40,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
40
40
  validator: (value: number) => boolean;
41
41
  };
42
42
  }>> & Readonly<{}>, {
43
+ color: string;
43
44
  size: string | number;
44
45
  bold: number;
45
- color: string;
46
46
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
47
47
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
48
48
  export default _default;
@@ -52,6 +52,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
52
52
  description: string;
53
53
  validator: (value: Function) => boolean;
54
54
  };
55
+ listType: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ description: string;
59
+ validator: (value: string) => boolean;
60
+ };
55
61
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
62
  change: (...args: any[]) => void;
57
63
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
@@ -106,6 +112,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
106
112
  description: string;
107
113
  validator: (value: Function) => boolean;
108
114
  };
115
+ listType: {
116
+ type: StringConstructor;
117
+ default: string;
118
+ description: string;
119
+ validator: (value: string) => boolean;
120
+ };
109
121
  }>> & Readonly<{
110
122
  onChange?: ((...args: any[]) => any) | undefined;
111
123
  }>, {
@@ -118,5 +130,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
118
130
  limit: number;
119
131
  maxFileSize: number;
120
132
  uploadHelper: Function;
133
+ listType: string;
121
134
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
122
135
  export default _default;
@@ -0,0 +1,28 @@
1
+ import { UploadFileItem } from './props';
2
+
3
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
4
+ modelValue: import('vue').PropType<UploadFileItem[]>;
5
+ size: {
6
+ type: PropType<import('../../..').LewSize>;
7
+ default: string;
8
+ description: string;
9
+ validator: (value: import('../../..').LewSize) => boolean;
10
+ };
11
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ reUpload: (...args: any[]) => void;
13
+ deleteFile: (...args: any[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
+ modelValue: import('vue').PropType<UploadFileItem[]>;
16
+ size: {
17
+ type: PropType<import('../../..').LewSize>;
18
+ default: string;
19
+ description: string;
20
+ validator: (value: import('../../..').LewSize) => boolean;
21
+ };
22
+ }>> & Readonly<{
23
+ onReUpload?: ((...args: any[]) => any) | undefined;
24
+ onDeleteFile?: ((...args: any[]) => any) | undefined;
25
+ }>, {
26
+ size: import('../../..').LewSize;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import { UploadFileItem } from './props';
2
+
3
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
4
+ modelValue: import('vue').PropType<UploadFileItem[]>;
5
+ size: {
6
+ type: PropType<import('../../..').LewSize>;
7
+ default: string;
8
+ description: string;
9
+ validator: (value: import('../../..').LewSize) => boolean;
10
+ };
11
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ reUpload: (...args: any[]) => void;
13
+ deleteFile: (...args: any[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
+ modelValue: import('vue').PropType<UploadFileItem[]>;
16
+ size: {
17
+ type: PropType<import('../../..').LewSize>;
18
+ default: string;
19
+ description: string;
20
+ validator: (value: import('../../..').LewSize) => boolean;
21
+ };
22
+ }>> & Readonly<{
23
+ onReUpload?: ((...args: any[]) => any) | undefined;
24
+ onDeleteFile?: ((...args: any[]) => any) | undefined;
25
+ }>, {
26
+ size: import('../../..').LewSize;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -65,5 +65,27 @@ export declare const uploadProps: {
65
65
  description: string;
66
66
  validator: (value: Function) => boolean;
67
67
  };
68
+ listType: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ description: string;
72
+ validator: (value: string) => boolean;
73
+ };
74
+ };
75
+ export declare const uploadByListProps: {
76
+ size: {
77
+ type: PropType<LewSize>;
78
+ default: string;
79
+ description: string;
80
+ validator: (value: LewSize) => boolean;
81
+ };
82
+ };
83
+ export declare const uploadByCardProps: {
84
+ size: {
85
+ type: PropType<LewSize>;
86
+ default: string;
87
+ description: string;
88
+ validator: (value: LewSize) => boolean;
89
+ };
68
90
  };
69
91
  export type UploadProps = ExtractPropTypes<typeof uploadProps>;
@@ -2,9 +2,11 @@ import { default as DemoUpload1 } from './DemoUpload1.vue';
2
2
  import { default as DemoUpload2 } from './DemoUpload2.vue';
3
3
  import { default as DemoUpload3 } from './DemoUpload3.vue';
4
4
  import { default as DemoUpload4 } from './DemoUpload4.vue';
5
+ import { default as DemoUpload5 } from './DemoUpload5.vue';
5
6
  import { default as DemoUpload1Code } from './DemoUpload1.vue?raw';
6
7
  import { default as DemoUpload2Code } from './DemoUpload2.vue?raw';
7
8
  import { default as DemoUpload3Code } from './DemoUpload3.vue?raw';
8
9
  import { default as DemoUpload4Code } from './DemoUpload4.vue?raw';
10
+ import { default as DemoUpload5Code } from './DemoUpload5.vue?raw';
9
11
 
10
- export { DemoUpload1, DemoUpload2, DemoUpload3, DemoUpload4, DemoUpload1Code, DemoUpload2Code, DemoUpload3Code, DemoUpload4Code };
12
+ export { DemoUpload1, DemoUpload2, DemoUpload3, DemoUpload4, DemoUpload5, DemoUpload1Code, DemoUpload2Code, DemoUpload3Code, DemoUpload4Code, DemoUpload5Code };
@@ -410,7 +410,10 @@ export declare const componentsMenusSchema: ({
410
410
  trigger: string;
411
411
  align: string;
412
412
  showCheckIcon: boolean;
413
- options: never[];
413
+ options: {
414
+ label: string;
415
+ value: string;
416
+ }[];
414
417
  type?: undefined;
415
418
  showCount?: undefined;
416
419
  maxLength?: undefined;
@@ -510,6 +513,7 @@ export declare const componentsMenusSchema: ({
510
513
  clearable: boolean;
511
514
  label: string;
512
515
  free: boolean;
516
+ trigger: string;
513
517
  options: {
514
518
  value: number;
515
519
  label: string;
@@ -530,7 +534,6 @@ export declare const componentsMenusSchema: ({
530
534
  round?: undefined;
531
535
  direction?: undefined;
532
536
  iconable?: undefined;
533
- trigger?: undefined;
534
537
  showCheckIcon?: undefined;
535
538
  valueTextSplit?: undefined;
536
539
  valueLayout?: undefined;