AVue表格(avue-crud)中插入输入框
直接上图和代码<templateslot-scope="scope"slot="spacesearch"><div><avue-crud:data="data3":option="option3">//插入输入框<template slot-scope="scope" slot="default"><el-form-item>
·
直接上图和代码
<template
slot-scope="scope"
slot="spacesearch"
>
<div>
<avue-crud
:data="data3"
:option="option3"
>
//插入输入框
<template slot-scope="scope" slot="default">
<el-form-item>
<el-input></el-input>
</el-form-item>
</template>
</avue-crud>
</div>
</template>
data() {
data3: [
{
id: 1,
aaa: "xxx",
bbb: "xxx",
ccc: "xxx",
default: ""
}
],
option3: {
column: [
{
label: "aaa",
prop: "aaa"
},
{
label: "bbb",
prop: "bbb"
},
{
label: "ccc",
prop: "ccc"
},
{
label: "默认值",
prop: "default"
}
]
}
}
更多推荐
已为社区贡献3条内容
所有评论(0)