@maxtropy/v-components 0.1.9-beta.1 → 0.1.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.
@@ -0,0 +1,48 @@
1
+ export declare type ModalSizeType = 'small' | 'normal' | 'large' | 'big';
2
+ export interface Props {
3
+ size?: ModalSizeType;
4
+ bodyScroll?: boolean;
5
+ confirmButtonText?: string;
6
+ cancelButtonText?: string;
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
+ size: string;
10
+ confirmButtonText: string;
11
+ cancelButtonText: string;
12
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "cancel")[], "confirm" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
+ size: string;
14
+ confirmButtonText: string;
15
+ cancelButtonText: string;
16
+ }>>> & {
17
+ onConfirm?: ((...args: any[]) => any) | undefined;
18
+ onCancel?: ((...args: any[]) => any) | undefined;
19
+ }, {
20
+ confirmButtonText: string;
21
+ cancelButtonText: string;
22
+ size: ModalSizeType;
23
+ }>, {
24
+ default?(_: {}): any;
25
+ }>;
26
+ export default _default;
27
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ declare type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
38
+ default: D[K];
39
+ }> : P[K];
40
+ };
41
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
46
+ declare type __VLS_Prettify<T> = {
47
+ [K in keyof T]: T[K];
48
+ } & {};
@@ -0,0 +1,7 @@
1
+ import MxDialog from './MxDialog.vue';
2
+ declare module 'vue' {
3
+ interface GlobalComponents {
4
+ MxDialog: typeof MxDialog;
5
+ }
6
+ }
7
+ export default MxDialog;
@@ -0,0 +1,71 @@
1
+ import { Component, PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ type: {
4
+ type: PropType<"" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger" | "dashed">;
5
+ validator: (value: string) => boolean;
6
+ default: string;
7
+ };
8
+ link: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ menuName: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ options: {
17
+ type: PropType<{
18
+ name: string;
19
+ command: string | number | object;
20
+ disabled: boolean;
21
+ divided: boolean;
22
+ icon: string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
23
+ }[]>;
24
+ default: () => never[];
25
+ };
26
+ perIcon: {
27
+ type: PropType<string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
28
+ default: string;
29
+ };
30
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
+ type: {
32
+ type: PropType<"" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger" | "dashed">;
33
+ validator: (value: string) => boolean;
34
+ default: string;
35
+ };
36
+ link: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ menuName: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ options: {
45
+ type: PropType<{
46
+ name: string;
47
+ command: string | number | object;
48
+ disabled: boolean;
49
+ divided: boolean;
50
+ icon: string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
51
+ }[]>;
52
+ default: () => never[];
53
+ };
54
+ perIcon: {
55
+ type: PropType<string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
56
+ default: string;
57
+ };
58
+ }>>, {
59
+ type: "" | "default" | "success" | "warning" | "info" | "text" | "primary" | "danger" | "dashed";
60
+ link: boolean;
61
+ options: {
62
+ name: string;
63
+ command: string | number | object;
64
+ disabled: boolean;
65
+ divided: boolean;
66
+ icon: string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
67
+ }[];
68
+ menuName: string;
69
+ perIcon: string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
70
+ }>;
71
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import MxDropdown from './MxDropdown.vue';
2
+ declare module 'vue' {
3
+ interface GlobalComponents {
4
+ MxDropdown: typeof MxDropdown;
5
+ }
6
+ }
7
+ export default MxDropdown;
@@ -13,7 +13,10 @@ import BreadCrumb from './breadcrumb';
13
13
  import BasicLayout from './basiclayout';
14
14
  import AuthorizedPermission from './authorizedpermission';
15
15
  import { usePermission, useStaffTitle, useIntegratedAuthorityList } from '../utils/hooks';
