king
2022-10-17 e8edfdadb561cd83bf6e1c3e00d55b8cc2aee6d5
src/templates/calendarconfig/calcomponent/index.jsx
@@ -4,8 +4,6 @@
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'
@@ -17,7 +15,6 @@
  }
  state = {
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    calendar: null,  // 日历设置
    visible: false,  // 模态框控制
  }
@@ -66,7 +63,7 @@
  render() {
    const { config } = this.props
    const { dict, visible, calendar } = this.state
    const { visible, calendar } = this.state
    return (
      <div className="model-calendar-setting">
@@ -83,7 +80,6 @@
          destroyOnClose
        >
          <CalendarForm
            dict={dict}
            config={config}
            calendar={calendar}
            wrappedComponentRef={(inst) => this.calendarRef = inst}