@minilo/ui 0.0.6 → 0.0.8

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 (216) hide show
  1. package/package.json +2 -2
  2. package/minilo/dist/index.css +0 -1
  3. package/minilo/dist/index.full.js +0 -8421
  4. package/minilo/dist/index.full.min.js +0 -2
  5. package/minilo/dist/index.full.min.js.map +0 -1
  6. package/minilo/dist/index.full.min.mjs +0 -2
  7. package/minilo/dist/index.full.min.mjs.map +0 -1
  8. package/minilo/dist/index.full.mjs +0 -8401
  9. package/minilo/es/components/button/index.d.ts +0 -47
  10. package/minilo/es/components/button/index.mjs +0 -6
  11. package/minilo/es/components/button/index.vue.d.ts +0 -29
  12. package/minilo/es/components/button/index.vue.mjs +0 -5
  13. package/minilo/es/components/button/index.vue2.mjs +0 -67
  14. package/minilo/es/components/button/type.d.ts +0 -10
  15. package/minilo/es/components/chart/index.d.ts +0 -49
  16. package/minilo/es/components/chart/index.mjs +0 -6
  17. package/minilo/es/components/chart/index.vue.d.ts +0 -33
  18. package/minilo/es/components/chart/index.vue.mjs +0 -5
  19. package/minilo/es/components/chart/index.vue2.mjs +0 -124
  20. package/minilo/es/components/chart/type.d.ts +0 -7
  21. package/minilo/es/components/detail/index.d.ts +0 -37
  22. package/minilo/es/components/detail/index.mjs +0 -6
  23. package/minilo/es/components/detail/index.vue.d.ts +0 -23
  24. package/minilo/es/components/detail/index.vue.mjs +0 -5
  25. package/minilo/es/components/detail/index.vue2.mjs +0 -194
  26. package/minilo/es/components/detail/renderLabel.vue.d.ts +0 -8
  27. package/minilo/es/components/detail/renderLabel.vue.mjs +0 -5
  28. package/minilo/es/components/detail/renderLabel.vue2.mjs +0 -23
  29. package/minilo/es/components/detail/renderTooltip.vue.d.ts +0 -8
  30. package/minilo/es/components/detail/renderTooltip.vue.mjs +0 -5
  31. package/minilo/es/components/detail/renderTooltip.vue2.mjs +0 -23
  32. package/minilo/es/components/detail/type.d.ts +0 -27
  33. package/minilo/es/components/image-upload-pro/index.d.ts +0 -544
  34. package/minilo/es/components/image-upload-pro/index.mjs +0 -7
  35. package/minilo/es/components/image-upload-pro/index.vue.d.ts +0 -546
  36. package/minilo/es/components/image-upload-pro/index.vue.mjs +0 -5
  37. package/minilo/es/components/image-upload-pro/index.vue2.mjs +0 -657
  38. package/minilo/es/components/image-upload-pro/type.d.ts +0 -147
  39. package/minilo/es/components/image-upload-pro/type.mjs +0 -81
  40. package/minilo/es/components/index.d.ts +0 -11
  41. package/minilo/es/components/index.mjs +0 -14
  42. package/minilo/es/components/number-range-input/index.d.ts +0 -41
  43. package/minilo/es/components/number-range-input/index.mjs +0 -6
  44. package/minilo/es/components/number-range-input/index.vue.d.ts +0 -33
  45. package/minilo/es/components/number-range-input/index.vue.mjs +0 -5
  46. package/minilo/es/components/number-range-input/index.vue2.mjs +0 -150
  47. package/minilo/es/components/number-range-input/props.d.ts +0 -10
  48. package/minilo/es/components/search/index.d.ts +0 -488
  49. package/minilo/es/components/search/index.mjs +0 -6
  50. package/minilo/es/components/search/index.vue.d.ts +0 -554
  51. package/minilo/es/components/search/index.vue.mjs +0 -5
  52. package/minilo/es/components/search/index.vue2.mjs +0 -298
  53. package/minilo/es/components/search/props.d.ts +0 -107
  54. package/minilo/es/components/search/props.mjs +0 -55
  55. package/minilo/es/components/search-table/index.d.ts +0 -274
  56. package/minilo/es/components/search-table/index.mjs +0 -6
  57. package/minilo/es/components/search-table/index.vue.d.ts +0 -173
  58. package/minilo/es/components/search-table/index.vue.mjs +0 -5
  59. package/minilo/es/components/search-table/index.vue2.mjs +0 -195
  60. package/minilo/es/components/search-table/props.d.ts +0 -69
  61. package/minilo/es/components/search-table/props.mjs +0 -69
  62. package/minilo/es/components/search-table/render.d.ts +0 -11
  63. package/minilo/es/components/search-table/render.mjs +0 -19
  64. package/minilo/es/components/tree-select/index.d.ts +0 -32
  65. package/minilo/es/components/tree-select/index.mjs +0 -6
  66. package/minilo/es/components/tree-select/index.vue.d.ts +0 -20
  67. package/minilo/es/components/tree-select/index.vue.mjs +0 -5
  68. package/minilo/es/components/tree-select/index.vue2.mjs +0 -226
  69. package/minilo/es/components/tree-select/type.d.ts +0 -34
  70. package/minilo/es/components/tree-select-dialog/index.d.ts +0 -62
  71. package/minilo/es/components/tree-select-dialog/index.mjs +0 -7
  72. package/minilo/es/components/tree-select-dialog/index.vue.d.ts +0 -23
  73. package/minilo/es/components/tree-select-dialog/index.vue.mjs +0 -5
  74. package/minilo/es/components/tree-select-dialog/index.vue2.mjs +0 -137
  75. package/minilo/es/components/tree-select-dialog/type.d.ts +0 -9
  76. package/minilo/es/components/tree-select-dialog/type.mjs +0 -24
  77. package/minilo/es/components/tree-select-drawer/index.d.ts +0 -67
  78. package/minilo/es/components/tree-select-drawer/index.mjs +0 -7
  79. package/minilo/es/components/tree-select-drawer/index.vue.d.ts +0 -23
  80. package/minilo/es/components/tree-select-drawer/index.vue.mjs +0 -5
  81. package/minilo/es/components/tree-select-drawer/index.vue2.mjs +0 -143
  82. package/minilo/es/components/tree-select-drawer/type.d.ts +0 -10
  83. package/minilo/es/components/tree-select-drawer/type.mjs +0 -20
  84. package/minilo/es/components/virtual-list/index.d.ts +0 -59
  85. package/minilo/es/components/virtual-list/index.mjs +0 -6
  86. package/minilo/es/components/virtual-list/index.vue.d.ts +0 -39
  87. package/minilo/es/components/virtual-list/index.vue.mjs +0 -5
  88. package/minilo/es/components/virtual-list/index.vue2.mjs +0 -421
  89. package/minilo/es/components/virtual-list/type.d.ts +0 -20
  90. package/minilo/es/index.d.ts +0 -1724
  91. package/minilo/es/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.mjs +0 -41
  92. package/minilo/es/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 -14
  93. package/minilo/es/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 -110
  94. package/minilo/es/node_modules/.pnpm/@vueuse_core@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs +0 -73
  95. package/minilo/es/node_modules/.pnpm/@vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs +0 -76
  96. package/minilo/es/resolver/index.d.ts +0 -8
  97. package/minilo/es/resolver/index.mjs +0 -29
  98. package/minilo/es/utils/index.d.ts +0 -28
  99. package/minilo/es/utils/index.mjs +0 -30
  100. package/minilo/lib/components/button/index.d.ts +0 -47
  101. package/minilo/lib/components/button/index.js +0 -11
  102. package/minilo/lib/components/button/index.vue.d.ts +0 -29
  103. package/minilo/lib/components/button/index.vue.js +0 -9
  104. package/minilo/lib/components/button/index.vue2.js +0 -71
  105. package/minilo/lib/components/button/type.d.ts +0 -10
  106. package/minilo/lib/components/chart/index.d.ts +0 -49
  107. package/minilo/lib/components/chart/index.js +0 -11
  108. package/minilo/lib/components/chart/index.vue.d.ts +0 -33
  109. package/minilo/lib/components/chart/index.vue.js +0 -9
  110. package/minilo/lib/components/chart/index.vue2.js +0 -128
  111. package/minilo/lib/components/chart/type.d.ts +0 -7
  112. package/minilo/lib/components/detail/index.d.ts +0 -37
  113. package/minilo/lib/components/detail/index.js +0 -11
  114. package/minilo/lib/components/detail/index.vue.d.ts +0 -23
  115. package/minilo/lib/components/detail/index.vue.js +0 -9
  116. package/minilo/lib/components/detail/index.vue2.js +0 -198
  117. package/minilo/lib/components/detail/renderLabel.vue.d.ts +0 -8
  118. package/minilo/lib/components/detail/renderLabel.vue.js +0 -9
  119. package/minilo/lib/components/detail/renderLabel.vue2.js +0 -27
  120. package/minilo/lib/components/detail/renderTooltip.vue.d.ts +0 -8
  121. package/minilo/lib/components/detail/renderTooltip.vue.js +0 -9
  122. package/minilo/lib/components/detail/renderTooltip.vue2.js +0 -27
  123. package/minilo/lib/components/detail/type.d.ts +0 -27
  124. package/minilo/lib/components/image-upload-pro/index.d.ts +0 -544
  125. package/minilo/lib/components/image-upload-pro/index.js +0 -13
  126. package/minilo/lib/components/image-upload-pro/index.vue.d.ts +0 -546
  127. package/minilo/lib/components/image-upload-pro/index.vue.js +0 -9
  128. package/minilo/lib/components/image-upload-pro/index.vue2.js +0 -661
  129. package/minilo/lib/components/image-upload-pro/type.d.ts +0 -147
  130. package/minilo/lib/components/image-upload-pro/type.js +0 -83
  131. package/minilo/lib/components/index.d.ts +0 -11
  132. package/minilo/lib/components/index.js +0 -33
  133. package/minilo/lib/components/number-range-input/index.d.ts +0 -41
  134. package/minilo/lib/components/number-range-input/index.js +0 -11
  135. package/minilo/lib/components/number-range-input/index.vue.d.ts +0 -33
  136. package/minilo/lib/components/number-range-input/index.vue.js +0 -9
  137. package/minilo/lib/components/number-range-input/index.vue2.js +0 -154
  138. package/minilo/lib/components/number-range-input/props.d.ts +0 -10
  139. package/minilo/lib/components/search/index.d.ts +0 -488
  140. package/minilo/lib/components/search/index.js +0 -11
  141. package/minilo/lib/components/search/index.vue.d.ts +0 -554
  142. package/minilo/lib/components/search/index.vue.js +0 -9
  143. package/minilo/lib/components/search/index.vue2.js +0 -302
  144. package/minilo/lib/components/search/props.d.ts +0 -107
  145. package/minilo/lib/components/search/props.js +0 -58
  146. package/minilo/lib/components/search-table/index.d.ts +0 -274
  147. package/minilo/lib/components/search-table/index.js +0 -11
  148. package/minilo/lib/components/search-table/index.vue.d.ts +0 -173
  149. package/minilo/lib/components/search-table/index.vue.js +0 -9
  150. package/minilo/lib/components/search-table/index.vue2.js +0 -199
  151. package/minilo/lib/components/search-table/props.d.ts +0 -69
  152. package/minilo/lib/components/search-table/props.js +0 -72
  153. package/minilo/lib/components/search-table/render.d.ts +0 -11
  154. package/minilo/lib/components/search-table/render.js +0 -23
  155. package/minilo/lib/components/tree-select/index.d.ts +0 -32
  156. package/minilo/lib/components/tree-select/index.js +0 -11
  157. package/minilo/lib/components/tree-select/index.vue.d.ts +0 -20
  158. package/minilo/lib/components/tree-select/index.vue.js +0 -9
  159. package/minilo/lib/components/tree-select/index.vue2.js +0 -230
  160. package/minilo/lib/components/tree-select/type.d.ts +0 -34
  161. package/minilo/lib/components/tree-select-dialog/index.d.ts +0 -62
  162. package/minilo/lib/components/tree-select-dialog/index.js +0 -13
  163. package/minilo/lib/components/tree-select-dialog/index.vue.d.ts +0 -23
  164. package/minilo/lib/components/tree-select-dialog/index.vue.js +0 -9
  165. package/minilo/lib/components/tree-select-dialog/index.vue2.js +0 -141
  166. package/minilo/lib/components/tree-select-dialog/type.d.ts +0 -9
  167. package/minilo/lib/components/tree-select-dialog/type.js +0 -26
  168. package/minilo/lib/components/tree-select-drawer/index.d.ts +0 -67
  169. package/minilo/lib/components/tree-select-drawer/index.js +0 -13
  170. package/minilo/lib/components/tree-select-drawer/index.vue.d.ts +0 -23
  171. package/minilo/lib/components/tree-select-drawer/index.vue.js +0 -9
  172. package/minilo/lib/components/tree-select-drawer/index.vue2.js +0 -147
  173. package/minilo/lib/components/tree-select-drawer/type.d.ts +0 -10
  174. package/minilo/lib/components/tree-select-drawer/type.js +0 -22
  175. package/minilo/lib/components/virtual-list/index.d.ts +0 -59
  176. package/minilo/lib/components/virtual-list/index.js +0 -11
  177. package/minilo/lib/components/virtual-list/index.vue.d.ts +0 -39
  178. package/minilo/lib/components/virtual-list/index.vue.js +0 -9
  179. package/minilo/lib/components/virtual-list/index.vue2.js +0 -425
  180. package/minilo/lib/components/virtual-list/type.d.ts +0 -20
  181. package/minilo/lib/index.d.ts +0 -1724
  182. package/minilo/lib/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 +0 -44
  183. package/minilo/lib/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 -16
  184. package/minilo/lib/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 -120
  185. package/minilo/lib/node_modules/.pnpm/@vueuse_core@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/index.js +0 -84
  186. package/minilo/lib/node_modules/.pnpm/@vueuse_shared@13.9.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/index.js +0 -83
  187. package/minilo/lib/resolver/index.d.ts +0 -8
  188. package/minilo/lib/resolver/index.js +0 -31
  189. package/minilo/lib/utils/index.d.ts +0 -28
  190. package/minilo/lib/utils/index.js +0 -34
  191. package/minilo/theme-chalk/index.css +0 -1
  192. package/minilo/theme-chalk/ml-button.css +0 -1
  193. package/minilo/theme-chalk/ml-chart.css +0 -1
  194. package/minilo/theme-chalk/ml-detail.css +0 -1
  195. package/minilo/theme-chalk/ml-image-upload-pro.css +0 -1
  196. package/minilo/theme-chalk/ml-number-range-input.css +0 -1
  197. package/minilo/theme-chalk/ml-search-table.css +0 -1
  198. package/minilo/theme-chalk/ml-search.css +0 -1
  199. package/minilo/theme-chalk/ml-tree-select-dialog.css +0 -0
  200. package/minilo/theme-chalk/ml-tree-select-drawer.css +0 -0
  201. package/minilo/theme-chalk/ml-tree-select.css +0 -1
  202. package/minilo/theme-chalk/ml-virtual-list.css +0 -1
  203. package/minilo/theme-chalk/src/button.scss +0 -22
  204. package/minilo/theme-chalk/src/chart.scss +0 -11
  205. package/minilo/theme-chalk/src/default/variable.scss +0 -1
  206. package/minilo/theme-chalk/src/detail.scss +0 -9
  207. package/minilo/theme-chalk/src/image-upload-pro.scss +0 -70
  208. package/minilo/theme-chalk/src/index.scss +0 -14
  209. package/minilo/theme-chalk/src/mixins/mixin.scss +0 -273
  210. package/minilo/theme-chalk/src/number-range-input.scss +0 -9
  211. package/minilo/theme-chalk/src/search-table.scss +0 -47
  212. package/minilo/theme-chalk/src/search.scss +0 -20
  213. package/minilo/theme-chalk/src/tree-select-dialog.scss +0 -0
  214. package/minilo/theme-chalk/src/tree-select-drawer.scss +0 -0
  215. package/minilo/theme-chalk/src/tree-select.scss +0 -47
  216. package/minilo/theme-chalk/src/virtual-list.scss +0 -49
