# 搜索框

TIP

1.0.6+

# 普通用法

配置typesearch,appendClick为点击搜索的回调方法

<avue-form :option="option" v-model="form" > </avue-form>

<script>
export default{
  data() {
    return {
      form:{},
      option: {
        labelWidth: 120,
        column: [
          {
            label: '搜索内容',
            prop: 'search',
            type: 'search',
            appendClick:()=>{
              this.$message.success('搜索回调'+this.form.search);
            }
          }
        ]
      }
    }
  }
}
</script>

Expand Copy
Last Updated: 8/5/2021, 9:04:57 AM