UNPKG

@arco-design/web-vue

Version:

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

15 lines (14 loc) 537 B
import { setGlobalConfig, getComponentPrefix } from "../_utils/global-config.js"; import _Form from "./form.js"; import FormItem from "./form-item.js"; export { default as FormItem } from "./form-item.js"; const Form = Object.assign(_Form, { Item: FormItem, install: (app, options) => { setGlobalConfig(app, options); const componentPrefix = getComponentPrefix(options); app.component(componentPrefix + _Form.name, _Form); app.component(componentPrefix + FormItem.name, FormItem); } }); export { Form as default };