sf-title.vue
v0.1.7
Published
<!-- 该 README.md 根据 api.yaml 和 docs/*.md 自动生成,为了方便在 GitHub 和 NPM 上查阅。如需修改,请查看源文件 -->
Downloads
19
Maintainers
Readme
SfTitle sf标题
布局, 标题
经常用于表单页面
示例
基本用法
props
| 参数 | 默认值 | 是否是必填 | 类型 |可选值 |名称|
|----- |------------------|------- |-------------------|------ |----|
| type | primary | false
| String
| primary/success/info/danger/error | 显示状态 |
| marginLeft | 15 | false
| Number
| - | 左间距 |
<sf-title type="success" :margin-left="15">
<slot>自定义文案</slot>
</sf-title>
API
Props/Attrs
| Prop/Attr | Type | Options | Default | Description |
| --------- | ---- | ------- | ------- | ----------- |
| type | String | 'primary'
'info'
'danger'
'danger'
'success'
| 'primary'
| 显示状态 |
| marginLeft | Number | | 15
| 左间距 |
Slots
(default)
插入自定义文本