From a10868e96c5c66bfb06e812760100a9377f2fe31 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 28 七月 2021 10:26:51 +0800
Subject: [PATCH] 2021-07-28

---
 src/menu/popview/index.jsx |   90 +++++++++++++++++++++++---------------------
 1 files changed, 47 insertions(+), 43 deletions(-)

diff --git a/src/menu/popview/index.jsx b/src/menu/popview/index.jsx
index 2cae8b8..55a0f13 100644
--- a/src/menu/popview/index.jsx
+++ b/src/menu/popview/index.jsx
@@ -19,6 +19,7 @@
 const { confirm } = Modal
 
 const MenuForm = asyncComponent(() => import('./menuform'))
+const Header = asyncComponent(() => import('@/menu/header'))
 const SourceWrap = asyncComponent(() => import('@/menu/modulesource'))
 const MenuShell = asyncComponent(() => import('@/menu/menushell'))
 const ReplaceField = asyncComponent(() => import('@/menu/replaceField'))
@@ -564,50 +565,53 @@
     const { activeKey, MenuType, dict, config, menuloading, customComponents } = this.state
 
     return (
-      <DndProvider backend={HTML5Backend}>
-        <div className="menu-body">
-          <div className="menu-setting">
-            <Collapse accordion activeKey={activeKey} bordered={false} onChange={(key) => this.setState({activeKey: key})}>
-              {/* 鍩烘湰淇℃伅 */}
-              <Panel header={dict['mob.basemsg']} key="basedata">
-                {/* 鑿滃崟淇℃伅 */}
-                {config ? <MenuForm dict={dict} config={config} btn={btn} updateConfig={this.updateConfig}/> : null}
-                {/* 琛ㄥ悕娣诲姞 */}
-                {config ? <TableComponent config={config} updatetable={this.updatetable}/> : null}
-              </Panel>
-              {/* 缁勪欢娣诲姞 */}
-              <Panel header={dict['mob.component']} key="component">
-                <SourceWrap MenuType={MenuType} />
-              </Panel>
-              {customComponents && customComponents.length ? <Panel header="鑷畾涔夌粍浠�" key="cuscomponent">
-                <SourceWrap components={customComponents} MenuType={MenuType} />
-              </Panel> : null}
-              <Panel header={'椤甸潰鑳屾櫙'} key="background">
-                {config ? <BgController config={config} updateConfig={this.updateConfig} /> : null}
-              </Panel>
-              <Panel header={'椤甸潰鍐呰竟璺�'} key="padding">
-                {config ? <PaddingController config={config} updateConfig={this.updateConfig} /> : null}
-              </Panel>
-            </Collapse>
+      <div className="pc-poper-view">
+        <Header />
+        <DndProvider backend={HTML5Backend}>
+          <div className="menu-body">
+            <div className="menu-setting">
+              <Collapse accordion activeKey={activeKey} bordered={false} onChange={(key) => this.setState({activeKey: key})}>
+                {/* 鍩烘湰淇℃伅 */}
+                <Panel header={dict['mob.basemsg']} key="basedata">
+                  {/* 鑿滃崟淇℃伅 */}
+                  {config ? <MenuForm dict={dict} config={config} btn={btn} updateConfig={this.updateConfig}/> : null}
+                  {/* 琛ㄥ悕娣诲姞 */}
+                  {config ? <TableComponent config={config} updatetable={this.updatetable}/> : null}
+                </Panel>
+                {/* 缁勪欢娣诲姞 */}
+                <Panel header={dict['mob.component']} key="component">
+                  <SourceWrap MenuType={MenuType} />
+                </Panel>
+                {customComponents && customComponents.length ? <Panel header="鑷畾涔夌粍浠�" key="cuscomponent">
+                  <SourceWrap components={customComponents} MenuType={MenuType} />
+                </Panel> : null}
+                <Panel header={'椤甸潰鑳屾櫙'} key="background">
+                  {config ? <BgController config={config} updateConfig={this.updateConfig} /> : null}
+                </Panel>
+                <Panel header={'椤甸潰鍐呰竟璺�'} key="padding">
+                  {config ? <PaddingController config={config} updateConfig={this.updateConfig} /> : null}
+                </Panel>
+              </Collapse>
+            </div>
+            <div className={'menu-view ' + (menuloading ? 'saving' : '')}>
+              <Card title={
+                <div> {config && config.MenuName} </div>
+              } bordered={false} extra={
+                <div>
+                  <ReplaceField type="custom" config={config} updateConfig={this.resetConfig}/>
+                  <StyleCombControlButton menu={config} />
+                  <PasteController type="menu" Tab={null} insert={this.insert} />
+                  {config ? <Switch className="big" checkedChildren={dict['mob.enable']} unCheckedChildren={dict['mob.disable']} checked={config.enabled} onChange={this.onEnabledChange} /> : null}
+                  <Button type="primary" onClick={this.submitConfig} loading={menuloading}>{dict['mob.save']}</Button>
+                  <Button type="default" onClick={this.closeView}>{dict['mob.return']}</Button>
+                </div>
+              } style={{ width: '100%' }}>
+                {config && config.components ? <MenuShell menu={config} handleList={this.updateConfig} /> : null}
+              </Card>
+            </div>
           </div>
-          <div className={'menu-view ' + (menuloading ? 'saving' : '')}>
-            <Card title={
-              <div> {config && config.MenuName} </div>
-            } bordered={false} extra={
-              <div>
-                <ReplaceField type="custom" config={config} updateConfig={this.resetConfig}/>
-                <StyleCombControlButton menu={config} />
-                <PasteController type="menu" Tab={null} insert={this.insert} />
-                {config ? <Switch className="big" checkedChildren={dict['mob.enable']} unCheckedChildren={dict['mob.disable']} checked={config.enabled} onChange={this.onEnabledChange} /> : null}
-                <Button type="primary" onClick={this.submitConfig} loading={menuloading}>{dict['mob.save']}</Button>
-                <Button type="default" onClick={this.closeView}>{dict['mob.return']}</Button>
-              </div>
-            } style={{ width: '100%' }}>
-              {config && config.components ? <MenuShell menu={config} handleList={this.updateConfig} /> : null}
-            </Card>
-          </div>
-        </div>
-      </DndProvider>
+        </DndProvider>
+      </div>
     )
   }
 }

--
Gitblit v1.8.0