ninemoon-ui 0.0.27 → 0.1.1

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 (109) hide show
  1. package/dist/components/alert/alert.d.ts +3 -11
  2. package/dist/components/alert/alertcomponent.vue.d.ts +22 -11
  3. package/dist/components/badge/badge.vue.d.ts +2 -0
  4. package/dist/components/carousel/carousel.vue.d.ts +29 -3
  5. package/dist/components/{tree/tree.vue.d.ts → carousel/clickbutton.vue.d.ts} +6 -19
  6. package/dist/components/check/checkbox.vue.d.ts +24 -16
  7. package/dist/components/check/checkgroup.vue.d.ts +15 -3
  8. package/dist/components/date/datepicker.vue.d.ts +28 -6
  9. package/dist/components/date/datepickerRange.vue.d.ts +15 -4
  10. package/dist/components/form/form.vue.d.ts +7 -20
  11. package/dist/components/form/formlabel.vue.d.ts +3 -3
  12. package/dist/components/form/type.d.ts +11 -0
  13. package/dist/components/icon/add.vue.d.ts +2 -0
  14. package/dist/components/icon/alertTip.vue.d.ts +2 -0
  15. package/dist/components/icon/arrow.vue.d.ts +2 -0
  16. package/dist/components/icon/calendar.vue.d.ts +2 -0
  17. package/dist/components/icon/close.vue.d.ts +2 -0
  18. package/dist/components/icon/dateArrow.vue.d.ts +2 -0
  19. package/dist/components/icon/dateArrowplus.vue.d.ts +2 -0
  20. package/dist/components/icon/delete.vue.d.ts +2 -0
  21. package/dist/components/icon/ellipsis.vue.d.ts +2 -0
  22. package/dist/components/icon/errTip.vue.d.ts +2 -0
  23. package/dist/components/icon/eye.vue.d.ts +2 -0
  24. package/dist/components/icon/infoTip.vue.d.ts +2 -0
  25. package/dist/components/icon/minus.vue.d.ts +2 -0
  26. package/dist/components/icon/successTip.vue.d.ts +2 -0
  27. package/dist/components/icon/turnleft.vue.d.ts +2 -0
  28. package/dist/components/icon/turnright.vue.d.ts +2 -0
  29. package/dist/components/icon/warnTip.vue.d.ts +2 -0
  30. package/dist/components/input/input.vue.d.ts +13 -8
  31. package/dist/components/loadding/loadcomponent.vue.d.ts +24 -4
  32. package/dist/components/loadding/loadding.d.ts +12 -19
  33. package/dist/components/menu/menu.vue.d.ts +13 -3
  34. package/dist/components/message/message.d.ts +68 -14
  35. package/dist/components/message/messagecomponent.vue.d.ts +5 -13
  36. package/dist/components/numberInput/numberinput.vue.d.ts +3 -3
  37. package/dist/components/pagination/pagination.vue.d.ts +24 -0
  38. package/dist/components/popover/poparrow.d.ts +55 -0
  39. package/dist/components/popover/popover.vue.d.ts +10 -4
  40. package/dist/components/radio/radiobox.vue.d.ts +24 -16
  41. package/dist/components/radio/radiogroup.vue.d.ts +15 -3
  42. package/dist/components/scrollBar/movebar.vue.d.ts +2 -2
  43. package/dist/components/scrollBar/scrollBar.vue.d.ts +12 -16
  44. package/dist/components/scrollloading/scrolllead.d.ts +18 -11
  45. package/dist/components/select/select.vue.d.ts +15 -1
  46. package/dist/components/select/selectoption.vue.d.ts +18 -6
  47. package/dist/components/switch/switch.vue.d.ts +14 -14
  48. package/dist/components/table/table.vue.d.ts +20 -9
  49. package/dist/components/table/tableItem.vue.d.ts +10 -4
  50. package/dist/components/tabs/tabs.vue.d.ts +14 -1
  51. package/dist/dialog.css +9 -0
  52. package/dist/directives/arrowKeys.d.ts +10 -0
  53. package/dist/directives/drag.d.ts +20 -0
  54. package/dist/directives/escape.d.ts +7 -0
  55. package/dist/directives/outsideclick.d.ts +14 -0
  56. package/dist/directives/watchwindow.d.ts +13 -0
  57. package/dist/directives/wheel.d.ts +12 -0
  58. package/dist/directives/whitespaceclick.d.ts +12 -0
  59. package/dist/index.css +1186 -873
  60. package/dist/index.d.ts +831 -401
  61. package/dist/index.es.js +22 -23
  62. package/dist/index.umd.js +4019 -3764
  63. package/dist/js/arrow/arrow.js +17 -0
  64. package/dist/js/badge/badge.js +9 -16
  65. package/dist/js/calendar/calendar.js +87 -0
  66. package/dist/js/carousel/carousel.js +101 -117
  67. package/dist/js/carousel/carouselitem.js +1 -7
  68. package/dist/js/check/checkbox.js +38 -4
  69. package/dist/js/check/checkgroup.js +40 -51
  70. package/dist/js/date/datepicker.js +146 -150
  71. package/dist/js/date/datepickerRange.js +265 -354
  72. package/dist/js/dateArrowplus/dateArrowplus.js +25 -0
  73. package/dist/js/delete/delete.js +19 -0
  74. package/dist/js/dialog/dialog.js +41 -57
  75. package/dist/js/form/form.js +30 -38
  76. package/dist/js/form/formlabel.js +99 -130
  77. package/dist/js/image/image.js +199 -149
  78. package/dist/js/index/index.js +605 -507
  79. package/dist/js/input/input.js +60 -43
  80. package/dist/js/menu/menu.js +47 -20
  81. package/dist/js/numberInput/numberinput.js +52 -60
  82. package/dist/js/pagination/pagination.js +125 -156
  83. package/dist/js/popover/popover.js +238 -134
  84. package/dist/js/radio/radiobox.js +37 -4
  85. package/dist/js/radio/radiogroup.js +15 -51
  86. package/dist/js/scrollBar/scrollBar.js +100 -56
  87. package/dist/js/select/select.js +155 -70
  88. package/dist/js/select/selectoption.js +45 -4
  89. package/dist/js/shapeFlag/shapeFlag.js +17 -0
  90. package/dist/js/switch/switch.js +14 -14
  91. package/dist/js/table/table.js +165 -111
  92. package/dist/js/table/tableItem.js +1 -1
  93. package/dist/js/tabs/tabs.js +57 -59
  94. package/dist/js/upload/upload.js +8 -23
  95. package/dist/tabs.css +3 -3
  96. package/dist/types/shapeFlag.d.ts +13 -0
  97. package/dist/{components/utils → utils}/tool.d.ts +11 -4
  98. package/package.json +1 -1
  99. package/dist/badge.css +0 -27
  100. package/dist/carousel.css +0 -13
  101. package/dist/checkgroup.css +0 -41
  102. package/dist/datepickerRange.css +0 -79
  103. package/dist/image.css +0 -8
  104. package/dist/js/getcalendar/getcalendar.js +0 -48
  105. package/dist/js/tree/tree.js +0 -72
  106. package/dist/js/tree/treeleaf.js +0 -116
  107. package/dist/radiogroup.css +0 -44
  108. package/dist/scrollBar.css +0 -37
  109. package/dist/select.css +0 -20
