Vue Tables 2 with Slots. How to pass data id to event handler?
问题 I'm using a slot to display a button in Vue Tables 2. How can I pass the id of the warehouse i.e. 123 or 456 to the edit() event handler? I've tried adding props (as this is what the docs show). But I haven't had any luck. I'm using Vue Tables 2 in a component. <template> <div> <h1>How to pass warehouse id to edit() method?</h1> <v-client-table :columns="columns" :data="warehouses" :options="options"> <span slot="actions" slot-scope="{ WarehousesMin }"> <button v-on:click="edit">Edit</button>