-
Notifications
You must be signed in to change notification settings - Fork 0
CaptureButton
Zhexuan Liu edited this page Jun 21, 2018
·
5 revisions
用于控制飞机拍照(Capture)或者录像(Record)的按钮:
<capturebutton type={myStore.captureButtonType} title={myStore.buttonTitle} on-click={xxx}>
</capturebutton>
import { CaptureButton } from 'mesh-envoy-tag'
const button = (
<CaptureButton
onClick={linkEvent(capture, this)}
capturing={this.state.capturing}
type="capture"
title={this.state.capturing ? 'stop' : 'capture'}
/>
)
名称 | 作用 | 必须 | 可否更改 |
---|---|---|---|
type | 控制 button 样式: "capture": 拍照样式 "record": 录像样式 |
true | false |
title | button 的标题 | false | true |
capturing | Bool: button 状态 | false | true |
事件 | 触发条件 | 附带参数 |
---|---|---|
click | 点击按钮 | 无 |