Feedback 反馈
何时使用#
业务操作反馈
API#
- 通过设置 Feedback 的属性来产生不同的反馈样式
Feedback#
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
type | 反馈类型,可选:success warning error |
string | 无 |
业务操作反馈
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
type | 反馈类型,可选:success warning error |
string | 无 |
/** @jsx createElement */
import {createElement, Component} from 'weex-rx';
import { View, Text} from 'nuke-components';
import { Feedback } from 'nuke';
import {mount} from 'nuke-mounter';
let App = class NukeDemoIndex extends Component {
constructor() {
super();
}
press() {
console.log(11111111)
}
render() {
return (
<View>
<Feedback type="success">
There is something right for the right there is something right
</Feedback>
<Feedback type="error">
There is something error for the error there is something error
</Feedback>
<Feedback type="warning">
There is something warning for the warning there is something warning
</Feedback>
</View>
);
}
}
mount(<App/>, mountNode);