16
- export { MxInput, MxButton, MxSwitch, MxSelect, MxOption, MxOptionGroup, MxRadio, MxCheckbox, MxCheckboxButton, MxCheckboxGroup, SwitchStaff, HeadNavigation, SiderMenu, UserContent, SystemContent, BreadCrumb, BasicLayout, AuthorizedPermission, usePermission, useStaffTitle, useIntegratedAuthorityList, };
16
+ import MxTooltip from './tooltip';
17
+ import MxDropdown from './dropdown';
18
+ import MxDialog from './dialog';
19
+ export { MxInput, MxButton, MxSwitch, MxSelect, MxOption, MxOptionGroup, MxRadio, MxCheckbox, MxCheckboxButton, MxCheckboxGroup, SwitchStaff, HeadNavigation, SiderMenu, UserContent, SystemContent, BreadCrumb, BasicLayout, AuthorizedPermission, usePermission, useStaffTitle, useIntegratedAuthorityList, MxTooltip, MxDropdown, MxDialog, };
17
20
  declare const _default: {
18
21
  install: any;
19
22
  };
@@ -0,0 +1,7 @@
1
+ import type { AppContext, Plugin } from 'vue';
2
+ declare type SFCWithInstall<T> = T & Plugin;
3
+ declare type SFCInstallWithContext<T> = SFCWithInstall<T> & {
4
+ _context: AppContext | null;
5
+ };
6
+ export declare const MxMessage: SFCInstallWithContext<import("element-plus").Message>;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { Message } from 'element-plus';
2
+ import './index.scss';
3
+ declare const _default: Message;
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import type { AppContext, Plugin } from 'vue';
2
+ declare type SFCWithInstall<T> = T & Plugin;
3
+ declare type SFCInstallWithContext<T> = SFCWithInstall<T> & {
4
+ _context: AppContext | null;
5
+ };
6
+ export declare const MxMessageBox: SFCInstallWithContext<import("element-plus").IElMessageBox>;
7
+ export {};
@@ -0,0 +1,47 @@
1
+ import { VNode } from 'vue';
2
+ interface Props {
3
+ message: string | VNode;
4
+ showCancelButton?: boolean;
5
+ showConfirmButton?: boolean;
6
+ confirmButtonText?: string;
7
+ cancelButtonText?: string;
8
+ closeOnClickModal?: boolean;
9
+ onVanish: () => void;
10
+ }
11
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
+ showCancelButton: boolean;
13
+ showConfirmButton: boolean;
14
+ confirmButtonText: string;
15
+ cancelButtonText: string;
16
+ closeOnClickModal: boolean;
17
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ showCancelButton: boolean;
19
+ showConfirmButton: boolean;
20
+ confirmButtonText: string;
21
+ cancelButtonText: string;
22
+ closeOnClickModal: boolean;
23
+ }>>>, {
24
+ confirmButtonText: string;
25
+ cancelButtonText: string;
26
+ closeOnClickModal: boolean;
27
+ showCancelButton: boolean;
28
+ showConfirmButton: boolean;
29
+ }>;
30
+ export default _default;
31
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: import('vue').PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
40
+ declare type __VLS_WithDefaults<P, D> = {
41
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
+ default: D[K];
43
+ }> : P[K];
44
+ };
45
+ declare type __VLS_Prettify<T> = {
46
+ [K in keyof T]: T[K];
47
+ } & {};
@@ -0,0 +1,4 @@
1
+ import type { IElMessageBox } from 'element-plus';
2
+ import './index.scss';
3
+ declare const _default: IElMessageBox;
4
+ export default _default;
@@ -0,0 +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<string | number, (_: {}) => any>>>;
2
+ export default _default;
3
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
4
+ new (): {
5
+ $slots: S;
6
+ };
7
+ };
@@ -0,0 +1,7 @@
1
+ import MxTooltip from './MxTooltip.vue';
2
+ declare module 'vue' {
3
+ interface GlobalComponents {
4
+ MxTooltip: typeof MxTooltip;
5
+ }
6
+ }
7
+ export default MxTooltip;
@@ -4,6 +4,8 @@ declare const _default: {
4
4
  install: typeof install;
5
5
  };
6
6
  export default _default;
7
+ export * from './components/message';
8
+ export * from './components/messageBox';
7
9
  export * from './components';
8
10
  export * from './constants';
9
11
  export * from './utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxtropy/v-components",
3
- "version": "0.1.9-beta.1",
3
+ "version": "0.1.9",
4
4
  "files": [
5
5
  "dist"
6
6
  ],