@arco-design/web-vue
Version:
Arco Design Vue 2.0: A Vue.js 3 UI Library
15 lines (14 loc) • 573 B
JavaScript
import { setGlobalConfig, getComponentPrefix } from "../_utils/global-config.js";
import _Avatar from "./avatar.js";
import AvatarGroup from "./avatar-group.js";
export { default as AvatarGroup } from "./avatar-group.js";
const Avatar = Object.assign(_Avatar, {
Group: AvatarGroup,
install: (app, options) => {
setGlobalConfig(app, options);
const componentPrefix = getComponentPrefix(options);
app.component(componentPrefix + _Avatar.name, _Avatar);
app.component(componentPrefix + AvatarGroup.name, AvatarGroup);
}
});
export { Avatar as default };