1.0.6 • Published 7 years ago

@tsx-react-ui/mask v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
7 years ago

@tsx-react-ui/mask

  • 作者:maqing01
  • 邮箱:475986855@qq.com

介绍

The mask component of the react written in Typescript


安装

组件使用 npm 进行管理,请使用以下命令进行组件安装:

npm i @tsx-react-ui/mask --save
  • 安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org

使用

样例文档

  • 待开发

使用

配置实例:

<Mask visible={this.state.visible} opacity={0.3} zIndex={9} onMaskClick={() => this.setState({ visible: false })}>
    <div>This is content</div>
</Mask>

配置参数

PropTypeDefaultDescription
visiblebooleanfalse模态框是否可见
opacitynumber0.5模态框透明度
zIndexnumber999模态框堆叠顺序z-index
targetfunction | undefinedundefined返回传送目标元素
classNamestringundefined自定义样式名
onMaskClickfunction() => { }自定义模态框点击事件

注意事项

  • 组件注意事项

Changelog