bm-admin-ui 1.0.82-alpha → 1.0.83-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/es/components/attachment/index.js +273 -0
  2. package/es/components/breadcrumb/index.js +158 -0
  3. package/es/components/button/index.js +49 -0
  4. package/es/components/edit-form/index.js +1186 -0
  5. package/es/components/editor/index.js +12554 -0
  6. package/es/components/feedback/index.js +295 -0
  7. package/es/components/float-table/index.js +3511 -0
  8. package/es/components/flow-designer/index.js +1317 -0
  9. package/es/components/form-create/index.js +20978 -0
  10. package/es/components/form-designer/index.js +4514 -0
  11. package/es/components/index.js +19 -0
  12. package/es/components/input-tags-display/index.js +226 -0
  13. package/es/components/over-tooltips/index.js +133 -0
  14. package/es/components/search-filter/index.js +441 -0
  15. package/es/components/select-all/index.js +165 -0
  16. package/es/components/shops-filter/index.js +453 -0
  17. package/es/components/staffs-selector/index.js +728 -0
  18. package/es/components/timeline/index.js +168 -0
  19. package/es/components/upload/index.js +909 -0
  20. package/es/components/videoView/index.js +100 -0
  21. package/lib/components/attachment/index.js +278 -0
  22. package/lib/components/breadcrumb/index.js +168 -0
  23. package/lib/components/button/index.js +58 -0
  24. package/lib/components/edit-form/index.js +1195 -0
  25. package/lib/components/editor/index.js +12559 -0
  26. package/lib/components/feedback/index.js +309 -0
  27. package/lib/components/float-table/index.js +3516 -0
  28. package/lib/components/flow-designer/index.js +1329 -0
  29. package/lib/components/form-create/index.js +20990 -0
  30. package/lib/components/form-designer/index.js +4525 -0
  31. package/lib/components/index.js +140 -0
  32. package/lib/components/input-tags-display/index.js +237 -0
  33. package/lib/components/over-tooltips/index.js +138 -0
  34. package/lib/components/search-filter/index.js +451 -0
  35. package/lib/components/select-all/index.js +174 -0
  36. package/lib/components/shops-filter/index.js +465 -0
  37. package/lib/components/staffs-selector/index.js +733 -0
  38. package/lib/components/timeline/index.js +174 -0
  39. package/lib/components/upload/index.js +914 -0
  40. package/lib/components/videoView/index.js +105 -0
  41. package/package.json +1 -1
