在el-descriptions-item上添加label-class-name=“className” css中使用自定义的class名设置样式(不能用<style scoped>包裹) 如 <style lang="scss" scoped>.detail-label{width: 100px;}</style> 改成 <style lang="scss">.detail-label{width: 100px;}</style> 就生效了...
label="itemOne.packId" :span="2">{{ itemOne.boxNum }}个 </el-descriptions-item> <el-descriptions-item label="封签号" label-class-name="labelColor" content-class-name="my-content" :span="2">{{ itemOne.sealNum }} </el-descriptions-item> <el-descriptions-item label-class-name="...
1.使用slot="label",有效 2.使用#label,无效 What is Expected? 支持#label support What is actually happening? 不支持 dosen't support
Bug Type: Component Environment Vue Version: 3.3.4 Element Plus Version: 2.3.7 Browser / OS: Chrome/114.0.5735.199 Build Tool: Vite Reproduction Related Component el-descriptions-item Reproduction Link Element Plus Playground Steps to re...
<el-descriptions-item label="性别">男</el-descriptions-item> </el-descriptions> ``` 在上面的例子中,通过绑定`:contentclassname`指令到`customClass`变量,我们可以动态地改变Value列的样式类名。你可以根据具体需求来定义`customClass`变量,在CSS文件中编写相应样式。 3.3 contentclassname属性的示例和注意事项...
可以在item后加中括号。根据查阅的百科资料得知,description指的是环境本来的含义是用于对某些名词的解释,想要descriptionitem不显示label,只要在item后加中括号,改变label即可。label:名词为标签,签条,标记的意思。动词为贴标签于…,把…称为,把…列为的意思。
Existing Component Yes Component Name el-descriptions Description while using this new component, I noticed that the size or width of it's label is relative. this makes the whole description area ugly... I have to set it fixed myself. I ...