@maxtropy/v-components 0.1.17-beta.3 → 0.1.17-beta.30

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 (34) hide show
  1. package/dist/mx-vcomponents.es.js +44794 -16607
  2. package/dist/style.css +1 -1
  3. package/dist/types/components/dialog/MxDialog.vue.d.ts +2 -2
  4. package/dist/types/components/dropdown/MxDropdown.vue.d.ts +12 -4
  5. package/dist/types/components/dropdown/index.d.ts +6 -4
  6. package/dist/types/components/echartsWithTheme/MxEchartsWithTheme.vue.d.ts +55 -0
  7. package/dist/types/components/echartsWithTheme/darkTheme.d.ts +104 -0
  8. package/dist/types/components/echartsWithTheme/index.d.ts +7 -0
  9. package/dist/types/components/echartsWithTheme/lightTheme.d.ts +104 -0
  10. package/dist/types/components/echartsWithTheme/pluginsEcharts.d.ts +2 -0
  11. package/dist/types/components/echartsWithTheme/utils.d.ts +10 -0
  12. package/dist/types/components/filter/MxFilter.vue.d.ts +1 -1
  13. package/dist/types/components/form/MxForm.vue.d.ts +3 -3
  14. package/dist/types/components/form/MxFormItem.vue.d.ts +1 -1
  15. package/dist/types/components/form/index.d.ts +3 -3
  16. package/dist/types/components/index.d.ts +5 -6
  17. package/dist/types/components/loading/common/LoadingCore.vue.d.ts +31 -0
  18. package/dist/types/components/loading/common/loadingStyles.d.ts +1 -0
  19. package/dist/types/components/loading/directive.d.ts +8 -0
  20. package/dist/types/components/loading/index.d.ts +5 -0
  21. package/dist/types/components/loading/service.d.ts +7 -0
  22. package/dist/types/components/loading/types.d.ts +18 -0
  23. package/dist/types/components/pagination/MxPagination.vue.d.ts +1 -1
  24. package/dist/types/components/popconfirm/MxPopconfirm.vue.d.ts +2 -2
  25. package/dist/types/components/popover/MxPopover.vue.d.ts +22 -0
  26. package/dist/types/components/popover/index.d.ts +7 -0
  27. package/dist/types/components/select/MxSelect.vue.d.ts +4 -1
  28. package/dist/types/components/tree/MxTree.vue.d.ts +2 -2
  29. package/dist/types/components/treeselect/MxTreeSelect.vue.d.ts +74 -1
  30. package/dist/types/components/upload/MxUpload.vue.d.ts +1 -1
  31. package/dist/types/index.d.ts +2 -0
  32. package/dist/types/theme/index.d.ts +8 -4
  33. package/dist/types/utils/micro.d.ts +27 -0
  34. package/package.json +4 -2
@@ -68,7 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
68
68
  __epPropKey: true;
69
69
  };
70
70
  fullscreen: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
71
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "cancel")[], "confirm" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
71
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
72
72
  size: {
73
73
  type: PropType<ModalSizeType>;
74
74
  default: string;
@@ -137,8 +137,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
137
137
  };
138
138
  fullscreen: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
