qinyan 1 year ago
parent
commit
2071f49299

+ 4 - 5
src/modules/editor/components/Viewport/Header/index.tsx

@@ -3,6 +3,7 @@ import { Button, Dropdown } from "ant-design-vue";
 import { defineUI } from "queenjs";
 import { ShareBox } from "./ShareBox";
 import History from "../Toolbar/History";
+import { IconArrowUp } from "@/assets/icons";
 
 export default defineUI({
   setup() {
@@ -35,22 +36,20 @@ export default defineUI({
             {controls.pageCtrl.state.title}
           </div>
         </div>
-        <aside class="space-x-12px">
+        <aside class="space-x-16px flex items-center">
+          <IconArrowUp class="text-20px text-light-50 bg-dark-50 p-6px hidden" />
           {store.isEditPage && (
             <Dropdown
               overlay={<ShareBox />}
               trigger="click"
               placement="bottomRight"
             >
-              <Button size="small" class="text-12px">
-                预览
-              </Button>
+              <Button class="text-12px">预览</Button>
             </Dropdown>
           )}
           <Button
             class="text-12px"
             type="primary"
-            size="small"
             onClick={() => actions.saveDesign()}
           >
             保存

+ 1 - 1
src/modules/editor/components/Viewport/index.tsx

@@ -17,7 +17,7 @@ export default defineUI({
   setup(props, { slots }) {
     return () => (
       <div class="flex flex-col h-1/1">
-        <slots.Header class="px-16px py-10px bg-component border-bottom !border-2px" />
+        <slots.Header class="px-20px py-10px bg-component border-bottom !border-2px" />
         <div class="flex flex-1 h-0">
           <slots.SliderLeft class="bg-component border-right !border-2px" />
           <div class="flex-1 relative flex flex-col overflow-hidden">