1 Star 0 Fork 22

liaogb/json-schema-editor-vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.js 555 Bytes
一键复制 编辑 原始数据 按行查看 历史
张亚强 提交于 5年前 . Initial
import JsonSchemaEditor from './json-schema-editor/index'
const components = [
JsonSchemaEditor
]
// 定义 install 方法
const install = function (Vue) {
if (install.installed) return
install.installed = true
// 遍历并注册全局组件
components.map(component => {
Vue.component(component.name, component)
})
}
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue)
}
export default {
// 导出的对象必须具备一个 install 方法
install,
// 组件列表
...components
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/liaogb/json-schema-editor-vue.git
git@gitee.com:liaogb/json-schema-editor-vue.git
liaogb
json-schema-editor-vue
json-schema-editor-vue
master

搜索帮助