ra-element 0.0.58 → 0.0.62

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.
Files changed (32) hide show
  1. package/docs/ra-tool-tip.md +3 -0
  2. package/lib/ExampleItem-DwhALQGq.js +18 -0
  3. package/lib/components/index.d.ts +21 -0
  4. package/lib/components/ra-auto-scroll/index.vue.d.ts +94 -0
  5. package/lib/{ra-button → components/ra-button}/index.vue.d.ts +28 -28
  6. package/lib/components/ra-checkbox-group/index.vue.d.ts +356 -0
  7. package/lib/{ra-date-picker → components/ra-date-picker}/index.vue.d.ts +4 -4
  8. package/lib/{ra-dialog → components/ra-dialog}/index.vue.d.ts +10 -10
  9. package/lib/components/ra-dialog-select/index.vue.d.ts +64 -0
  10. package/lib/components/ra-help-tip/index.vue.d.ts +56 -0
  11. package/lib/components/ra-input/index.vue.d.ts +1063 -0
  12. package/lib/components/ra-pagination/index.vue.d.ts +545 -0
  13. package/lib/components/ra-radio-group/index.vue.d.ts +452 -0
  14. package/lib/components/ra-select/index.vue.d.ts +1687 -0
  15. package/lib/components/ra-svg/index.vue.d.ts +12 -0
  16. package/lib/components/ra-table/component/pagination-group.vue.d.ts +96 -0
  17. package/lib/components/ra-tool-tip/index.vue.d.ts +30 -0
  18. package/lib/components/ra-tree-select/index.vue.d.ts +41 -0
  19. package/lib/components/ra-upload/index.vue.d.ts +151 -0
  20. package/lib/index-CkAUSFIX.js +4 -0
  21. package/lib/index-DE9tcA5I.js +4 -0
  22. package/lib/index-DN2aloZb.js +4 -0
  23. package/lib/index-DPST30-1.js +4 -0
  24. package/lib/index-DUdhhr_j.js +4 -0
  25. package/lib/index-hKxQUnh9.js +4 -0
  26. package/lib/index.d.ts +6 -7
  27. package/lib/ra-element.css +1 -1
  28. package/lib/ra-element.es.js +17399 -15758
  29. package/lib/ra-element.umd.js +19 -19
  30. package/package.json +4 -3
  31. /package/lib/{ra-form → components/ra-form}/type.d.ts +0 -0
  32. /package/lib/{ra-table → components/ra-table}/type.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ ## slots
