<template>
<div>
<Table
ref="tableRef"
:data="data"
:columns="columns"
style="overflow:visible"
>
<template slot-scope="{ row }" slot="numEdit">
<TablesEdit
:params="row"
column="num"
:edittingCellId="edittingCellId"
:editable="true"
@on-input="onInput"
@on-start-edit="onStartEdit"
@on-cancel-edit="onCancelEdit"
@on-save-edit="onSaveEdit"
>
</TablesEdit>
</template>
</Table>
</div>
</template>
<script>
import TablesEdit from './edit.vue'
export default {
name: 'numTable',
components: {
TablesEdit
},
data() {
return {
edittingCellId: '',
edittingText: '',
data: [
{
id: 1,
num: 1
},
{
[iview]Table编辑单元格
最新推荐文章于 2024-04-28 11:34:45 发布