139
139
  }>> & {
140
- onConfirm?: ((...args: any[]) => any) | undefined;
141
140
  onCancel?: ((...args: any[]) => any) | undefined;
141
+ onConfirm?: ((...args: any[]) => any) | undefined;
142
142
  }, {
143
143
  title: string;
144
144
  center: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -6,7 +6,7 @@ type OptionType = {
6
6
  divided?: boolean;
7
7
  icon?: string | Component;
8
8
  };
9
- declare const _default: import("vue").DefineComponent<{
9
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
10
10
  type: {
11
11
  type: PropType<"" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger" | "dashed">;
12
12
  validator: (value: string) => boolean;
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
22
22
  };
23
23
  options: {
24
24
  type: PropType<OptionType[]>;
25
- required: true;
25
+ default: () => never[];
26
26
  };
27
27
  perIcon: {
28
28
  type: PropType<string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
48
48
  };
49
49
  options: {
50
50
  type: PropType<OptionType[]>;
51
- required: true;
51
+ default: () => never[];
52
52
  };
53
53
  perIcon: {
54
54
  type: PropType<string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
@@ -62,7 +62,15 @@ declare const _default: import("vue").DefineComponent<{
62
62
  link: boolean;
63
63
  type: "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger" | "dashed";
64
64
  disabled: boolean;
65
+ options: OptionType[];
65
66
  menuName: string;
66
67
  perIcon: string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
67
- }, {}>;
68
+ }, {}>, {
69
+ default?(_: {}): any;
70
+ }>;
68
71
  export default _default;
72
+ type __VLS_WithTemplateSlots<T, S> = T & {
73
+ new (): {
74
+ $slots: S;
75
+ };
76
+ };
@@ -1,13 +1,15 @@
1
1
  import MxDropdown from './MxDropdown.vue';
2
+ import DropdownMenu from './MxDropDownMenu.vue';
3
+ import DropdownItem from './MxDropDownItem.vue';
2
4
  declare module 'vue' {
3
5
  interface GlobalComponents {
4
6
  MxDropdown: typeof MxDropdown;
5
- MxDropDownMenu: typeof MxDropDownMenu;
6
- MxDropDownItem: typeof MxDropDownItem;
7
+ MxDropdownMenu: typeof DropdownMenu;
8
+ MxDropdownItem: typeof DropdownItem;
7
9
  }
8
10
  }
9
11
  export default MxDropdown;
10
- export declare const MxDropDownMenu: {
12
+ export declare const MxDropdownMenu: {
11
13
  new (...args: any[]): {
12
14
  $: import("vue").ComponentInternalInstance;
13
15
  $data: {};
@@ -97,7 +99,7 @@ export declare const MxDropDownMenu: {
97
99
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
98
100
  $slots: Partial<Record<NonNullable<string | number>, (_: {}) => any>>;
99
101
  });
100
- export declare const MxDropDownItem: {
102
+ export declare const MxDropdownItem: {
101
103
  new (...args: any[]): {
102
104
  $: import("vue").ComponentInternalInstance;
103
105
  $data: {};
@@ -0,0 +1,55 @@
1
+ import './pluginsEcharts';
2
+ import { Themes } from '../..';
3
+ declare function getInstance(): import("echarts/types/dist/shared").EChartsType | null | undefined;
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
5
+ option: any;
6
+ theme: Themes;
7
+ className?: string | undefined;
8
+ style?: any;
9
+ loading?: boolean | undefined;
10
+ type?: string | undefined;
11
+ onEvents?: Record<string, Function> | undefined;
12
+ empty?: {
13
+ isShowEmpty: boolean;
14
+ } | undefined;
15
+ params?: {
16
+ dataZoomExit?: boolean | undefined;
17
+ XTimeFormat?: string | undefined;
18
+ YUnit?: string[] | undefined;
19
+ } | undefined;
20
+ }>, {
21
+ getInstance: typeof getInstance;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
23
+ option: any;
24
+ theme: Themes;
25
+ className?: string | undefined;
26
+ style?: any;
27
+ loading?: boolean | undefined;
28
+ type?: string | undefined;
29
+ onEvents?: Record<string, Function> | undefined;
30
+ empty?: {
31
+ isShowEmpty: boolean;
32
+ } | undefined;
33
+ params?: {
34
+ dataZoomExit?: boolean | undefined;
35
+ XTimeFormat?: string | undefined;
36
+ YUnit?: string[] | undefined;
37
+ } | undefined;
38
+ }>>>, {}, {}>, {
39
+ empty?(_: {}): any;
40
+ }>;
41
+ export default _default;
42
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
+ type __VLS_TypePropsToRuntimeProps<T> = {
44
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
45
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
+ } : {
47
+ type: import('vue').PropType<T[K]>;
48
+ required: true;
49
+ };
50
+ };
51
+ type __VLS_WithTemplateSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };
@@ -0,0 +1,104 @@
1
+ export declare const darkTheme: (type?: string, XTimeFormat?: string, YUnit?: string[]) => {
2
+ title: {
3
+ textStyle: {
4
+ color: string;
5
+ fontSize: number;
6
+ fontWeight?: undefined;
7
+ };
8
+ subtextStyle: {
9
+ color: string;
10
+ fontSize: number;
11
+ };
12
+ left?: undefined;
13
+ };
14
+ legend: {
15
+ textStyle: {
16
+ color: string;
17
+ };
18
+ inactiveColor?: undefined;
19
+ };
20
+ tooltip: {
21
+ backgroundColor: string;
22
+ borderColor: string;
23
+ padding: number[];
24
+ textStyle: {
25
+ color: string;
26
+ };
27
+ trigger?: undefined;
28
+ formatter?: undefined;
29
+ };
30
+ backgroundColor?: undefined;
31
+ grid?: undefined;
32
+ dataZoom?: undefined;
33
+ xAxis?: undefined;
34
+ yAxis?: undefined;
35
+ } | {
36
+ backgroundColor: string;
37
+ grid: {
38
+ left: number;
39
+ right: number;
40
+ top: number;
41
+ bottom: number;
42
+ containLabel: boolean;
43
+ };
44
+ title: {
45
+ textStyle: {
46
+ color: string;
47
+ fontSize: number;
48
+ fontWeight: number;
49
+ };
50
+ left: number;
51
+ subtextStyle?: undefined;
52
+ };
53
+ legend: {
54
+ textStyle: {
55
+ color: string;
56
+ };
57
+ inactiveColor: string;
58
+ };
59
+ tooltip: {
60
+ trigger: string;
61
+ backgroundColor: string;
62
+ borderColor: string;
63
+ padding: number[];
64
+ textStyle: {
65
+ color: string;
66
+ };
67
+ formatter: (items: any) => string;
68
+ };
69
+ dataZoom: {
70
+ type: string;
71
+ bottom: number;
72
+ left: number;
73
+ right: number;
74
+ height: number;
75
+ textStyle: {
76
+ fontSize: number;
77
+ };
78
+ };
79
+ xAxis: {
80
+ axisLabel: {
81
+ color: string;
82
+ };
83
+ axisLine: {
84
+ show: boolean;
85
+ lineStyle: {
86
+ color: string;
87
+ };
88
+ };
89
+ };
90
+ yAxis: {
91
+ nameTextStyle: {
92
+ color: string;
93
+ };
94
+ axisLabel: {
95
+ color: string;
96
+ };
97
+ splitLine: {
98
+ show: boolean;
99
+ lineStyle: {
100
+ color: string;
101
+ };
102
+ };
103
+ };
104
+ };
@@ -0,0 +1,7 @@
1
+ import MxEcharts from './MxEchartsWithTheme.vue';
2
+ declare module 'vue' {
3
+ interface GlobalComponents {
4
+ MxEcharts: typeof MxEcharts;
5
+ }
6
+ }
7
+ export default MxEcharts;
@@ -0,0 +1,104 @@
1
+ export declare const lightTheme: (type?: string, XTimeFormat?: string, YUnit?: string[]) => {
2
+ title: {
3
+ textStyle: {
4
+ color: string;
5
+ fontSize: number;
6
+ fontWeight?: undefined;
7
+ };
8
+ subtextStyle: {
9
+ color: string;
10
+ fontSize: number;
11
+ };
12
+ left?: undefined;
13
+ };
14
+ legend: {
15
+ textStyle: {
16
+ color: string;
17
+ };
18
+ inactiveColor?: undefined;
19
+ };
20
+ tooltip: {
21
+ backgroundColor: string;
22
+ borderColor: string;
23
+ padding: number[];
24
+ textStyle: {
25
+ color: string;
26
+ };
27
+ trigger?: undefined;
28
+ formatter?: undefined;
29
+ };
30
+ backgroundColor?: undefined;
31
+ grid?: undefined;
32
+ dataZoom?: undefined;
33
+ xAxis?: undefined;
34
+ yAxis?: undefined;
35
+ } | {
36
+ backgroundColor: string;
37
+ grid: {
38
+ left: number;
39
+ right: number;
40
+ top: number;
41
+ bottom: number;
42
+ containLabel: boolean;
43
+ };
44
+ title: {
45
+ textStyle: {
46
+ color: string;
47
+ fontSize: number;
48
+ fontWeight: number;
49
+ };
50
+ left: number;
51
+ subtextStyle?: undefined;
52
+ };
53
+ legend: {
54
+ textStyle: {
55
+ color: string;
56
+ };
57
+ inactiveColor: string;
58
+ };
59
+ tooltip: {
60
+ trigger: string;
61
+ backgroundColor: string;
62
+ borderColor: string;
63
+ padding: number[];
64
+ textStyle: {
65
+ color: string;
66
+ };
67
+ formatter: (items: any) => string;
68
+ };
69
+ dataZoom: {
70
+ type: string;
71
+ bottom: number;
72
+ left: number;
73
+ right: number;
74
+ height: number;
75
+ textStyle: {
76
+ fontSize: number;
77
+ };
78
+ };
79
+ xAxis: {
80
+ axisLabel: {
81
+ color: string;
82
+ };
83
+ axisLine: {
84
+ show: boolean;
85
+ lineStyle: {
86
+ color: string;
87
+ };
88
+ };
89
+ };
90
+ yAxis: {
91
+ nameTextStyle: {
92
+ color: string;
93
+ };
94
+ axisLabel: {
95
+ color: string;
96
+ };
97
+ splitLine: {
98
+ show: boolean;
99
+ lineStyle: {
100
+ color: string;
101
+ };
102
+ };
103
+ };
104
+ };
@@ -0,0 +1,2 @@
1
+ import * as echarts from 'echarts/core';
2
+ export default echarts;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 深层次合并对象(可以支持无限层级的递归合并),数组不合并,直接用后者替换
3
+ * @param target 目标对象(被合并到)
4
+ * @param sources 其他对象(合并来源)
5
+ * @returns 合并后的新对象
6
+ */
7
+ export declare function deepMergeWithArray(target: any, sources: any): any;
8
+ export declare function wrapArrayObj(baseYAxis: any, input: any): any[];
9
+ export declare function resolveCSSVars(colorList?: string[]): string[];
10
+ export declare const formatOptions: (themeOptions: any, option: any, dataZoomExit?: boolean) => any;
@@ -67,9 +67,9 @@ declare const _default: import("vue").DefineComponent<{
67
67
  }>>, {
68
68
  onReset: Function;
69
69
  model: Record<string, any>;
70
+ rules: Record<string, any>;
70
71
  collapseOpen: boolean;
71
72
  colSpan: number;
72
- rules: Record<string, any>;
73
73
  hasClear: boolean;
74
74
  isPageFilter: boolean;
75
75
  }, {}>;
@@ -102,14 +102,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
102
102
  disabled: BooleanConstructor;
103
103
  }>>, {
104
104
  disabled: boolean;
105
- labelWidth: import("element-plus/es/utils/index.js").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
106
- inlineMessage: boolean;
107
- showMessage: import("element-plus/es/utils/index.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
108
105
  labelPosition: "top" | "right" | "left";
109
106
  requireAsteriskPosition: import("element-plus/es/utils/index.js").EpPropMergeType<StringConstructor, "right" | "left", unknown>;
107
+ labelWidth: import("element-plus/es/utils/index.js").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
110
108
  labelSuffix: string;
111
109
  inline: boolean;
110
+ inlineMessage: boolean;
112
111
  statusIcon: boolean;
112
+ showMessage: import("element-plus/es/utils/index.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
113
113
  validateOnRuleChange: import("element-plus/es/utils/index.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
114
114
  hideRequiredAsterisk: import("element-plus/es/utils/index.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
115
115
  scrollToError: boolean;
@@ -90,10 +90,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
90
90
  label: string;
91
91
  required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
92
92
  icon: boolean | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
93
- iconTooltip: string;
94
93
  labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
95
94
  inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
96
95
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
96
+ iconTooltip: string;
97
97
  }, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>> & Partial<Record<string, (_: {}) => any>>>;
98
98
  export default _default;
99
99
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -14,10 +14,10 @@ export declare const MxFormItem: {
14
14
  label?: string | undefined;
15
15
  required?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
16
16
  icon?: boolean | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | undefined;
17
- iconTooltip?: string | undefined;
18
17
  labelWidth?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
19
18
  inlineMessage?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown> | undefined;
20
19
  showMessage?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
20
+ iconTooltip?: string | undefined;
21
21
  key?: string | number | symbol | undefined;
22
22
  ref?: import("vue").VNodeRef | undefined;
23
23
  ref_for?: boolean | undefined;
@@ -129,10 +129,10 @@ export declare const MxFormItem: {
129
129
  label: string;
130
130
  required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
131
131
  icon: boolean | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
132
- iconTooltip: string;
133
132
  labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
134
133
  inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
135
134
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
135
+ iconTooltip: string;
136
136
  }, {}, string, {}> & {
137
137
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
138
138
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -247,10 +247,10 @@ export declare const MxFormItem: {
247
247
  label: string;
248
248
  required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
249
249
  icon: boolean | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
250
- iconTooltip: string;
251
250
  labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
252
251
  inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
253
252
  showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
253
+ iconTooltip: string;
254
254
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
255
255
  $slots: Partial<Record<NonNullable<string | number>, (_: {}) => any>> & Partial<Record<string, (_: {}) => any>>;
256
256
  });
@@ -15,7 +15,8 @@ import BasicLayout from './basiclayout';
15
15
  import AuthorizedPermission from './authorizedpermission';
16
16
  import { usePermission, useStaffTitle, useIntegratedAuthorityList } from '../utils/hooks';
17
17
  import MxTooltip from './tooltip';
18
- import MxDropdown, { MxDropDownItem, MxDropDownMenu } from './dropdown';
18
+ import MxPopover from './popover';
19
+ import MxDropdown, { MxDropdownItem, MxDropdownMenu } from './dropdown';
19
20
  import MxDialog from './dialog';
20
21
  import MxAlert from './alert';
21
22
  import MxTabs, { MxTabPane } from './tabs';
@@ -41,8 +42,6 @@ import MxFormContent from './formContent';
41
42
  import MxFormTitle from './formTitle';
42
43
  import MxSubContent from './subContent';
43
44
  import MxAutocomplete from './autocomplete';
44
- export { MxInput, MxInputNumber, MxButton, MxSwitch, MxSelect, MxOption, MxOptionGroup, MxRadio, MxRadioGroup, MxRadioButton, MxCheckbox, MxCheckboxButton, MxCheckboxGroup, SwitchStaff, HeadNavigation, SiderMenu, UserContent, SystemContent, BreadCrumb, BasicLayout, AuthorizedPermission, usePermission, useStaffTitle, useIntegratedAuthorityList, MxTooltip, MxDropdown, MxDropDownItem, MxDropDownMenu, MxAlert, MxDialog, MxSlider, MxDatePicker, MxTimePicker, MxPopconfirm, MxTree, MxTreeSelect, MxUpload, MxEllipsisSpan, MxEmpty, MxSteps, MxStep, MxTag, MxTable, MxTableColumn, MxPagination, MxForm, MxFormItem, MxTabs, MxTabPane, MxTimeSelect, MxCascader, MxFilter, MxWrapper, MxFormContent, MxFormTitle, MxSubContent, MxAutocomplete, };
45
- declare const _default: {
46
- install: any;
47
- };
48
- export default _default;
45
+ import MxLoading from './loading';
46
+ import MxEcharts from './echartsWithTheme';
47
+ export { MxInput, MxInputNumber, MxButton, MxSwitch, MxSelect, MxOption, MxOptionGroup, MxRadio, MxRadioGroup, MxRadioButton, MxCheckbox, MxCheckboxButton, MxCheckboxGroup, SwitchStaff, HeadNavigation, SiderMenu, UserContent, SystemContent, BreadCrumb, BasicLayout, AuthorizedPermission, usePermission, useStaffTitle, useIntegratedAuthorityList, MxTooltip, MxPopover, MxDropdown, MxDropdownItem, MxDropdownMenu, MxAlert, MxDialog, MxSlider, MxDatePicker, MxTimePicker, MxPopconfirm, MxTree, MxTreeSelect, MxUpload, MxEllipsisSpan, MxEmpty, MxSteps, MxStep, MxTag, MxTable, MxTableColumn, MxPagination, MxForm, MxFormItem, MxTabs, MxTabPane, MxTimeSelect, MxCascader, MxFilter, MxWrapper, MxFormContent, MxFormTitle, MxSubContent, MxAutocomplete, MxLoading, MxEcharts, };
@@ -0,0 +1,31 @@
1
+ import type { PropType } from 'vue';
2
+ import type { LoadingSize } from '../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ text: {
5
+ type: PropType<string | undefined>;
6
+ default: undefined;
7
+ };
8
+ size: {
9
+ type: PropType<LoadingSize>;
10
+ default: string;
11
+ validator: (value: LoadingSize) => boolean;
12
+ };
13
+ }, {
14
+ containerSize: import("vue").ComputedRef<16 | 20 | 32>;
15
+ dotSize: import("vue").ComputedRef<6 | 9 | 12>;
16
+ textSize: import("vue").ComputedRef<12 | 14 | 16>;
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ text: {
19
+ type: PropType<string | undefined>;
20
+ default: undefined;
21
+ };
22
+ size: {
23
+ type: PropType<LoadingSize>;
24
+ default: string;
25
+ validator: (value: LoadingSize) => boolean;
26
+ };
27
+ }>>, {
28
+ text: string | undefined;
29
+ size: LoadingSize;
30
+ }, {}>;
31
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare function addLoadingStyles(): void;
@@ -0,0 +1,8 @@
1
+ import { DirectiveBinding } from 'vue';
2
+ import { LoadingBinding } from './types';
3
+ export declare const loadingDirective: {
4
+ beforeMount(el: HTMLElement, binding: DirectiveBinding<LoadingBinding>): void;
5
+ mounted(el: HTMLElement, binding: DirectiveBinding<LoadingBinding>): void;
6
+ updated(el: HTMLElement, binding: DirectiveBinding<LoadingBinding>): void;
7
+ unmounted(el: HTMLElement): void;
8
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from 'vue';
2
+ import CustomLoading from './service';
3
+ declare const MxLoading: Plugin;
4
+ export { CustomLoading };
5
+ export default MxLoading;
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+ import { LoadingServiceOptions, LoadingServiceInstance } from './types';
3
+ declare const CustomLoading: {
4
+ service: (opts?: LoadingServiceOptions) => LoadingServiceInstance;
5
+ install: (app: App, options?: any) => void;
6
+ };
7
+ export default CustomLoading;
@@ -0,0 +1,18 @@
1
+ export type LoadingBinding = boolean | undefined;
2
+ export type LoadingSize = 'small' | 'middle' | 'large';
3
+ export interface LoadingOptions {
4
+ text?: string;
5
+ background?: string;
6
+ size?: LoadingSize;
7
+ }
8
+ export interface LoadingServiceOptions {
9
+ text?: string;
10
+ background?: string;
11
+ size?: LoadingSize;
12
+ fullscreen?: boolean;
13
+ target?: string | HTMLElement;
14
+ }
15
+ export interface LoadingServiceInstance {
16
+ close: () => void;
17
+ }
18
+ export type LoadingService = (opts?: LoadingServiceOptions) => LoadingServiceInstance;
@@ -26,8 +26,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
26
26
  default: () => number[];
27
27
  };
28
28
  }>>, {
29
- totalCount: number;
30
29
  layout: string;
30
+ totalCount: number;
31
31
  pageSizes: number[];
32
32
  }, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>>>;
33
33
  export default _default;
@@ -36,15 +36,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
36
36
  persistent: BooleanConstructor;
37
37
  width: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 150, boolean>;
38
38
  }>> & {
39
- onConfirm?: ((e: MouseEvent) => any) | undefined;
40
39
  onCancel?: ((e: MouseEvent) => any) | undefined;
40
+ onConfirm?: ((e: MouseEvent) => any) | undefined;
41
41
  }, {
42
42
  width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
43
43
  icon: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
44
44
  teleported: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
45
45
  confirmButtonLoading: boolean;
46
- persistent: boolean;
47
46
  hideAfter: number;
47
+ persistent: boolean;
48
48
  confirmButtonType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger", unknown>;
49
49
  cancelButtonType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger", unknown>;
50
50
  iconColor: string;
@@ -0,0 +1,22 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ popperClass: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ popperClass: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ }>>, {
12
+ popperClass: string;
13
+ }, {}>, {
14
+ reference?(_: {}): any;
15
+ default?(_: {}): any;
16
+ }>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,7 @@
1
+ import MxPopover from './MxPopover.vue';
2
+ declare module 'vue' {
3
+ interface GlobalComponents {
4
+ MxPopover: typeof MxPopover;
5
+ }
6
+ }
7
+ export default MxPopover;
@@ -1,4 +1,7 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>>>;
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {
2
+ focus: () => void | undefined;
3
+ blur: () => void | undefined;
4
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>>>;
2
5
  export default _default;
3
6
  type __VLS_WithTemplateSlots<T, S> = T & {
4
7
  new (): {