bm-admin-ui 1.0.36-alpha → 1.0.38-alpha

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 (202) hide show
  1. package/es/components/button/index.d.ts +3 -0
  2. package/es/components/button/src/button.d.ts +12 -0
  3. package/es/components/button/src/button.vue.d.ts +306 -0
  4. package/es/components/feedback/index.d.ts +9 -0
  5. package/es/components/feedback/index.js +2 -2
  6. package/es/components/feedback/src/bmAlert.vue.d.ts +191 -0
  7. package/es/components/feedback/src/bmModal.vue.d.ts +839 -0
  8. package/es/components/float-table/index.d.ts +3 -0
  9. package/es/components/float-table/index.js +27 -36
  10. package/es/components/float-table/src/float-table.vue.d.ts +69 -0
  11. package/es/components/flow-designer/index.d.ts +3 -0
  12. package/es/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
  13. package/es/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
  14. package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
  15. package/es/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
  16. package/es/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
  17. package/es/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
  18. package/es/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
  19. package/es/components/flow-designer/src/config.d.ts +24 -0
  20. package/es/components/flow-designer/src/flow-designer-test.d.ts +20 -0
  21. package/es/components/flow-designer/src/flow-designer.d.ts +11 -0
  22. package/es/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  23. package/es/components/flow-designer/src/utils.d.ts +29 -0
  24. package/es/components/form-create/index.js +125 -163
  25. package/es/components/form-designer/index.js +271 -233
  26. package/es/components/index.d.ts +12 -0
  27. package/es/components/index.js +1 -0
  28. package/es/components/input-tags-display/index.d.ts +3 -0
  29. package/es/components/input-tags-display/index.js +21 -29
  30. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
  31. package/es/components/over-tooltips/index.d.ts +3 -0
  32. package/es/components/over-tooltips/index.js +20 -27
  33. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  34. package/es/components/search-filter/index.d.ts +3 -0
  35. package/es/components/search-filter/index.js +21 -25
  36. package/es/components/search-filter/src/search-filter.d.ts +89 -0
  37. package/es/components/search-filter/src/search-filter.vue.d.ts +234 -0
  38. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
  39. package/es/components/select-all/index.d.ts +3 -0
  40. package/es/components/select-all/index.js +157 -0
  41. package/es/components/select-all/src/selectAll.vue.d.ts +753 -0
  42. package/es/components/shops-filter/index.d.ts +3 -0
  43. package/es/components/shops-filter/index.js +43 -58
  44. package/es/components/shops-filter/src/shops-filter.d.ts +25 -0
  45. package/es/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  46. package/es/components/staffs-selector/index.d.ts +3 -0
  47. package/es/components/staffs-selector/index.js +102 -137
  48. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  49. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  50. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  51. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  52. package/es/components/timeline/index.d.ts +5 -0
  53. package/es/components/timeline/index.js +7 -7
  54. package/es/components/timeline/src/props.d.ts +27 -0
  55. package/es/components/timeline/src/timeline-item.vue.d.ts +64 -0
  56. package/es/components/timeline/src/timeline.vue.d.ts +50 -0
  57. package/es/components/upload/index.d.ts +3 -0
  58. package/es/components/upload/index.js +78 -115
  59. package/es/components/upload/src/icons.d.ts +13 -0
  60. package/es/components/upload/src/upload.vue.d.ts +105 -0
  61. package/es/components/upload/utils/index.d.ts +7 -0
  62. package/es/index.d.ts +6 -0
  63. package/es/utils/bm-admin-ui-resolver.d.ts +11 -0
  64. package/es/utils/uniqueId.d.ts +1 -0
  65. package/es/utils/vxe-table.d.ts +6 -0
  66. package/es/utils/with-install.d.ts +1 -0
  67. package/index.esm.js +15003 -45855
  68. package/index.js +15004 -45855
  69. package/lib/components/button/index.d.ts +3 -0
  70. package/lib/components/button/src/button.d.ts +12 -0
  71. package/lib/components/button/src/button.vue.d.ts +306 -0
  72. package/lib/components/feedback/index.d.ts +9 -0
  73. package/lib/components/feedback/index.js +1 -1
  74. package/lib/components/feedback/src/bmAlert.vue.d.ts +191 -0
  75. package/lib/components/feedback/src/bmModal.vue.d.ts +839 -0
  76. package/lib/components/float-table/index.d.ts +3 -0
  77. package/lib/components/float-table/index.js +27 -36
  78. package/lib/components/float-table/src/float-table.vue.d.ts +69 -0
  79. package/lib/components/flow-designer/index.d.ts +3 -0
  80. package/lib/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
  81. package/lib/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
  82. package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
  83. package/lib/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
  84. package/lib/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
  85. package/lib/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
  86. package/lib/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
  87. package/lib/components/flow-designer/src/config.d.ts +24 -0
  88. package/lib/components/flow-designer/src/flow-designer-test.d.ts +20 -0
  89. package/lib/components/flow-designer/src/flow-designer.d.ts +11 -0
  90. package/lib/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  91. package/lib/components/flow-designer/src/utils.d.ts +29 -0
  92. package/lib/components/form-create/index.js +124 -162
  93. package/lib/components/form-designer/index.js +270 -232
  94. package/lib/components/index.d.ts +12 -0
  95. package/lib/components/index.js +7 -0
  96. package/lib/components/input-tags-display/index.d.ts +3 -0
  97. package/lib/components/input-tags-display/index.js +20 -28
  98. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
  99. package/lib/components/over-tooltips/index.d.ts +3 -0
  100. package/lib/components/over-tooltips/index.js +20 -27
  101. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  102. package/lib/components/search-filter/index.d.ts +3 -0
  103. package/lib/components/search-filter/index.js +21 -25
  104. package/lib/components/search-filter/src/search-filter.d.ts +89 -0
  105. package/lib/components/search-filter/src/search-filter.vue.d.ts +234 -0
  106. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
  107. package/lib/components/select-all/index.d.ts +3 -0
  108. package/lib/components/select-all/index.js +166 -0
  109. package/lib/components/select-all/src/selectAll.vue.d.ts +753 -0
  110. package/lib/components/shops-filter/index.d.ts +3 -0
  111. package/lib/components/shops-filter/index.js +42 -57
  112. package/lib/components/shops-filter/src/shops-filter.d.ts +25 -0
  113. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  114. package/lib/components/staffs-selector/index.d.ts +3 -0
  115. package/lib/components/staffs-selector/index.js +101 -136
  116. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  117. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  118. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  119. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  120. package/lib/components/timeline/index.d.ts +5 -0
  121. package/lib/components/timeline/index.js +7 -7
  122. package/lib/components/timeline/src/props.d.ts +27 -0
  123. package/lib/components/timeline/src/timeline-item.vue.d.ts +64 -0
  124. package/lib/components/timeline/src/timeline.vue.d.ts +50 -0
  125. package/lib/components/upload/index.d.ts +3 -0
  126. package/lib/components/upload/index.js +78 -115
  127. package/lib/components/upload/src/icons.d.ts +13 -0
  128. package/lib/components/upload/src/upload.vue.d.ts +105 -0
  129. package/lib/components/upload/utils/index.d.ts +7 -0
  130. package/lib/index.d.ts +6 -0
  131. package/lib/utils/bm-admin-ui-resolver.d.ts +11 -0
  132. package/lib/utils/uniqueId.d.ts +1 -0
  133. package/lib/utils/vxe-table.d.ts +6 -0
  134. package/lib/utils/with-install.d.ts +1 -0
  135. package/package.json +2 -2
  136. package/theme-chalk/button.css +1 -1
  137. package/theme-chalk/feedback.css +1 -1
  138. package/theme-chalk/float-table.css +1 -1
  139. package/theme-chalk/floating-vue.css +1 -1
  140. package/theme-chalk/flow-designer.css +1 -1
  141. package/theme-chalk/form-designer.css +1 -1
  142. package/theme-chalk/index.css +1 -1
  143. package/theme-chalk/modal.css +1 -1
  144. package/theme-chalk/over-tooltips.css +1 -1
  145. package/theme-chalk/search-filter.css +1 -1
  146. package/theme-chalk/select-all.css +1 -0
  147. package/theme-chalk/staffs-selector.css +1 -1
  148. package/theme-chalk/timeline.css +1 -1
  149. package/theme-chalk/upload.css +1 -1
  150. package/types/components/button/index.d.ts +3 -0
  151. package/types/components/button/src/button.d.ts +12 -0
  152. package/types/components/button/src/button.vue.d.ts +306 -0
  153. package/types/components/feedback/index.d.ts +9 -0
  154. package/types/components/feedback/src/bmAlert.vue.d.ts +191 -0
  155. package/types/components/feedback/src/bmModal.vue.d.ts +839 -0
  156. package/types/components/float-table/index.d.ts +3 -0
  157. package/types/components/float-table/src/float-table.vue.d.ts +69 -0
  158. package/types/components/flow-designer/index.d.ts +3 -0
  159. package/types/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
  160. package/types/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
  161. package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
  162. package/types/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
  163. package/types/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
  164. package/types/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
  165. package/types/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
  166. package/types/components/flow-designer/src/config.d.ts +24 -0
  167. package/types/components/flow-designer/src/flow-designer-test.d.ts +20 -0
  168. package/types/components/flow-designer/src/flow-designer.d.ts +11 -0
  169. package/types/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  170. package/types/components/flow-designer/src/utils.d.ts +29 -0
  171. package/types/components/index.d.ts +12 -0
  172. package/types/components/input-tags-display/index.d.ts +3 -0
  173. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
  174. package/types/components/over-tooltips/index.d.ts +3 -0
  175. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  176. package/types/components/search-filter/index.d.ts +3 -0
  177. package/types/components/search-filter/src/search-filter.d.ts +89 -0
  178. package/types/components/search-filter/src/search-filter.vue.d.ts +234 -0
  179. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
  180. package/types/components/select-all/index.d.ts +3 -0
  181. package/types/components/select-all/src/selectAll.vue.d.ts +753 -0
  182. package/types/components/shops-filter/index.d.ts +3 -0
  183. package/types/components/shops-filter/src/shops-filter.d.ts +25 -0
  184. package/types/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  185. package/types/components/staffs-selector/index.d.ts +3 -0
  186. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  187. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  188. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  189. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  190. package/types/components/timeline/index.d.ts +5 -0
  191. package/types/components/timeline/src/props.d.ts +27 -0
  192. package/types/components/timeline/src/timeline-item.vue.d.ts +64 -0
  193. package/types/components/timeline/src/timeline.vue.d.ts +50 -0
  194. package/types/components/upload/index.d.ts +3 -0
  195. package/types/components/upload/src/icons.d.ts +13 -0
  196. package/types/components/upload/src/upload.vue.d.ts +105 -0
  197. package/types/components/upload/utils/index.d.ts +7 -0
  198. package/types/index.d.ts +6 -0
  199. package/types/utils/bm-admin-ui-resolver.d.ts +11 -0
  200. package/types/utils/uniqueId.d.ts +1 -0
  201. package/types/utils/vxe-table.d.ts +6 -0
  202. package/types/utils/with-install.d.ts +1 -0