2
+
3
+ ## props
@@ -0,0 +1,18 @@
1
+ import { defineComponent as t, createElementBlock as o, openBlock as r, toDisplayString as n } from "vue";
2
+ const p = { style: { color: "red" } }, m = /* @__PURE__ */ t({
3
+ name: "ExampleItem",
4
+ __name: "ExampleItem",
5
+ props: {
6
+ // @doc 表格行的对象数据
7
+ row: { type: Object, default: () => ({}) },
8
+ // @doc 表格列的prop
9
+ prop: { type: String, default: "" }
10
+ //option的所有放入配置可以在这里获取,根据你实际传入的来
11
+ },
12
+ setup(e) {
13
+ return (a, c) => (r(), o("span", p, n(e.row[e.prop]), 1));
14
+ }
15
+ });
16
+ export {
17
+ m as default
18
+ };
@@ -0,0 +1,21 @@
1
+ import { App } from 'vue';
2
+ import { default as RaAutoScroll } from './ra-auto-scroll/index.vue';
3
+ import { default as RaButton } from './ra-button/index.vue';
4
+ import { default as RaCheckboxGroup } from './ra-checkbox-group/index.vue';
5
+ import { default as RaDatePicker } from './ra-date-picker/index.vue';
6
+ import { default as RaDialog } from './ra-dialog/index.vue';
7
+ import { default as RaDialogSelect } from './ra-dialog-select/index.vue';
8
+ import { default as RaForm } from './ra-form/index.vue';
9
+ import { default as RaHelpTip } from './ra-help-tip/index.vue';
10
+ import { default as RaInput } from './ra-input/index.vue';
11
+ import { default as RaPagination } from './ra-pagination/index.vue';
12
+ import { default as RaRadioGroup } from './ra-radio-group/index.vue';
13
+ import { default as RaSelect } from './ra-select/index.vue';
14
+ import { default as RaSvg } from './ra-svg/index.vue';
15
+ import { default as RaTable } from './ra-table/index.vue';
16
+ import { default as RaToolTip } from './ra-tool-tip/index.vue';
17
+ import { default as RaTreeSelect } from './ra-tree-select/index.vue';
18
+ import { default as RaUpload } from './ra-upload/index.vue';
19
+ declare const install: (app: App) => void;
20
+ export { RaAutoScroll, RaButton, RaCheckboxGroup, RaDatePicker, RaDialog, RaDialogSelect, RaForm, RaHelpTip, RaInput, RaPagination, RaRadioGroup, RaSelect, RaSvg, RaTable, RaToolTip, RaTreeSelect, RaUpload, };
21
+ export default install;
@@ -0,0 +1,94 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {
7
+ containerRef: HTMLDivElement;
8
+ wrapperRef: HTMLDivElement;
9
+ };
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
14
+ showItems: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ speed: {
19
+ type: NumberConstructor;
20
+ default: number;
21
+ };
22
+ direction: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ validator: (value: string) => boolean;
26
+ };
27
+ pauseOnHover: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ disabled: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ itemWidth: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ itemGap: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ }>, {
44
+ start: () => void;
45
+ stop: () => void;
46
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
47
+ showItems: {
48
+ type: NumberConstructor;
49
+ default: number;
50
+ };
51
+ speed: {
52
+ type: NumberConstructor;
53
+ default: number;
54
+ };
55
+ direction: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ validator: (value: string) => boolean;
59
+ };
60
+ pauseOnHover: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ disabled: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ itemWidth: {
69
+ type: NumberConstructor;
70
+ default: number;
71
+ };
72
+ itemGap: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ };
76
+ }>> & Readonly<{}>, {
77
+ showItems: number;
78
+ speed: number;
79
+ direction: string;
80
+ pauseOnHover: boolean;
81
+ disabled: boolean;
82
+ itemWidth: number;
83
+ itemGap: number;
84
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
85
+ containerRef: HTMLDivElement;
86
+ wrapperRef: HTMLDivElement;
87
+ }, HTMLDivElement>;
88
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
89
+ export default _default;
90
+ type __VLS_WithTemplateSlots<T, S> = T & {
91
+ new (): {
92
+ $slots: S;
93
+ };
94
+ };
@@ -31,7 +31,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
31
31
  readonly disabled: boolean;
32
32
  readonly round: boolean;
33
33
  readonly dark: boolean;
34
- readonly type: "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger";
34
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
35
35
  readonly bg: boolean;
36
36
  readonly loading: boolean;
37
37
  readonly autofocus: boolean;
@@ -42,17 +42,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
42
42
  readonly autoInsertSpace: boolean;
