热门

最新

红包

立Flag

投票

同城

我的

发布
changche2721
changche2721
4 年前
truechangche2721

import React, { Component } from "react";
import Calender from "./component/Calender";
constructor(props) {
super(props);
this.state = {
open: false,
date: []
}
}

dateChange = (arr) => {
this.setState({ open: false })
this.setState({
date: arr,
})
}
openDialog = () => {
const { open } = this.state
this.setState({ open: !open })
}
render() {
const { open } = this.state;
return (
<div style={{ position: 'relative' }}>
<button onClick={() => { this.openDialog() }} style={{ height: 20 }}>点我!</button>
{open ?
<div style={{ position: 'absolute', top: 21, background: '#F4F4F4' }}>
<Calender dateChange={this.dateChange} />
</div>
: null}
</div >
)
}
}

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
请问下win2008 服务器共享文件夹回环地址可以访问!用ip地址不能访问是啥子问题啊?自己去访问其他服务器的共享文件夹没得问题!用自己的IP访问自己的共享不行!其他服务器访问自己的共享也不行!
立即登录