element-ui descriptions 组件源码分享
descriptions 描述列表组件源码分享,主要从以下三个方面:
1、descriptions 组件页面结构。
2、descriptions 组件属性。
3、descriptions 组件 slot 挂载。
一、组件页面结构。
二、组件属性。
2.1 border 是否带有边框,类型为 boolean,默认 false。
2.2 column 一行 Descriptions Item
的数量,类型为 number,默认 3。
2.3 direction 排列方向,类型为 string,可选值 vertical / horizontal,默认 horizontal。
2.4 size 列表的尺寸,类型为 string,可选值 medium / small / mini,无默认值。
2.5 title 标题文本,显示在左上方,类型为 string,无默认值。
2.6 extra 操作区文本,显示在右上方,类型为 string,无默认值。
2.7 colon 是否显示冒号,类型为 boolean,默认 true。
2.8 labelClassName 自定义标签类名,类型为 string,无默认值。
2.9 contentClassName 自定义内容类名,类型为 string,无默认值。
2.10 labelStyle 自定义标签样式,类型为 object,无默认值。
2.11 contentStyle 自定义内容样式,类型为 object,无默认值。
2.12 item label 标签文本,类型为 string,无默认值。
2.13 item span 列的数据,类型为 number,默认 1。
三、组件 slot 挂载。
3.1 label 自定义标签文本挂载。