43
43
  }> & Omit<{
44
44
  readonly disabled: boolean;
45
- readonly type: "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger";
45
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
46
+ readonly link: boolean;
47
+ readonly circle: boolean;
48
+ readonly text: boolean;
46
49
  readonly nativeType: "button" | "reset" | "submit";
47
50
  readonly loading: boolean;
48
- readonly text: boolean;
49
- readonly link: boolean;
50
51
  readonly bg: boolean;
51
52
  readonly autofocus: boolean;
52
- readonly circle: boolean;
53
53
  readonly dark: boolean;
54
54
  readonly tag: string | import('vue').Component;
55
- readonly size?: ("" | "small" | "default" | "large") | undefined;
55
+ readonly size?: ("" | "default" | "small" | "large") | undefined;
56
56
  readonly icon?: (string | import('vue').Component) | undefined;
57
57
  readonly loadingIcon?: (string | import('vue').Component) | undefined;
58
58
  readonly plain?: boolean | undefined;
@@ -60,7 +60,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
60
60
  readonly color?: string | undefined;
61
61
  readonly autoInsertSpace?: boolean | undefined;
62
62
  onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
63
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag">;
63
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "type" | "link" | "circle" | "text" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag">;
64
64
  $attrs: {
65
65
  [x: string]: unknown;
66
66
  };
@@ -77,14 +77,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
77
77
  $el: any;
78
78
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
79
79
  readonly size: {
80
- readonly type: import('vue').PropType<"" | "small" | "default" | "large">;
80
+ readonly type: import('vue').PropType<"" | "default" | "small" | "large">;
81
81
  readonly required: false;
82
82
  readonly validator: ((val: unknown) => boolean) | undefined;
83
83
  __epPropKey: true;
84
84
  };
85
85
  readonly disabled: BooleanConstructor;
86
86
  readonly type: {
87
- readonly type: import('vue').PropType<"" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger">;
87
+ readonly type: import('vue').PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
88
88
  readonly required: false;
89
89
  readonly validator: ((val: unknown) => boolean) | undefined;
90
90
  __epPropKey: true;
@@ -170,7 +170,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
170
170
  readonly disabled: boolean;
171
171
  readonly round: boolean;
172
172
  readonly dark: boolean;
173
- readonly type: "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger";
173
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
174
174
  readonly bg: boolean;
175
175
  readonly loading: boolean;
176
176
  readonly autofocus: boolean;
@@ -206,7 +206,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
206
206
  readonly disabled: boolean;
207
207
  readonly round: boolean;
208
208
  readonly dark: boolean;
209
- readonly type: "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger";
209
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
210
210
  readonly bg: boolean;
211
211
  readonly loading: boolean;
212
212
  readonly autofocus: boolean;
@@ -217,14 +217,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
217
217
  readonly autoInsertSpace: boolean;
218
218
  }> & Omit<Readonly<import('vue').ExtractPropTypes<{
219
219
  readonly size: {
220
- readonly type: import('vue').PropType<"" | "small" | "default" | "large">;
220
+ readonly type: import('vue').PropType<"" | "default" | "small" | "large">;
221
221
  readonly required: false;
222
222
  readonly validator: ((val: unknown) => boolean) | undefined;
223
223
  __epPropKey: true;
224
224
  };
225
225
  readonly disabled: BooleanConstructor;
226
226
  readonly type: {
227
- readonly type: import('vue').PropType<"" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger">;
227
+ readonly type: import('vue').PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
228
228
  readonly required: false;
229
229
  readonly validator: ((val: unknown) => boolean) | undefined;
230
230
  __epPropKey: true;
@@ -295,7 +295,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
295
295
  };
296
296
  }>> & {
297
297
  onClick?: ((evt: MouseEvent) => any) | undefined;
298
- }, "size" | "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & import('vue').ShallowUnwrapRef<{
298
+ }, "disabled" | "type" | "link" | "circle" | "text" | "ref" | "size" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag" | "shouldAddSpace"> & import('vue').ShallowUnwrapRef<{
299
299
  ref: import('vue').Ref<HTMLButtonElement | undefined>;
300
300
  size: import('vue').ComputedRef<"" | "small" | "default" | "large">;
301
301
  type: import('vue').ComputedRef<string>;
@@ -317,7 +317,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
317
317
  readonly disabled: boolean;
318
318
  readonly round: boolean;
319
319
  readonly dark: boolean;
320
- readonly type: "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger";
320
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
321
321
  readonly bg: boolean;
322
322
  readonly loading: boolean;
323
323
  readonly autofocus: boolean;
@@ -328,17 +328,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
328
328
  readonly autoInsertSpace: boolean;
