UNPKG

@arco-design/web-vue

Version:

Arco Design Vue 2.0: A Vue.js 3 UI Library

15 lines (14 loc) 573 B
import { setGlobalConfig, getComponentPrefix } from "../_utils/global-config.js"; import _Button from "./button.js"; import ButtonGroup from "./button-group.js"; export { default as ButtonGroup } from "./button-group.js"; const Button = Object.assign(_Button, { Group: ButtonGroup, install: (app, options) => { setGlobalConfig(app, options); const componentPrefix = getComponentPrefix(options); app.component(componentPrefix + _Button.name, _Button); app.component(componentPrefix + ButtonGroup.name, ButtonGroup); } }); export { Button as default };