
npm install react-layui-layer
bash
npm i react-layui-layer --save
`
🔨 示例
`jsx
import Layer from 'react-layui-layer';
`
`jsx
showWindow = () => {
this.setState({
isShow: true
});
};
onCancel = () => {
this.setState({
isShow: false
});
};
`
`jsx
render() {
const {isShow,isShow2,windowsArray} = this.state;
console.log(isShow2);
return (
测试数据
)
}
``