<template>
<tiny-popeditor v-model="value" :grid-op="gridOp" show-pager :pager-op="gridOp.pagerOp"></tiny-popeditor>
</template>
<script>
import { Popeditor } from '@opentiny/vue'
export default {
components: {
TinyPopeditor: Popeditor
},
data() {
return {
value: '',
gridOp: {
columns: [
{ field: 'id', title: 'ID', width: 40 },
{ field: 'name', title: '名称' },
{ field: 'province', title: '省份', width: 80 },
{ field: 'city', title: '城市', width: 80 }
],
data: [
{ id: '1', name: 'GFD科技YX公司', city: '福州', province: '福建' },
{ id: '2', name: 'WWW科技YX公司', city: '深圳', province: '广东' }
],
pagerOp: {
pageSize: 5,
pageSizes: [5, 10, 20, 50, 100, 500],
total: 10,
layout: 'total, prev, pager, next, jumper, sizes'
}
}
}
}
}
</script>