diff --git a/web/src/assets/icon-font/iconfont.css b/web/src/assets/icon-font/iconfont.css index 5721282a..fe9033b0 100644 --- a/web/src/assets/icon-font/iconfont.css +++ b/web/src/assets/icon-font/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 2479351 */ - src: url('iconfont.woff2?t=1690506335310') format('woff2'), - url('iconfont.woff?t=1690506335310') format('woff'), - url('iconfont.ttf?t=1690506335310') format('truetype'); + src: url('iconfont.woff2?t=1690537337895') format('woff2'), + url('iconfont.woff?t=1690537337895') format('woff'), + url('iconfont.ttf?t=1690537337895') format('truetype'); } .iconfont { @@ -13,6 +13,14 @@ -moz-osx-font-smoothing: grayscale; } +.iconlieri:before { + content: "\e60b"; +} + +.iconmoon_line:before { + content: "\e745"; +} + .iconsousuo:before { content: "\e693"; } diff --git a/web/src/assets/icon-font/iconfont.ttf b/web/src/assets/icon-font/iconfont.ttf index 110b3d99..4b0d897e 100644 Binary files a/web/src/assets/icon-font/iconfont.ttf and b/web/src/assets/icon-font/iconfont.ttf differ diff --git a/web/src/assets/icon-font/iconfont.woff b/web/src/assets/icon-font/iconfont.woff index 45de5a0f..09e3ebb3 100644 Binary files a/web/src/assets/icon-font/iconfont.woff and b/web/src/assets/icon-font/iconfont.woff differ diff --git a/web/src/assets/icon-font/iconfont.woff2 b/web/src/assets/icon-font/iconfont.woff2 index 0e65009e..10ffcf6c 100644 Binary files a/web/src/assets/icon-font/iconfont.woff2 and b/web/src/assets/icon-font/iconfont.woff2 differ diff --git a/web/src/pages/Edit/components/NavigatorToolbar.vue b/web/src/pages/Edit/components/NavigatorToolbar.vue index 4008b20b..54886c26 100644 --- a/web/src/pages/Edit/components/NavigatorToolbar.vue +++ b/web/src/pages/Edit/components/NavigatorToolbar.vue @@ -15,6 +15,9 @@ /> +
+
+
@@ -28,10 +31,7 @@ " placement="top" > -
+
@@ -64,6 +64,13 @@
+
+
+
@@ -79,7 +86,7 @@ import MouseAction from './MouseAction.vue' import { langList } from '@/config' import i18n from '@/i18n' import { storeLang, getLang } from '@/api' -import { mapState } from 'vuex' +import { mapState, mapMutations } from 'vuex' /** * @Author: 王林 @@ -107,9 +114,11 @@ export default { } }, computed: { - ...mapState(['isDark']), + ...mapState(['isDark']) }, methods: { + ...mapMutations(['setIsDark']), + readonlyChange() { this.isReadonly = !this.isReadonly this.mindMap.setMode(this.isReadonly ? 'readonly' : 'edit') @@ -123,6 +132,14 @@ export default { onLangChange(lang) { i18n.locale = lang storeLang(lang) + }, + + showSearch() { + this.$bus.$emit('show_search') + }, + + toggleDark() { + this.setIsDark(!this.isDark) } } } @@ -147,11 +164,11 @@ export default { .item { a { - color: hsla(0,0%,100%,.6); + color: hsla(0, 0%, 100%, 0.6); } .btn { - color: hsla(0,0%,100%,.6); + color: hsla(0, 0%, 100%, 0.6); } } } diff --git a/web/src/pages/Edit/components/Search.vue b/web/src/pages/Edit/components/Search.vue index 70f8870a..f72fb35a 100644 --- a/web/src/pages/Edit/components/Search.vue +++ b/web/src/pages/Edit/components/Search.vue @@ -83,20 +83,23 @@ export default { } }, created() { + this.$bus.$on('show_search', this.showSearch) this.mindMap.on('search_info_change', data => { this.currentIndex = data.currentIndex + 1 this.total = data.total this.showSearchInfo = true }) - this.mindMap.keyCommand.addShortcut('Control+f', () => { - this.$bus.$emit('closeSideBar') - this.show = true - this.$refs.input.focus() - }) + this.mindMap.keyCommand.addShortcut('Control+f', this.showSearch) }, methods: { isUndef, - + + showSearch() { + this.$bus.$emit('closeSideBar') + this.show = true + this.$refs.input.focus() + }, + hideReplaceInput() { this.showReplaceInput = false this.replaceText = ''