UNPKG

hot-form

Version:

A project developed based on ant-design-vue and vant whitch do some things on create/render/modify and etc. for forms. Also can custom some component on the form items if you want. 一个基于antdv/vant开发的创建表单组件,包含表单渲染、表单编辑页面、以及植入自定义附加内容的组件

33 lines (25 loc) 588 B
/*eslint-disable*/ import HotForm from './components/form/index'; import FormEdit from './components/formEdit/index'; const ComponentsLib = [HotForm, FormEdit]; /* const plainApp = { install(Vue) { ComponentsLib.forEach(el => { Vue.component(el.name, el); }); } } */ // 标签的方式引入 const install = function(Vue) { ComponentsLib.forEach(el => { Vue.component(el.name, el); }); } if (typeof window !== 'undefined' && window.Vue) { install(window.Vue); } export { HotForm, FormEdit, }; export default HotForm;