阅读(2358) (29)

快应用 span组件

2018-04-20 17:49:19 更新

概述

格式化的文本,只能作为 <text> 、<a> 和 <span> 的子组件

子组件

仅支持<span> 1050+

属性

名称 类型 默认值 必填 描述
id <string> - 唯一标识
style <string> - 样式声明
class <string> - 引用样式表
for <array> - 根据数据列表,循环展开当前标签
if <boolean> - 根据数据boolean值,添加或移除当前标签

样式

名称 类型 默认值 必填 描述
color <color> rgba(0, 0, 0, 0.54) 文本颜色
font-size <number> 30px 文本尺寸
font-style normal | italic normal -
font-weight normal | bold normal -
text-decoration underline | line-through | none none -

事件

不支持

span   示例代码

查看 示例代码