| | |
| | | import { Modal } from 'antd' |
| | | import { EditOutlined } from '@ant-design/icons' |
| | | |
| | | import zhCN from '@/locales/zh-CN/model.js' |
| | | import enUS from '@/locales/en-US/model.js' |
| | | import CalendarForm from './calendarform' |
| | | |
| | | import './index.scss' |
| | |
| | | } |
| | | |
| | | state = { |
| | | dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, |
| | | calendar: null, // 日历设置 |
| | | visible: false, // 模态框控制 |
| | | } |
| | |
| | | |
| | | render() { |
| | | const { config } = this.props |
| | | const { dict, visible, calendar } = this.state |
| | | const { visible, calendar } = this.state |
| | | |
| | | return ( |
| | | <div className="model-calendar-setting"> |
| | |
| | | destroyOnClose |
| | | > |
| | | <CalendarForm |
| | | dict={dict} |
| | | config={config} |
| | | calendar={calendar} |
| | | wrappedComponentRef={(inst) => this.calendarRef = inst} |