bm-admin-ui 1.0.81-alpha → 1.0.82-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 (41) hide show
  1. package/package.json +1 -1
  2. package/es/components/attachment/index.js +0 -273
  3. package/es/components/breadcrumb/index.js +0 -158
  4. package/es/components/button/index.js +0 -49
  5. package/es/components/edit-form/index.js +0 -1186
  6. package/es/components/editor/index.js +0 -12554
  7. package/es/components/feedback/index.js +0 -295
  8. package/es/components/float-table/index.js +0 -3511
  9. package/es/components/flow-designer/index.js +0 -1317
  10. package/es/components/form-create/index.js +0 -20978
  11. package/es/components/form-designer/index.js +0 -4514
  12. package/es/components/index.js +0 -19
  13. package/es/components/input-tags-display/index.js +0 -226
  14. package/es/components/over-tooltips/index.js +0 -133
  15. package/es/components/search-filter/index.js +0 -441
  16. package/es/components/select-all/index.js +0 -165
  17. package/es/components/shops-filter/index.js +0 -453
  18. package/es/components/staffs-selector/index.js +0 -728
  19. package/es/components/timeline/index.js +0 -168
  20. package/es/components/upload/index.js +0 -909
  21. package/es/components/videoView/index.js +0 -100
  22. package/lib/components/attachment/index.js +0 -278
  23. package/lib/components/breadcrumb/index.js +0 -168
  24. package/lib/components/button/index.js +0 -58
  25. package/lib/components/edit-form/index.js +0 -1195
  26. package/lib/components/editor/index.js +0 -12559
  27. package/lib/components/feedback/index.js +0 -309
  28. package/lib/components/float-table/index.js +0 -3516
  29. package/lib/components/flow-designer/index.js +0 -1329
  30. package/lib/components/form-create/index.js +0 -20990
  31. package/lib/components/form-designer/index.js +0 -4525
  32. package/lib/components/index.js +0 -140
  33. package/lib/components/input-tags-display/index.js +0 -237
  34. package/lib/components/over-tooltips/index.js +0 -138
  35. package/lib/components/search-filter/index.js +0 -451
  36. package/lib/components/select-all/index.js +0 -174
  37. package/lib/components/shops-filter/index.js +0 -465
  38. package/lib/components/staffs-selector/index.js +0 -733
  39. package/lib/components/timeline/index.js +0 -174
  40. package/lib/components/upload/index.js +0 -914
  41. package/lib/components/videoView/index.js +0 -105
