mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 修改名称规范问题
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
<div class="go-project">
|
||||
<n-layout has-sider position="absolute">
|
||||
<n-space vertical>
|
||||
<Sider></Sider>
|
||||
<project-layout-sider></project-layout-sider>
|
||||
</n-space>
|
||||
<n-layout>
|
||||
<HeaderPro></HeaderPro>
|
||||
<layout-header-pro></layout-header-pro>
|
||||
<n-layout
|
||||
id="go-project-content-top"
|
||||
class="content-top"
|
||||
@@ -13,9 +13,9 @@
|
||||
:native-scrollbar="false"
|
||||
>
|
||||
<n-layout-content>
|
||||
<TransitionMain>
|
||||
<layout-transition-main>
|
||||
<router-view></router-view>
|
||||
</TransitionMain>
|
||||
</layout-transition-main>
|
||||
</n-layout-content>
|
||||
</n-layout>
|
||||
</n-layout>
|
||||
@@ -24,9 +24,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Sider } from './layout/components/Sider'
|
||||
import { HeaderPro } from '@/layout/components/HeaderPro'
|
||||
import { TransitionMain } from '@/layout/components/TransitionMain/index'
|
||||
import { ProjectLayoutSider } from './layout/components/ProjectLayoutSider'
|
||||
import { LayoutHeaderPro } from '@/layout/components/LayoutHeaderPro'
|
||||
import { LayoutTransitionMain } from '@/layout/components/LayoutTransitionMain/index'
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
import Card from './index.vue'
|
||||
|
||||
export { Card }
|
||||
@@ -1,3 +0,0 @@
|
||||
import List from './index.vue'
|
||||
|
||||
export { List }
|
||||
@@ -1,3 +0,0 @@
|
||||
import ModalCard from './index.vue'
|
||||
|
||||
export { ModalCard }
|
||||
@@ -0,0 +1,3 @@
|
||||
import ProjectItemsCard from './index.vue'
|
||||
|
||||
export { ProjectItemsCard }
|
||||
+2
-2
@@ -4,12 +4,12 @@
|
||||
<div class="list-content">
|
||||
<!-- 顶部按钮 -->
|
||||
<div class="list-content-top">
|
||||
<MacOsControlBtn
|
||||
<mac-os-control-btn
|
||||
class="top-btn"
|
||||
:hidden="['remove']"
|
||||
@close="deleteHanlde"
|
||||
@resize="resizeHandle"
|
||||
></MacOsControlBtn>
|
||||
></mac-os-control-btn>
|
||||
</div>
|
||||
<!-- 中间 -->
|
||||
<div class="list-content-img" @click="resizeHandle">
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { ref } from 'vue'
|
||||
import { goDialog } from '@/utils'
|
||||
import { DialogEnum } from '@/enums/pluginEnum'
|
||||
import { ChartList } from '../../../index.d'
|
||||
import { ChartList } from '../../..'
|
||||
// 数据初始化
|
||||
export const useDataListInit = () => {
|
||||
const list = ref<ChartList>([
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { ref, Ref } from 'vue'
|
||||
import { ChartEnum } from '@/enums/pageEnum'
|
||||
import { fetchPathByName, routerTurnByPath } from '@/utils'
|
||||
import { Chartype } from '../../../index.d'
|
||||
import { Chartype } from '../../..'
|
||||
export const useModalDataInit = () => {
|
||||
const modalShow = ref<boolean>(false)
|
||||
const modalData = ref<Chartype | null>(null)
|
||||
@@ -0,0 +1,3 @@
|
||||
import ProjectItemsList from './index.vue'
|
||||
|
||||
export { ProjectItemsList }
|
||||
+6
-6
@@ -7,27 +7,27 @@
|
||||
responsive="screen"
|
||||
>
|
||||
<n-grid-item v-for="(item, index) in list" :key="item.id">
|
||||
<card
|
||||
<project-items-card
|
||||
:cardData="item"
|
||||
@resize="resizeHandle"
|
||||
@delete="deleteHandle($event, index)"
|
||||
@edit="editHandle"
|
||||
></card>
|
||||
></project-items-card>
|
||||
</n-grid-item>
|
||||
</n-grid>
|
||||
</div>
|
||||
<ModalCard
|
||||
<project-items-modal-card
|
||||
v-if="modalData"
|
||||
v-model:modalShow="modalShow"
|
||||
:cardData="modalData"
|
||||
@close="closeModal"
|
||||
@edit="editHandle"
|
||||
></ModalCard>
|
||||
></project-items-modal-card>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Card } from '../Card/index'
|
||||
import { ModalCard } from '../ModalCard/index'
|
||||
import { ProjectItemsCard } from '../ProjectItemsCard/index'
|
||||
import { ProjectItemsModalCard } from '../ProjectItemsModalCard/index'
|
||||
import { icon } from '@/plugins'
|
||||
import { useModalDataInit } from './hooks/useModal.hook'
|
||||
import { useDataListInit } from './hooks/useData.hook'
|
||||
@@ -0,0 +1,3 @@
|
||||
import ProjectItemsModalCard from './index.vue'
|
||||
|
||||
export { ProjectItemsModalCard }
|
||||
+2
-2
@@ -17,11 +17,11 @@
|
||||
</n-space>
|
||||
<!-- 顶部按钮 -->
|
||||
<n-space class="list-content-top">
|
||||
<MacOsControlBtn
|
||||
<mac-os-control-btn
|
||||
:narrow="true"
|
||||
:hidden="['close']"
|
||||
@remove="closeHandle"
|
||||
></MacOsControlBtn>
|
||||
></mac-os-control-btn>
|
||||
</n-space>
|
||||
<!-- 中间 -->
|
||||
<div class="list-content-img">
|
||||
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div class="go-project-items">
|
||||
<List></List>
|
||||
<project-items-list></project-items-list>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { List } from './components/List'
|
||||
import { ProjectItemsList } from './components/ProjectItemsList'
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
import AsideFooter from './index.vue'
|
||||
|
||||
export { AsideFooter }
|
||||
@@ -1,3 +0,0 @@
|
||||
import Create from './index.vue'
|
||||
|
||||
export { Create }
|
||||
@@ -1,3 +0,0 @@
|
||||
import GoHeader from './index.vue'
|
||||
|
||||
export { GoHeader }
|
||||
@@ -1,13 +0,0 @@
|
||||
<template>
|
||||
<go-header>
|
||||
<template #ri-left>
|
||||
</template>
|
||||
<template #ri-right>
|
||||
<user-info></user-info>
|
||||
</template>
|
||||
</go-header>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { GoHeader } from '@/layout/components/GoHeader'
|
||||
import { UserInfo } from '@/components/UserInfo'
|
||||
</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
import ProjectLayoutAsideFooter from './index.vue'
|
||||
|
||||
export { ProjectLayoutAsideFooter }
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
<n-button secondary @click="handleDoc">
|
||||
<template #icon>
|
||||
<n-icon size="18">
|
||||
<HelpOutlineIcon></HelpOutlineIcon>
|
||||
<help-outline-icon></help-outline-icon>
|
||||
</n-icon>
|
||||
</template>
|
||||
</n-button>
|
||||
@@ -20,7 +20,7 @@
|
||||
<n-button v-else secondary @click="handleDoc">
|
||||
<template #icon>
|
||||
<n-icon size="18">
|
||||
<HelpOutlineIcon></HelpOutlineIcon>
|
||||
<help-outline-icon></help-outline-icon>
|
||||
</n-icon>
|
||||
</template>
|
||||
<n-text>{{ $t('global.help') }}</n-text>
|
||||
@@ -31,7 +31,7 @@
|
||||
<n-button secondary @click="handleDoc">
|
||||
<template #icon>
|
||||
<n-icon size="18">
|
||||
<CodeSlashIcon></CodeSlashIcon>
|
||||
<code-slash-icon></code-slash-icon>
|
||||
</n-icon>
|
||||
</template>
|
||||
</n-button>
|
||||
@@ -44,7 +44,7 @@
|
||||
<n-button v-else secondary @click="handleCode">
|
||||
<template #icon>
|
||||
<n-icon size="18">
|
||||
<CodeSlashIcon></CodeSlashIcon>
|
||||
<code-slash-icon></code-slash-icon>
|
||||
</n-icon>
|
||||
</template>
|
||||
<n-text v-show="!collapsed">{{ $t('global.code_addr') }}</n-text>
|
||||
@@ -0,0 +1,3 @@
|
||||
import ProjectLayoutCreate from './index.vue'
|
||||
|
||||
export { ProjectLayoutCreate }
|
||||
+2
-2
@@ -6,7 +6,7 @@
|
||||
<template #icon>
|
||||
<n-icon>
|
||||
<DuplicateOutlineIcon v-show="designStore.getDarkTheme"></DuplicateOutlineIcon>
|
||||
<DuplicateIcon v-show="!designStore.getDarkTheme"></DuplicateOutlineIcon>
|
||||
<DuplicateIcon v-show="!designStore.getDarkTheme"></DuplicateIcon>
|
||||
</n-icon>
|
||||
</template>
|
||||
</n-button>
|
||||
@@ -19,7 +19,7 @@
|
||||
<template #icon>
|
||||
<n-icon>
|
||||
<DuplicateOutlineIcon v-show="designStore.getDarkTheme"></DuplicateOutlineIcon>
|
||||
<DuplicateIcon v-show="!designStore.getDarkTheme"></DuplicateOutlineIcon>
|
||||
<DuplicateIcon v-show="!designStore.getDarkTheme"></DuplicateIcon>
|
||||
</n-icon>
|
||||
</template>
|
||||
<span>
|
||||
@@ -0,0 +1,3 @@
|
||||
import ProjectLayoutSider from './index.vue'
|
||||
|
||||
export { ProjectLayoutSider }
|
||||
+5
-5
@@ -14,7 +14,7 @@
|
||||
<div class="go-project-sider-flex">
|
||||
<aside>
|
||||
<n-space vertical class="go-project-sider-top">
|
||||
<Create :collapsed="collapsed"></Create>
|
||||
<project-layout-create :collapsed="collapsed"></project-layout-create>
|
||||
</n-space>
|
||||
<n-menu
|
||||
:value="menuValue"
|
||||
@@ -26,7 +26,7 @@
|
||||
</aside>
|
||||
<!-- 底部提示 -->
|
||||
<div class="sider-bottom">
|
||||
<AsideFooter :collapsed="collapsed"></AsideFooter>
|
||||
<project-layout-aside-footer :collapsed="collapsed"></project-layout-aside-footer>
|
||||
</div>
|
||||
</div>
|
||||
</n-layout-sider>
|
||||
@@ -34,9 +34,9 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, onMounted, onUnmounted, toRefs } from 'vue'
|
||||
import { Create } from '../Create/index'
|
||||
import { AsideFooter } from '../AsideFooter/index'
|
||||
import { asideWidth, asideCollapsedWidth } from '@/settings/designSetting'
|
||||
import { ProjectLayoutCreate } from '../ProjectLayoutCreate/index'
|
||||
import { ProjectLayoutAsideFooter } from '../ProjectLayoutAsideFooter/index'
|
||||
import { asideWidth } from '@/settings/designSetting'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { useSettingStore } from '@/store/modules/settingStore/settingStore'
|
||||
import { menuOptionsInit, expandedKeys } from './menu'
|
||||
@@ -1,3 +0,0 @@
|
||||
import Sider from './index.vue'
|
||||
|
||||
export { Sider }
|
||||
Reference in New Issue
Block a user