From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 09 十二月 2022 15:53:32 +0800
Subject: [PATCH] 2022-12-09

---
 src/templates/sharecomponent/treesettingcomponent/index.jsx |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/templates/sharecomponent/treesettingcomponent/index.jsx b/src/templates/sharecomponent/treesettingcomponent/index.jsx
index 17a1e80..055a295 100644
--- a/src/templates/sharecomponent/treesettingcomponent/index.jsx
+++ b/src/templates/sharecomponent/treesettingcomponent/index.jsx
@@ -3,8 +3,6 @@
 import { Modal } from 'antd'
 import { SettingOutlined } from '@ant-design/icons'
 
-import zhCN from '@/locales/zh-CN/model.js'
-import enUS from '@/locales/en-US/model.js'
 import SettingForm from './settingform'
 
 import './index.scss'
@@ -17,7 +15,6 @@
   }
 
   state = {
-    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
     menu: null,          // 鑿滃崟淇℃伅
     visible: false,      // 妯℃�佹鎺у埗
     loading: false       // 璁剧疆淇℃伅楠岃瘉淇濆瓨涓�
@@ -62,6 +59,13 @@
         loading: false
       })
 
+      res.show = config.setting.show || 'true'
+      res.advanceType = config.setting.advanceType || 'modal'
+      res.advanceWidth = config.setting.advanceWidth || 1000
+      res.drawerPlacement = config.setting.drawerPlacement || 'right'
+      res.searchRatio = config.setting.searchRatio || 6
+      res.searchLwidth = config.setting.searchLwidth !== undefined ? config.setting.searchLwidth : 33.3
+
       this.props.updatesetting({...config, setting: res})
     }, () => {
       this.setState({
@@ -81,17 +85,16 @@
 
   render() {
     const { config } = this.props
-    const { dict, visible, loading } = this.state
+    const { visible, loading } = this.state
 
     return (
       <div className="model-tree-menu-setting">
         <SettingOutlined onClick={this.changeSetting} />
         {/* 璁剧疆鍏ㄥ眬閰嶇疆鍙婂垪琛ㄦ暟鎹簮 */}
         <Modal
-          wrapClassName="model-tree-setting-verify-modal"
-          title={dict['model.edit']}
+          wrapClassName="mk-pop-modal"
           visible={visible}
-          width={900}
+          width={'75vw'}
           maskClosable={false}
           onCancel={() => { this.setState({ visible: false })}}
           confirmLoading={loading}
@@ -99,7 +102,6 @@
           destroyOnClose
         >
           <SettingForm
-            dict={dict}
             config={config}
             menu={this.state.menu}
             inputSubmit={this.settingSave}

--
Gitblit v1.8.0