@minilo/ui 0.0.2 → 0.0.3

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 (126) hide show
  1. package/minilo/dist/index.css +1 -1
  2. package/minilo/dist/index.full.js +2570 -111
  3. package/minilo/dist/index.full.min.js +7 -1
  4. package/minilo/dist/index.full.min.js.map +1 -1
  5. package/minilo/dist/index.full.min.mjs +7 -1
  6. package/minilo/dist/index.full.min.mjs.map +1 -1
  7. package/minilo/dist/index.full.mjs +2565 -113
  8. package/minilo/es/components/button/index.d.ts +4 -4
  9. package/minilo/es/components/button/index.vue.d.ts +2 -2
  10. package/minilo/es/components/chart/index.d.ts +4 -4
  11. package/minilo/es/components/chart/index.vue.d.ts +2 -2
  12. package/minilo/es/components/chart/index.vue2.mjs +2 -2
  13. package/minilo/es/components/detail/index.vue2.mjs +1 -1
  14. package/minilo/es/components/image-upload-pro/index.d.ts +146 -0
  15. package/minilo/es/components/image-upload-pro/index.mjs +7 -0
  16. package/minilo/es/components/image-upload-pro/index.vue.d.ts +146 -0
  17. package/minilo/es/components/image-upload-pro/index.vue.mjs +5 -0
  18. package/minilo/es/components/image-upload-pro/index.vue2.mjs +667 -0
  19. package/minilo/es/components/image-upload-pro/type.d.ts +146 -0
  20. package/minilo/es/components/image-upload-pro/type.mjs +81 -0
  21. package/minilo/es/components/index.d.ts +4 -0
  22. package/minilo/es/components/index.mjs +7 -0
  23. package/minilo/es/components/number-range-input/index.d.ts +3 -3
  24. package/minilo/es/components/number-range-input/index.vue.d.ts +1 -1
  25. package/minilo/es/components/search/index.d.ts +26 -26
  26. package/minilo/es/components/search/index.vue.d.ts +23 -23
  27. package/minilo/es/components/search/props.d.ts +2 -2
  28. package/minilo/es/components/search-table/index.d.ts +18 -18
  29. package/minilo/es/components/search-table/index.vue.d.ts +9 -9
  30. package/minilo/es/components/search-table/index.vue2.mjs +2 -2
  31. package/minilo/es/components/search-table/props.d.ts +3 -3
  32. package/minilo/es/components/tree-select/index.d.ts +32 -0
  33. package/minilo/es/components/tree-select/index.mjs +6 -0
  34. package/minilo/es/components/tree-select/index.vue.d.ts +20 -0
  35. package/minilo/es/components/tree-select/index.vue.mjs +5 -0
  36. package/minilo/es/components/tree-select/index.vue2.mjs +226 -0
  37. package/minilo/es/components/tree-select/type.d.ts +34 -0
  38. package/minilo/es/components/tree-select/type.mjs +1 -0
  39. package/minilo/es/components/tree-select-dialog/index.d.ts +60 -0
  40. package/minilo/es/components/tree-select-dialog/index.mjs +7 -0
  41. package/minilo/es/components/tree-select-dialog/index.vue.d.ts +23 -0
  42. package/minilo/es/components/tree-select-dialog/index.vue.mjs +5 -0
  43. package/minilo/es/components/tree-select-dialog/index.vue2.mjs +135 -0
  44. package/minilo/es/components/tree-select-dialog/type.d.ts +9 -0
  45. package/minilo/es/components/tree-select-dialog/type.mjs +24 -0
  46. package/minilo/es/components/tree-select-drawer/index.d.ts +64 -0
  47. package/minilo/es/components/tree-select-drawer/index.mjs +7 -0
  48. package/minilo/es/components/tree-select-drawer/index.vue.d.ts +23 -0
  49. package/minilo/es/components/tree-select-drawer/index.vue.mjs +5 -0
  50. package/minilo/es/components/tree-select-drawer/index.vue2.mjs +140 -0
  51. package/minilo/es/components/tree-select-drawer/type.d.ts +10 -0
  52. package/minilo/es/components/tree-select-drawer/type.mjs +20 -0
  53. package/minilo/es/components/virtual-list/index.d.ts +4 -4
  54. package/minilo/es/components/virtual-list/index.vue.d.ts +2 -2
  55. package/minilo/es/index.d.ts +393 -61
  56. package/minilo/es/node_modules/.pnpm/{@element-plus_icons-vue@2.3.1_vue@3.5.17_typescript@5.8.3_ → @element-plus_icons-vue@2.3.1_vue@3.5.26_typescript@5.9.3_}/node_modules/@element-plus/icons-vue/dist/index.mjs +17 -1
  57. package/minilo/es/node_modules/.pnpm/{@vueuse_core@13.6.0_vue@3.5.17_typescript@5.9.3_ → @vueuse_core@13.9.0_vue@3.5.26_typescript@5.9.3_}/node_modules/@vueuse/core/index.mjs +2 -2
  58. package/minilo/es/resolver/index.d.ts +1 -1
  59. package/minilo/lib/components/button/index.d.ts +4 -4
  60. package/minilo/lib/components/button/index.vue.d.ts +2 -2
  61. package/minilo/lib/components/chart/index.d.ts +4 -4
  62. package/minilo/lib/components/chart/index.vue.d.ts +2 -2
  63. package/minilo/lib/components/chart/index.vue2.js +2 -2
  64. package/minilo/lib/components/detail/index.vue2.js +1 -1
  65. package/minilo/lib/components/image-upload-pro/index.d.ts +146 -0
  66. package/minilo/lib/components/image-upload-pro/index.js +13 -0
  67. package/minilo/lib/components/image-upload-pro/index.vue.d.ts +146 -0
  68. package/minilo/lib/components/image-upload-pro/index.vue.js +9 -0
  69. package/minilo/lib/components/image-upload-pro/index.vue2.js +671 -0
  70. package/minilo/lib/components/image-upload-pro/type.d.ts +146 -0
  71. package/minilo/lib/components/image-upload-pro/type.js +83 -0
  72. package/minilo/lib/components/index.d.ts +4 -0
  73. package/minilo/lib/components/index.js +14 -0
  74. package/minilo/lib/components/number-range-input/index.d.ts +3 -3
  75. package/minilo/lib/components/number-range-input/index.vue.d.ts +1 -1
  76. package/minilo/lib/components/search/index.d.ts +26 -26
  77. package/minilo/lib/components/search/index.vue.d.ts +23 -23
  78. package/minilo/lib/components/search/props.d.ts +2 -2
  79. package/minilo/lib/components/search-table/index.d.ts +18 -18
  80. package/minilo/lib/components/search-table/index.vue.d.ts +9 -9
  81. package/minilo/lib/components/search-table/index.vue2.js +2 -2
  82. package/minilo/lib/components/search-table/props.d.ts +3 -3
  83. package/minilo/lib/components/tree-select/index.d.ts +32 -0
  84. package/minilo/lib/components/tree-select/index.js +11 -0
  85. package/minilo/lib/components/tree-select/index.vue.d.ts +20 -0
  86. package/minilo/lib/components/tree-select/index.vue.js +9 -0
  87. package/minilo/lib/components/tree-select/index.vue2.js +230 -0
  88. package/minilo/lib/components/tree-select/type.d.ts +34 -0
  89. package/minilo/lib/components/tree-select/type.js +2 -0
  90. package/minilo/lib/components/tree-select-dialog/index.d.ts +60 -0
  91. package/minilo/lib/components/tree-select-dialog/index.js +13 -0
  92. package/minilo/lib/components/tree-select-dialog/index.vue.d.ts +23 -0
  93. package/minilo/lib/components/tree-select-dialog/index.vue.js +9 -0
  94. package/minilo/lib/components/tree-select-dialog/index.vue2.js +139 -0
  95. package/minilo/lib/components/tree-select-dialog/type.d.ts +9 -0
  96. package/minilo/lib/components/tree-select-dialog/type.js +26 -0
  97. package/minilo/lib/components/tree-select-drawer/index.d.ts +64 -0
  98. package/minilo/lib/components/tree-select-drawer/index.js +13 -0
  99. package/minilo/lib/components/tree-select-drawer/index.vue.d.ts +23 -0
  100. package/minilo/lib/components/tree-select-drawer/index.vue.js +9 -0
  101. package/minilo/lib/components/tree-select-drawer/index.vue2.js +144 -0
  102. package/minilo/lib/components/tree-select-drawer/type.d.ts +10 -0
  103. package/minilo/lib/components/tree-select-drawer/type.js +22 -0
  104. package/minilo/lib/components/virtual-list/index.d.ts +4 -4
  105. package/minilo/lib/components/virtual-list/index.vue.d.ts +2 -2
  106. package/minilo/lib/index.d.ts +393 -61
  107. package/minilo/lib/node_modules/.pnpm/{@element-plus_icons-vue@2.3.1_vue@3.5.17_typescript@5.8.3_ → @element-plus_icons-vue@2.3.1_vue@3.5.26_typescript@5.9.3_}/node_modules/@element-plus/icons-vue/dist/index.js +17 -0
  108. package/minilo/lib/node_modules/.pnpm/{@vueuse_core@13.6.0_vue@3.5.17_typescript@5.9.3_ → @vueuse_core@13.9.0_vue@3.5.26_typescript@5.9.3_}/node_modules/@vueuse/core/index.js +1 -1
  109. package/minilo/lib/resolver/index.d.ts +1 -1
  110. package/minilo/theme-chalk/index.css +1 -1
  111. package/minilo/theme-chalk/ml-image-upload-pro.css +1 -0
  112. package/minilo/theme-chalk/ml-tree-select-dialog.css +0 -0
  113. package/minilo/theme-chalk/ml-tree-select-drawer.css +0 -0
  114. package/minilo/theme-chalk/ml-tree-select.css +1 -0
  115. package/minilo/theme-chalk/src/image-upload-pro.scss +70 -0
  116. package/minilo/theme-chalk/src/index.scss +2 -0
  117. package/minilo/theme-chalk/src/tree-select-dialog.scss +0 -0
  118. package/minilo/theme-chalk/src/tree-select-drawer.scss +0 -0
  119. package/minilo/theme-chalk/src/tree-select.scss +47 -0
  120. package/package.json +18 -5
  121. /package/minilo/es/{packages → node_modules/.pnpm/@minilo_utils@0.0.2_vue@3.5.26_typescript@5.9.3_/node_modules/@minilo}/utils/dist/func/common.mjs +0 -0
  122. /package/minilo/es/{packages → node_modules/.pnpm/@minilo_utils@0.0.2_vue@3.5.26_typescript@5.9.3_/node_modules/@minilo}/utils/dist/request/index.mjs +0 -0
  123. /package/minilo/es/node_modules/.pnpm/{@vueuse_shared@13.6.0_vue@3.5.17_typescript@5.9.3_ → @vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_}/node_modules/@vueuse/shared/index.mjs +0 -0
  124. /package/minilo/lib/{packages → node_modules/.pnpm/@minilo_utils@0.0.2_vue@3.5.26_typescript@5.9.3_/node_modules/@minilo}/utils/dist/func/common.js +0 -0
  125. /package/minilo/lib/{packages → node_modules/.pnpm/@minilo_utils@0.0.2_vue@3.5.26_typescript@5.9.3_/node_modules/@minilo}/utils/dist/request/index.js +0 -0
  126. /package/minilo/lib/node_modules/.pnpm/{@vueuse_shared@13.6.0_vue@3.5.17_typescript@5.9.3_ → @vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_}/node_modules/@vueuse/shared/index.js +0 -0
