修改组件名称

This commit is contained in:
2022-03-17 12:06:09 +08:00
parent d2d6267a54
commit 973dfa264b
5 changed files with 7 additions and 7 deletions

View File

@@ -1,10 +1,10 @@
<template> <template>
<i class="fn-icon bg-center-contain" :style="iconStyle"></i> <i class="icon-element bg-center-contain" :style="iconStyle"></i>
</template> </template>
<script> <script>
export default { export default {
name: 'Icon', name: 'IconElement',
props: { props: {
// 来源inner、outer // 来源inner、outer
from: { from: {
@@ -59,7 +59,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.fn-icon { .icon-element {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
font-style: normal; font-style: normal;

View File

@@ -42,7 +42,7 @@
<script> <script>
export default { export default {
name: 'About', name: 'AboutView',
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
next(vm => { next(vm => {
vm.utils.changeTitle('关于'); vm.utils.changeTitle('关于');

View File

@@ -226,7 +226,7 @@
import Icon from '@/components/Icon.vue'; import Icon from '@/components/Icon.vue';
export default { export default {
name: 'Home', name: 'HomeView',
components: { components: {
Icon Icon
}, },

View File

@@ -48,7 +48,7 @@
<script> <script>
export default { export default {
name: 'Settings', name: 'SettingsView',
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
next(vm => { next(vm => {
vm.utils.changeTitle('设置'); vm.utils.changeTitle('设置');

View File

@@ -60,7 +60,7 @@
import navTools from '@/assets/js/navTools.js'; import navTools from '@/assets/js/navTools.js';
export default { export default {
name: 'Tools', name: 'ToolsView',
data() { data() {
return { return {
utils: this.$root.utils, utils: this.$root.utils,