:add: 替换logo

This commit is contained in:
zhangjinlong 2020-10-15 12:35:10 +08:00
parent 22c4ef16bd
commit 03c0c94749
4 changed files with 21 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -12,6 +12,7 @@
background: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
.logoArea {
display: contents;
width: 300px;
font-size: 18px;
color: #2f54eb;
@ -22,15 +23,21 @@
cursor: pointer;
}
.logo {
display: inline-block;
width: 38px;
display: flex;
overflow: hidden;
border-radius: 3px;
vertical-align: middle;
img {
width: 100%;
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}
}
.logoText {
margin-left: 12px;
margin-top: 5px;
}
}
.operationBar {
margin-left: auto;

View File

@ -3,7 +3,7 @@ import { Controlled } from 'react-codemirror2';
import { useState } from 'react';
import { Button, message } from 'antd';
import { saveAs } from 'file-saver';
import Logo from '@/assets/logo.png';
import Logo from '@/assets/logo.svg';
import styles from './index.less';
import { isDev, useGetRect } from 'utils/tool';
import { SaveOutlined } from '@ant-design/icons';
@ -139,7 +139,7 @@ export default function() {
<img src={Logo} alt="Dooring-强大的h5编辑器" />
</a>
</div>
&nbsp;&nbsp;| 线
<div className={styles.logoText}>| 线</div>
</div>
<div className={styles.operationBar}>
<Button

9
src/typings.d.ts vendored
View File

@ -1,5 +1,14 @@
/*
* @Description:
* @Version: 2.0
* @Autor: dragon
* @Date: 2020-10-13 14:55:47
* @LastEditors: dragon
* @LastEditTime: 2020-10-15 12:21:41
*/
declare module '*.css';
declare module '*.png';
declare module '*.svg';
declare module '*.less';
interface Window {
currentCates: null | Array<string>;