@@ -0,0 +1,12 @@
1
+ export * from './button';
2
+ export * from './flow-designer';
3
+ export * from './feedback';
4
+ export * from './search-filter';
5
+ export * from './shops-filter';
6
+ export * from './staffs-selector/index';
7
+ export * from './float-table';
8
+ export * from './over-tooltips';
9
+ export * from './upload';
10
+ export * from './timeline';
11
+ export * from './input-tags-display';
12
+ export * from './select-all';
@@ -11,3 +11,4 @@ export * from './over-tooltips';
11
11
  export * from './upload';
12
12
  export * from './timeline';
13
13
  export * from './input-tags-display';
14
+ export * from './select-all';
@@ -0,0 +1,3 @@
1
+ declare const BmTagsDisplay: any;
2
+ export { BmTagsDisplay };
3
+ export default BmTagsDisplay;
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, toDisplayString, withModifiers, Fragment, renderList, createBlock, createTextVNode, createCommentVNode } from 'vue';
2
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, createTextVNode, toDisplayString, withModifiers, Fragment, renderList, createBlock, createCommentVNode } from 'vue';
3
3
  import ToolTip from 'ant-design-vue/lib/tooltip';
4
4
  import Button from 'ant-design-vue/lib/button';
5
5
  import Tag from 'ant-design-vue/lib/tag';
