ra-element 0.1.52 → 0.1.56

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/docs/ra-upload.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | name | type | desc | default | required |
6
6
  | ---- | ---- | ---- | ------- | -------- |
7
- | action | String | 上传地址 | 'http://10.168.150.66:50283/api/file/upload?filePathPrefix=roadPlan&cjr=1' | |
7
+ | action | String | 上传地址 | '' | |
8
8
  | modelValue | Array as PropType<UploadFileGroup[]> | 默认文件列表 | [] | |
9
9
  | limit | Number | 最大上传数量 | 5 | |
10
10
  | multiple | Boolean | 是否支持多选 | false | |
@@ -6,7 +6,307 @@ declare function __VLS_template(): {
6
6
  icon?(_: {}): any;
7
7
  };
8
8
  refs: {
9
- componentRef: unknown;
9
+ componentRef: ({
10
+ $: import('vue').ComponentInternalInstance;
11
+ $data: {};
12
+ $props: Partial<{
13
+ readonly link: boolean;
14
+ readonly circle: boolean;
15
+ readonly text: boolean;
16
+ readonly disabled: boolean;
17
+ readonly round: boolean;
18
+ readonly dark: boolean;
19
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
20
+ readonly bg: boolean;
21
+ readonly loading: boolean;
22
+ readonly autofocus: boolean;
23
+ readonly tag: string | import('vue').Component;
24
+ readonly plain: boolean;
25
+ readonly autoInsertSpace: boolean;
26
+ readonly nativeType: "button" | "reset" | "submit";
27
+ readonly loadingIcon: string | import('vue').Component;
28
+ }> & Omit<{
29
+ readonly disabled: boolean;
30
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
31
+ readonly link: boolean;
32
+ readonly circle: boolean;
33
+ readonly nativeType: "button" | "reset" | "submit";
34
+ readonly loading: boolean;
35
+ readonly bg: boolean;
36
+ readonly autofocus: boolean;
37
+ readonly dark: boolean;
38
+ readonly tag: string | import('vue').Component;
39
+ readonly text?: boolean | undefined;
40
+ readonly size?: ("" | "default" | "small" | "large") | undefined;
41
+ readonly icon?: (string | import('vue').Component) | undefined;
42
+ readonly loadingIcon?: (string | import('vue').Component) | undefined;
43
+ readonly plain?: boolean | undefined;
44
+ readonly round?: boolean | undefined;
45
+ readonly color?: string | undefined;
46
+ readonly autoInsertSpace?: boolean | undefined;
47
+ onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
48
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "type" | "link" | "circle" | "text" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag">;
49
+ $attrs: {
50
+ [x: string]: unknown;
51
+ };
52
+ $refs: {
53
+ [x: string]: unknown;
54
+ };
55
+ $slots: Readonly<{
56
+ [name: string]: import('vue').Slot<any> | undefined;
57
+ }>;
58
+ $root: import('vue').ComponentPublicInstance | null;
59
+ $parent: import('vue').ComponentPublicInstance | null;
60
+ $host: Element | null;
61
+ $emit: (event: "click", evt: MouseEvent) => void;
62
+ $el: any;
63
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
64
+ readonly size: {
65
+ readonly type: import('vue').PropType<"" | "default" | "small" | "large">;
66
+ readonly required: false;
67
+ readonly validator: ((val: unknown) => boolean) | undefined;
68
+ __epPropKey: true;
69
+ };
70
+ readonly disabled: BooleanConstructor;
71
+ readonly type: {
72
+ readonly type: import('vue').PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
73
+ readonly required: false;
74
+ readonly validator: ((val: unknown) => boolean) | undefined;
75
+ __epPropKey: true;
76
+ } & {
77
+ readonly default: "";
78
+ };
79
+ readonly icon: {
80
+ readonly type: import('vue').PropType<string | import('vue').Component>;
81
+ readonly required: false;
82
+ readonly validator: ((val: unknown) => boolean) | undefined;
83
+ __epPropKey: true;
84
+ };
85
+ readonly nativeType: {
86
+ readonly type: import('vue').PropType<"button" | "reset" | "submit">;
87
+ readonly required: false;
88
+ readonly validator: ((val: unknown) => boolean) | undefined;
89
+ __epPropKey: true;
90
+ } & {
91
+ readonly default: "button";
92
+ };
93
+ readonly loading: BooleanConstructor;
94
+ readonly loadingIcon: {
95
+ readonly type: import('vue').PropType<string | import('vue').Component>;
96
+ readonly required: false;
97
+ readonly validator: ((val: unknown) => boolean) | undefined;
98
+ __epPropKey: true;
99
+ } & {
100
+ readonly default: () => any;
101
+ };
102
+ readonly plain: {
103
+ readonly type: import('vue').PropType<boolean>;
104
+ readonly required: false;
105
+ readonly validator: ((val: unknown) => boolean) | undefined;
106
+ __epPropKey: true;
107
+ } & {
108
+ readonly default: undefined;
109
+ };
110
+ readonly text: {
111
+ readonly type: import('vue').PropType<boolean>;
112
+ readonly required: false;
113
+ readonly validator: ((val: unknown) => boolean) | undefined;
114
+ __epPropKey: true;
115
+ } & {
116
+ readonly default: undefined;
117
+ };
118
+ readonly link: BooleanConstructor;
119
+ readonly bg: BooleanConstructor;
120
+ readonly autofocus: BooleanConstructor;
121
+ readonly round: {
122
+ readonly type: import('vue').PropType<boolean>;
123
+ readonly required: false;
124
+ readonly validator: ((val: unknown) => boolean) | undefined;
125
+ __epPropKey: true;
126
+ } & {
127
+ readonly default: undefined;
128
+ };
129
+ readonly circle: BooleanConstructor;
130
+ readonly color: StringConstructor;
131
+ readonly dark: BooleanConstructor;
132
+ readonly autoInsertSpace: {
133
+ readonly type: import('vue').PropType<boolean>;
134
+ readonly required: false;
135
+ readonly validator: ((val: unknown) => boolean) | undefined;
136
+ __epPropKey: true;
137
+ } & {
138
+ readonly default: undefined;
139
+ };
140
+ readonly tag: {
141
+ readonly type: import('vue').PropType<string | import('vue').Component>;
142
+ readonly required: false;
143
+ readonly validator: ((val: unknown) => boolean) | undefined;
144
+ __epPropKey: true;
145
+ } & {
146
+ readonly default: "button";
147
+ };
148
+ }>> & {
149
+ onClick?: ((evt: MouseEvent) => any) | undefined;
150
+ }, {
151
+ ref: import('vue').Ref<HTMLButtonElement | undefined>;
152
+ size: import('vue').ComputedRef<"" | "small" | "default" | "large">;
153
+ type: import('vue').ComputedRef<string>;
154
+ disabled: import('vue').ComputedRef<boolean>;
155
+ shouldAddSpace: import('vue').ComputedRef<boolean>;
156
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
157
+ click: (evt: MouseEvent) => void;
158
+ }, string, {
159
+ readonly link: boolean;
160
+ readonly circle: boolean;
161
+ readonly text: boolean;
162
+ readonly disabled: boolean;
163
+ readonly round: boolean;
164
+ readonly dark: boolean;
165
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
166
+ readonly bg: boolean;
167
+ readonly loading: boolean;
168
+ readonly autofocus: boolean;
169
+ readonly tag: string | import('vue').Component;
170
+ readonly plain: boolean;
171
+ readonly autoInsertSpace: boolean;
172
+ readonly nativeType: "button" | "reset" | "submit";
173
+ readonly loadingIcon: string | import('vue').Component;
174
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
175
+ beforeCreate?: (() => void) | (() => void)[];
176
+ created?: (() => void) | (() => void)[];
177
+ beforeMount?: (() => void) | (() => void)[];
178
+ mounted?: (() => void) | (() => void)[];
179
+ beforeUpdate?: (() => void) | (() => void)[];
180
+ updated?: (() => void) | (() => void)[];
181
+ activated?: (() => void) | (() => void)[];
182
+ deactivated?: (() => void) | (() => void)[];
183
+ beforeDestroy?: (() => void) | (() => void)[];
184
+ beforeUnmount?: (() => void) | (() => void)[];
185
+ destroyed?: (() => void) | (() => void)[];
186
+ unmounted?: (() => void) | (() => void)[];
187
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
188
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
189
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
190
+ };
191
+ $forceUpdate: () => void;
192
+ $nextTick: typeof import('vue').nextTick;
193
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
194
+ } & Readonly<{
195
+ readonly link: boolean;
196
+ readonly circle: boolean;
197
+ readonly text: boolean;
198
+ readonly disabled: boolean;
199
+ readonly round: boolean;
200
+ readonly dark: boolean;
201
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
202
+ readonly bg: boolean;
203
+ readonly loading: boolean;
204
+ readonly autofocus: boolean;
205
+ readonly tag: string | import('vue').Component;
206
+ readonly plain: boolean;
207
+ readonly autoInsertSpace: boolean;
208
+ readonly nativeType: "button" | "reset" | "submit";
209
+ readonly loadingIcon: string | import('vue').Component;
210
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
211
+ readonly size: {
212
+ readonly type: import('vue').PropType<"" | "default" | "small" | "large">;
213
+ readonly required: false;
214
+ readonly validator: ((val: unknown) => boolean) | undefined;
215
+ __epPropKey: true;
216
+ };
217
+ readonly disabled: BooleanConstructor;
218
+ readonly type: {
219
+ readonly type: import('vue').PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
220
+ readonly required: false;
221
+ readonly validator: ((val: unknown) => boolean) | undefined;
222
+ __epPropKey: true;
223
+ } & {
224
+ readonly default: "";
225
+ };
226
+ readonly icon: {
227
+ readonly type: import('vue').PropType<string | import('vue').Component>;
228
+ readonly required: false;
229
+ readonly validator: ((val: unknown) => boolean) | undefined;
230
+ __epPropKey: true;
231
+ };
232
+ readonly nativeType: {
233
+ readonly type: import('vue').PropType<"button" | "reset" | "submit">;
234
+ readonly required: false;
235
+ readonly validator: ((val: unknown) => boolean) | undefined;
236
+ __epPropKey: true;
237
+ } & {
238
+ readonly default: "button";
239
+ };
240
+ readonly loading: BooleanConstructor;
241
+ readonly loadingIcon: {
242
+ readonly type: import('vue').PropType<string | import('vue').Component>;
243
+ readonly required: false;
244
+ readonly validator: ((val: unknown) => boolean) | undefined;
245
+ __epPropKey: true;
246
+ } & {
247
+ readonly default: () => any;
248
+ };
249
+ readonly plain: {
250
+ readonly type: import('vue').PropType<boolean>;
251
+ readonly required: false;
252
+ readonly validator: ((val: unknown) => boolean) | undefined;
253
+ __epPropKey: true;
254
+ } & {
255
+ readonly default: undefined;
256
+ };
257
+ readonly text: {
258
+ readonly type: import('vue').PropType<boolean>;
259
+ readonly required: false;
260
+ readonly validator: ((val: unknown) => boolean) | undefined;
261
+ __epPropKey: true;
262
+ } & {
263
+ readonly default: undefined;
264
+ };
265
+ readonly link: BooleanConstructor;
266
+ readonly bg: BooleanConstructor;
267
+ readonly autofocus: BooleanConstructor;
268
+ readonly round: {
269
+ readonly type: import('vue').PropType<boolean>;
270
+ readonly required: false;
271
+ readonly validator: ((val: unknown) => boolean) | undefined;
272
+ __epPropKey: true;
273
+ } & {
274
+ readonly default: undefined;
275
+ };
276
+ readonly circle: BooleanConstructor;
277
+ readonly color: StringConstructor;
278
+ readonly dark: BooleanConstructor;
279
+ readonly autoInsertSpace: {
280
+ readonly type: import('vue').PropType<boolean>;
281
+ readonly required: false;
282
+ readonly validator: ((val: unknown) => boolean) | undefined;
283
+ __epPropKey: true;
284
+ } & {
285
+ readonly default: undefined;
286
+ };
287
+ readonly tag: {
288
+ readonly type: import('vue').PropType<string | import('vue').Component>;
289
+ readonly required: false;
290
+ readonly validator: ((val: unknown) => boolean) | undefined;
291
+ __epPropKey: true;
292
+ } & {
293
+ readonly default: "button";
294
+ };
295
+ }>> & {
296
+ onClick?: ((evt: MouseEvent) => any) | undefined;
297
+ }, "disabled" | "type" | "link" | "circle" | "text" | "ref" | "size" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag" | "shouldAddSpace"> & import('vue').ShallowUnwrapRef<{
298
+ ref: import('vue').Ref<HTMLButtonElement | undefined>;
299
+ size: import('vue').ComputedRef<"" | "small" | "default" | "large">;
300
+ type: import('vue').ComputedRef<string>;
301
+ disabled: import('vue').ComputedRef<boolean>;
302
+ shouldAddSpace: import('vue').ComputedRef<boolean>;
303
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
304
+ $slots: {
305
+ loading?(_: {}): any;
306
+ icon?(_: {}): any;
307
+ default?(_: {}): any;
308
+ };
309
+ }) | null;
10
310
  };
