ra-element 0.2.4 → 0.2.7

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.
@@ -1,4 +1,4 @@
1
- import { App } from 'vue';
1
+ import { Plugin } from 'vue';
2
2
  import { default as RaAutoScroll } from './ra-auto-scroll/index.vue';
3
3
  import { default as RaButton } from './ra-button/index.vue';
4
4
  import { default as RaCheckboxGroup } from './ra-checkbox-group/index.vue';
@@ -19,14 +19,12 @@ import { default as RaToolTip } from './ra-tool-tip/index.vue';
19
19
  import { default as RaTreeSelect } from './ra-tree-select/index.vue';
20
20
  import { default as RaUpload } from './ra-upload/index.vue';
21
21
  import { setGlobalDefaultCssStyle } from '../utils';
22
- interface RaElementPlugin {
23
- (app: App, options?: {
24
- defaultCssStyle?: string;
25
- }): void;
22
+ interface Options {
23
+ defaultCssStyle?: string;
26
24
  }
27
- declare const install: RaElementPlugin;
28
- export { RaAutoScroll, RaButton, RaCheckboxGroup, RaDatePicker, RaDialog, RaDialogSelect, RaForm, RaFormItem, RaHelpTip, RaInput, RaPagination, RaRadioGroup, RaSelect, RaSvg, RaTable, RaTextarea, RaToolTip, RaTreeSelect, RaUpload, setGlobalDefaultCssStyle, };
25
+ declare const install: Plugin<[Options?]>;
29
26
  export default install;
27
+ export { RaAutoScroll, RaButton, RaCheckboxGroup, RaDatePicker, RaDialog, RaDialogSelect, RaForm, RaFormItem, RaHelpTip, RaInput, RaPagination, RaRadioGroup, RaSelect, RaSvg, RaTable, RaTextarea, RaToolTip, RaTreeSelect, RaUpload, setGlobalDefaultCssStyle, };
30
28
  declare module 'vue' {
31
29
  interface GlobalComponents {
32
30
  RaAutoScroll: typeof RaAutoScroll;
@@ -3261,8 +3261,8 @@ const ja = (e, t = "label", a = "value", n = "children", l = "1") => !Array.isAr
3261
3261
  $i,
3262
3262
  De,
3263
3263
  ji
3264
- ], Ui = (e, t) => {
3265
- sn(t?.defaultCssStyle ?? ""), Li.forEach((a) => {
3264
+ ], Ui = (e, t = {}) => {
3265
+ sn(t.defaultCssStyle ?? ""), Li.forEach((a) => {
3266
3266
  e.component(a.name, a);
3267
3267
  });
3268
3268
  };