mirror of
https://gitee.com/dromara/go-view.git
synced 2026-05-30 00:00:05 +08:00
fix: 修改名称规范问题
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user