@@ -69,9 +69,7 @@ const _sfc_main = defineComponent({
69
69
  emit("update:list", []);
70
70
  emit("clear");
71
71
  if (!props.showEmptyBtn && !props.showEmpty) {
72
- console.error(
73
- "\u4E0D\u5E94\u5C06showEmptyBtn\u4E0EshowEmpty\u90FD\u7F6E\u4E3Afalse,\u8282\u70B9\u5E76\u672A\u5B9E\u9645\u9500\u6BC1"
74
- );
72
+ console.error("\u4E0D\u5E94\u5C06showEmptyBtn\u4E0EshowEmpty\u90FD\u7F6E\u4E3Afalse,\u8282\u70B9\u5E76\u672A\u5B9E\u9645\u9500\u6BC1");
75
73
  }
76
74
  }
77
75
  function toAddTags() {
@@ -93,19 +91,15 @@ const _sfc_main = defineComponent({
93
91
  placement: props.placement,
94
92
  trigger: "hover"
95
93
  });
96
- watch(
97
- () => props.toolTipProps,
98
- (tooltipprop) => {
99
- tooltipConfig.value = {
100
- ...tooltipConfig.value,
101
- ...tooltipprop
102
- };
103
- },
104
- {
105
- immediate: true,
106
- deep: true
107
- }
108
- );
94
+ watch(() => props.toolTipProps, (tooltipprop) => {
95
+ tooltipConfig.value = {
96
+ ...tooltipConfig.value,
97
+ ...tooltipprop
98
+ };
99
+ }, {
100
+ immediate: true,
101
+ deep: true
102
+ });
109
103
  return {
110
104
  containId,
111
105
  clear,
@@ -118,12 +112,10 @@ const _hoisted_1 = { class: "bm-tags-display" };
118
112
  const _hoisted_2 = ["id"];
119
113
  const _hoisted_3 = { class: "pop-seleted" };
120
114
  const _hoisted_4 = { class: "pop-seleted-title" };
121
- const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u5DF2\u9009\u62E9");
122
- const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u9879 ");
123
- const _hoisted_7 = { class: "select-input-wrapper" };
124
- const _hoisted_8 = { key: 1 };
125
- const _hoisted_9 = { key: 2 };
126
- const _hoisted_10 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
115
+ const _hoisted_5 = { class: "select-input-wrapper" };
116
+ const _hoisted_6 = { key: 1 };
117
+ const _hoisted_7 = { key: 2 };
118
+ const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
127
119
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
128
120
  const _component_Tag = resolveComponent("Tag");
129
121
  const _component_CloseCircleFilled = resolveComponent("CloseCircleFilled");
@@ -139,9 +131,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
139
131
  title: withCtx(() => [
140
132
  createElementVNode("div", _hoisted_3, [
141
133
  createElementVNode("div", _hoisted_4, [
142
- _hoisted_5,
134
+ createTextVNode(" \u5DF2\u9009\u62E9"),
143
135
  createElementVNode("span", null, toDisplayString(_ctx.list.length), 1),
144
- _hoisted_6
136
+ createTextVNode("\u9879 ")
145
137
  ])
146
138
  ]),
147
139
  createElementVNode("div", {
@@ -163,7 +155,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
163
155
  ], 32)
164
156
  ]),
165
157
  default: withCtx(() => [
166
- createElementVNode("div", _hoisted_7, [
158
+ createElementVNode("div", _hoisted_5, [
167
159
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
168
160
  return openBlock(), createBlock(_component_Tag, {
169
161
  key: item[_ctx.fieldNames.key]
@@ -189,7 +181,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
189
181
  _: 1
190
182
  }, 16)
191
183
  ], 8, _hoisted_2)) : createCommentVNode("v-if", true),
192
- _ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_8, [
184
+ _ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6, [
193
185
  createVNode(_component_Button, {
194
186
  onClick: withModifiers(_ctx.toAddTags, ["stop"])
195
187
  }, {
@@ -199,13 +191,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
199
191
  _: 1
200
192
  }, 8, ["onClick"])
201
193
  ])) : createCommentVNode("v-if", true),
202
- _ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_9, [
194
+ _ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
203
195
  createElementVNode("div", {
204
196
  class: "selector-empty-input",
205
197
  onClick: _cache[4] || (_cache[4] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
206
198
  }, " \xA0\xA0" + toDisplayString(_ctx.placeholder), 1)
207
199
  ])) : createCommentVNode("v-if", true),
208
- _hoisted_10
200
+ _hoisted_8
209
201
  ]);
210
202
  }
211
203
  var InputTagsDisplay = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "input-tags-display.vue"]]);
