@minilo/ui 0.0.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 (165) hide show
  1. package/README.md +44 -0
  2. package/minilo/dist/index.css +1 -0
  3. package/minilo/dist/index.full.js +7054 -0
  4. package/minilo/dist/index.full.min.js +2 -0
  5. package/minilo/dist/index.full.min.js.map +1 -0
  6. package/minilo/dist/index.full.min.mjs +2 -0
  7. package/minilo/dist/index.full.min.mjs.map +1 -0
  8. package/minilo/dist/index.full.mjs +7041 -0
  9. package/minilo/es/components/button/index.d.ts +47 -0
  10. package/minilo/es/components/button/index.mjs +6 -0
  11. package/minilo/es/components/button/index.vue.d.ts +29 -0
  12. package/minilo/es/components/button/index.vue.mjs +5 -0
  13. package/minilo/es/components/button/index.vue2.mjs +67 -0
  14. package/minilo/es/components/button/type.d.ts +10 -0
  15. package/minilo/es/components/button/type.mjs +1 -0
  16. package/minilo/es/components/chart/index.d.ts +49 -0
  17. package/minilo/es/components/chart/index.mjs +6 -0
  18. package/minilo/es/components/chart/index.vue.d.ts +33 -0
  19. package/minilo/es/components/chart/index.vue.mjs +5 -0
  20. package/minilo/es/components/chart/index.vue2.mjs +124 -0
  21. package/minilo/es/components/chart/type.d.ts +7 -0
  22. package/minilo/es/components/chart/type.mjs +1 -0
  23. package/minilo/es/components/detail/index.d.ts +37 -0
  24. package/minilo/es/components/detail/index.mjs +6 -0
  25. package/minilo/es/components/detail/index.vue.d.ts +23 -0
  26. package/minilo/es/components/detail/index.vue.mjs +5 -0
  27. package/minilo/es/components/detail/index.vue2.mjs +194 -0
  28. package/minilo/es/components/detail/renderLabel.vue.d.ts +8 -0
  29. package/minilo/es/components/detail/renderLabel.vue.mjs +5 -0
  30. package/minilo/es/components/detail/renderLabel.vue2.mjs +23 -0
  31. package/minilo/es/components/detail/renderTooltip.vue.d.ts +8 -0
  32. package/minilo/es/components/detail/renderTooltip.vue.mjs +5 -0
  33. package/minilo/es/components/detail/renderTooltip.vue2.mjs +23 -0
  34. package/minilo/es/components/detail/type.d.ts +27 -0
  35. package/minilo/es/components/detail/type.mjs +1 -0
  36. package/minilo/es/components/index.d.ts +7 -0
  37. package/minilo/es/components/index.mjs +7 -0
  38. package/minilo/es/components/number-range-input/index.d.ts +41 -0
  39. package/minilo/es/components/number-range-input/index.mjs +6 -0
  40. package/minilo/es/components/number-range-input/index.vue.d.ts +33 -0
  41. package/minilo/es/components/number-range-input/index.vue.mjs +5 -0
  42. package/minilo/es/components/number-range-input/index.vue2.mjs +150 -0
  43. package/minilo/es/components/number-range-input/props.d.ts +10 -0
  44. package/minilo/es/components/number-range-input/props.mjs +1 -0
  45. package/minilo/es/components/search/index.d.ts +586 -0
  46. package/minilo/es/components/search/index.mjs +6 -0
  47. package/minilo/es/components/search/index.vue.d.ts +750 -0
  48. package/minilo/es/components/search/index.vue.mjs +5 -0
  49. package/minilo/es/components/search/index.vue2.mjs +298 -0
  50. package/minilo/es/components/search/props.d.ts +107 -0
  51. package/minilo/es/components/search/props.mjs +55 -0
  52. package/minilo/es/components/search-table/index.d.ts +274 -0
  53. package/minilo/es/components/search-table/index.mjs +6 -0
  54. package/minilo/es/components/search-table/index.vue.d.ts +173 -0
  55. package/minilo/es/components/search-table/index.vue.mjs +5 -0
  56. package/minilo/es/components/search-table/index.vue2.mjs +195 -0
  57. package/minilo/es/components/search-table/props.d.ts +69 -0
  58. package/minilo/es/components/search-table/props.mjs +69 -0
  59. package/minilo/es/components/search-table/render.d.ts +11 -0
  60. package/minilo/es/components/search-table/render.mjs +19 -0
  61. package/minilo/es/components/virtual-list/index.d.ts +59 -0
  62. package/minilo/es/components/virtual-list/index.mjs +6 -0
  63. package/minilo/es/components/virtual-list/index.vue.d.ts +39 -0
  64. package/minilo/es/components/virtual-list/index.vue.mjs +5 -0
  65. package/minilo/es/components/virtual-list/index.vue2.mjs +421 -0
  66. package/minilo/es/components/virtual-list/type.d.ts +20 -0
  67. package/minilo/es/components/virtual-list/type.mjs +1 -0
  68. package/minilo/es/index.d.ts +1087 -0
  69. package/minilo/es/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.mjs +25 -0
  70. package/minilo/es/node_modules/.pnpm/@vueuse_core@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs +73 -0
  71. package/minilo/es/node_modules/.pnpm/@vueuse_shared@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs +76 -0
  72. package/minilo/es/packages/utils/dist/func/common.mjs +14 -0
  73. package/minilo/es/packages/utils/dist/request/index.mjs +110 -0
  74. package/minilo/es/resolver/index.d.ts +8 -0
  75. package/minilo/es/resolver/index.mjs +26 -0
  76. package/minilo/es/utils/index.d.ts +28 -0
  77. package/minilo/es/utils/index.mjs +30 -0
  78. package/minilo/lib/components/button/index.d.ts +47 -0
  79. package/minilo/lib/components/button/index.js +11 -0
  80. package/minilo/lib/components/button/index.vue.d.ts +29 -0
  81. package/minilo/lib/components/button/index.vue.js +9 -0
  82. package/minilo/lib/components/button/index.vue2.js +71 -0
  83. package/minilo/lib/components/button/type.d.ts +10 -0
  84. package/minilo/lib/components/button/type.js +2 -0
  85. package/minilo/lib/components/chart/index.d.ts +49 -0
  86. package/minilo/lib/components/chart/index.js +11 -0
  87. package/minilo/lib/components/chart/index.vue.d.ts +33 -0
  88. package/minilo/lib/components/chart/index.vue.js +9 -0
  89. package/minilo/lib/components/chart/index.vue2.js +128 -0
  90. package/minilo/lib/components/chart/type.d.ts +7 -0
  91. package/minilo/lib/components/chart/type.js +2 -0
  92. package/minilo/lib/components/detail/index.d.ts +37 -0
  93. package/minilo/lib/components/detail/index.js +11 -0
  94. package/minilo/lib/components/detail/index.vue.d.ts +23 -0
  95. package/minilo/lib/components/detail/index.vue.js +9 -0
  96. package/minilo/lib/components/detail/index.vue2.js +198 -0
  97. package/minilo/lib/components/detail/renderLabel.vue.d.ts +8 -0
  98. package/minilo/lib/components/detail/renderLabel.vue.js +9 -0
  99. package/minilo/lib/components/detail/renderLabel.vue2.js +27 -0
  100. package/minilo/lib/components/detail/renderTooltip.vue.d.ts +8 -0
  101. package/minilo/lib/components/detail/renderTooltip.vue.js +9 -0
  102. package/minilo/lib/components/detail/renderTooltip.vue2.js +27 -0
  103. package/minilo/lib/components/detail/type.d.ts +27 -0
  104. package/minilo/lib/components/detail/type.js +2 -0
  105. package/minilo/lib/components/index.d.ts +7 -0
  106. package/minilo/lib/components/index.js +19 -0
  107. package/minilo/lib/components/number-range-input/index.d.ts +41 -0
  108. package/minilo/lib/components/number-range-input/index.js +11 -0
  109. package/minilo/lib/components/number-range-input/index.vue.d.ts +33 -0
  110. package/minilo/lib/components/number-range-input/index.vue.js +9 -0
  111. package/minilo/lib/components/number-range-input/index.vue2.js +154 -0
  112. package/minilo/lib/components/number-range-input/props.d.ts +10 -0
  113. package/minilo/lib/components/number-range-input/props.js +2 -0
  114. package/minilo/lib/components/search/index.d.ts +586 -0
  115. package/minilo/lib/components/search/index.js +11 -0
  116. package/minilo/lib/components/search/index.vue.d.ts +750 -0
  117. package/minilo/lib/components/search/index.vue.js +9 -0
  118. package/minilo/lib/components/search/index.vue2.js +302 -0
  119. package/minilo/lib/components/search/props.d.ts +107 -0
  120. package/minilo/lib/components/search/props.js +58 -0
  121. package/minilo/lib/components/search-table/index.d.ts +274 -0
  122. package/minilo/lib/components/search-table/index.js +11 -0
  123. package/minilo/lib/components/search-table/index.vue.d.ts +173 -0
  124. package/minilo/lib/components/search-table/index.vue.js +9 -0
  125. package/minilo/lib/components/search-table/index.vue2.js +199 -0
  126. package/minilo/lib/components/search-table/props.d.ts +69 -0
  127. package/minilo/lib/components/search-table/props.js +72 -0
  128. package/minilo/lib/components/search-table/render.d.ts +11 -0
  129. package/minilo/lib/components/search-table/render.js +23 -0
  130. package/minilo/lib/components/virtual-list/index.d.ts +59 -0
  131. package/minilo/lib/components/virtual-list/index.js +11 -0
  132. package/minilo/lib/components/virtual-list/index.vue.d.ts +39 -0
  133. package/minilo/lib/components/virtual-list/index.vue.js +9 -0
  134. package/minilo/lib/components/virtual-list/index.vue2.js +425 -0
  135. package/minilo/lib/components/virtual-list/type.d.ts +20 -0
  136. package/minilo/lib/components/virtual-list/type.js +2 -0
  137. package/minilo/lib/index.d.ts +1087 -0
  138. package/minilo/lib/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 +27 -0
  139. package/minilo/lib/node_modules/.pnpm/@vueuse_core@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/core/index.js +84 -0
  140. package/minilo/lib/node_modules/.pnpm/@vueuse_shared@13.6.0_vue@3.5.17_typescript@5.9.3_/node_modules/@vueuse/shared/index.js +83 -0
  141. package/minilo/lib/packages/utils/dist/func/common.js +16 -0
  142. package/minilo/lib/packages/utils/dist/request/index.js +120 -0
  143. package/minilo/lib/resolver/index.d.ts +8 -0
  144. package/minilo/lib/resolver/index.js +28 -0
  145. package/minilo/lib/utils/index.d.ts +28 -0
  146. package/minilo/lib/utils/index.js +34 -0
  147. package/minilo/theme-chalk/index.css +1 -0
  148. package/minilo/theme-chalk/ml-button.css +1 -0
  149. package/minilo/theme-chalk/ml-chart.css +1 -0
  150. package/minilo/theme-chalk/ml-detail.css +1 -0
  151. package/minilo/theme-chalk/ml-number-range-input.css +1 -0
  152. package/minilo/theme-chalk/ml-search-table.css +1 -0
  153. package/minilo/theme-chalk/ml-search.css +1 -0
  154. package/minilo/theme-chalk/ml-virtual-list.css +1 -0
  155. package/minilo/theme-chalk/src/button.scss +22 -0
  156. package/minilo/theme-chalk/src/chart.scss +11 -0
  157. package/minilo/theme-chalk/src/default/variable.scss +1 -0
  158. package/minilo/theme-chalk/src/detail.scss +9 -0
  159. package/minilo/theme-chalk/src/index.scss +12 -0
  160. package/minilo/theme-chalk/src/mixins/mixin.scss +273 -0
  161. package/minilo/theme-chalk/src/number-range-input.scss +9 -0
  162. package/minilo/theme-chalk/src/search-table.scss +47 -0
  163. package/minilo/theme-chalk/src/search.scss +20 -0
  164. package/minilo/theme-chalk/src/virtual-list.scss +49 -0
  165. package/package.json +107 -0
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './index.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,298 @@
1
+ import { defineComponent, mergeModels, ref, useModel, onMounted, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createElementVNode, createBlock, createCommentVNode, Fragment, renderList, withDirectives, mergeProps, renderSlot, vShow, withModifiers, createTextVNode, toDisplayString } from 'vue';
2
+ import { SearchTypeEnum, searchProps } from './props.mjs';
3
+ import { Icon } from '@iconify/vue';
4
+ import { ElForm, ElRow, ElCol, ElFormItem, ElInput, ElSelect, ElOption, ElDatePicker, ElButton, ElLink } from 'element-plus';
5
+ import { bem } from '../../utils/index.mjs';
6
+
7
+ var _sfc_main = /* @__PURE__ */ defineComponent({
8
+ ...{ name: "MlSearch" },
9
+ __name: "index",
10
+ props: /* @__PURE__ */ mergeModels(searchProps, {
11
+ "modelValue": { type: Object },
12
+ "modelModifiers": {}
13
+ }),
14
+ emits: /* @__PURE__ */ mergeModels(["submit", "reset"], ["update:modelValue"]),
15
+ setup(__props, { expose: __expose, emit: __emit }) {
16
+ const props = __props;
17
+ const options = ref([]);
18
+ const searchFormRef = ref();
19
+ const isCollapse = ref(false);
20
+ const searchModel = useModel(__props, "modelValue");
21
+ const emit = __emit;
22
+ const handleSubmit = () => {
23
+ emit("submit");
24
+ };
25
+ const handleReset = () => {
26
+ searchFormRef.value?.resetFields();
27
+ emit("reset");
28
+ };
29
+ onMounted(() => {
30
+ console.log(props);
31
+ const itemProps = props.item.map((item) => ({
32
+ type: SearchTypeEnum.ITEM,
33
+ ...item
34
+ }));
35
+ const slotProps = props.slots.map((item) => ({
36
+ type: SearchTypeEnum.SLOT,
37
+ ...item
38
+ }));
39
+ slotProps.forEach((item) => {
40
+ itemProps.splice(item.position || 0, 0, item);
41
+ });
42
+ options.value = itemProps;
43
+ console.log("\u914D\u7F6E\u9879\u7684\u503C:", options.value);
44
+ });
45
+ __expose({});
46
+ return (_ctx, _cache) => {
47
+ return openBlock(), createElementBlock(
48
+ "div",
49
+ {
50
+ class: normalizeClass(unref(bem)("search"))
51
+ },
52
+ [
53
+ createVNode(unref(ElForm), {
54
+ size: _ctx.size,
55
+ "label-position": _ctx.labelPosition,
56
+ inline: _ctx.inline,
57
+ model: searchModel.value,
58
+ "label-width": _ctx.labelWidth,
59
+ ref_key: "searchFormRef",
60
+ ref: searchFormRef
61
+ }, {
62
+ default: withCtx(() => [
63
+ createElementVNode(
64
+ "div",
65
+ {
66
+ class: normalizeClass(unref(bem)("search", "content"))
67
+ },
68
+ [
69
+ createElementVNode(
70
+ "div",
71
+ {
72
+ class: normalizeClass(unref(bem)("search", "content__left"))
73
+ },
74
+ [
75
+ createVNode(unref(ElRow), { gutter: _ctx.gutter }, {
76
+ default: withCtx(() => [
77
+ (openBlock(true), createElementBlock(
78
+ Fragment,
79
+ null,
80
+ renderList(options.value, (item, index) => {
81
+ return withDirectives((openBlock(), createBlock(unref(ElCol), mergeProps({
82
+ key: item.prop,
83
+ span: _ctx.span
84
+ }, { ref_for: true }, item.colProps), {
85
+ default: withCtx(() => [
86
+ createVNode(unref(ElFormItem), mergeProps({ ref_for: true }, item.formItemProps, {
87
+ prop: item.prop
88
+ }), {
89
+ default: withCtx(() => [
90
+ item.type === unref(SearchTypeEnum).SLOT ? renderSlot(_ctx.$slots, item.prop, {
91
+ key: 0,
92
+ searchModel: searchModel.value
93
+ }) : (openBlock(), createElementBlock(
94
+ Fragment,
95
+ { key: 1 },
96
+ [
97
+ createCommentVNode(" \u8F93\u5165\u6846 "),
98
+ item.input.type === "input" ? (openBlock(), createBlock(unref(ElInput), mergeProps({
99
+ key: 0,
100
+ modelValue: searchModel.value[item.prop],
101
+ "onUpdate:modelValue": ($event) => searchModel.value[item.prop] = $event
102
+ }, { ref_for: true }, item.input.props, { clearable: "" }), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
103
+ createCommentVNode(" \u7B5B\u9009\u6846 "),
104
+ item.input.type === "select" ? (openBlock(), createBlock(unref(ElSelect), mergeProps({
105
+ key: 1,
106
+ modelValue: searchModel.value[item.prop],
107
+ "onUpdate:modelValue": ($event) => searchModel.value[item.prop] = $event
108
+ }, { ref_for: true }, item.input.props, {
109
+ style: { "width": "100%" },
110
+ clearable: ""
111
+ }), {
112
+ default: withCtx(() => [
113
+ (openBlock(true), createElementBlock(
114
+ Fragment,
115
+ null,
116
+ renderList(item.input.props.options, (subItem) => {
117
+ return openBlock(), createBlock(unref(ElOption), {
118
+ key: subItem.value,
119
+ label: subItem[item.input.props.labelKey],
120
+ value: subItem[item.input.props.valueKey],
121
+ disabled: subItem.disabled
122
+ }, null, 8, ["label", "value", "disabled"]);
123
+ }),
124
+ 128
125
+ /* KEYED_FRAGMENT */
126
+ ))
127
+ ]),
128
+ _: 2
129
+ /* DYNAMIC */
130
+ }, 1040, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
131
+ createCommentVNode(" \u65F6\u95F4\u9009\u62E9\u6846 "),
132
+ item.input.type === "date-picker" ? (openBlock(), createBlock(unref(ElDatePicker), mergeProps({
133
+ key: 2,
134
+ modelValue: searchModel.value[item.prop],
135
+ "onUpdate:modelValue": ($event) => searchModel.value[item.prop] = $event
136
+ }, { ref_for: true }, item.input.props), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
137
+ ],
138
+ 64
139
+ /* STABLE_FRAGMENT */
140
+ ))
141
+ ]),
142
+ _: 2
143
+ /* DYNAMIC */
144
+ }, 1040, ["prop"])
145
+ ]),
146
+ _: 2
147
+ /* DYNAMIC */
148
+ }, 1040, ["span"])), [
149
+ [vShow, !isCollapse.value ? true : index <= 24 / _ctx.span - 1]
150
+ ]);
151
+ }),
152
+ 128
153
+ /* KEYED_FRAGMENT */
154
+ )),
155
+ options.value.length <= 24 / _ctx.span - 1 ? (openBlock(), createBlock(unref(ElCol), {
156
+ key: 0,
157
+ span: _ctx.span
158
+ }, {
159
+ default: withCtx(() => [
160
+ createVNode(unref(ElFormItem), { label: "\u64CD\u4F5C" }, {
161
+ default: withCtx(() => [
162
+ createVNode(unref(ElButton), {
163
+ type: "primary",
164
+ size: _ctx.size,
165
+ loading: false,
166
+ onClick: withModifiers(handleSubmit, ["stop"])
167
+ }, {
168
+ default: withCtx(() => [
169
+ createTextVNode(
170
+ toDisplayString(_ctx.submitBtnText),
171
+ 1
172
+ /* TEXT */
173
+ )
174
+ ]),
175
+ _: 1
176
+ /* STABLE */
177
+ }, 8, ["size"]),
178
+ createVNode(unref(ElButton), {
179
+ loading: false,
180
+ onClick: withModifiers(handleReset, ["stop"])
181
+ }, {
182
+ default: withCtx(() => [
183
+ createTextVNode(
184
+ toDisplayString(_ctx.resetBtnText),
185
+ 1
186
+ /* TEXT */
187
+ )
188
+ ]),
189
+ _: 1
190
+ /* STABLE */
191
+ })
192
+ ]),
193
+ _: 1
194
+ /* STABLE */
195
+ })
196
+ ]),
197
+ _: 1
198
+ /* STABLE */
199
+ }, 8, ["span"])) : createCommentVNode("v-if", true)
200
+ ]),
201
+ _: 3
202
+ /* FORWARDED */
203
+ }, 8, ["gutter"])
204
+ ],
205
+ 2
206
+ /* CLASS */
207
+ ),
208
+ options.value.length > 24 / _ctx.span - 1 ? (openBlock(), createElementBlock(
209
+ "div",
210
+ {
211
+ key: 0,
212
+ class: normalizeClass(unref(bem)("search", "content__right"))
213
+ },
214
+ [
215
+ createVNode(unref(ElFormItem), { label: "\u64CD\u4F5C" }, {
216
+ default: withCtx(() => [
217
+ createVNode(unref(ElButton), {
218
+ type: "primary",
219
+ size: _ctx.size,
220
+ loading: false,
221
+ onClick: withModifiers(handleSubmit, ["stop"])
222
+ }, {
223
+ default: withCtx(() => [
224
+ createTextVNode(
225
+ toDisplayString(_ctx.submitBtnText),
226
+ 1
227
+ /* TEXT */
228
+ )
229
+ ]),
230
+ _: 1
231
+ /* STABLE */
232
+ }, 8, ["size"]),
233
+ createVNode(unref(ElButton), {
234
+ loading: false,
235
+ onClick: withModifiers(handleReset, ["stop"])
236
+ }, {
237
+ default: withCtx(() => [
238
+ createTextVNode(
239
+ toDisplayString(_ctx.resetBtnText),
240
+ 1
241
+ /* TEXT */
242
+ )
243
+ ]),
244
+ _: 1
245
+ /* STABLE */
246
+ })
247
+ ]),
248
+ _: 1
249
+ /* STABLE */
250
+ })
251
+ ],
252
+ 2
253
+ /* CLASS */
254
+ )) : createCommentVNode("v-if", true)
255
+ ],
256
+ 2
257
+ /* CLASS */
258
+ ),
259
+ options.value.length > 24 / _ctx.span ? (openBlock(), createBlock(unref(ElRow), {
260
+ key: 0,
261
+ class: normalizeClass(unref(bem)("search", "collapse"))
262
+ }, {
263
+ default: withCtx(() => [
264
+ createVNode(unref(ElLink), {
265
+ type: "primary",
266
+ underline: "never",
267
+ onClick: _cache[0] || (_cache[0] = ($event) => isCollapse.value = !isCollapse.value)
268
+ }, {
269
+ default: withCtx(() => [
270
+ createTextVNode(
271
+ toDisplayString(isCollapse.value ? "\u5C55\u5F00" : "\u6536\u8D77") + "\u66F4\u591A\u7B5B\u9009\u6761\u4EF6 ",
272
+ 1
273
+ /* TEXT */
274
+ ),
275
+ createVNode(unref(Icon), {
276
+ icon: isCollapse.value ? "ep:arrow-down" : "ep:arrow-up"
277
+ }, null, 8, ["icon"])
278
+ ]),
279
+ _: 1
280
+ /* STABLE */
281
+ })
282
+ ]),
283
+ _: 1
284
+ /* STABLE */
285
+ }, 8, ["class"])) : createCommentVNode("v-if", true)
286
+ ]),
287
+ _: 3
288
+ /* FORWARDED */
289
+ }, 8, ["size", "label-position", "inline", "model", "label-width"])
290
+ ],
291
+ 2
292
+ /* CLASS */
293
+ );
294
+ };
295
+ }
296
+ });
297
+
298
+ export { _sfc_main as default };
@@ -0,0 +1,107 @@
1
+ import { PropType } from 'vue';
2
+ export declare enum SearchTypeEnum {
3
+ ITEM = 1,
4
+ SLOT = 2
5
+ }
6
+ export interface SearchItem {
7
+ prop: string;
8
+ span?: number;
9
+ placeholder?: string;
10
+ multiple?: boolean;
11
+ options?: any[];
12
+ labelWidth?: string;
13
+ input?: any;
14
+ colProps?: any;
15
+ formItemProps?: any;
16
+ [keyname: string]: any;
17
+ }
18
+ export interface CustomSlot {
19
+ prop: string;
20
+ span?: number;
21
+ colProps?: any;
22
+ formItemProps?: any;
23
+ position?: number;
24
+ [keyname: string]: any;
25
+ }
26
+ export interface SearchProps extends SearchItem, CustomSlot {
27
+ type: SearchTypeEnum;
28
+ }
29
+ export interface SearchModel {
30
+ [key: string]: any;
31
+ }
32
+ export declare const searchProps: {
33
+ inline: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ disabled: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ labelWidth: {
42
+ type: (StringConstructor | NumberConstructor)[];
43
+ default: string;
44
+ };
45
+ labelPosition: {
46
+ type: PropType<"left" | "right" | "top">;
47
+ default: string;
48
+ };
49
+ size: {
50
+ type: PropType<"" | "large" | "default" | "small">;
51
+ default: string;
52
+ };
53
+ gutter: {
54
+ type: NumberConstructor[];
55
+ default: number;
56
+ };
57
+ span: {
58
+ type: NumberConstructor;
59
+ default: number;
60
+ };
61
+ submitBtnText: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ resetBtnText: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ slots: {
70
+ type: {
71
+ (arrayLength: number): CustomSlot[];
72
+ (...items: CustomSlot[]): CustomSlot[];
73
+ new (arrayLength: number): CustomSlot[];
74
+ new (...items: CustomSlot[]): CustomSlot[];
75
+ isArray(arg: any): arg is any[];
76
+ readonly prototype: any[];
77
+ from<T>(arrayLike: ArrayLike<T>): T[];
78
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
79
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
80
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
81
+ of<T>(...items: T[]): T[];
82
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
83
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
84
+ readonly [Symbol.species]: ArrayConstructor;
85
+ };
86
+ default: () => never[];
87
+ };
88
+ item: {
89
+ type: {
90
+ (arrayLength: number): SearchItem[];
91
+ (...items: SearchItem[]): SearchItem[];
92
+ new (arrayLength: number): SearchItem[];
93
+ new (...items: SearchItem[]): SearchItem[];
94
+ isArray(arg: any): arg is any[];
95
+ readonly prototype: any[];
96
+ from<T>(arrayLike: ArrayLike<T>): T[];
97
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
98
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
99
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
100
+ of<T>(...items: T[]): T[];
101
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
102
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
103
+ readonly [Symbol.species]: ArrayConstructor;
104
+ };
105
+ default: () => never[];
106
+ };
107
+ };
@@ -0,0 +1,55 @@
1
+ var SearchTypeEnum = /* @__PURE__ */ ((SearchTypeEnum2) => {
2
+ SearchTypeEnum2[SearchTypeEnum2["ITEM"] = 1] = "ITEM";
3
+ SearchTypeEnum2[SearchTypeEnum2["SLOT"] = 2] = "SLOT";
4
+ return SearchTypeEnum2;
5
+ })(SearchTypeEnum || {});
6
+ const searchProps = {
7
+ inline: {
8
+ type: Boolean,
9
+ default: false
10
+ },
11
+ disabled: {
12
+ type: Boolean,
13
+ default: false
14
+ },
15
+ labelWidth: {
16
+ type: [String, Number],
17
+ default: ""
18
+ },
19
+ // 'left' | 'right' | 'top'
20
+ labelPosition: {
21
+ type: String,
22
+ default: "top"
23
+ },
24
+ // '' | 'large' | 'default' | 'small'
25
+ size: {
26
+ type: String,
27
+ default: "default"
28
+ },
29
+ gutter: {
30
+ type: [Number],
31
+ default: 10
32
+ },
33
+ span: {
34
+ type: Number,
35
+ default: 6
36
+ },
37
+ submitBtnText: {
38
+ type: String,
39
+ default: "\u67E5\u8BE2"
40
+ },
41
+ resetBtnText: {
42
+ type: String,
43
+ default: "\u91CD\u7F6E"
44
+ },
45
+ slots: {
46
+ type: Array,
47
+ default: () => []
48
+ },
49
+ item: {
50
+ type: Array,
51
+ default: () => []
52
+ }
53
+ };
54
+
55
+ export { SearchTypeEnum, searchProps };