Skip to content

Commit

Permalink
style: layout组件名改为大驼峰
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Sep 3, 2022
1 parent 9714171 commit b25b453
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</ul>
</el-popover>
</template>
<script setup lang="ts" name="contextmenu">
<script setup lang="ts" name="Contextmenu">
import { useRouteStore } from '@/store';
import { PropType } from 'vue';
import { RouteLocationNormalized } from 'vue-router';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</el-scrollbar>
</el-space>
</template>
<script setup lang="ts" name="left">
<script setup lang="ts" name="Left">
import { mitter, event } from '@/event';
import { useSettingStore, useGlobalStore } from '@/store';
import { RouteLocationNormalized, RouteRecordRaw } from 'vue-router';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</template>
</el-dropdown>
</template>
<script setup lang="ts" name="messageBox">
<script setup lang="ts" name="MessageBox">
const isDot = ref(true);
</script>
<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</el-dropdown>
</template>

<script setup lang="ts" name="user">
<script setup lang="ts" name="User">
import { useGlobalStore, useUserStore } from '@/store';
const userStore = useUserStore();
const globalStore = useGlobalStore();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<me-setting v-if="themeConfig.showSetting" class="item"></me-setting>
</div>
</template>
<script setup lang="ts" name="right">
<script setup lang="ts" name="Right">
import { localeConfig } from '@/config';
import MeDarkSwitch from '@/components/meDarkSwitch.vue';
import MeLocaleSelect from '@/components/meLocaleSelect.vue';
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/header/components/topBar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</div>
</template>

<script setup lang="ts" name="topBar">
<script setup lang="ts" name="TopBar">
import Left from './components/left.vue';
import Right from './components/right/index.vue';
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<tag-bar v-if="themeConfig.tagBar"></tag-bar>
</div>
</template>
<script setup lang="ts" name="navbar">
<script setup lang="ts" name="LayoutHeader">
import { useSettingStore } from '@/store';
import TopBar from './components/topBar/index.vue';
import TagBar from './components/tagBar/index.vue';
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/menu/components/menuItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</template>
</template>

<script setup lang="ts" name="menuItem">
<script setup lang="ts" name="MenuItem">
import { isExternal } from '@/utils/validate';
import { resolve } from 'path-browserify';
import { PropType } from 'vue';
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</router-view>
</template>

<script setup lang="ts" name="layoutPage">
<script setup lang="ts" name="LayoutPage">
import { MeKeepAliveProps } from '@/components/meKeepAlive';
import { useRouteStore } from '@/store';
import { PropType, TransitionProps } from 'vue';
Expand Down
2 changes: 1 addition & 1 deletion src/layout/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<me-setting v-if="themeConfig.showSetting && !themeConfig.topBar" class="fixed-setting"></me-setting>
<me-setting-menu></me-setting-menu>
</template>
<script setup lang="ts" name="layout">
<script setup lang="ts" name="Layout">
import LayoutHeader from './components/header/index.vue';
import LayoutMenu from './components/menu/index.vue';
import LayoutPage from './components/page.vue';
Expand Down

0 comments on commit b25b453

Please sign in to comment.