@@ -1,274 +0,0 @@
1
- export declare const MlSearchTable: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
- methodType: {
4
- type: () => import('./props').RequestMethodType;
5
- default: string;
6
- };
7
- url: {
8
- type: StringConstructor;
9
- default: string;
10
- };
11
- responseDataField: {
12
- type: StringConstructor;
13
- default: string;
14
- };
15
- responseTotalField: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- headers: {
20
- type: ObjectConstructor;
21
- default: () => {};
22
- };
23
- showPagination: {
24
- type: BooleanConstructor;
25
- default: boolean;
26
- };
27
- paramsHandler: {
28
- type: FunctionConstructor;
29
- default: any;
30
- };
31
- render: {
32
- type: FunctionConstructor;
33
- default: any;
34
- };
35
- searchProps: {
36
- type: ObjectConstructor;
37
- default: () => void;
38
- };
39
- tableProps: {
40
- type: ObjectConstructor;
41
- default: () => {
42
- border: boolean;
43
- };
44
- };
45
- columns: {
46
- type: {
47
- (arrayLength: number): any[];
48
- (...items: any[]): any[];
49
- new (arrayLength: number): any[];
50
- new (...items: any[]): any[];
51
- isArray(arg: any): arg is any[];
52
- readonly prototype: any[];
53
- from<T>(arrayLike: ArrayLike<T>): T[];
54
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
55
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
56
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
57
- of<T>(...items: T[]): T[];
58
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
59
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
60
- readonly [Symbol.species]: ArrayConstructor;
61
- };
62
- default: () => any[];
63
- };
64
- search: {
65
- type: import('vue').PropType<import('../search/props').SearchModel>;
66
- };
67
- }>> & Readonly<{
68
- onReset?: (...args: any[]) => any;
69
- "onUpdate:search"?: (value: import('../search/props').SearchModel) => any;
70
- }>, {
71
- handleSearch: (reset?: boolean) => Promise<void>;
72
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
73
- reset: (...args: any[]) => void;
74
- "update:search": (value: import('../search/props').SearchModel) => void;
75
- }, import('vue').PublicProps, {
76
- render: Function;
77
- url: string;
78
- methodType: import('./props').RequestMethodType;
79
- responseDataField: string;
80
- responseTotalField: string;
81
- headers: Record<string, any>;
82
- showPagination: boolean;
83
- paramsHandler: Function;
84
- searchProps: Record<string, any>;
85
- tableProps: Record<string, any>;
86
- columns: any[];
87
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
88
- P: {};
89
- B: {};
90
- D: {};
91
- C: {};
92
- M: {};
93
- Defaults: {};
94
- }, Readonly<import('vue').ExtractPropTypes<{
95
- methodType: {
96
- type: () => import('./props').RequestMethodType;
97
- default: string;
98
- };
99
- url: {
100
- type: StringConstructor;
101
- default: string;
102
- };
103
- responseDataField: {
104
- type: StringConstructor;
105
- default: string;
106
- };
107
- responseTotalField: {
108
- type: StringConstructor;
109
- default: string;
110
- };
111
- headers: {
112
- type: ObjectConstructor;
113
- default: () => {};
114
- };
115
- showPagination: {
116
- type: BooleanConstructor;
117
- default: boolean;
118
- };
119
- paramsHandler: {
120
- type: FunctionConstructor;
121
- default: any;
122
- };
123
- render: {
124
- type: FunctionConstructor;
125
- default: any;
126
- };
127
- searchProps: {
128
- type: ObjectConstructor;
129
- default: () => void;
130
- };
131
- tableProps: {
132
- type: ObjectConstructor;
133
- default: () => {
134
- border: boolean;
135
- };
136
- };
137
- columns: {
138
- type: {
139
- (arrayLength: number): any[];
140
- (...items: any[]): any[];
141
- new (arrayLength: number): any[];
142
- new (...items: any[]): any[];
143
- isArray(arg: any): arg is any[];
144
- readonly prototype: any[];
145
- from<T>(arrayLike: ArrayLike<T>): T[];
146
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
147
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
148
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
149
- of<T>(...items: T[]): T[];
150
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
151
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
152
- readonly [Symbol.species]: ArrayConstructor;
153
- };
154
- default: () => any[];
155
- };
156
- search: {
157
- type: import('vue').PropType<import('../search/props').SearchModel>;
158
- };
159
- }>> & Readonly<{
160
- onReset?: (...args: any[]) => any;
161
- "onUpdate:search"?: (value: import('../search/props').SearchModel) => any;
162
- }>, {
163
- handleSearch: (reset?: boolean) => Promise<void>;
164
- }, {}, {}, {}, {
165
- render: Function;
166
- url: string;
167
- methodType: import('./props').RequestMethodType;
168
- responseDataField: string;
169
- responseTotalField: string;
170
- headers: Record<string, any>;
171
- showPagination: boolean;
172
- paramsHandler: Function;
173
- searchProps: Record<string, any>;
174
- tableProps: Record<string, any>;
175
- columns: any[];
176
- }>;
177
- __isFragment?: never;
178
- __isTeleport?: never;
179
- __isSuspense?: never;
180
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
181
- methodType: {
182
- type: () => import('./props').RequestMethodType;
183
- default: string;
184
- };
185
- url: {
186
- type: StringConstructor;
187
- default: string;
188
- };
189
- responseDataField: {
190
- type: StringConstructor;
191
- default: string;
192
- };
193
- responseTotalField: {
194
- type: StringConstructor;
195
- default: string;
196
- };
197
- headers: {
198
- type: ObjectConstructor;
199
- default: () => {};
200
- };
201
- showPagination: {
202
- type: BooleanConstructor;
203
- default: boolean;
204
- };
205
- paramsHandler: {
206
- type: FunctionConstructor;
207
- default: any;
208
- };
209
- render: {
210
- type: FunctionConstructor;
211
- default: any;
212
- };
213
- searchProps: {
214
- type: ObjectConstructor;
215
- default: () => void;
216
- };
217
- tableProps: {
218
- type: ObjectConstructor;
219
- default: () => {
220
- border: boolean;
221
- };
222
- };
223
- columns: {
224
- type: {
225
- (arrayLength: number): any[];
226
- (...items: any[]): any[];
227
- new (arrayLength: number): any[];
228
- new (...items: any[]): any[];
229
- isArray(arg: any): arg is any[];
230
- readonly prototype: any[];
231
- from<T>(arrayLike: ArrayLike<T>): T[];
232
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
233
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
234
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
235
- of<T>(...items: T[]): T[];
236
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
237
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
238
- readonly [Symbol.species]: ArrayConstructor;
239
- };
240
- default: () => any[];
241
- };
242
- search: {
243
- type: import('vue').PropType<import('../search/props').SearchModel>;
244
- };
245
- }>> & Readonly<{
246
- onReset?: (...args: any[]) => any;
247
- "onUpdate:search"?: (value: import('../search/props').SearchModel) => any;
248
- }>, {
249
- handleSearch: (reset?: boolean) => Promise<void>;
250
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
251
- reset: (...args: any[]) => void;
252
- "update:search": (value: import('../search/props').SearchModel) => void;
253
- }, string, {
254
- render: Function;
255
- url: string;
256
- methodType: import('./props').RequestMethodType;
257
- responseDataField: string;
258
- responseTotalField: string;
259
- headers: Record<string, any>;
260
- showPagination: boolean;
261
- paramsHandler: Function;
262
- searchProps: Record<string, any>;
263
- tableProps: Record<string, any>;
264
- columns: any[];
265
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
266
- $slots: Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {
267
- index: any;
268
- row: any;
269
- }) => any>> & {
270
- prefix?(_: {}): any;
271
- suffix?(_: {}): any;
272
- };
273
- });
274
- export default MlSearchTable;
@@ -1,11 +0,0 @@
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
-
8
- const MlSearchTable = index.withInstall(index_vue_vue_type_script_setup_true_lang.default);
9
-
10
- exports.MlSearchTable = MlSearchTable;
11
- exports.default = MlSearchTable;
@@ -1,173 +0,0 @@
1
- import { RequestMethodType } from './props';
2
- import { SearchModel } from '../search/props';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {
6
- index: any;
7
- row: any;
8
- }) => any>> & {
9
- prefix?(_: {}): any;
10
- suffix?(_: {}): any;
11
- };
12
- refs: {};
13
- rootEl: any;
14
- };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
17
- methodType: {
18
- type: () => RequestMethodType;
19
- default: string;
20
- };
21
- url: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- responseDataField: {
26
- type: StringConstructor;
27
- default: string;
28
- };
29
- responseTotalField: {
30
- type: StringConstructor;
31
- default: string;
32
- };
33
- headers: {
34
- type: ObjectConstructor;
35
- default: () => {};
36
- };
37
- showPagination: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- paramsHandler: {
42
- type: FunctionConstructor;
43
- default: any;
44
- };
45
- render: {
46
- type: FunctionConstructor;
47
- default: any;
48
- };
49
- searchProps: {
50
- type: ObjectConstructor;
51
- default: () => void;
52
- };
53
- tableProps: {
54
- type: ObjectConstructor;
55
- default: () => {
56
- border: boolean;
57
- };
58
- };
59
- columns: {
60
- type: {
61
- (arrayLength: number): any[];
62
- (...items: any[]): any[];
63
- new (arrayLength: number): any[];
64
- new (...items: any[]): any[];
65
- isArray(arg: any): arg is any[];
66
- readonly prototype: any[];
67
- from<T>(arrayLike: ArrayLike<T>): T[];
68
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
69
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
70
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
71
- of<T>(...items: T[]): T[];
72
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
73
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
74
- readonly [Symbol.species]: ArrayConstructor;
75
- };
76
- default: () => any[];
77
- };
78
- search: {
79
- type: import('vue').PropType<SearchModel>;
80
- };
81
- }>, {
82
- handleSearch: (reset?: boolean) => Promise<void>;
83
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
84
- reset: (...args: any[]) => void;
85
- "update:search": (value: SearchModel) => void;
86
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
87
- methodType: {
88
- type: () => RequestMethodType;
89
- default: string;
90
- };
91
- url: {
92
- type: StringConstructor;
93
- default: string;
94
- };
95
- responseDataField: {
96
- type: StringConstructor;
97
- default: string;
98
- };
99
- responseTotalField: {
100
- type: StringConstructor;
101
- default: string;
102
- };
103
- headers: {
104
- type: ObjectConstructor;
105
- default: () => {};
106
- };
107
- showPagination: {
108
- type: BooleanConstructor;
109
- default: boolean;
110
- };
111
- paramsHandler: {
112
- type: FunctionConstructor;
113
- default: any;
114
- };
115
- render: {
116
- type: FunctionConstructor;
117
- default: any;
118
- };
119
- searchProps: {
120
- type: ObjectConstructor;
121
- default: () => void;
122
- };
123
- tableProps: {
124
- type: ObjectConstructor;
125
- default: () => {
126
- border: boolean;
127
- };
128
- };
129
- columns: {
130
- type: {
131
- (arrayLength: number): any[];
132
- (...items: any[]): any[];
133
- new (arrayLength: number): any[];
134
- new (...items: any[]): any[];
135
- isArray(arg: any): arg is any[];
136
- readonly prototype: any[];
137
- from<T>(arrayLike: ArrayLike<T>): T[];
138
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
139
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
140
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
141
- of<T>(...items: T[]): T[];
142
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
143
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
144
- readonly [Symbol.species]: ArrayConstructor;
145
- };
146
- default: () => any[];
147
- };
148
- search: {
149
- type: import('vue').PropType<SearchModel>;
150
- };
151
- }>> & Readonly<{
152
- onReset?: (...args: any[]) => any;
153
- "onUpdate:search"?: (value: SearchModel) => any;
154
- }>, {
155
- render: Function;
156
- url: string;
157
- methodType: RequestMethodType;
158
- responseDataField: string;
159
- responseTotalField: string;
160
- headers: Record<string, any>;
161
- showPagination: boolean;
162
- paramsHandler: Function;
163
- searchProps: Record<string, any>;
164
- tableProps: Record<string, any>;
165
- columns: any[];
166
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
167
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
168
- export default _default;
169
- type __VLS_WithTemplateSlots<T, S> = T & {
170
- new (): {
171
- $slots: S;
172
- };
173
- };
@@ -1,9 +0,0 @@
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;
@@ -1,199 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var vue = require('vue');
6
- var index_vue_vue_type_script_setup_true_lang = require('../search/index.vue2.js');
7
- var props = require('./props.js');
8
- var elementPlus = require('element-plus');
9
- var render = require('./render.js');
10
- var index$1 = require('../../utils/index.js');
11
- var index = require('../../node_modules/.pnpm/@minilo_utils@0.0.2_vue@3.5.26_typescript@5.9.3_/node_modules/@minilo/utils/dist/request/index.js');
12
- var common = require('../../node_modules/.pnpm/@minilo_utils@0.0.2_vue@3.5.26_typescript@5.9.3_/node_modules/@minilo/utils/dist/func/common.js');
13
-
14
- var _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
- ...{
16
- name: "MlSearchTable",
17
- inheritAttrs: false
18
- },
19
- __name: "index",
20
- props: /* @__PURE__ */ vue.mergeModels(props.searchTableProps, {
21
- "search": { type: Object },
22
- "searchModifiers": {}
23
- }),
24
- emits: /* @__PURE__ */ vue.mergeModels(["reset"], ["update:search"]),
25
- setup(__props, { expose: __expose, emit: __emit }) {
26
- const searchModel = vue.useModel(__props, "search");
27
- const props$1 = __props;
28
- const attrs = vue.useAttrs();
29
- const emit = __emit;
30
- const axios = index.initRequestInstance({
31
- baseURL: "",
32
- headers: props$1.headers
33
- });
34
- const data = vue.ref([]);
35
- const loading = vue.ref(false);
36
- const pagination = vue.ref({
37
- currentPage: 1,
38
- pageSize: 20,
39
- total: 100
40
- });
41
- const handleSearch = async (reset2 = true) => {
42
- try {
43
- if (reset2) {
44
- pagination.value.currentPage = 1;
45
- }
46
- const defaultParams = {
47
- ...searchModel.value
48
- };
49
- if (props$1.showPagination) {
50
- Object.assign(defaultParams, {
51
- pageSize: pagination.value.pageSize,
52
- currentPage: pagination.value.currentPage
53
- });
54
- }
55
- const params = props$1.paramsHandler ? props$1.paramsHandler(defaultParams) : defaultParams;
56
- const requestParams = [props.RequestMethodType.GET, props.RequestMethodType.DELETE].includes(
57
- props$1.methodType
58
- ) ? { params } : params;
59
- loading.value = true;
60
- const res = await axios[props$1.methodType](
61
- props$1.url,
62
- requestParams
63
- );
64
- data.value = common.getNestedValue(res, props$1.responseDataField);
65
- if (props$1.showPagination) {
66
- pagination.value.total = common.getNestedValue(res, props$1.responseTotalField);
67
- }
68
- } catch (error) {
69
- console.log(error);
70
- } finally {
71
- loading.value = false;
72
- }
73
- };
74
- const submit = () => {
75
- handleSearch();
76
- };
77
- const reset = () => {
78
- emit("reset");
79
- handleSearch();
80
- };
81
- vue.onMounted(() => {
82
- handleSearch();
83
- });
84
- __expose({
85
- handleSearch
86
- });
87
- const tableListeners = Object.keys(attrs).reduce((listeners, key) => {
88
- if (key.startsWith("on")) {
89
- listeners[key] = attrs[key];
90
- }
91
- return listeners;
92
- }, {});
93
- return (_ctx, _cache) => {
94
- const _directive_loading = vue.resolveDirective("loading");
95
- return vue.openBlock(), vue.createElementBlock(
96
- "div",
97
- {
98
- class: vue.normalizeClass(vue.unref(index$1.bem)("search-table"))
99
- },
100
- [
101
- vue.createVNode(index_vue_vue_type_script_setup_true_lang.default, vue.mergeProps({
102
- onSubmit: submit,
103
- onReset: reset,
104
- modelValue: searchModel.value,
105
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchModel.value = $event)
106
- }, _ctx.searchProps), vue.createSlots({
107
- _: 2
108
- /* DYNAMIC */
109
- }, [
110
- vue.renderList(_ctx.searchProps.slots, (item) => {
111
- return {
112
- name: item.prop,
113
- fn: vue.withCtx(() => [
114
- vue.renderSlot(_ctx.$slots, item.prop)
115
- ])
116
- };
117
- })
118
- ]), 1040, ["modelValue"]),
119
- vue.renderSlot(_ctx.$slots, "prefix"),
120
- vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTable), vue.mergeProps(vue.toHandlers(vue.unref(tableListeners)), {
121
- class: vue.unref(index$1.bem)("search-table", "content")
122
- }, _ctx.tableProps, {
123
- border: true,
124
- data: data.value
125
- }), {
126
- default: vue.withCtx(() => [
127
- (vue.openBlock(true), vue.createElementBlock(
128
- vue.Fragment,
129
- null,
130
- vue.renderList(_ctx.columns, (item, index) => {
131
- return vue.openBlock(), vue.createBlock(
132
- vue.unref(elementPlus.ElTableColumn),
133
- vue.mergeProps({ key: index }, { ref_for: true }, item),
134
- {
135
- default: vue.withCtx((scope) => [
136
- item.slotName ? vue.renderSlot(_ctx.$slots, item.slotName, {
137
- key: 0,
138
- index: scope.$index,
139
- row: scope.row
140
- }) : vue.createCommentVNode("v-if", true),
141
- item.render ? (vue.openBlock(), vue.createBlock(vue.unref(render.default), {
142
- key: 1,
143
- scope,
144
- render: item.render
145
- }, null, 8, ["scope", "render"])) : vue.createCommentVNode("v-if", true)
146
- ]),
147
- _: 2
148
- /* DYNAMIC */
149
- },
150
- 1040
151
- /* FULL_PROPS, DYNAMIC_SLOTS */
152
- );
153
- }),
154
- 128
155
- /* KEYED_FRAGMENT */
156
- ))
157
- ]),
158
- _: 3
159
- /* FORWARDED */
160
- }, 16, ["class", "data"])), [
161
- [
162
- _directive_loading,
163
- loading.value,
164
- void 0,
165
- { lock: true }
166
- ]
167
- ]),
168
- vue.createElementVNode(
169
- "div",
170
- {
171
- class: vue.normalizeClass(vue.unref(index$1.bem)("search-table", "pagination"))
172
- },
173
- [
174
- _ctx.showPagination ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPagination), {
175
- key: 0,
176
- onChange: _cache[1] || (_cache[1] = ($event) => handleSearch(false)),
177
- style: { "margin-top": "10px" },
178
- background: "",
179
- layout: "total, sizes, prev, pager, next, jumper",
180
- "page-size": pagination.value.pageSize,
181
- "onUpdate:pageSize": _cache[2] || (_cache[2] = ($event) => pagination.value.pageSize = $event),
182
- "current-page": pagination.value.currentPage,
183
- "onUpdate:currentPage": _cache[3] || (_cache[3] = ($event) => pagination.value.currentPage = $event),
184
- total: pagination.value.total
185
- }, null, 8, ["page-size", "current-page", "total"])) : vue.createCommentVNode("v-if", true)
186
- ],
187
- 2
188
- /* CLASS */
189
- ),
190
- vue.renderSlot(_ctx.$slots, "suffix")
191
- ],
192
- 2
193
- /* CLASS */
194
- );
195
- };
196
- }
197
- });
198
-
199
- exports.default = _sfc_main;