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