dt-crud-x
Version:
基于d2-crud-x的自定义版本
18 lines (15 loc) • 425 B
JavaScript
import d2Crud from './d2-crud.vue'
import drag from './directives/el-drag-dialog/drag'
const install = (Vue, options) => {
let name = 'd2Crud'
if (options && options.name != null) {
name = options.name
}
Vue.component(name, d2Crud)
Vue.directive('d2p-drag-dialog', drag)
// debug
}
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue)
}
export default Object.assign(d2Crud, { install })