Skip to content

Commit 1e38a28

Browse files
committed
Add btn info
1 parent 2b5e5f3 commit 1e38a28

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export default {
2+
name: 'info',
3+
icon: 'fa-info-circle',
4+
title: '关于',
5+
action: {
6+
insert: function () {
7+
window.location.href="https://github.com/luogu-dev/markdown-palettes";
8+
}
9+
}
10+
}

src/components/toolbar-button/toolbarBtn.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import BtnHr from './btn-hr'
1212
import BtnCode from './btn-code'
1313
import BtnHide from './btn-hide'
1414
import BtnFullscreen from './btn-fullscreen'
15+
import BtnInfo from './btn-info'
1516

1617
export const defaultBtns = [
1718
BtnBold,
@@ -35,7 +36,9 @@ export const defaultBtns = [
3536
BtnTable,
3637
Divider,
3738
BtnHide,
38-
BtnFullscreen
39+
BtnFullscreen,
40+
Divider,
41+
BtnInfo
3942
]
4043

4144
function getDefaultBtnsMap () {

0 commit comments

Comments
 (0)