slot=reference 相当于指定了要打开的popover页面
<template slot-scope="scope">
<el-popover placement="top" width="160" trigger="click">
<el-input v-model="scope.row.quantity"></el-input>
<div style="margin-top:10px">
<el-button size="mini" style="float:left"
@click="cancelChange">取消</el-button>
<el-button size="mini" type="primary"
style="float:right"
@click="confirmChange(scope.$index, cart_list)">确认</el-button>
</div>
<el-button slot="reference" type="text" style="width:40px">
{{scope.row.quantity}}
</el-button>
</el-popover>
</template>
```js