mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
fix: 修改名称规范问题
This commit is contained in:
parent
3a9f68384f
commit
6c402b3a17
@ -6,7 +6,7 @@
|
||||
:theme-overrides="getThemeOverrides"
|
||||
>
|
||||
<app-provider>
|
||||
<i18n></i18n>
|
||||
<I18n></I18n>
|
||||
<router-view></router-view>
|
||||
</app-provider>
|
||||
</n-config-provider>
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { App } from 'vue'
|
||||
import LoadingComponent from './index.vue'
|
||||
import AsyncLoading from './index.vue'
|
||||
import AsyncSkeletonLoading from './GoSkeleton.vue'
|
||||
import AsyncSkeletonLoading from './LoadingSkeleton.vue'
|
||||
|
||||
// 正常组件
|
||||
export { LoadingComponent }
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<!-- svg加载图 -->
|
||||
<div class="go-loading-svg go-flex-center">
|
||||
<img src="~@/assets/images/tips/loadingSvg.svg" alt=""></div>
|
||||
<img src="~@/assets/images/tips/loadingSvg.svg" alt="" />
|
||||
</div>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<n-button quaternary @click="modelShow = true" title="颜色">
|
||||
<n-icon size="20" :depth="1">
|
||||
<ColorWandIcon></ColorWandIcon>
|
||||
<color-wand-icon></color-wand-icon>
|
||||
</n-icon>
|
||||
</n-button>
|
||||
<n-modal v-model:show="modelShow">
|
||||
@ -9,13 +9,13 @@
|
||||
<n-space justify="space-between">
|
||||
<n-h3 class="title">主题颜色选择</n-h3>
|
||||
<n-icon size="20" class="go-cursor-pointer" @click="modelShow = false">
|
||||
<CloseIcon></CloseIcon>
|
||||
<close-icon></close-icon>
|
||||
</n-icon>
|
||||
</n-space>
|
||||
<n-divider></n-divider>
|
||||
<div class="model-content" ref="contentLeftRef">
|
||||
<div class="content-left" v-if="modelShow">
|
||||
<ColorList :designColor="designColorSplit" @colorSelectHandle="colorSelectHandle"></ColorList>
|
||||
<color-list :designColor="designColorSplit" @colorSelectHandle="colorSelectHandle"></color-list>
|
||||
</div>
|
||||
<div class="content-right">
|
||||
<div class="color-name-detail">
|
||||
|
@ -1,3 +0,0 @@
|
||||
import GoFooter from './index.vue'
|
||||
|
||||
export { GoFooter }
|
@ -1,3 +0,0 @@
|
||||
import GoHeader from './index.vue'
|
||||
|
||||
export { GoHeader }
|
@ -1,3 +0,0 @@
|
||||
import HeaderPro from './index.vue'
|
||||
|
||||
export { HeaderPro }
|
3
src/layout/components/LayoutFooter/index.ts
Normal file
3
src/layout/components/LayoutFooter/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import LayoutFooter from './index.vue'
|
||||
|
||||
export { LayoutFooter }
|
3
src/layout/components/LayoutHeader/index.ts
Normal file
3
src/layout/components/LayoutHeader/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import LayoutHeader from './index.vue'
|
||||
|
||||
export { LayoutHeader }
|
3
src/layout/components/LayoutHeaderPro/index.ts
Normal file
3
src/layout/components/LayoutHeaderPro/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import LayoutHeaderPro from './index.vue'
|
||||
|
||||
export { LayoutHeaderPro }
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<GoHeader>
|
||||
<layout-header>
|
||||
<template #left>
|
||||
<slot name="left"></slot>
|
||||
</template>
|
||||
@ -10,12 +10,12 @@
|
||||
<slot name="ri-left"></slot>
|
||||
</template>
|
||||
<template #ri-right>
|
||||
<uer-info></uer-info>
|
||||
<user-info></user-info>
|
||||
<slot name="ri-right"></slot>
|
||||
</template>
|
||||
</GoHeader>
|
||||
</layout-header>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { GoHeader } from '@/layout/components/GoHeader'
|
||||
import { LayoutHeader } from '@/layout/components/LayoutHeader'
|
||||
import { UserInfo } from '@/components/UserInfo'
|
||||
</script>
|
3
src/layout/components/LayoutMain/index.ts
Normal file
3
src/layout/components/LayoutMain/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import LayoutMain from './index.vue';
|
||||
|
||||
export { LayoutMain };
|
3
src/layout/components/LayoutTransitionMain/index.ts
Normal file
3
src/layout/components/LayoutTransitionMain/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import LayoutTransitionMain from './index.vue';
|
||||
|
||||
export { LayoutTransitionMain };
|
@ -1,3 +0,0 @@
|
||||
import MainView from './index.vue';
|
||||
|
||||
export { MainView };
|
@ -1,3 +0,0 @@
|
||||
import TransitionMain from './index.vue';
|
||||
|
||||
export { TransitionMain };
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<MainView></MainView>
|
||||
<layout-main></layout-main>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { MainView } from '@/layout/components/Main/index'
|
||||
import { LayoutMain } from '@/layout/components/LayoutMain/index'
|
||||
</script>
|
@ -18,7 +18,7 @@
|
||||
class="go-cursor-pointer"
|
||||
@click="backHandle"
|
||||
>
|
||||
<ChevronBackOutlineIcon></ChevronBackOutlineIcon>
|
||||
<chevron-back-outline-icon></chevron-back-outline-icon>
|
||||
</n-icon>
|
||||
</n-space>
|
||||
</div>
|
||||
@ -46,12 +46,9 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||
import { icon } from '@/plugins'
|
||||
const { ChevronBackOutlineIcon } = icon.ionicons5
|
||||
|
||||
const chartEditStore = useChartEditStore()
|
||||
const emit = defineEmits(['back'])
|
||||
|
||||
defineProps({
|
||||
|
@ -9,7 +9,7 @@
|
||||
@dragstart="handleDragStart($event, item)"
|
||||
>
|
||||
<div class="list-header">
|
||||
<MacOsControlBtn :mini="true" :disabled="true"></MacOsControlBtn>
|
||||
<mac-os-control-btn :mini="true" :disabled="true"></mac-os-control-btn>
|
||||
<n-text class="list-header-text" depth="3">{{ item.title }}</n-text>
|
||||
</div>
|
||||
<div class="list-center go-flex-center">
|
||||
|
@ -12,7 +12,7 @@
|
||||
></n-menu>
|
||||
<div class="chart-content-list">
|
||||
<n-scrollbar>
|
||||
<ItemBox :menuOptions="packages.selectOptions"></ItemBox>
|
||||
<item-box :menuOptions="packages.selectOptions"></item-box>
|
||||
</n-scrollbar>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<!-- 左侧所有组件的展示列表 -->
|
||||
<ContentBox
|
||||
<content-box
|
||||
class="go-content-charts"
|
||||
:class="{ scoped: !getCharts }"
|
||||
title="组件"
|
||||
@ -9,7 +9,7 @@
|
||||
>
|
||||
<template #icon>
|
||||
<n-icon size="14" :depth="2">
|
||||
<BarChartIcon></BarChartIcon>
|
||||
<bar-chart-icon></bar-chart-icon>
|
||||
</n-icon>
|
||||
</template>
|
||||
<!-- 图表 -->
|
||||
@ -24,22 +24,22 @@
|
||||
@update:value="clickItemHandle"
|
||||
></n-menu>
|
||||
<div class="menu-component-box">
|
||||
<GoSkeleton
|
||||
<go-skeleton
|
||||
:load="!selectOptions"
|
||||
round
|
||||
text
|
||||
:repeat="2"
|
||||
style="width: 90%;"
|
||||
></GoSkeleton>
|
||||
<OptionContent
|
||||
></go-skeleton>
|
||||
<option-content
|
||||
v-if="selectOptions"
|
||||
:selectOptions="selectOptions"
|
||||
:key="selectValue"
|
||||
></OptionContent>
|
||||
></option-content>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
</ContentBox>
|
||||
</content-box>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
@ -7,7 +7,7 @@
|
||||
>
|
||||
清除动画
|
||||
</n-button>
|
||||
<CollapseItem
|
||||
<collapse-item
|
||||
v-for="(item, index) in animations"
|
||||
:key="index"
|
||||
:name="item.label"
|
||||
@ -29,7 +29,7 @@
|
||||
{{ childrenItem.label }}
|
||||
</n-grid-item>
|
||||
</n-grid>
|
||||
</CollapseItem>
|
||||
</collapse-item>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="go-chart-configurations-setting" v-if="targetData">
|
||||
<!-- 名称 -->
|
||||
<SettingItemBox name="名称">
|
||||
<setting-item-box name="名称">
|
||||
<n-input
|
||||
type="text"
|
||||
maxlength="6"
|
||||
@ -10,17 +10,17 @@
|
||||
size="small"
|
||||
v-model:value="targetData.chartConfig.title"
|
||||
></n-input>
|
||||
</SettingItemBox>
|
||||
</setting-item-box>
|
||||
<!-- 尺寸 -->
|
||||
<SizeSetting :chartAttr="targetData.attr"></SizeSetting>
|
||||
<size-setting :chartAttr="targetData.attr"></size-setting>
|
||||
<!-- 位置 -->
|
||||
<PositionSetting :chartAttr="targetData.attr" :canvasConfig="chartEditStore.getEditCanvasConfig"/>
|
||||
<position-setting :chartAttr="targetData.attr" :canvasConfig="chartEditStore.getEditCanvasConfig"/>
|
||||
<!-- 样式 -->
|
||||
<StylesSetting :chartStyles="targetData.styles"></StylesSetting>
|
||||
<styles-setting :chartStyles="targetData.styles"></styles-setting>
|
||||
<!-- 自定义配置项 -->
|
||||
<component :is="targetData.chartConfig.conKey" :optionData="targetData.option"></component>
|
||||
<!-- 全局设置 -->
|
||||
<GlobalSetting :optionData="targetData.option" :in-chart="true"></GlobalSetting>
|
||||
<global-setting :optionData="targetData.option" :in-chart="true"></global-setting>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<n-layout has-sider sider-placement="right">
|
||||
<n-layout-content>
|
||||
<!-- 图表拖拽区域 -->
|
||||
<ContentEdit></ContentEdit>
|
||||
<content-edit></content-edit>
|
||||
</n-layout-content>
|
||||
<n-layout-sider
|
||||
collapse-mode="transform"
|
||||
@ -14,7 +14,7 @@
|
||||
@collapse="collapsedHindle"
|
||||
@expand="expandHindle"
|
||||
>
|
||||
<ContentBox
|
||||
<content-box
|
||||
class="go-content-layers go-boderbox"
|
||||
:showTop="false"
|
||||
:depth="2"
|
||||
@ -70,7 +70,7 @@
|
||||
<component :is="item.render"></component>
|
||||
</n-tab-pane>
|
||||
</n-tabs>
|
||||
</ContentBox>
|
||||
</content-box>
|
||||
</n-layout-sider>
|
||||
</n-layout>
|
||||
</template>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="go-edit-bottom">
|
||||
<EditHistory></EditHistory>
|
||||
<edit-history></edit-history>
|
||||
|
||||
<n-space class="bottom-ri">
|
||||
<!-- 快捷键提示 -->
|
||||
@ -32,8 +32,8 @@
|
||||
size="18"
|
||||
:depth="2"
|
||||
>
|
||||
<LockClosedOutlineIcon v-if="lockScale"></LockClosedOutlineIcon>
|
||||
<LockOpenOutlineIcon v-else></LockOpenOutlineIcon>
|
||||
<lock-closed-outline-icon v-if="lockScale"></lock-closed-outline-icon>
|
||||
<lock-open-outline-icon v-else></lock-open-outline-icon>
|
||||
</n-icon>
|
||||
</n-button>
|
||||
</template>
|
||||
|
@ -22,7 +22,7 @@
|
||||
<n-tooltip trigger="hover">
|
||||
<template #trigger>
|
||||
<n-icon size="21" :depth="3">
|
||||
<HelpOutlineIcon></HelpOutlineIcon>
|
||||
<help-outline-icon></help-outline-icon>
|
||||
</n-icon>
|
||||
</template>
|
||||
<span>最多只保留 20 条记录</span>
|
||||
|
@ -6,7 +6,7 @@
|
||||
>
|
||||
<slot></slot>
|
||||
<!-- 拖拽时的辅助线 -->
|
||||
<EditAlignLine></EditAlignLine>
|
||||
<edit-align-line></edit-align-line>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<ContentBox
|
||||
<content-box
|
||||
id="go-chart-edit-layout"
|
||||
:flex="true"
|
||||
:showTop="false"
|
||||
@ -11,9 +11,9 @@
|
||||
>
|
||||
<div id="go-chart-edit-content">
|
||||
<!-- 展示 -->
|
||||
<EditRange ref="editRangeRef">
|
||||
<edit-range ref="editRangeRef">
|
||||
<!-- 图表 -->
|
||||
<EditShapeBox
|
||||
<edit-shape-box
|
||||
v-for="(item, index) in chartEditStore.getComponentList"
|
||||
:key="item.id"
|
||||
:data-id="item.id"
|
||||
@ -33,14 +33,14 @@
|
||||
:themeColor="themeColor"
|
||||
:style="useSizeStyle(item.attr)"
|
||||
></component>
|
||||
</EditShapeBox>
|
||||
</EditRange>
|
||||
</edit-shape-box>
|
||||
</edit-range>
|
||||
</div>
|
||||
<!-- 底部控制 -->
|
||||
<template #bottom>
|
||||
<EditBottom></EditBottom>
|
||||
</template>
|
||||
</ContentBox>
|
||||
</content-box>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<ContentBox
|
||||
<content-box
|
||||
class="go-content-layers"
|
||||
:class="{ scoped: !chartLayoutStore.getLayers }"
|
||||
title="图层"
|
||||
@ -13,7 +13,7 @@
|
||||
</template>
|
||||
|
||||
<!-- 图层内容 -->
|
||||
<ListItem
|
||||
<list-item
|
||||
v-for="item in reverseList"
|
||||
:key="item.id"
|
||||
:componentData="item"
|
||||
@ -21,8 +21,8 @@
|
||||
@mouseenter="mouseenterHandle(item)"
|
||||
@mouseleave="mouseleaveHandle(item)"
|
||||
@contextmenu="handleContextMenu($event)"
|
||||
></ListItem>
|
||||
</ContentBox>
|
||||
></list-item>
|
||||
</content-box>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
@ -3,7 +3,7 @@
|
||||
<n-button size="small" quaternary @click="goHomeHandle()">
|
||||
<template #icon>
|
||||
<n-icon :depth="3">
|
||||
<HomeIcon></HomeIcon>
|
||||
<home-icon></home-icon>
|
||||
</n-icon>
|
||||
</template>
|
||||
</n-button>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<n-space>
|
||||
<n-icon size="20" :depth="3">
|
||||
<FishIcon></FishIcon>
|
||||
<fish-icon></fish-icon>
|
||||
</n-icon>
|
||||
<n-text @click="handleFocus">
|
||||
工作空间 -
|
||||
|
@ -2,21 +2,21 @@
|
||||
<!-- 工作台相关 -->
|
||||
<div class="go-chart">
|
||||
<n-layout>
|
||||
<HeaderPro>
|
||||
<layout-header-pro>
|
||||
<template #left>
|
||||
<HeaderLeftBtn></HeaderLeftBtn>
|
||||
<header-left-btn></header-left-btn>
|
||||
</template>
|
||||
<template #center>
|
||||
<HeaderTitle></HeaderTitle>
|
||||
<header-title></header-title>
|
||||
</template>
|
||||
<template #ri-left>
|
||||
<HeaderRightBtn></HeaderRightBtn>
|
||||
<header-right-btn></header-right-btn>
|
||||
</template>
|
||||
</HeaderPro>
|
||||
</layout-header-pro>
|
||||
<n-layout-content content-style="overflow:hidden; display: flex">
|
||||
<ContentCharts></ContentCharts>
|
||||
<ContentLayers></ContentLayers>
|
||||
<ContentConfigurations></ContentConfigurations>
|
||||
<content-charts></content-charts>
|
||||
<content-layers></content-layers>
|
||||
<content-configurations></content-configurations>
|
||||
</n-layout-content>
|
||||
</n-layout>
|
||||
</div>
|
||||
@ -36,7 +36,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { loadAsyncComponent } from '@/utils'
|
||||
import { HeaderPro } from '@/layout/components/HeaderPro'
|
||||
import { LayoutHeaderPro } from '@/layout/components/LayoutHeaderPro'
|
||||
import { useContextMenu } from './hooks/useContextMenu.hook'
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||
import { useChartHistoryStoreStore } from '@/store/modules/chartHistoryStore/chartHistoryStore'
|
||||
|
@ -15,13 +15,13 @@
|
||||
</transition-group>
|
||||
</aside>
|
||||
</div>
|
||||
<GoHeader>
|
||||
<layout-header>
|
||||
<template #left></template>
|
||||
<template #right>
|
||||
<LangSelect></LangSelect>
|
||||
<ThemeSelect></ThemeSelect>
|
||||
<lang-select></lang-select>
|
||||
<theme-select></theme-select>
|
||||
</template>
|
||||
</GoHeader>
|
||||
</layout-header>
|
||||
<div class="go-login">
|
||||
<div class="go-login-carousel">
|
||||
<n-carousel
|
||||
@ -109,7 +109,7 @@
|
||||
</div>
|
||||
|
||||
<div class="go-login-box-footer">
|
||||
<GoFooter></GoFooter>
|
||||
<layout-footer></layout-footer>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -126,8 +126,8 @@ import { carouselInterval } from '@/settings/designSetting'
|
||||
import { useDesignStore } from '@/store/modules/designStore/designStore'
|
||||
import { ThemeSelect } from '@/components/ThemeSelect'
|
||||
import { LangSelect } from '@/components/LangSelect'
|
||||
import { GoHeader } from '@/layout/components/GoHeader'
|
||||
import { GoFooter } from '@/layout/components/GoFooter'
|
||||
import { LayoutHeader } from '@/layout/components/LayoutHeader'
|
||||
import { LayoutFooter } from '@/layout/components/LayoutFooter'
|
||||
import { PageEnum } from '@/enums/pageEnum'
|
||||
import { icon } from '@/plugins'
|
||||
import { StorageEnum } from '@/enums/storageEnum'
|
||||
|
3
src/views/preview/components/PreviewRenderList/index.ts
Normal file
3
src/views/preview/components/PreviewRenderList/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import PreviewRenderList from './index.vue'
|
||||
|
||||
export { PreviewRenderList }
|
@ -1,3 +0,0 @@
|
||||
import RenderList from './index.vue'
|
||||
|
||||
export { RenderList }
|
@ -5,7 +5,7 @@
|
||||
<!-- 展示层 -->
|
||||
<div :style="previewRefStyle" v-if="show">
|
||||
<!-- 渲染层 -->
|
||||
<render-list :localStorageInfo="localStorageInfo"></render-list>
|
||||
<preview-render-list :localStorageInfo="localStorageInfo"></preview-render-list>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -14,7 +14,7 @@
|
||||
<script setup lang="ts">
|
||||
import { onUnmounted, ref, nextTick, computed } from 'vue'
|
||||
import { usePreviewScale } from '@/hooks/index'
|
||||
import { RenderList } from './components/RenderList/index'
|
||||
import { PreviewRenderList } from './components/PreviewRenderList/index'
|
||||
import { ChartEditStorageType } from './index.d'
|
||||
import { useEditCanvasConfigStyle, getSessionStorageInfo } from './utils'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
|
@ -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 }
|
@ -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,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,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 }
|
@ -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 }
|
@ -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 }
|
@ -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 }
|
@ -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 }
|
@ -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 }
|
Loading…
Reference in New Issue
Block a user