網站首頁 編程語言 正文
使用Descriptions 描述列表中的自定義label,打包后點擊按鈕新增一個el-descriptions-item時,最后一個item的標題發生改變
解決辦法:
將以下代碼替換
<el-descriptions-item label-align="center">
<template #label>
<div class="cell-item">
<span class="f_validate">*</span> 工作單位職務
</div>
</template>
<el-form-item prop="dw">
<el-input v-model="dw" placeholder="" />
</el-form-item>
</el-descriptions-item>
改成:
<el-descriptions-item label-align="center" label="工作單位職務" label-class-name="setred">
<el-form-item prop="dw">
<el-input v-model="dw" placeholder="" />
</el-form-item>
</el-descriptions-item>
給label欄添加紅色字體的*
在<el-descriptions-item>標簽上添加label-class-name=“setred”,給當前表添加class
<style>
.setred::before{
content: "*";
color: red;
font-weight: bold;
font-size: 16px;
}
</style>
原文鏈接:https://blog.csdn.net/admin_web/article/details/122483041
相關推薦
- 2022-09-15 C語言編寫實現學生管理系統_C 語言
- 2022-07-27 Python中的數據可視化matplotlib與繪圖庫模塊_python
- 2022-07-17 Go語言入門exec的基本使用示例_Golang
- 2022-07-02 Pandas?如何處理DataFrame中的inf值_python
- 2023-02-09 python知識:裝飾器@property到底有啥用途_python
- 2022-07-21 push函數,將一個數組添加到另一個數組的尾部
- 2022-03-15 線性表的順序存儲結構靜態分配C語言實現
- 2022-10-20 Flutter?StreamBuilder實現局部刷新實例詳解_Android
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支