直接上图和代码
在这里插入图片描述

<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"
          }
        ]
      }
}
Logo

前往低代码交流专区

更多推荐