大飞_dafei

导航

element-ui 之 Form-Item 插槽使用

element-plus 之 Form-Item 插槽使用

 

<el-form>
  <el-form-item>
    <template #label>
      自定义label飞:
      <!--<el-popover placement="top" :width="50" trigger="hover" content="我是说明提示">
        <template #reference>
          <el-icon style="vertical-align: sub; cursor: pointer"><Warning/></el-icon>
        </template>
      </el-popover>-->
      <el-icon style="vertical-align: sub; cursor: pointer"><Warning/></el-icon>
    </template>
    <template #default>
      <el-input v-model="feiNumber"  style="width: 200px"/>
    </template>
  </el-form-item>
</el-form>

官方地址: form-item-插槽

posted on 2022-08-01 19:40  大飞_dafei  阅读(3506)  评论(0编辑  收藏  举报