1
// Types
2
import { VNode } from 'vue'
3

4
// Extensions
5
import VMain from '../VMain/VMain'
6
import { deprecate } from '../../util/console'
7

8
/* @vue/component */
9
export default VMain.extend({
10
  name: 'v-main',
11

12 0
  created () {
13 0
    deprecate('v-content', 'v-main', this)
14
  },
15

16 0
  render (h): VNode {
17
    // Add the legacy class names
18 0
    const node = VMain.options.render.call(this, h)
19

20 0
    node.data!.staticClass += ' v-content'
21 0
    node.children![0]!.data!.staticClass += ' v-content__wrap'
22

23 0
    return h(node.tag, node.data, node.children)
24
  },
25
})

Read our documentation on viewing source code .

Loading