@@ -1,5 +1,21 @@
1
1
  import { defineComponent, createElementBlock, openBlock, createElementVNode } from 'vue';
2
2
 
3
+ var search_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
4
+ name: "Search",
5
+ __name: "search",
6
+ setup(__props) {
7
+ return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ viewBox: "0 0 1024 1024"
10
+ }, [
11
+ createElementVNode("path", {
12
+ fill: "currentColor",
13
+ d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
14
+ })
15
+ ]));
16
+ }
17
+ });
18
+ var search_default = search_vue_vue_type_script_setup_true_lang_default;
3
19
  var warning_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
4
20
  name: "Warning",
5
21
  __name: "warning",
@@ -22,4 +38,4 @@ var warning_default = warning_vue_vue_type_script_setup_true_lang_default;
22
38
  (*! Element Plus Icons Vue v2.3.1 *)
23
39
  */
24
40
 
25
- export { warning_default as Warning };
41
+ export { search_default as Search, warning_default as Warning };
@@ -1,5 +1,5 @@
1
- import { tryOnScopeDispose, isClient } from '../../../../@vueuse_shared@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs';
2
- export { createFilterWrapper, debounceFilter, noop, useDebounceFn } from '../../../../@vueuse_shared@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs';
1
+ import { tryOnScopeDispose, isClient } from '../../../../@vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs';
2
+ export { createFilterWrapper, debounceFilter, noop, useDebounceFn } from '../../../../@vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs';
3
3
  import { computed, toValue, watch, shallowRef, getCurrentInstance, onMounted } from 'vue';
