tn-element-ui
Version:
element-ui二次封装
56 lines (45 loc) • 914 B
Markdown
//gitee.com/x-baifeng/tn-element-ui)
```npm
npm install tn-element-ui -S
```
```js
import Vue from 'vue'
import 'tn-element-ui'
// or
import Vue from 'vue'
import * as TnElement from 'tn-element-ui'
Vue.use(TnElement)
// or
import { TnEltable } from 'tn-element-ui'
Vue.component(TnEltable.name, TnEltable)
```
```vue
<template>
<tn-eltable :data="list" :columns="columns" />
</template>
<script>
import { TnEltable } from 'tn-element-ui'
const foo = new Vue({
components: {
TnEltable
},
data () {
return {
data: {
columns: [],
list: []
}
}
}
})
</script>
```
`
npm run example
`
> `tiny`,`element-ui`二次封装,包含`TnEltable, layout`...
[ ](https: