no message
Former-commit-id: 0d46efaec4352360b3e8b12b5c7f06ef5c669e22 Former-commit-id: dc0e4e08b01bccd0fb2f22bbe7d7e01071023109 Former-commit-id: fc47f30876d0fbf300841772cfe18bee2f097964
This commit is contained in:
5
src/components/G2/G2.js
Normal file
5
src/components/G2/G2.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
export default {
|
||||||
|
created () {
|
||||||
|
this.$log('G2', 'created')
|
||||||
|
}
|
||||||
|
}
|
||||||
3
src/components/G2/Line1.vue
Normal file
3
src/components/G2/Line1.vue
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<template>
|
||||||
|
<div>G2</div>
|
||||||
|
</template>
|
||||||
3
src/components/G2/index.js
Normal file
3
src/components/G2/index.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
import Vue from 'vue'
|
||||||
|
|
||||||
|
Vue.component('G2Line1', resolve => { require(['@/components/G2/Line1.vue'], resolve) })
|
||||||
@@ -2,3 +2,5 @@
|
|||||||
import './core'
|
import './core'
|
||||||
// 非核心组件 只是在很多演示页面中用到的组件
|
// 非核心组件 只是在很多演示页面中用到的组件
|
||||||
import './demo'
|
import './demo'
|
||||||
|
// 图表组件
|
||||||
|
import './G2'
|
||||||
|
|||||||
@@ -11,7 +11,9 @@
|
|||||||
@move="moveHandler"
|
@move="moveHandler"
|
||||||
@resized="resizedHandler"
|
@resized="resizedHandler"
|
||||||
@moved="movedHandler">
|
@moved="movedHandler">
|
||||||
<el-card></el-card>
|
<el-card>
|
||||||
|
<G2Line1></G2Line1>
|
||||||
|
</el-card>
|
||||||
</GridItem>
|
</GridItem>
|
||||||
</GridLayout>
|
</GridLayout>
|
||||||
</Container>
|
</Container>
|
||||||
|
|||||||
Reference in New Issue
Block a user