el-form-item表單label添加提示圖標(biāo)的實(shí)現(xiàn)
更新時(shí)間:2023年11月29日 09:26:05 作者:老馬甲
本文主要介紹了el-form-item表單label添加提示圖標(biāo)的實(shí)現(xiàn),我們將了解El-Form-Item的基本概念和用法,及添加提示圖標(biāo)以及如何自定義圖標(biāo)樣式,感興趣的可以了解一下
一、官方文檔
element-ui中el-form在編輯表單時(shí),經(jīng)常會在label添加一些需要提示的東西,可以用到Form-Item 的slot這個(gè)方法。如下所示:

二、實(shí)現(xiàn)
實(shí)現(xiàn)一個(gè)帶提示的slot方法,如下圖:

<template>
<el-form size="small" label-width="155px">
<el-form-item prop="plate">
<span slot="label" style="display:inline-block;">
標(biāo)題
<el-tooltip effect="dark" content="標(biāo)題" placement="bottom">
<i class='el-icon-question' />
</el-tooltip>
</span>
<el-input type="input" ></el-input>
</el-form-item>
</el-form>
</template>到此這篇關(guān)于el-form-item表單label添加提示圖標(biāo)的實(shí)現(xiàn)的文章就介紹到這了,更多相關(guān)el-form-item添加提示圖標(biāo)內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
vue?openlayers實(shí)現(xiàn)臺風(fēng)軌跡示例詳解
這篇文章主要為大家介紹了vue?openlayers實(shí)現(xiàn)臺風(fēng)軌跡示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2022-11-11