329
329
  }> & Omit<{
330
330
  readonly disabled: boolean;
331
- readonly type: "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger";
331
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
332
+ readonly link: boolean;
333
+ readonly circle: boolean;
334
+ readonly text: boolean;
332
335
  readonly nativeType: "button" | "reset" | "submit";
333
336
  readonly loading: boolean;
334
- readonly text: boolean;
335
- readonly link: boolean;
336
337
  readonly bg: boolean;
337
338
  readonly autofocus: boolean;
338
- readonly circle: boolean;
339
339
  readonly dark: boolean;
340
340
  readonly tag: string | import('vue').Component;
341
- readonly size?: ("" | "small" | "default" | "large") | undefined;
341
+ readonly size?: ("" | "default" | "small" | "large") | undefined;
342
342
  readonly icon?: (string | import('vue').Component) | undefined;
343
343
  readonly loadingIcon?: (string | import('vue').Component) | undefined;
344
344
  readonly plain?: boolean | undefined;
@@ -346,7 +346,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
346
346
  readonly color?: string | undefined;
347
347
  readonly autoInsertSpace?: boolean | undefined;
348
348
  onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
349
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag">;
349
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "type" | "link" | "circle" | "text" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag">;
350
350
  $attrs: {
351
351
  [x: string]: unknown;
352
352
  };
@@ -363,14 +363,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
363
363
  $el: any;
364
364
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
365
365
  readonly size: {
366
- readonly type: import('vue').PropType<"" | "small" | "default" | "large">;
366
+ readonly type: import('vue').PropType<"" | "default" | "small" | "large">;
367
367
  readonly required: false;
368
368
  readonly validator: ((val: unknown) => boolean) | undefined;
369
369
  __epPropKey: true;
370
370
  };
371
371
  readonly disabled: BooleanConstructor;
372
372
  readonly type: {
373
- readonly type: import('vue').PropType<"" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger">;
373
+ readonly type: import('vue').PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
374
374
  readonly required: false;
375
375
  readonly validator: ((val: unknown) => boolean) | undefined;
376
376
  __epPropKey: true;
@@ -456,7 +456,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
456
456
  readonly disabled: boolean;
457
457
  readonly round: boolean;
458
458
  readonly dark: boolean;
459
- readonly type: "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger";
459
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
460
460
  readonly bg: boolean;
461
461
  readonly loading: boolean;
462
462
  readonly autofocus: boolean;
@@ -492,7 +492,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
492
492
  readonly disabled: boolean;
493
493
  readonly round: boolean;
494
494
  readonly dark: boolean;
495
- readonly type: "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger";
495
+ readonly type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
496
496
  readonly bg: boolean;
497
497
  readonly loading: boolean;
498
498
  readonly autofocus: boolean;
@@ -503,14 +503,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
503
503
  readonly autoInsertSpace: boolean;
504
504
  }> & Omit<Readonly<import('vue').ExtractPropTypes<{
505
505
  readonly size: {
506
- readonly type: import('vue').PropType<"" | "small" | "default" | "large">;
506
+ readonly type: import('vue').PropType<"" | "default" | "small" | "large">;
507
507
  readonly required: false;
508
508
  readonly validator: ((val: unknown) => boolean) | undefined;
509
509
  __epPropKey: true;
510
510
  };
511
511
  readonly disabled: BooleanConstructor;
512
512
  readonly type: {
513
- readonly type: import('vue').PropType<"" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger">;
513
+ readonly type: import('vue').PropType<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
514
514
  readonly required: false;
515
515
  readonly validator: ((val: unknown) => boolean) | undefined;
516
516
  __epPropKey: true;
@@ -581,7 +581,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
581
581
  };
582
582
  }>> & {
583
583
  onClick?: ((evt: MouseEvent) => any) | undefined;
584
- }, "size" | "disabled" | "type" | "nativeType" | "loading" | "loadingIcon" | "plain" | "text" | "link" | "bg" | "autofocus" | "round" | "circle" | "dark" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & import('vue').ShallowUnwrapRef<{
584
+ }, "disabled" | "type" | "link" | "circle" | "text" | "ref" | "size" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag" | "shouldAddSpace"> & import('vue').ShallowUnwrapRef<{
585
585
  ref: import('vue').Ref<HTMLButtonElement | undefined>;
586
586
  size: import('vue').ComputedRef<"" | "small" | "default" | "large">;
587
587
  type: import('vue').ComputedRef<string>;