0.0.1 • Published 3 years ago
@ansevenlet/header-base v0.0.1
ths-header-base@1.0.0
基础导航栏,可自定义背景色、前景色,图标,留有插槽。
Attributes
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
title | 标题 | string | -- | -- |
icon | 图标 | string | -- | -- |
font-color | 标题颜色 | string | #fff | |
background-color | 导航背景色 | string | #fff |
Events
事件名称 | 说明 | 回调参数 |
---|---|---|
change | 绑定值变化时触发的事件 | 选中值 |
Methods
方法名 | 说明 | 参数 |
---|---|---|
focus | 使 input 获取焦点 | - |
Example
<ths-header-base title="我是标题" icon="" background-color="#1598ff">
<button slot="right">右侧插槽插入内容</button>
</ths-header-base>
author:XXX