@@ -0,0 +1,128 @@
1
+ declare type ItemType = {
2
+ key: string | number | any;
3
+ title: string;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<{
6
+ list: {
7
+ type: ArrayConstructor;
8
+ default: () => ItemType[];
9
+ };
10
+ showEmpty: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ placeholder: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ showEmptyBtn: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ unitStr: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ btnText: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ toolTipProps: {
31
+ type: ObjectConstructor;
32
+ default: () => {};
33
+ };
34
+ placement: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ fieldNames: {
39
+ type: ObjectConstructor;
40
+ default: () => {
41
+ key: string;
42
+ title: string;
43
+ };
44
+ };
45
+ alwaysInvoke: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ }, {
50
+ containId: string;
51
+ clear: () => void;
52
+ toAddTags: () => void;
53
+ tooltipConfig: import("vue").Ref<{
54
+ align: undefined;
55
+ arrowPointAtCenter: boolean;
56
+ autoAdjustOverflow: boolean;
57
+ color: string;
58
+ defaultVisible: boolean;
59
+ destroyTooltipOnHide: boolean;
60
+ getPopupContainer: () => HTMLElement;
61
+ mouseEnterDelay: number;
62
+ mouseLeaveDelay: number;
63
+ overlayClassName: string;
64
+ overlayStyle: null;
65
+ placement: string;
66
+ trigger: string;
67
+ }>;
68
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:list" | "addClick")[], "clear" | "update:list" | "addClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
69
+ list: {
70
+ type: ArrayConstructor;
71
+ default: () => ItemType[];
72
+ };
73
+ showEmpty: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ placeholder: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ showEmptyBtn: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ unitStr: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ btnText: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ toolTipProps: {
94
+ type: ObjectConstructor;
95
+ default: () => {};
96
+ };
97
+ placement: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
101
+ fieldNames: {
102
+ type: ObjectConstructor;
103
+ default: () => {
104
+ key: string;
105
+ title: string;
106
+ };
107
+ };
108
+ alwaysInvoke: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ }>> & {
113
+ onClear?: ((...args: any[]) => any) | undefined;
114
+ "onUpdate:list"?: ((...args: any[]) => any) | undefined;
115
+ onAddClick?: ((...args: any[]) => any) | undefined;
116
+ }, {
117
+ placeholder: string;
118
+ placement: string;
119
+ list: unknown[];
120
+ showEmpty: boolean;
121
+ showEmptyBtn: boolean;
122
+ unitStr: string;
123
+ btnText: string;
124
+ toolTipProps: Record<string, any>;
125
+ fieldNames: Record<string, any>;
126
+ alwaysInvoke: boolean;
127
+ }>;
128
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const BmOverTooltips: any;
2
+ export { BmOverTooltips };
3
+ export default BmOverTooltips;
@@ -39,19 +39,16 @@ const _sfc_main = {
39
39
  isShow: false,
40
40
  openShow: false
41
41
  });