@@ -0,0 +1,100 @@
1
+ import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
+ import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeStyle, withModifiers, createVNode, unref, withCtx } from 'vue';
3
+ import { PlayCircleFilled } from '@ant-design/icons-vue';
4
+
5
+ var _export_sfc = (sfc, props) => {
6
+ const target = sfc.__vccOpts || sfc;
7
+ for (const [key, val] of props) {
8
+ target[key] = val;
9
+ }
10
+ return target;
11
+ };
12
+
13
+ const _hoisted_1 = ["onClick"];
14
+ const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "mask" }, null, -1);
15
+ const _hoisted_3 = ["src"];
16
+ const _hoisted_4 = ["src"];
17
+ const _hoisted_5 = ["src"];
18
+ const _hoisted_6 = ["src"];
19
+ const _hoisted_7 = ["src"];
20
+ const _hoisted_8 = ["src"];
21
+ const _sfc_main = /* @__PURE__ */ defineComponent({
22
+ __name: "videoView",
23
+ props: {
24
+ src: {
25
+ type: String,
26
+ required: true
27
+ },
28
+ width: {
29
+ type: String || Number,
30
+ default: 102
31
+ }
32
+ },
33
+ setup(__props) {
34
+ const props = __props;
35
+ const visible = ref(false);
36
+ const play = () => {
37
+ visible.value = true;
38
+ };
39
+ return (_ctx, _cache) => {
40
+ const _component_a_modal = resolveComponent("a-modal");
41
+ return openBlock(), createElementBlock(Fragment, null, [
42
+ createElementVNode("div", {
43
+ class: "my_video",
44
+ style: normalizeStyle({ width: `${props.width}px`, height: `${props.width}px` }),
45
+ onClick: withModifiers(play, ["prevent"])
46
+ }, [
47
+ _hoisted_2,
48
+ createVNode(unref(PlayCircleFilled), { class: "play" }),
49
+ createElementVNode("video", {
50
+ src: props.src,
51
+ muted: "",
52
+ class: "video"
53
+ }, [
54
+ createElementVNode("source", {
55
+ src: props.src,
56
+ type: "video/mp4"
57
+ }, null, 8, _hoisted_4),
58
+ createElementVNode("source", {
59
+ src: props.src,
60
+ type: "video/mov"
61
+ }, null, 8, _hoisted_5)
62
+ ], 8, _hoisted_3)
63
+ ], 12, _hoisted_1),
64
+ createVNode(_component_a_modal, {
65
+ visible: visible.value,
66
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
67
+ "destroy-on-close": "",
68
+ centered: "",
69
+ class: "my_video_modal",
70
+ width: "1000px",
71
+ footer: null
72
+ }, {
73
+ default: withCtx(() => [
74
+ createElementVNode("video", {
75
+ style: { "margin-top": "20px" },
76
+ src: props.src,
77
+ autoplay: "",
78
+ controls: ""
79
+ }, [
80
+ createElementVNode("source", {
81
+ src: props.src,
82
+ type: "video/mp4"
83
+ }, null, 8, _hoisted_7),
84
+ createElementVNode("source", {
85
+ src: props.src,
86
+ type: "video/mov"
87
+ }, null, 8, _hoisted_8)
88
+ ], 8, _hoisted_6)
89
+ ]),
90
+ _: 1
91
+ }, 8, ["visible"])
92
+ ], 64);
93
+ };
94
+ }
95
+ });
96
+ var MyVideo = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "videoView.vue"]]);
97
+
98
+ const BmVideo = withInstall(MyVideo);
99
+
100
+ export { BmVideo, BmVideo as default };
@@ -0,0 +1,278 @@
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 iconsVue = require('@ant-design/icons-vue');
8
+
9
+ var _export_sfc = (sfc, props) => {
10
+ const target = sfc.__vccOpts || sfc;
11
+ for (const [key, val] of props) {
12
+ target[key] = val;
13
+ }
14
+ return target;
15
+ };
16
+
17
+ const _sfc_main$1 = {
18
+ name: "BmOverTooltips",
19
+ props: {
20
+ title: {
21
+ type: String,
22
+ default: void 0
23
+ },
24
+ labelTitle: {
25
+ type: String,
26
+ default: void 0
27
+ },
28
+ line: {
29
+ type: Number,
30
+ default: 1
31
+ },
32
+ width: {
33
+ type: [Number, String],
34
+ default: 0
35
+ },
36
+ showAlways: {
37
+ type: Boolean,
38
+ default: false
39
+ }
40
+ },
41
+ setup(props, context) {
42
+ const state = vue.reactive({
43
+ mSlots: {},
44
+ isShow: false,
45
+ openShow: false
46
+ });
47
+ const observer = new IntersectionObserver(
48
+ (entries) => {
49
+ entries.forEach((item) => {
50
+ if (item.intersectionRatio > 0.3) {
51
+ observerDom();
52
+ observer.disconnect();
53
+ }
54
+ });
55
+ },
56
+ {
57
+ threshold: 0.3
58
+ }
59
+ );
60
+ function observerDom() {
61
+ if (props.line === 1) {
62
+ if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
63
+ state.openShow = true;
64
+ }
65
+ } else if (props.line > 1) {
66
+ if (mySelf.value.scrollHeight > mySelf.value.clientHeight) {
67
+ state.openShow = true;
68
+ }
69
+ }
70
+ }
71
+ vue.onBeforeUnmount(function() {
72
+ observer.disconnect();
73
+ });
74
+ let mySelf = vue.ref();
75
+ vue.watch(
76
+ () => props.showAlways,
77
+ function(showAlways) {
78
+ if (showAlways)
79
+ state.openShow = showAlways;
80
+ mySelf.value && observer.unobserve(mySelf.value);
81
+ vue.nextTick(function() {
82
+ mySelf.value && observer.observe(mySelf.value);
83
+ });
84
+ },
85
+ {
86
+ immediate: true
87
+ }
88
+ );
89
+ const handleVisibleChange = (val) => {
90
+ state.isShow = !state.openShow ? false : val;
91
+ };
92
+ const getPopupContainer = () => {
93
+ return document.body;
94
+ };
95
+ return {
96
+ ...vue.toRefs(state),
97
+ mySelf,
98
+ handleVisibleChange,
99
+ getPopupContainer
100
+ };
101
+ }
102
+ };
103
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
104
+ const _component_a_tooltip = vue.resolveComponent("a-tooltip");
105
+ return vue.openBlock(), vue.createBlock(_component_a_tooltip, {
106
+ visible: _ctx.isShow,
107
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.isShow = $event),
108
+ title: $props.labelTitle || $props.title,
109
+ "get-popup-container": $setup.getPopupContainer,
110
+ onVisibleChange: $setup.handleVisibleChange
111
+ }, {
112
+ title: vue.withCtx(() => [
113
+ vue.renderSlot(_ctx.$slots, "title")
114
+ ]),
115
+ default: vue.withCtx(() => [
116
+ vue.createElementVNode("div", {
117
+ ref: "mySelf",
118
+ style: vue.normalizeStyle({
119
+ width: $props.width ? $props.width + "px" : "100%",
120
+ WebkitLineClamp: $props.line
121
+ }),
122
+ class: vue.normalizeClass($props.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
123
+ }, [
124
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
125
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
126
+ vue.createTextVNode(vue.toDisplayString($props.title), 1)
127
+ ])
128
+ ])
129
+ ], 6)
130
+ ]),
131
+ _: 3
132
+ }, 8, ["visible", "title", "get-popup-container", "onVisibleChange"]);
133
+ }
134
+ var OverTooltips = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "over-tooltips.vue"]]);
135
+
136
+ const BmOverTooltips = withInstall.withInstall(OverTooltips);
137
+ var BmOverTooltips$1 = BmOverTooltips;
138
+
139
+ const _hoisted_1 = { class: "file_block" };
140
+ const _hoisted_2 = { class: "file_name" };
141
+ const _hoisted_3 = { class: "file_info" };
142
+ const _hoisted_4 = { class: "icon_text" };
143
+ const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("span", { class: "icon_text" }, "\u5728\u7EBF\u67E5\u770B", -1);
144
+ const __default__ = {
145
+ name: "BmAttachment"
146
+ };
147
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
148
+ ...__default__,
149
+ props: {
150
+ file: {
151
+ type: Object,
152
+ default: () => {
153
+ }
154
+ }
155
+ },
156
+ emits: ["preview", "download"],
157
+ setup(__props, { emit }) {
158
+ const props = __props;
159
+ const visible = vue.ref(false);
160
+ const data = vue.reactive({
161
+ fileType: vue.computed(() => {
162
+ const getFileType = (file) => {
163
+ const index = file.lastIndexOf(".");
164
+ return file.substr(index + 1);
165
+ };
166
+ return getFileType(props.file.fileName);
167
+ }),
168
+ nonsupportPreview: vue.computed(() => {
169
+ return ["zip", "rar"].includes(data.fileType);
170
+ }),
171
+ pictureFileTypes: [
172
+ "img",
173
+ "image",
174
+ "png",
175
+ "PNG",
176
+ "image/png",
177
+ "jpg",
178
+ "JPG",
179
+ "jpeg",
180
+ "JPEG",
181
+ "image/jpeg",
182
+ "gif",
183
+ "GIF",
184
+ "image/gif"
185
+ ],
186
+ openViewImage: ""
187
+ });
188
+ const renderSize = (size) => {
189
+ const pow1024 = (num) => {
190
+ return Math.pow(1024, num);
191
+ };
192
+ if (!size)
193
+ return "0KB";
194
+ if (size < pow1024(1))
195
+ return `${size.toFixed(2)}KB`;
196
+ if (size < pow1024(2))
197
+ return `${(size / pow1024(1)).toFixed(2)}MB`;
198
+ if (size < pow1024(3))
199
+ return `${(size / pow1024(2)).toFixed(2)}GB`;
200
+ return `${(size / pow1024(3)).toFixed(2)}TB`;
201
+ };
202
+ const setVisible = (value) => {
203
+ visible.value = value;
204
+ };
205
+ const preview = (item) => {
206
+ if (data.pictureFileTypes.indexOf(data.fileType) > -1) {
207
+ setVisible(true);
208
+ data.openViewImage = item.filePath;
209
+ return;
210
+ }
211
+ window.open(item.filePath);
212
+ };
213
+ const download = (item) => {
214
+ emit("download", { file: item });
215
+ };
216
+ return (_ctx, _cache) => {
217
+ const _component_a_image = vue.resolveComponent("a-image");
218
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
219
+ vue.createElementVNode("div", _hoisted_1, [
220
+ vue.createElementVNode("i", {
221
+ class: vue.normalizeClass({
222
+ file_icon: true,
223
+ icon_excel: data.fileType === "xlsx",
224
+ icon_ppt: ["ppt", "pptx"].indexOf(data.fileType) > -1,
225
+ icon_word: ["docx", "doc"].indexOf(data.fileType) > -1,
226
+ icon_image: ["png", "jpg", "jpeg", "gif"].indexOf(data.fileType) > -1,
227
+ icon_video: data.fileType === "mp4",
228
+ icon_pdf: data.fileType === "pdf",
229
+ icon_compress: ["rar", "zip"].indexOf(data.fileType) > -1,
230
+ icon_others: true
231
+ })
232
+ }, null, 2),
233
+ vue.createElementVNode("div", null, [
234
+ vue.createElementVNode("div", _hoisted_2, [
235
+ vue.createVNode(vue.unref(BmOverTooltips$1), {
236
+ placement: "topLeft",
237
+ title: __props.file.fileName || ""
238
+ }, null, 8, ["title"])
239
+ ]),
240
+ vue.createElementVNode("div", _hoisted_3, [
241
+ __props.file.isAllowDownload ? (vue.openBlock(), vue.createElementBlock("div", {
242
+ key: 0,
243
+ class: "file_size",
244
+ onClick: download
245
+ }, [
246
+ vue.createVNode(vue.unref(iconsVue.DownloadOutlined)),
247
+ vue.createTextVNode(),
248
+ vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(renderSize(__props.file.fileSize)), 1)
249
+ ])) : vue.createCommentVNode("v-if", true),
250
+ !data.nonsupportPreview ? (vue.openBlock(), vue.createElementBlock("div", {
251
+ key: 1,
252
+ class: "file_preview",
253
+ onClick: _cache[0] || (_cache[0] = ($event) => preview(__props.file))
254
+ }, [
255
+ vue.createVNode(vue.unref(iconsVue.EyeOutlined)),
256
+ _hoisted_5
257
+ ])) : vue.createCommentVNode("v-if", true)
258
+ ])
259
+ ])
260
+ ]),
261
+ vue.createVNode(_component_a_image, {
262
+ style: { display: "none" },
263
+ preview: {
264
+ visible: visible.value,
265
+ onVisibleChange: setVisible
266
+ },
267
+ src: data.openViewImage
268
+ }, null, 8, ["preview", "src"])
269
+ ], 64);
270
+ };
271
+ }
272
+ });
273
+ var Attachment = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "attachment.vue"]]);
274
+
275
+ const BmAttachment = withInstall.withInstall(Attachment);
276
+
277
+ exports.BmAttachment = BmAttachment;
278
+ exports["default"] = BmAttachment;
@@ -0,0 +1,168 @@
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 ABreadcrumb = require('ant-design-vue/lib/breadcrumb');
8
+ var ABreadcrumbItem = require('ant-design-vue/lib/breadcrumb/BreadcrumbItem');
9
+ require('@vue/devtools-api');
10
+
11
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
+
13
+ var ABreadcrumb__default = /*#__PURE__*/_interopDefaultLegacy(ABreadcrumb);
14
+ var ABreadcrumbItem__default = /*#__PURE__*/_interopDefaultLegacy(ABreadcrumbItem);
15
+
16
+ /*!
17
+ * vue-router v4.1.6
18
+ * (c) 2022 Eduardo San Martin Morote
19
+ * @license MIT
20
+ */
21
+
22
+ var NavigationType;
23
+ (function (NavigationType) {
24
+ NavigationType["pop"] = "pop";
25
+ NavigationType["push"] = "push";
26
+ })(NavigationType || (NavigationType = {}));
27
+ var NavigationDirection;
28
+ (function (NavigationDirection) {
29
+ NavigationDirection["back"] = "back";
30
+ NavigationDirection["forward"] = "forward";
31
+ NavigationDirection["unknown"] = "";
32
+ })(NavigationDirection || (NavigationDirection = {}));
33
+
34
+ Symbol((process.env.NODE_ENV !== 'production') ? 'navigation failure' : '');
35
+ /**
36
+ * Enumeration with all possible types for navigation failures. Can be passed to
37
+ * {@link isNavigationFailure} to check for specific failures.
38
+ */
39
+ var NavigationFailureType;
40
+ (function (NavigationFailureType) {
41
+ /**
42
+ * An aborted navigation is a navigation that failed because a navigation
43
+ * guard returned `false` or called `next(false)`
44
+ */
45
+ NavigationFailureType[NavigationFailureType["aborted"] = 4] = "aborted";
46
+ /**
47
+ * A cancelled navigation is a navigation that failed because a more recent
48
+ * navigation finished started (not necessarily finished).
49
+ */
50
+ NavigationFailureType[NavigationFailureType["cancelled"] = 8] = "cancelled";
51
+ /**
52
+ * A duplicated navigation is a navigation that failed because it was
53
+ * initiated while already being at the exact same location.
54
+ */
55
+ NavigationFailureType[NavigationFailureType["duplicated"] = 16] = "duplicated";
56
+ })(NavigationFailureType || (NavigationFailureType = {}));
57
+
58
+ /**
59
+ * RouteRecord being rendered by the closest ancestor Router View. Used for
60
+ * `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
61
+ * Location Matched
62
+ *
63
+ * @internal
64
+ */
65
+ Symbol((process.env.NODE_ENV !== 'production') ? 'router view location matched' : '');
66
+ /**
67
+ * Allows overriding the router view depth to control which component in
68
+ * `matched` is rendered. rvd stands for Router View Depth
69
+ *
70
+ * @internal
71
+ */
72
+ Symbol((process.env.NODE_ENV !== 'production') ? 'router view depth' : '');
73
+ /**
74
+ * Allows overriding the router instance returned by `useRouter` in tests. r
75
+ * stands for router
76
+ *
77
+ * @internal
78
+ */
79
+ const routerKey = Symbol((process.env.NODE_ENV !== 'production') ? 'router' : '');
80
+ /**
81
+ * Allows overriding the current route returned by `useRoute` in tests. rl
82
+ * stands for route location
83
+ *
84
+ * @internal
85
+ */
86
+ Symbol((process.env.NODE_ENV !== 'production') ? 'route location' : '');
87
+ /**
88
+ * Allows overriding the current route used by router-view. Internally this is
89
+ * used when the `route` prop is passed.
90
+ *
91
+ * @internal
92
+ */
93
+ Symbol((process.env.NODE_ENV !== 'production') ? 'router view location' : '');
94
+
95
+ /**
96
+ * Returns the router instance. Equivalent to using `$router` inside
97
+ * templates.
98
+ */
99
+ function useRouter() {
100
+ return vue.inject(routerKey);
101
+ }
102
+
103
+ var _export_sfc = (sfc, props) => {
104
+ const target = sfc.__vccOpts || sfc;
105
+ for (const [key, val] of props) {
106
+ target[key] = val;
107
+ }
108
+ return target;
109
+ };
110
+
111
+ const _hoisted_1 = ["onClick"];
112
+ const _hoisted_2 = {
113
+ key: 1,
114
+ class: "link"
115
+ };
116
+ const __default__ = {
117
+ name: "BmBreadcrumb"
118
+ };
119
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
120
+ ...__default__,
121
+ props: {
122
+ path: {
123
+ type: Array,
124
+ required: true
125
+ }
126
+ },
127
+ emits: ["back"],
128
+ setup(__props, { emit }) {
129
+ const props = __props;
130
+ const router = useRouter();
131
+ const handleJump = (path, backFn) => {
132
+ console.log(path);
133
+ if (!path)
134
+ return;
135
+ if (backFn)
136
+ return emit("back", path);
137
+ console.log(path);
138
+ router.push(path);
139
+ };
140
+ return (_ctx, _cache) => {
141
+ return vue.openBlock(), vue.createBlock(vue.unref(ABreadcrumb__default["default"]), { class: "breadcrumb" }, {
142
+ default: vue.withCtx(() => [
143
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.path, (item, index) => {
144
+ return vue.openBlock(), vue.createBlock(vue.unref(ABreadcrumbItem__default["default"]), {
145
+ key: item.url
146
+ }, {
147
+ default: vue.withCtx(() => [
148
+ index < __props.path.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", {
149
+ key: 0,
150
+ class: "link",
151
+ onClick: ($event) => handleJump(item.url, item.backFn)
152
+ }, vue.toDisplayString(item.name), 9, _hoisted_1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(item.name), 1))
153
+ ]),
154
+ _: 2
155
+ }, 1024);
156
+ }), 128))
157
+ ]),
158
+ _: 1
159
+ });
160
+ };
161
+ }
162
+ });
163
+ var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "breadcrumb.vue"]]);
164
+
165
+ const BmBreadcrumb = withInstall.withInstall(Breadcrumb);
166
+
167
+ exports.BmBreadcrumb = BmBreadcrumb;
168
+ exports["default"] = BmBreadcrumb;
@@ -0,0 +1,58 @@
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 AButton = require('ant-design-vue/lib/button');
8
+
9
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+
11
+ var AButton__default = /*#__PURE__*/_interopDefaultLegacy(AButton);
12
+
13
+ const buttonProps = {
14
+ size: {
15
+ type: String,
16
+ default: 'middle',
17
+ },
18
+ type: {
19
+ type: String,
20
+ default: 'bm-primary',
21
+ },
22
+ };
23
+
24
+ var _export_sfc = (sfc, props) => {
25
+ const target = sfc.__vccOpts || sfc;
26
+ for (const [key, val] of props) {
27
+ target[key] = val;
28
+ }
29
+ return target;
30
+ };
31
+
32
+ const __default__ = {
33
+ name: "BmButton"
34
+ };
35
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
36
+ ...__default__,
37
+ props: buttonProps,
38
+ setup(__props) {
39
+ const props = __props;
40
+ return (_ctx, _cache) => {
41
+ return vue.openBlock(), vue.createBlock(vue.unref(AButton__default["default"]), {
42
+ size: props.size,
43
+ type: props.type
44
+ }, {
45
+ default: vue.withCtx(() => [
46
+ vue.renderSlot(_ctx.$slots, "default")
47
+ ]),
48
+ _: 3
49
+ }, 8, ["size", "type"]);
50
+ };
51
+ }
52
+ });
53
+ var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "button.vue"]]);
54
+
55
+ const BmButton = withInstall.withInstall(Button);
56
+
57
+ exports.BmButton = BmButton;
58
+ exports["default"] = BmButton;