refactor: 移除无用的 get 方法

This commit is contained in:
FairyEver
2020-07-06 11:21:16 +08:00
parent d32c948656
commit 6a6f920a97

View File

@@ -1,4 +1,3 @@
import { get } from 'lodash'
import d2Source from './components/d2-source.vue'
const containers = {
@@ -29,7 +28,7 @@ export default {
computed: {
// 始终返回渲染组件
component () {
return get(containers, `${this.type}${this.betterScroll ? 'bs' : ''}`, 'div')
return containers[`${this.type}${this.betterScroll ? 'bs' : ''}`] || 'div'
}
},
render (h) {