42
- const observer = new IntersectionObserver(
43
- (entries) => {
44
- entries.forEach((item) => {
45
- if (item.intersectionRatio > 0.3) {
46
- observerDom();
47
- observer.disconnect();
48
- }
49
- });
50
- },
51
- {
52
- threshold: 0.3
53
- }
54
- );
42
+ const observer = new IntersectionObserver((entries) => {
43
+ entries.forEach((item) => {
44
+ if (item.intersectionRatio > 0.3) {
45
+ observerDom();
46
+ observer.disconnect();
47
+ }
48
+ });
49
+ }, {
50
+ threshold: 0.3
51
+ });
55
52
  function observerDom() {
56
53
  if (props.line === 1) {
57
54
  if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
@@ -67,20 +64,16 @@ const _sfc_main = {
67
64
  observer.disconnect();
68
65
  });
69
66
  let mySelf = ref();
70
- watch(
71
- () => props.showAlways,
72
- function(showAlways) {
73
- if (showAlways)
74
- state.openShow = showAlways;
75
- mySelf.value && observer.unobserve(mySelf.value);
76
- nextTick(function() {
77
- mySelf.value && observer.observe(mySelf.value);
78
- });
79
- },
80
- {
81
- immediate: true
82
- }
83
- );
67
+ watch(() => props.showAlways, function(showAlways) {
68
+ if (showAlways)
69
+ state.openShow = showAlways;
70
+ mySelf.value && observer.unobserve(mySelf.value);
71
+ nextTick(function() {
72
+ mySelf.value && observer.observe(mySelf.value);
73
+ });
74
+ }, {
75
+ immediate: true
76
+ });
84
77
  const handleVisibleChange = (val) => {
85
78
  state.isShow = !state.openShow ? false : val;
86
79
  };
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ name: string;
3
+ props: {
4
+ title: {
5
+ type: StringConstructor;
6
+ default: undefined;
7
+ };
8
+ labelTitle: {
9
+ type: StringConstructor;
10
+ default: undefined;
11
+ };
12
+ line: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ width: {
17
+ type: (NumberConstructor | StringConstructor)[];
18
+ default: number;
19
+ };
20
+ showAlways: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ };
25
+ setup(props: any, context: any): {
26
+ mySelf: import("vue").Ref<any>;
27
+ handleVisibleChange: (val: any) => void;
28
+ getPopupContainer: () => HTMLElement;
29
+ mSlots: import("vue").Ref<{}>;
30
+ isShow: import("vue").Ref<boolean>;
31
+ openShow: import("vue").Ref<boolean>;
32
+ };
33
+ };
34
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const BmSearchFilter: any;
2
+ export { BmSearchFilter };
3
+ export default BmSearchFilter;
@@ -30,6 +30,10 @@ const searchResetBtnProps = {
30
30
  return [24, 16];
31
31
  },
