click event cannot call the function dynamically. The error is as follows:
TypeError: _ vm.func is not a function
what can I do to dynamically call the function from the v-for to the click event?
<template slot-scope="scope">
<el-button v-for="(item,key) in actionbutton" :key="key" :type="item.type"
:size="item.size"
@click="func(item.value)">
{{ item.label }}
</el-button>
</template>
actionbutton: [
{label: "", type: "text", value: "showDetails", size: "mini"},
{label: "", type: "primary", value: "showEditDialog(scope.$index,scope.row)", size: "mini"},
{label: "", type:"danger", value:"Delfunction(scope.$index,scope.row)", size: "mini"},
],