提交 87d4836b 编写于 作者: X xjh22222228

fix: drop horizontal

上级 e09375d3
......@@ -58,7 +58,6 @@
- 🍰 支持自定义引擎搜索。
- 🍰 多款主题切换。
- 🍰 支持暗黑模式。
- 🍰 支持快捷键操作,一步到位。
- 🍰 支持后台管理, 无需部署。
- 🍰 支持从Chrome书签导入
......@@ -128,16 +127,6 @@ server {
## 快捷键
mac下是 `Command`,windows 下是 `Ctrl`
- `ctrl+v` 查看信息
- `ctrl+d` 开启或关闭暗黑模式
如对快捷键有特殊要求请发起 [issues](https://github.com/xjh22222228/nav/issues)
## 开发构建
......
// Copyright @ 2018-2021 xiejiahe. All rights reserved. MIT license.
// See https://github.com/xjh22222228/nav
import hotkeys from 'hotkeys-js'
import config from '../../../nav.config'
import { Component, Output, EventEmitter, Input, ChangeDetectionStrategy } from '@angular/core'
import { isDark as isDarkFn, randomBgImg, queryString } from '../../utils'
......@@ -72,23 +71,6 @@ export class FixbarComponent {
this.themeList = this.themeList.filter(t => {
return t.url !== url
})
this.initHotKeys()
}
ngOnDestroy() {
hotkeys.unbind()
}
initHotKeys() {
hotkeys(KEY_MAP.view, (e) => {
e.preventDefault()
this.viewInfo()
})
hotkeys(KEY_MAP.dark, (e) => {
e.preventDefault()
this.toggleMode()
})
}
viewInfo() {
......
......@@ -3,6 +3,7 @@
*ngIf="dataList.length > 0"
cdkDropList
(cdkDropListDropped)="handleDrop($event)"
cdkDropListOrientation="horizontal"
>
<div
class="wrapper"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册