@@ -1,11 +1,3 @@
1
- interface DefaultOption {
2
- callback?: Function;
3
- title: string;
4
- content: string;
5
- sureword: string;
6
- cancelword: string;
7
- bgshow?: boolean;
8
- [key: symbol]: any;
9
- }
10
- declare const AlertCom: (options: DefaultOption, callback?: Function) => Promise<unknown> | undefined;
11
- export default AlertCom;
1
+ import { alertOption } from '../../types/types';
2
+
3
+ export default function AlertFunction(alertoptions: alertOption): Promise<void>;
@@ -1,12 +1,23 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
2
- showTip: import('vue').Ref<boolean, boolean>;
3
- myoption: {
4
- title: string;
5
- content: string;
6
- sureword: string;
7
- cancelword: string;
8
- bgshow?: boolean | undefined;
9
- };
10
- callback: import('vue').Ref<Function, Function>;
11
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ import { alertOption } from '../../types/types';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<alertOption & {
4
+ onClose: Function;
5
+ onConfirm: Function;
6
+ showAlert: boolean;
7
+ }>>, {
8
+ setVisible: (value: boolean) => void;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<alertOption & {
10
+ onClose: Function;
11
+ onConfirm: Function;
12
+ showAlert: boolean;
13
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
14
  export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
@@ -5,6 +5,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
5
5
  value: number | string;
6
6
  max?: number | string;
7
7
  placement?: "rightTop" | "right";
8
+ customClass?: string;
8
9
  }>, {
9
10
  max: number;
10
11
  placement: string;
@@ -12,6 +13,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
12
13
  value: number | string;
13
14
  max?: number | string;
14
15
  placement?: "rightTop" | "right";
16
+ customClass?: string;
15
17
  }>, {
16
18
  max: number;
17
19
  placement: string;
@@ -1,8 +1,29 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import { MyVNode } from '../../types/types';
2
+
3
+ declare function __VLS_template(): Readonly<{
4
+ default: () => MyVNode[];
5
+ }> & {
6
+ default: () => MyVNode[];
7
+ };
8
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
9
  height?: number;
3
- }>, {}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ holdstop?: boolean;
11
+ startindex?: number;
12
+ }>, {
13
+ holdstop: boolean;
14
+ startindex: number;
15
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
16
  height?: number;
5
- }>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ holdstop?: boolean;
18
+ startindex?: number;
19
+ }>, {
20
+ holdstop: boolean;
21
+ startindex: number;
22
+ }>>> & Readonly<{}>, {
23
+ holdstop: boolean;
24
+ startindex: number;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
27
  export default _default;
7
28
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
29
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -21,3 +42,8 @@ type __VLS_WithDefaults<P, D> = {
21
42
  type __VLS_Prettify<T> = {
22
43
  [K in keyof T]: T[K];
23
44
  } & {};
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -1,26 +1,13 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- data: Array<any>;
3
- defaultExpandAll?: boolean;
4
- lazy?: boolean;
5
- defaultCheckedKeys?: Array<string | number>;
6
- nodeKey: string;
2
+ position?: "left" | "right";
7
3
  }>, {
8
- defaultExpandAll: boolean;
9
- lazy: boolean;
10
- }>>, {
11
- getCheckedKeys: (leafOnly?: boolean) => any[];
12
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
- data: Array<any>;
14
- defaultExpandAll?: boolean;
15
- lazy?: boolean;
16
- defaultCheckedKeys?: Array<string | number>;
17
- nodeKey: string;
4
+ position: string;
5
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ position?: "left" | "right";
18
7
  }>, {
19
- defaultExpandAll: boolean;
20
- lazy: boolean;
8
+ position: string;
21
9
  }>>> & Readonly<{}>, {
22
- lazy: boolean;
23
- defaultExpandAll: boolean;
10
+ position: "left" | "right";
24
11
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
12
  export default _default;
26
13
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,14 +1,27 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- label: string | number;
6
- class?: string;
7
- }>, {}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- label: string | number;
9
- class?: string;
10
- }>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
1
+ type CheckboxValue = string | number | symbol;
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ label: CheckboxValue;
4
+ value: CheckboxValue;
5
+ modelValue?: boolean;
6
+ disabled?: boolean;
7
+ button?: boolean;
8
+ }>, {
9
+ disabled: boolean;
10
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:modelValue": (...args: any[]) => void;
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
+ label: CheckboxValue;
14
+ value: CheckboxValue;
15
+ modelValue?: boolean;
16
+ disabled?: boolean;
17
+ button?: boolean;
18
+ }>, {
19
+ disabled: boolean;
20
+ }>>> & Readonly<{
21
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
22
+ }>, {
23
+ disabled: boolean;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
25
  export default _default;
13
26
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
27
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -27,8 +40,3 @@ type __VLS_WithDefaults<P, D> = {
27
40
  type __VLS_Prettify<T> = {
28
41
  [K in keyof T]: T[K];
29
42
  } & {};
30
- type __VLS_WithTemplateSlots<T, S> = T & {
31
- new (): {
32
- $slots: S;
33
- };
34
- };
@@ -1,14 +1,20 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- modelValue: Array<string | number>;
1
+ type CheckboxValue = string | number | symbol;
2
+ declare function __VLS_template(): {
3
+ default?(_: {}): any;
4
+ };
5
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ modelValue: Array<CheckboxValue>;
3
7
  showinput?: boolean;
8
+ disabled?: boolean;
4
9
  }>, {
5
10
  showinput: boolean;
6
11
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
12
  change: (...args: any[]) => void;
8
13
  "update:modelValue": (...args: any[]) => void;
9
14
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
- modelValue: Array<string | number>;
15
+ modelValue: Array<CheckboxValue>;
11
16
  showinput?: boolean;
17
+ disabled?: boolean;
12
18
  }>, {
13
19
  showinput: boolean;
14
20
  }>>> & Readonly<{
@@ -17,6 +23,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
17
23
  }>, {
18
24
  showinput: boolean;
19
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
27
  export default _default;
21
28
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
29
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -35,3 +42,8 @@ type __VLS_WithDefaults<P, D> = {
35
42
  type __VLS_Prettify<T> = {
36
43
  [K in keyof T]: T[K];
37
44
  } & {};
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -1,14 +1,36 @@
1
- type time = {
2
- modelValue: string | Date;
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ modelValue: string | Date | null;
3
3
  type?: string;
4
- };
5
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<time>, {}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ disabled?: boolean;
5
+ disabledDate?: (params: any) => boolean;
6
+ placeholder?: string;
7
+ size?: "large" | "default" | "small";
8
+ }>, {
9
+ disabled: boolean;
10
+ placeholder: string;
11
+ size: string;
12
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
13
  change: (...args: any[]) => void;
7
14
  "update:modelValue": (...args: any[]) => void;
8
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<time>, {}>>> & Readonly<{
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
+ modelValue: string | Date | null;
17
+ type?: string;
18
+ disabled?: boolean;
19
+ disabledDate?: (params: any) => boolean;
20
+ placeholder?: string;
21
+ size?: "large" | "default" | "small";
22
+ }>, {
23
+ disabled: boolean;
24
+ placeholder: string;
25
+ size: string;
26
+ }>>> & Readonly<{
9
27
  onChange?: ((...args: any[]) => any) | undefined;
10
28
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
29
+ }>, {
30
+ size: "large" | "default" | "small";
31
+ disabled: boolean;
32
+ placeholder: string;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
34
  export default _default;
13
35
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
36
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,11 +1,22 @@
1
+ type AllowedType = null | string | Date;
1
2
  type daterangeType = {
2
- modelValue: null | Array<string | null>;
3
+ modelValue: [AllowedType, AllowedType];
4
+ startPlaceholder?: string;
5
+ endPlaceholder?: string;
6
+ disabledDate?: (params: any) => boolean;
7
+ size?: "large" | "default" | "small";
3
8
  };
4
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<daterangeType>, {}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<daterangeType>, {
10
+ size: string;
11
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
12
  "update:modelValue": (...args: any[]) => void;
6
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<daterangeType>, {}>>> & Readonly<{
13
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<daterangeType>, {
14
+ size: string;
15
+ }>>> & Readonly<{
7
16
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ }>, {
18
+ size: "large" | "default" | "small";
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
20
  export default _default;
10
21
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
22
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,34 +1,21 @@
1
- type ruledetail = {
2
- required?: boolean;
3
- message?: string;
4
- trigger?: string;
5
- validator?: Function;
6
- min?: number;
7
- max?: number;
8
- type?: string;
9
- };
10
- type ruleType = {
11
- [key: string]: Array<ruledetail>;
12
- };
13
- type modelType = {
14
- [key: string]: any;
15
- };
1
+ import { FormRules, FormModel } from './type';
2
+
16
3
  declare function __VLS_template(): {
17
4
  default?(_: {}): any;
18
5
  };
19
6
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
20
- rule?: ruleType;
21
- model: modelType;
7
+ rule?: FormRules;
8
+ model: FormModel;
22
9
  inline?: boolean;
23
10
  }>, {
24
11
  inline: boolean;
25
12
  }>>, {
26
- validate: (callBack: Function) => Promise<void>;
13
+ validate: (callBack: (isValid: boolean) => void) => Promise<boolean>;
27
14
  validateField: (propname: string, callBack: Function) => Promise<void>;
28
15
  resetField: () => void;
29
16
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
30
- rule?: ruleType;
31
- model: modelType;
17
+ rule?: FormRules;
18
+ model: FormModel;
32
19
  inline?: boolean;
33
20
  }>, {
34
21
  inline: boolean;
@@ -4,17 +4,17 @@ declare function __VLS_template(): {
4
4
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
5
  label?: string;
6
6
  prop?: string;
7
- inline?: boolean | undefined;
7
+ inline?: boolean;
8
8
  width?: number;
9
9
  }>, {
10
10
  width: number;
11
11
  inline: undefined;
12
12
  }>>, {
13
- validateLabel: (callBack: Function) => Promise<void>;
13
+ validateLabel: (callBack?: Function, eventName?: string) => Promise<void>;
14
14
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
15
  label?: string;
16
16
  prop?: string;
17
- inline?: boolean | undefined;
17
+ inline?: boolean;
18
18
  width?: number;
19
19
  }>, {
20
20
  width: number;
@@ -0,0 +1,11 @@
1
+ export type ruledetail = {
2
+ required?: boolean;
3
+ message?: string;
4
+ trigger?: string;
5
+ validator?: Function;
6
+ min?: number;
7
+ max?: number;
8
+ type?: string;
9
+ };
10
+ export type FormRules = Record<string, ruledetail[]>;
11
+ export type FormModel = Record<string, any>;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -14,32 +14,37 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
14
14
  type?: string;
15
15
  placeHolder?: string;
16
16
  clearable?: boolean;
17
+ size?: "large" | "default" | "small";
17
18
  }>, {
18
19
  modelValue: null;
19
20
  type: string;
20
21
  clearable: boolean;
22
+ size: string;
21
23
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
- input: (...args: any[]) => void;
23
- blur: (...args: any[]) => void;
24
- change: (...args: any[]) => void;
25
- "update:modelValue": (...args: any[]) => void;
24
+ "update:modelValue": (value: string | number | null) => void;
25
+ blur: (value: string | number | null) => void;
26
+ input: (value: string | number | null) => void;
27
+ change: (value: string | number | null) => void;
26
28
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
27
29
  modelValue: any;
28
30
  modelModifiers?: modifier;
29
31
  type?: string;
30
32
  placeHolder?: string;
31
33
  clearable?: boolean;
34
+ size?: "large" | "default" | "small";
32
35
  }>, {
33
36
  modelValue: null;
34
37
  type: string;
35
38
  clearable: boolean;
39
+ size: string;
36
40
  }>>> & Readonly<{
37
- onInput?: ((...args: any[]) => any) | undefined;
38
- onBlur?: ((...args: any[]) => any) | undefined;
39
- onChange?: ((...args: any[]) => any) | undefined;
40
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
41
+ onBlur?: ((value: string | number | null) => any) | undefined;
42
+ onChange?: ((value: string | number | null) => any) | undefined;
43
+ onInput?: ((value: string | number | null) => any) | undefined;
44
+ "onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
41
45
  }>, {
42
46
  type: string;
47
+ size: "large" | "default" | "small";
43
48
  modelValue: any;
44
49
  clearable: boolean;
45
50
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,25 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
2
- loaddingWord: import('vue').Ref<string, string>;
3
- fullScreen: import('vue').Ref<boolean, boolean>;
4
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ loadingText: string;
3
+ fullScreen: boolean;
4
+ }>, {}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ loadingText: string;
6
+ fullScreen: boolean;
7
+ }>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
8
  export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
18
+ type __VLS_WithDefaults<P, D> = {
19
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
20
+ default: D[K];
21
+ }> : P[K];
22
+ };
23
+ type __VLS_Prettify<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
@@ -1,23 +1,16 @@
1
- import { ComponentPublicInstance } from 'vue';
1
+ import { ComponentPublicInstance, DirectiveBinding } from 'vue';
2
2
 
3
- type loadbinding = {
4
- value: boolean;
5
- oldValue: boolean;
6
- arg?: string;
7
- modifiers: {
8
- fullScreen?: boolean;
9
- lock?: boolean;
10
- };
11
- };
12
- type loadhtml = {
13
- instance: {
14
- loaddingWord: string;
15
- fullScreen: boolean;
16
- } & ComponentPublicInstance;
17
- } & HTMLElement;
3
+ interface LoadingComponentInstance extends ComponentPublicInstance {
4
+ loadingText: string;
5
+ fullScreen: boolean;
6
+ }
7
+ interface LoadingDirectiveElement extends HTMLElement {
8
+ __loading_instance__?: LoadingComponentInstance;
9
+ __original_display__?: string;
10
+ }
18
11
  declare const _default: {
19
- beforeMount(el: loadhtml, binding: loadbinding): void;
20
- mounted(el: loadhtml, binding: loadbinding): void;
21
- beforeUpdate(el: loadhtml, binding: loadbinding): void;
12
+ mounted(el: LoadingDirectiveElement, binding: DirectiveBinding<boolean>): void;
13
+ updated(el: LoadingDirectiveElement, binding: DirectiveBinding<boolean>): void;
14
+ beforeUnmount(el: LoadingDirectiveElement): void;
22
15
  };
23
16
  export default _default;
@@ -1,12 +1,22 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  menulist: Array<string>;
3
- }>, {}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ activeIndex: number;
4
+ }>, {
5
+ activeIndex: number;
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
7
  updatemenu: (...args: any[]) => void;
8
+ "update:activeIndex": (...args: any[]) => void;
5
9
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
10
  menulist: Array<string>;
7
- }>, {}>>> & Readonly<{
11
+ activeIndex: number;
12
+ }>, {
13
+ activeIndex: number;
14
+ }>>> & Readonly<{
8
15
  onUpdatemenu?: ((...args: any[]) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
+ "onUpdate:activeIndex"?: ((...args: any[]) => any) | undefined;
17
+ }>, {
18
+ activeIndex: number;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
20
  export default _default;
11
21
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
22
  type __VLS_TypePropsToRuntimeProps<T> = {