@@ -1,451 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var withInstall = require('bm-admin-ui/lib/utils/with-install');
6
- var vue = require('vue');
7
- var FormCreateCtr = require('@form-create/ant-design-vue');
8
- var iconsVue = require('@ant-design/icons-vue');
9
- var ASelect = require('ant-design-vue/lib/select');
10
-
11
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
-
13
- var FormCreateCtr__default = /*#__PURE__*/_interopDefaultLegacy(FormCreateCtr);
14
- var ASelect__default = /*#__PURE__*/_interopDefaultLegacy(ASelect);
15
-
16
- const searchResetBtnProps = {
17
- showExpandBtn: {
18
- type: Boolean,
19
- default: false,
20
- },
21
- showSearchIcon: {
22
- type: Boolean,
23
- default: false,
24
- },
25
- expandPlacement: {
26
- type: String,
27
- default: 'left',
28
- },
29
- expandText: {
30
- type: String,
31
- default: '展开',
32
- },
33
- collapseText: {
34
- type: String,
35
- default: '收起',
36
- },
37
- gutter: {
38
- type: Array,
39
- default() {
40
- return [24, 16];
41
- },
42
- },
43
- loading: {
44
- type: Boolean,
45
- default: false,
46
- },
47
- };
48
- const searchFilterProps = Object.assign({ userRule: {
49
- type: Array,
50
- default() {
51
- return [];
52
- },
53
- }, labelCol: {
54
- type: Object,
55
- default() {
56
- return {
57
- flex: '0 0 auto',
58
- };
59
- },
60
- }, value: {
61
- type: Object,
62
- default() {
63
- return {};
64
- },
65
- }, ruleSpan: {
66
- type: Object,
67
- default() {
68
- return {};
69
- },
70
- }, fixedCount: {
71
- type: Number,
72
- default: 999999,
73
- }, fixedFields: {
74
- type: Array,
75
- default() {
76
- return [];
77
- },
78
- } }, searchResetBtnProps);
79
-
80
- var _export_sfc = (sfc, props) => {
81
- const target = sfc.__vccOpts || sfc;
82
- for (const [key, val] of props) {
83
- target[key] = val;
84
- }
85
- return target;
86
- };
87
-
88
- const _hoisted_1$1 = { class: "bm-search-filter-actions" };
89
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
90
- __name: "search-reset-btn",
91
- props: searchResetBtnProps,
92
- emits: ["submit", "reset", "expand"],
93
- setup(__props, { emit: emits }) {
94
- const props = __props;
95
- const isExpand = vue.ref(false);
96
- const wrapperStyle = vue.computed(() => {
97
- let gutter = props.gutter?.[0] || 24;
98
- return { paddingLeft: gutter / 2 + "px", paddingRight: gutter / 2 + "px" };
99
- });
100
- function handleExpandBtnChange() {
101
- isExpand.value = !isExpand.value;
102
- emits("expand", isExpand.value);
103
- }
104
- function handleSubmit() {
105
- emits("submit");
106
- }
107
- function handleReset() {
108
- emits("reset");
109
- }
110
- return (_ctx, _cache) => {
111
- const _component_a_button = vue.resolveComponent("a-button");
112
- return vue.openBlock(), vue.createElementBlock("div", {
113
- class: "bm-search-filter-btn",
114
- style: vue.normalizeStyle(vue.unref(wrapperStyle))
115
- }, [
116
- props.showExpandBtn ? (vue.openBlock(), vue.createElementBlock("span", {
117
- key: 0,
118
- class: "bm-search-filter-expand",
119
- onClick: handleExpandBtnChange
120
- }, [
121
- vue.createTextVNode(vue.toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
122
- isExpand.value ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.UpOutlined), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.DownOutlined), { key: 1 }))
123
- ])) : vue.createCommentVNode("v-if", true),
124
- vue.createElementVNode("span", _hoisted_1$1, [
125
- vue.createVNode(_component_a_button, { onClick: handleReset }, {
126
- default: vue.withCtx(() => [
127
- vue.createTextVNode("\u91CD\u7F6E")
128
- ]),
129
- _: 1
130
- }),
131
- vue.createVNode(_component_a_button, {
132
- type: "primary",
133
- loading: props.loading,
134
- onClick: handleSubmit
135
- }, {
136
- default: vue.withCtx(() => [
137
- props.showSearchIcon && !props.loading ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.SearchOutlined), { key: 0 })) : vue.createCommentVNode("v-if", true),
138
- vue.createTextVNode("\u67E5\u8BE2 ")
139
- ]),
140
- _: 1
141
- }, 8, ["loading"])
142
- ])
143
- ], 4);
144
- };
145
- }
146
- });
147
- var SearchResetBtn = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "search-reset-btn.vue"]]);
148
-
149
- const _hoisted_1 = { class: "bm-select-header" };
150
- const _hoisted_2 = { class: "bm-select-header-btn" };
151
- const _hoisted_3 = ["onClick"];
152
- const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("span", { class: "checkbox-label" }, "\u5168\u9009", -1);
153
- const _hoisted_5 = ["onClick"];
154
- const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("span", { class: "checkbox-label" }, "\u53CD\u9009", -1);
155
- const _hoisted_7 = { class: "blue" };
156
- const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
157
- __name: "form-select-all",
158
- props: {
159
- modelValue: {
160
- type: Array || String || Number || void 0
161
- },
162
- disabled: Boolean
163
- },
164
- emits: ["onSelectAll", "onChange", "update:modelValue"],
165
- setup(__props, { emit }) {
166
- const props = __props;
167
- const instance = vue.getCurrentInstance();
168
- const state = vue.reactive({
169
- search: {
170
- indeterminate: false,
171
- checkedAll: false,
172
- checkedReverse: false
173
- }
174
- });
175
- let selectValue = vue.ref([]);
176
- vue.watch(
177
- () => props.modelValue,
178
- (val) => {
179
- selectValue.value = val;
180
- },
181
- {
182
- immediate: true
183
- }
184
- );
185
- const selectAll = (e) => {
186
- let key = "value";
187
- if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
188
- key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
189
- state.search.checkedAll = !state.search.checkedAll;
190
- state.search.indeterminate = false;
191
- state.search.checkedReverse = false;
192
- if (state.search.checkedAll) {
193
- selectValue.value = (instance?.attrs.options).map(
194
- (v) => {
195
- return v[key];
196
- }
197
- );
198
- } else {
199
- selectValue.value = [];
200
- }
201
- emit("update:modelValue", selectValue.value);
202
- emit("onSelectAll", {
203
- type: "all",
204
- value: selectValue.value
205
- });
206
- };
207
- const reverseAll = (e) => {
208
- let key = "value";
209
- if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
210
- key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
211
- if (selectValue.value.length <= 0)
212
- return state.search.checkedReverse = false;
213
- state.search.checkedReverse = !state.search.checkedReverse;
214
- if (state.search.checkedReverse) {
215
- state.search.indeterminate = false;
216
- state.search.checkedAll = false;
217
- } else {
218
- state.search.indeterminate = !!selectValue.value.length && selectValue.value.length < (instance?.attrs.options).length;
219
- state.search.checkedAll = selectValue.value.length === (instance?.attrs.options).length;
220
- }
221
- selectValue.value = (instance?.attrs.options).filter(
222
- (v) => !selectValue.value.some((ele) => ele === v[key])
223
- ).map((x) => x[key]);
224
- emit("update:modelValue", selectValue.value);
225
- emit("onSelectAll", {
226
- type: "reverse",
227
- value: selectValue.value
228
- });
229
- };
230
- const onChange = (value, option) => {
231
- state.search.checkedReverse = false;
232
- state.search.indeterminate = !!value.length && value.length < (instance?.attrs.options).length;
233
- state.search.checkedAll = value.length === (instance?.attrs.options).length;
234
- emit("update:modelValue", value);
235
- emit("onChange", {
236
- value,
237
- option
238
- });
239
- };
240
- const VNodes = (_, { attrs }) => {
241
- return vue.h(attrs.vnodes);
242
- };
243
- return (_ctx, _cache) => {
244
- const _component_a_checkbox = vue.resolveComponent("a-checkbox");
245
- const _component_a_form_item_rest = vue.resolveComponent("a-form-item-rest");
246
- return vue.openBlock(), vue.createBlock(vue.unref(ASelect__default["default"]), vue.mergeProps({
247
- value: vue.unref(selectValue),
248
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => vue.isRef(selectValue) ? selectValue.value = $event : selectValue = $event),
249
- class: "bm-select search"
250
- }, _ctx.$attrs, {
251
- mode: "multiple",
252
- disabled: props.disabled,
253
- placeholder: vue.unref(instance)?.attrs.placeholder ? vue.unref(instance)?.attrs.placeholder : "\u8BF7\u9009\u62E9",
254
- "get-popup-container": (nodes) => nodes.parentNode,
255
- onChange
256
- }), {
257
- dropdownRender: vue.withCtx(({ menuNode: menu }) => [
258
- vue.createElementVNode("div", _hoisted_1, [
259
- vue.createVNode(_component_a_form_item_rest, null, {
260
- default: vue.withCtx(() => [
261
- vue.createElementVNode("div", _hoisted_2, [
262
- vue.createElementVNode("div", {
263
- onClick: vue.withModifiers(selectAll, ["prevent"]),
264
- onMousedown: _cache[1] || (_cache[1] = (e) => e.preventDefault())
265
- }, [
266
- vue.createVNode(_component_a_checkbox, {
267
- checked: state.search.checkedAll,
268
- "onUpdate:checked": _cache[0] || (_cache[0] = ($event) => state.search.checkedAll = $event),
269
- indeterminate: state.search.indeterminate
270
- }, null, 8, ["checked", "indeterminate"]),
271
- _hoisted_4
272
- ], 40, _hoisted_3),
273
- vue.createElementVNode("div", {
274
- onClick: vue.withModifiers(reverseAll, ["prevent"]),
275
- onMousedown: _cache[3] || (_cache[3] = (e) => e.preventDefault())
276
- }, [
277
- vue.createVNode(_component_a_checkbox, {
278
- checked: state.search.checkedReverse,
279
- "onUpdate:checked": _cache[2] || (_cache[2] = ($event) => state.search.checkedReverse = $event)
280
- }, null, 8, ["checked"]),
281
- _hoisted_6
282
- ], 40, _hoisted_5)
283
- ])
284
- ]),
285
- _: 1
286
- }),
287
- vue.createElementVNode("div", null, [
288
- vue.createTextVNode(" \u5DF2\u9009\u62E9 "),
289
- vue.createElementVNode("span", _hoisted_7, vue.toDisplayString(vue.unref(selectValue)?.length), 1),
290
- vue.createTextVNode(" \u9879 ")
291
- ])
292
- ]),
293
- vue.createVNode(VNodes, { vnodes: menu }, null, 8, ["vnodes"])
294
- ]),
295
- _: 1
296
- }, 16, ["value", "disabled", "placeholder", "get-popup-container"]);
297
- };
298
- }
299
- });
300
- var SelectAll = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "form-select-all.vue"]]);
301
-
302
- const __default__ = {
303
- name: "BmSearchFilter"
304
- };
305
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
306
- ...__default__,
307
- props: searchFilterProps,
308
- emits: ["update:value", "submit", "reset", "expand"],
309
- setup(__props, { expose, emit: emits }) {
310
- const props = __props;
311
- FormCreateCtr__default["default"].component("SearchResetBtn", SearchResetBtn);
312
- FormCreateCtr__default["default"].component("SelectAll", SelectAll);
313
- FormCreateCtr__default["default"].maker.create("SelectAll", "field", "\u5168\u9009\u53CD\u9009\u7EC4\u4EF6").value([]);
314
- const isExpand = vue.ref(false);
315
- const searchResetBtnRule = vue.reactive([
316
- {
317
- type: "SearchResetBtn",
318
- props: {
319
- showExpandBtn: props.showExpandBtn,
320
- showSearchIcon: props.showSearchIcon,
321
- expandText: props.expandText,
322
- collapseText: props.collapseText,
323
- gutter: props.gutter,
324
- loading: props.loading
325
- },
326
- on: {
327
- submit() {
328
- emits("submit", fApi.value.formData());
329
- },
330
- reset() {
331
- fApi.value?.resetFields?.();
332
- emits("reset");
333
- },
334
- expand(value) {
335
- isExpand.value = value;
336
- emits("expand", value);
337
- }
338
- }
339
- }
340
- ]);
341
- const fApi = vue.ref({});
342
- const option = vue.reactive({
343
- col: {
344
- span: 8
345
- },
346
- row: {
347
- gutter: props.gutter
348
- },
349
- form: {
350
- labelCol: props.labelCol,
351
- labelAlign: "right",
352
- wrapperCol: {
353
- span: 24
354
- }
355
- },
356
- submitBtn: false
357
- });
358
- const rule = vue.computed(() => {
359
- if (!props.userRule)
360
- return [];
361
- return [...props.userRule, ...searchResetBtnRule];
362
- });
363
- function handleShowExpandBtn(val) {
364
- searchResetBtnRule[0].props.showExpandBtn = val;
365
- }
366
- function handleChange() {
367
- emits("update:value", fApi.value.formData());
368
- }
369
- function handleResize() {
370
- const bodyClientWidth = document.body.clientWidth;
371
- if (bodyClientWidth < 1680) {
372
- option.col.span = 8;
373
- } else {
374
- option.col.span = 6;
375
- }
376
- props.userRule.forEach((rule2) => {
377
- if (!rule2.field || rule2.col)
378
- return;
379
- const spanNum = props.ruleSpan[rule2.field];
380
- if (spanNum) {
381
- (rule2.col = rule2.col || {}).span = option.col.span * spanNum;
382
- }
383
- });
384
- }
385
- handleResize();
386
- window.addEventListener("resize", handleResize);
387
- vue.onBeforeUnmount(() => {
388
- window.removeEventListener("resize", handleResize);
389
- });
390
- vue.watch(
391
- () => props.showExpandBtn,
392
- (val) => {
393
- handleShowExpandBtn(val);
394
- },
395
- {
396
- immediate: true
397
- }
398
- );
399
- const expandRule = vue.computed(() => {
400
- const fixedCount = props.fixedCount && props.fixedCount >= 0 ? props.fixedCount : 0;
401
- const fixedFields = props.fixedFields?.length ? props.fixedFields : [];
402
- return (props.userRule || []).filter((ruleItem, index) => {
403
- return index + 1 > fixedCount && !fixedFields.includes(ruleItem.field || ruleItem.name);
404
- });
405
- });
406
- function handleChangeExpand(value) {
407
- if (value) {
408
- expandRule.value.forEach((ruleItem) => {
409
- ruleItem.hidden = false;
410
- });
411
- } else {
412
- expandRule.value.forEach((ruleItem) => {
413
- ruleItem.hidden = true;
414
- });
415
- }
416
- }
417
- vue.watch(
418
- isExpand,
419
- (val) => {
420
- vue.nextTick(() => handleChangeExpand(val));
421
- },
422
- {
423
- immediate: true
424
- }
425
- );
426
- expose({
427
- fApi
428
- });
429
- return (_ctx, _cache) => {
430
- const _component_form_create = vue.resolveComponent("form-create");
431
- return vue.openBlock(), vue.createElementBlock("div", {
432
- class: vue.normalizeClass(["bm-search-filter", ["bm-search-filter-expand-" + props.expandPlacement]])
433
- }, [
434
- vue.createVNode(_component_form_create, {
435
- api: fApi.value,
436
- "onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
437
- "model-value": props.value,
438
- rule: vue.unref(rule),
439
- option,
440
- onChange: handleChange
441
- }, null, 8, ["api", "model-value", "rule", "option"])
442
- ], 2);
443
- };
444
- }
445
- });
446
- var SearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "search-filter.vue"]]);
447
-
448
- const BmSearchFilter = withInstall.withInstall(SearchFilter);
449
-
450
- exports.BmSearchFilter = BmSearchFilter;
451
- exports["default"] = BmSearchFilter;
@@ -1,174 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var withInstall = require('bm-admin-ui/lib/utils/with-install');
6
- var vue = require('vue');
7
- var ASelect = require('ant-design-vue/lib/select');
8
-
9
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
-
11
- var ASelect__default = /*#__PURE__*/_interopDefaultLegacy(ASelect);
12
-
13
- var _export_sfc = (sfc, props) => {
14
- const target = sfc.__vccOpts || sfc;
15
- for (const [key, val] of props) {
16
- target[key] = val;
17
- }
18
- return target;
19
- };
20
-
21
- const _hoisted_1 = { class: "bm-select-header" };
22
- const _hoisted_2 = { class: "bm-select-header-btn" };
23
- const _hoisted_3 = ["onClick"];
24
- const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("span", { class: "checkbox-label" }, "\u5168\u9009", -1);
25
- const _hoisted_5 = ["onClick"];
26
- const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("span", { class: "checkbox-label" }, "\u53CD\u9009", -1);
27
- const _hoisted_7 = { class: "blue" };
28
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
29
- __name: "selectAll",
30
- props: {
31
- value: {
32
- type: Array || String || Number || void 0,
33
- required: true
34
- },
35
- showSelectAll: {
36
- type: Boolean,
37
- default: false
38
- }
39
- },
40
- emits: ["onSelectAll", "update:value", "onChange"],
41
- setup(__props, { emit }) {
42
- const props = __props;
43
- const instance = vue.getCurrentInstance();
44
- const state = vue.reactive({
45
- search: {
46
- indeterminate: false,
47
- checkedAll: false,
48
- checkedReverse: false
49
- }
50
- });
51
- let selectValue = vue.ref([]);
52
- vue.watch(
53
- () => props.value,
54
- (val) => {
55
- selectValue.value = val;
56
- },
57
- {
58
- immediate: true
59
- }
60
- );
61
- const selectAll = (e) => {
62
- let key = "value";
63
- if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
64
- key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
65
- state.search.checkedAll = !state.search.checkedAll;
66
- state.search.indeterminate = false;
67
- state.search.checkedReverse = false;
68
- if (state.search.checkedAll) {
69
- selectValue.value = (instance?.attrs.options).map(
70
- (v) => {
71
- return v[key];
72
- }
73
- );
74
- } else {
75
- selectValue.value = [];
76
- }
77
- emit("update:value", selectValue.value);
78
- emit("onSelectAll", {
79
- type: "all",
80
- value: selectValue.value
81
- });
82
- };
83
- const reverseAll = (e) => {
84
- let key = "value";
85
- if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
86
- key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
87
- if (selectValue.value.length <= 0)
88
- return state.search.checkedReverse = false;
89
- state.search.checkedReverse = !state.search.checkedReverse;
90
- if (state.search.checkedReverse) {
91
- state.search.indeterminate = false;
92
- state.search.checkedAll = false;
93
- } else {
94
- state.search.indeterminate = !!selectValue.value.length && selectValue.value.length < (instance?.attrs.options).length;
95
- state.search.checkedAll = selectValue.value.length === (instance?.attrs.options).length;
96
- }
97
- selectValue.value = (instance?.attrs.options).filter(
98
- (v) => !selectValue.value.some((ele) => ele === v[key])
99
- ).map((x) => x[key]);
100
- emit("update:value", selectValue.value);
101
- emit("onSelectAll", {
102
- type: "reverse",
103
- value: selectValue.value
104
- });
105
- };
106
- const onChange = (value, option) => {
107
- state.search.checkedReverse = false;
108
- state.search.indeterminate = !!value.length && value.length < (instance?.attrs.options).length;
109
- state.search.checkedAll = value.length === (instance?.attrs.options).length;
110
- emit("update:value", value);
111
- emit("onChange", {
112
- value,
113
- option
114
- });
115
- };
116
- const VNodes = (_, { attrs }) => {
117
- return vue.h(attrs.vnodes);
118
- };
119
- return (_ctx, _cache) => {
120
- const _component_a_checkbox = vue.resolveComponent("a-checkbox");
121
- return vue.openBlock(), vue.createBlock(vue.unref(ASelect__default["default"]), vue.mergeProps({
122
- value: vue.unref(selectValue),
123
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => vue.isRef(selectValue) ? selectValue.value = $event : selectValue = $event),
124
- class: "bm-select"
125
- }, _ctx.$attrs, {
126
- mode: "multiple",
127
- placeholder: vue.unref(instance)?.attrs.placeholder ? vue.unref(instance)?.attrs.placeholder : "\u8BF7\u9009\u62E9",
128
- "get-popup-container": (nodes) => nodes.parentNode,
129
- onChange
130
- }), {
131
- dropdownRender: vue.withCtx(({ menuNode: menu }) => [
132
- vue.createElementVNode("div", _hoisted_1, [
133
- vue.createElementVNode("div", _hoisted_2, [
134
- vue.createElementVNode("div", {
135
- onClick: vue.withModifiers(selectAll, ["prevent"]),
136
- onMousedown: _cache[1] || (_cache[1] = (e) => e.preventDefault())
137
- }, [
138
- vue.createVNode(_component_a_checkbox, {
139
- checked: state.search.checkedAll,
140
- "onUpdate:checked": _cache[0] || (_cache[0] = ($event) => state.search.checkedAll = $event),
141
- indeterminate: state.search.indeterminate
142
- }, null, 8, ["checked", "indeterminate"]),
143
- _hoisted_4
144
- ], 40, _hoisted_3),
145
- vue.createElementVNode("div", {
146
- onClick: vue.withModifiers(reverseAll, ["prevent"]),
147
- onMousedown: _cache[3] || (_cache[3] = (e) => e.preventDefault())
148
- }, [
149
- vue.createVNode(_component_a_checkbox, {
150
- checked: state.search.checkedReverse,
151
- "onUpdate:checked": _cache[2] || (_cache[2] = ($event) => state.search.checkedReverse = $event)
152
- }, null, 8, ["checked"]),
153
- _hoisted_6
154
- ], 40, _hoisted_5)
155
- ]),
156
- vue.createElementVNode("div", null, [
157
- vue.createTextVNode(" \u5DF2\u9009\u62E9 "),
158
- vue.createElementVNode("span", _hoisted_7, vue.toDisplayString(vue.unref(selectValue)?.length), 1),
159
- vue.createTextVNode(" \u9879 ")
160
- ])
161
- ]),
162
- vue.createVNode(VNodes, { vnodes: menu }, null, 8, ["vnodes"])
163
- ]),
164
- _: 1
165
- }, 16, ["value", "placeholder", "get-popup-container"]);
166
- };
167
- }
168
- });
169
- var selectAll = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "selectAll.vue"]]);
170
-
171
- const BmSelectAll = withInstall.withInstall(selectAll);
172
-
173
- exports.BmSelectAll = BmSelectAll;
174
- exports["default"] = BmSelectAll;