32
32
  },
33
+ loading: {
34
+ type: Boolean,
35
+ default: false,
36
+ },
33
37
  };
34
38
  const searchFilterProps = Object.assign({ userRule: {
35
39
  type: Array,
@@ -72,8 +76,6 @@ var _export_sfc = (sfc, props) => {
72
76
  };
73
77
 
74
78
  const _hoisted_1 = { class: "bm-search-filter-actions" };
75
- const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
76
- const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
77
79
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
78
80
  __name: "search-reset-btn",
79
81
  props: searchResetBtnProps,
@@ -112,20 +114,21 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
112
114
  createElementVNode("span", _hoisted_1, [
113
115
  createVNode(_component_a_button, { onClick: handleReset }, {
114
116
  default: withCtx(() => [
115
- _hoisted_2
117
+ createTextVNode("\u91CD\u7F6E")
116
118
  ]),
117
119
  _: 1
118
120
  }),
119
121
  createVNode(_component_a_button, {
120
122
  type: "primary",
123
+ loading: props.loading,
121
124
  onClick: handleSubmit
122
125
  }, {
123
126
  default: withCtx(() => [
124
- props.showSearchIcon ? (openBlock(), createBlock(unref(SearchOutlined), { key: 0 })) : createCommentVNode("v-if", true),
125
- _hoisted_3
127
+ props.showSearchIcon && !props.loading ? (openBlock(), createBlock(unref(SearchOutlined), { key: 0 })) : createCommentVNode("v-if", true),
128
+ createTextVNode("\u67E5\u8BE2 ")
126
129
  ]),
127
130
  _: 1
128
- })
131
+ }, 8, ["loading"])
129
132
  ])
130
133
  ], 4);
