;
{ Component, PropTypes } ;
classnames ;
{ } ;
{ } ;
();
//有点糊涂
Button Component {
() {
();
.state {
disabled.props.disabled,
show};
}
() {
(.disabled .props.disabled) {
.setState({ disabled.disabled });
}
}
() {
.setState({ disabled, show});
}
() {
.setState({ disabled, show});
}
() {
(.props.onClick) {
.props.onClick();
}
(.props.once) {
.();
}
}
() {
.props.status;
() {
${};
}
classnames(
.props.className,
(.props.grid),
,
);
(
<{..()}
{.props.style}
{.state.disabled}
{}
{.props.type }>
{ .state.show .props.children }
</>
);
}
}
//不懂
Button.propTypes {
childrenPropTypes.,
classNamePropTypes.string,
disabledPropTypes.bool,
onClickPropTypes.func,
oncePropTypes.bool,
statusPropTypes.string,
stylePropTypes.object,
typePropTypes.oneOf([, ])
};
.Button;
目前暂无任何回答
- 0 回答
- 0 关注
- 1293 浏览
添加回答
举报
0/150
提交
取消