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