131
134
  };
@@ -152,7 +155,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
152
155
  showSearchIcon: props.showSearchIcon,
153
156
  expandText: props.expandText,
154
157
  collapseText: props.collapseText,
155
- gutter: props.gutter
158
+ gutter: props.gutter,
159
+ loading: props.loading
156
160
  },
157
161
  on: {
158
162
  submit() {
@@ -218,15 +222,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
218
222
  onBeforeUnmount(() => {
219
223
  window.removeEventListener("resize", handleResize);
220
224
  });
221
- watch(
222
- () => props.showExpandBtn,
223
- (val) => {
224
- handleShowExpandBtn(val);
225
- },
226
- {
227
- immediate: true
228
- }
229
- );
225
+ watch(() => props.showExpandBtn, (val) => {
226
+ handleShowExpandBtn(val);
227
+ }, {
228
+ immediate: true
229
+ });
230
230
  const expandRule = computed(() => {
231
231
  const fixedCount = props.fixedCount && props.fixedCount >= 0 ? props.fixedCount : 0;
232
232
  const fixedFields = props.fixedFields?.length ? props.fixedFields : [];
@@ -245,15 +245,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
245
245
  });
246
246
  }
247
247
  }
248
- watch(
249
- isExpand,
250
- (val) => {
251
- nextTick(() => handleChangeExpand(val));
252
- },
253
- {
254
- immediate: true
255
- }
256
- );
248
+ watch(isExpand, (val) => {
249
+ nextTick(() => handleChangeExpand(val));
250
+ }, {
251
+ immediate: true
252
+ });
257
253
  expose({
258
254
  fApi
259
255
  });
@@ -0,0 +1,89 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const searchResetBtnProps: {
3
+ showExpandBtn: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ showSearchIcon: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ expandPlacement: {
12
+ type: PropType<"left" | "right">;
13
+ default: string;
14
+ };
15
+ expandText: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ collapseText: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ gutter: {
24
+ type: PropType<number[]>;
25
+ default(): number[];
26
+ };
27
+ loading: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ };
32
+ export declare const searchFilterProps: {
33
+ showExpandBtn: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ showSearchIcon: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ expandPlacement: {
42
+ type: PropType<"left" | "right">;
43
+ default: string;
44
+ };
45
+ expandText: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ collapseText: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ gutter: {
54
+ type: PropType<number[]>;
55
+ default(): number[];
56
+ };
57
+ loading: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ userRule: {
62
+ type: ArrayConstructor;
63
+ default(): never[];
64
+ };
65
+ labelCol: {
66
+ type: ObjectConstructor;
67
+ default(): {
68
+ flex: string;
69
+ };
70
+ };
71
+ value: {
72
+ type: ObjectConstructor;
73
+ default(): {};
74
+ };
75
+ ruleSpan: {
76
+ type: ObjectConstructor;
77
+ default(): {};
78
+ };
79
+ fixedCount: {
80
+ type: NumberConstructor;
81
+ default: number;
82
+ };
83
+ fixedFields: {
84
+ type: PropType<string[]>;
85
+ default(): never[];
86
+ };
87
+ };
88
+ export declare type SerachFilterProps = ExtractPropTypes<typeof searchFilterProps>;
89
+ export declare type SearchResetBtnProps = ExtractPropTypes<typeof searchResetBtnProps>;