11
311
  rootEl: any;
12
312
  };
@@ -21,7 +321,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
21
321
  default: string;
22
322
  };
23
323
  }>, {
24
- component: import('vue').Ref<({
324
+ component: Readonly<import('vue').ShallowRef<({
25
325
  $: import('vue').ComponentInternalInstance;
26
326
  $data: {};
27
327
  $props: Partial<{
@@ -321,7 +621,25 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
321
621
  icon?(_: {}): any;
322
622
  default?(_: {}): any;
323
623
  };
324
- }) | null, ({
624
+ }) | null>>;
625
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
626
+ click: (...args: any[]) => void;
627
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
628
+ click: {
629
+ type: FunctionConstructor;
630
+ default: undefined;
631
+ };
632
+ cssStyle: {
633
+ type: StringConstructor;
634
+ default: string;
635
+ };
636
+ }>> & Readonly<{
637
+ onClick?: ((...args: any[]) => any) | undefined;
638
+ }>, {
639
+ click: Function;
640
+ cssStyle: string;
641
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
642
+ componentRef: ({
325
643
  $: import('vue').ComponentInternalInstance;
326
644
  $data: {};
327
645
  $props: Partial<{
@@ -621,25 +939,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
621
939
  icon?(_: {}): any;
622
940
  default?(_: {}): any;
623
941
  };
624
- }) | null>;
625
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
626
- click: (...args: any[]) => void;
627
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
628
- click: {
629
- type: FunctionConstructor;
630
- default: undefined;
631
- };
632
- cssStyle: {
633
- type: StringConstructor;
634
- default: string;
635
- };
636
- }>> & Readonly<{
637
- onClick?: ((...args: any[]) => any) | undefined;
638
- }>, {
639
- click: Function;
640
- cssStyle: string;
641
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
642
- componentRef: unknown;
942
+ }) | null;
643
943
  }, any>;
644
944
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
645
945
  export default _default;