4
4
 
5
5
  const defaultWindow = isClient ? window : void 0;
@@ -4,5 +4,5 @@ export declare const MiniloUiResolver: () => {
4
4
  name: string;
5
5
  from: string;
6
6
  sideEffects: string;
7
- } | null;
7
+ };
8
8
  };
@@ -1,6 +1,6 @@
1
1
  export declare const MlButton: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').MlButtonSelfProps> & Readonly<{
3
- onClick?: ((...args: any[]) => any) | undefined;
3
+ onClick?: (...args: any[]) => any;
4
4
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
5
  click: (...args: any[]) => void;
6
6
  }, import('vue').PublicProps, {
@@ -9,7 +9,7 @@ export declare const MlButton: {
9
9
  tip: string;
10
10
  tipProps: Record<string, any>;
11
11
  isDebounce: boolean;
12
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
12
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
13
13
  P: {};
14
14
  B: {};
15
15
  D: {};
@@ -17,7 +17,7 @@ export declare const MlButton: {
17
17
  M: {};
18
18
  Defaults: {};
19
19
  }, Readonly<import('./type').MlButtonSelfProps> & Readonly<{
20
- onClick?: ((...args: any[]) => any) | undefined;
20
+ onClick?: (...args: any[]) => any;
21
21
  }>, {}, {}, {}, {}, {
22
22
  time: number;
23
23
  placement: string;
@@ -29,7 +29,7 @@ export declare const MlButton: {
29
29
  __isTeleport?: never;
30
30
  __isSuspense?: never;
31
31
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').MlButtonSelfProps> & Readonly<{
32
- onClick?: ((...args: any[]) => any) | undefined;
32
+ onClick?: (...args: any[]) => any;
33
33
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
34
  click: (...args: any[]) => void;
35
35
  }, string, {
@@ -12,14 +12,14 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
12
  declare const __VLS_component: import('vue').DefineComponent<MlButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
13
  click: (...args: any[]) => void;
14
14
  }, string, import('vue').PublicProps, Readonly<MlButtonProps> & Readonly<{
15
- onClick?: ((...args: any[]) => any) | undefined;
15
+ onClick?: (...args: any[]) => any;
16
16
  }>, {
17
17
  time: number;
18
18
  placement: string;
19
19
  tip: string;
20
20
  tipProps: Record<string, any>;
21
21
  isDebounce: boolean;
22
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
23
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
24
  export default _default;
25
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,6 +1,6 @@
1
1
  export declare const MlChart: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').MlChartProps> & Readonly<{
3
- [x: `on${Capitalize<string>}`]: ((...args: unknown[] & []) => any) | undefined;
3
+ [x: `on${Capitalize<string>}`]: (...args: unknown[] & []) => any;
4
4
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
5
  [x: string]: ((...args: unknown[]) => any) | (() => any);
6
6
  }, import('vue').PublicProps, {
@@ -9,7 +9,7 @@ export declare const MlChart: {
9
9
  theme: string;
10
10
  isEmpty: boolean | ((options: Record<string, any>) => boolean);
11
11
  description: string;
12
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
12
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
13
13
  echartRef: HTMLDivElement;
14
14
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
15
15
  P: {};
@@ -19,7 +19,7 @@ export declare const MlChart: {
19
19
  M: {};
20
20
  Defaults: {};
21
21
  }, Readonly<import('./type').MlChartProps> & Readonly<{
22
- [x: `on${Capitalize<string>}`]: ((...args: unknown[] & []) => any) | undefined;
22
+ [x: `on${Capitalize<string>}`]: (...args: unknown[] & []) => any;
23
23
  }>, {}, {}, {}, {}, {
24
24
  options: Record<string, any>;
25
25
  id: string;
@@ -31,7 +31,7 @@ export declare const MlChart: {
31
31
  __isTeleport?: never;
32
32
  __isSuspense?: never;
33
33
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').MlChartProps> & Readonly<{
34
- [x: `on${Capitalize<string>}`]: ((...args: unknown[] & []) => any) | undefined;
34
+ [x: `on${Capitalize<string>}`]: (...args: unknown[] & []) => any;
35
35
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
36
  [x: string]: ((...args: unknown[]) => any) | (() => any);
37
37
  }, string, {
@@ -14,14 +14,14 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
14
  declare const __VLS_component: import('vue').DefineComponent<MlChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  [x: string]: ((...args: unknown[]) => any) | (() => any);
16
16
  }, string, import('vue').PublicProps, Readonly<MlChartProps> & Readonly<{
17
- [x: `on${Capitalize<string>}`]: ((...args: unknown[] & []) => any) | undefined;
17
+ [x: `on${Capitalize<string>}`]: (...args: unknown[] & []) => any;
18
18
  }>, {
19
19
  options: Record<string, any>;
20
20
  id: string;
21
21
  theme: string;
22
22
  isEmpty: boolean | ((options: Record<string, any>) => boolean);
23
23
  description: string;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
25
25
  echartRef: HTMLDivElement;
26
26
  }, HTMLDivElement>;
27
27
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
- var index$2 = require('../../node_modules/.pnpm/@vueuse_core@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/core/index.js');
7
+ var index$2 = require('../../node_modules/.pnpm/@vueuse_core@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/index.js');
8
8
  var index$1 = require('../../utils/index.js');
9
- var index = require('../../node_modules/.pnpm/@vueuse_shared@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/shared/index.js');
9
+ var index = require('../../node_modules/.pnpm/@vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/index.js');
10
10
 
11
11
  const _hoisted_1 = ["id"];
12
12
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
@@ -6,7 +6,7 @@ var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var renderTooltip_vue_vue_type_script_setup_true_lang = require('./renderTooltip.vue2.js');
8
8
  var renderLabel_vue_vue_type_script_setup_true_lang = require('./renderLabel.vue2.js');
9
- var index$1 = require('../../node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.5.17_typescript@5.8.3_/node_modules/@element-plus/icons-vue/dist/index.js');
9
+ var index$1 = require('../../node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.5.26_typescript@5.9.3_/node_modules/@element-plus/icons-vue/dist/index.js');
10
10
  var index = require('../../utils/index.js');
11
11
 
12
12
  const _hoisted_1 = { key: 0 };
@@ -0,0 +1,146 @@
1
+ export declare const MlImageUploadPro: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: {
3
+ type: import('vue').PropType<import('./type').PreviewItem[]>;
4
+ default: () => any[];
5
+ };
6
+ acceptType: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ sizeLimit: {
11
+ type: import('vue').PropType<import('./type').SizeLimit>;
12
+ default: () => {
13
+ width: number;
14
+ height: number;
15
+ size: number;
16
+ };
17
+ };
18
+ maxCount: {
19
+ type: NumberConstructor;
20
+ default: number;
21
+ };
22
+ allowCrop: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ allowCover: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ allowSort: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ uploadApi: {
35
+ type: import('vue').PropType<import('./type').UploadApiConfig>;
36
+ default: any;
37
+ };
38
+ autoUpload: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ }>, {
43
+ uploadToServer: (uploadApi: (file: File) => Promise<string>) => Promise<{
44
+ isCover?: boolean;
45
+ rawFile?: {
46
+ readonly lastModified: number;
47
+ readonly name: string;
48
+ readonly webkitRelativePath: string;
49
+ readonly size: number;
50
+ readonly type: string;
51
+ arrayBuffer: () => Promise<ArrayBuffer>;
52
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
53
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
54
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
55
+ text: () => Promise<string>;
56
+ };
57
+ blobUrl?: string;
58
+ serverUrl?: string;
59
+ name: string;
60
+ percentage?: number;
61
+ status: import('element-plus').UploadStatus;
62
+ size?: number;
63
+ response?: unknown;
64
+ uid: number;
65
+ url?: string;
66
+ raw?: {
67
+ uid: number;
68
+ isDirectory?: boolean;
69
+ readonly lastModified: number;
70
+ readonly name: string;
71
+ readonly webkitRelativePath: string;
72
+ readonly size: number;
73
+ readonly type: string;
74
+ arrayBuffer: () => Promise<ArrayBuffer>;
75
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
76
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
77
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
78
+ text: () => Promise<string>;
79
+ };
80
+ }[]>;
81
+ clear: () => void;
82
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
83
+ "update:modelValue": (value: import('./type').PreviewItem[]) => any;
84
+ change: (value: import('./type').PreviewItem[]) => any;
85
+ upload: (value: import('./type').PreviewItem[]) => any;
86
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
87
+ modelValue: {
88
+ type: import('vue').PropType<import('./type').PreviewItem[]>;
89
+ default: () => any[];
90
+ };
91
+ acceptType: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ sizeLimit: {
96
+ type: import('vue').PropType<import('./type').SizeLimit>;
97
+ default: () => {
98
+ width: number;
99
+ height: number;
100
+ size: number;
101
+ };
102
+ };
103
+ maxCount: {
104
+ type: NumberConstructor;
105
+ default: number;
106
+ };
107
+ allowCrop: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ allowCover: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ allowSort: {
116
+ type: BooleanConstructor;
117
+ default: boolean;
118
+ };
119
+ uploadApi: {
120
+ type: import('vue').PropType<import('./type').UploadApiConfig>;
121
+ default: any;
122
+ };
123
+ autoUpload: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ }>> & Readonly<{
128
+ "onUpdate:modelValue"?: (value: import('./type').PreviewItem[]) => any;
129
+ onChange?: (value: import('./type').PreviewItem[]) => any;
130
+ onUpload?: (value: import('./type').PreviewItem[]) => any;
131
+ }>, {
132
+ modelValue: import('./type').PreviewItem[];
133
+ acceptType: string;
134
+ sizeLimit: import('./type').SizeLimit;
135
+ maxCount: number;
136
+ allowCrop: boolean;
137
+ allowCover: boolean;
138
+ allowSort: boolean;
139
+ uploadApi: import('./type').UploadApiConfig;
140
+ autoUpload: boolean;
141
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
142
+ uploadRef: unknown;
143
+ cropperRef: any;
144
+ }, HTMLDivElement>;
145
+ export default MlImageUploadPro;
146
+ export * from './type';
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index = require('../../utils/index.js');
6
+ var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
7
+ var type = require('./type.js');
8
+
9
+ const MlImageUploadPro = index.withInstall(index_vue_vue_type_script_setup_true_lang.default);
10
+
11
+ exports.imageUploadProProps = type.imageUploadProProps;
12
+ exports.MlImageUploadPro = MlImageUploadPro;
13
+ exports.default = MlImageUploadPro;
@@ -0,0 +1,146 @@
1
+ import { PreviewItem } from './type';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ modelValue: {
4
+ type: import('vue').PropType<PreviewItem[]>;
5
+ default: () => any[];
6
+ };
7
+ acceptType: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ sizeLimit: {
12
+ type: import('vue').PropType<import('./type').SizeLimit>;
13
+ default: () => {
14
+ width: number;
15
+ height: number;
16
+ size: number;
17
+ };
18
+ };
19
+ maxCount: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ allowCrop: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ allowCover: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ allowSort: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ uploadApi: {
36
+ type: import('vue').PropType<import('./type').UploadApiConfig>;
37
+ default: any;
38
+ };
39
+ autoUpload: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ }>, {
44
+ uploadToServer: (uploadApi: (file: File) => Promise<string>) => Promise<{
45
+ isCover?: boolean;
46
+ rawFile?: {
47
+ readonly lastModified: number;
48
+ readonly name: string;
49
+ readonly webkitRelativePath: string;
50
+ readonly size: number;
51
+ readonly type: string;
52
+ arrayBuffer: () => Promise<ArrayBuffer>;
53
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
54
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
55
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
56
+ text: () => Promise<string>;
57
+ };
58
+ blobUrl?: string;
59
+ serverUrl?: string;
60
+ name: string;
61
+ percentage?: number;
62
+ status: import('element-plus').UploadStatus;
63
+ size?: number;
64
+ response?: unknown;
65
+ uid: number;
66
+ url?: string;
67
+ raw?: {
68
+ uid: number;
69
+ isDirectory?: boolean;
70
+ readonly lastModified: number;
71
+ readonly name: string;
72
+ readonly webkitRelativePath: string;
73
+ readonly size: number;
74
+ readonly type: string;
75
+ arrayBuffer: () => Promise<ArrayBuffer>;
76
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
77
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
78
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
79
+ text: () => Promise<string>;
80
+ };
81
+ }[]>;
82
+ clear: () => void;
83
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
84
+ "update:modelValue": (value: PreviewItem[]) => any;
85
+ change: (value: PreviewItem[]) => any;
86
+ upload: (value: PreviewItem[]) => any;
87
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
88
+ modelValue: {
89
+ type: import('vue').PropType<PreviewItem[]>;
90
+ default: () => any[];
91
+ };
92
+ acceptType: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ sizeLimit: {
97
+ type: import('vue').PropType<import('./type').SizeLimit>;
98
+ default: () => {
99
+ width: number;
100
+ height: number;
101
+ size: number;
102
+ };
103
+ };
104
+ maxCount: {
105
+ type: NumberConstructor;
106
+ default: number;
107
+ };
108
+ allowCrop: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ allowCover: {
113
+ type: BooleanConstructor;
114
+ default: boolean;
115
+ };
116
+ allowSort: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ uploadApi: {
121
+ type: import('vue').PropType<import('./type').UploadApiConfig>;
122
+ default: any;
123
+ };
124
+ autoUpload: {
125
+ type: BooleanConstructor;
126
+ default: boolean;
127
+ };
128
+ }>> & Readonly<{
129
+ "onUpdate:modelValue"?: (value: PreviewItem[]) => any;
130
+ onChange?: (value: PreviewItem[]) => any;
131
+ onUpload?: (value: PreviewItem[]) => any;
132
+ }>, {
133
+ modelValue: PreviewItem[];
134
+ acceptType: string;
135
+ sizeLimit: import('./type').SizeLimit;
136
+ maxCount: number;
137
+ allowCrop: boolean;
138
+ allowCover: boolean;
139
+ allowSort: boolean;
140
+ uploadApi: import('./type').UploadApiConfig;
141
+ autoUpload: boolean;
142
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
143
+ uploadRef: unknown;
144
+ cropperRef: any;
145
+ }, HTMLDivElement>;
146
+ export default _default;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
6
+
7
+
8
+
9
+ exports.default = index_vue_vue_type_script_setup_true_lang.default;