行内删除: @row-del=“rowDel” rowDel(row){}
编辑 提交:@row-update=“rowUpdate” rowUpdate(row, index, done,){}
新增 保存: @row-save=“rowSave” rowSave(row, done, loading){}
筛选条件改变: @search-change=“searchChange” searchChange(params,done){}
清空筛选条件: @search-reset=“searchReset” searchReset(){}
表格多选 @selection-change=“selectionChange” selectionChange(list){}
上一页 下一页 :@current-change=“currentChange” currentChange(currentPage){}
分页时,每页条数改变触发:@size-change=“sizeChange”
列表刷新:@refresh-change=“refreshChange”
加载列表:@on-load=“onLoad”
树结构表格懒加载: @tree-load=“treeLoad”
自带弹框打开之前触发函数::before-open=“beforeOpen” beforOpen(done, type){}
自带弹框关闭之前触发函数::before-close=“beforeClose” beforeClose(done, type){}
slot="menu"
<template slot="menu">
<el-button
type="text"
size="small"
icon="el-icon-delete"
@click="handleDelete"
>
删 除
</el-button>
</template>
slot=“menuLeft”
<template slot="menuLeft">
<el-button
type="text"
size="small"
icon="el-icon-delete"
@click="handleDelete"
>
删 除
</el-button>
</template>
slot="bpmnStatus"
<template slot-scope="{ row }" slot="bpmnStatus">
<span v-if="row.bpmnStatus == 0" style="color: #4e5681">未申请</span>
<span v-if="row.bpmnStatus == 1" style="color: #f26a06">审批中</span>
<span v-if="row.bpmnStatus == 2" style="color: #00c975">审批通过</span>
</template>
prop: “bpmnStatus”,
option:{
column:[
{
label: "审批状态",
overHidden: true,
labelPosition: "top",
prop: "bpmnStatus",
type: "select",
slot:"true", // 自定义插槽
dicData: [
{
label: "未申请",
value: 0
},
{
label: "审批中",
value: 1
},
{
label: "审批完成",
value: 2
},
{ label: "已终止", value: 21 }
],
rules: [
{
required: true,
message: "审批状态",
trigger: "blur"
}
]
},
]
}
slot=“bottomForm”
<template slot="bottomForm" slot-scope="scope">
<el-button
slot="bottom"
type="text"
size="small"
q
icon="el-icon-download"
class="none-border"
@click.stop="sst(scope.row)"
>添加试题</el-button>
</template>
prop: “bottom”,
option:{
column:[
{
label: "",
prop: "bottom",
overHidden: true,
labelPosition: "top",
hide: true,
span: 24,
viewDisplay: false,
size: "medium",
formslot: true //将自定义表单设置为true
//hide: true
},
]
}
slot=“menuForm”
<avue-form ref="form" v-model="obj" :option="option" @reset-change="emptytChange" @submit="submit">
<template slot-scope="scope" slot="menuForm">
<el-button @click="tip">自定义按钮</el-button>
</template>
</avue-form>