fix: 修改规范性命名问题

This commit is contained in:
MTrun 2022-03-14 19:56:09 +08:00
parent 6c402b3a17
commit 33b0c94159
4 changed files with 9 additions and 14 deletions

View File

@ -0,0 +1,3 @@
import LayersListItem from './index.vue'
export { LayersListItem }

View File

@ -1,3 +0,0 @@
import ListItem from './index.vue'
export { ListItem }

View File

@ -13,7 +13,7 @@
</template>
<!-- 图层内容 -->
<list-item
<layers-list-item
v-for="item in reverseList"
:key="item.id"
:componentData="item"
@ -21,7 +21,7 @@
@mouseenter="mouseenterHandle(item)"
@mouseleave="mouseleaveHandle(item)"
@contextmenu="handleContextMenu($event)"
></list-item>
></layers-list-item>
</content-box>
</template>
@ -32,18 +32,13 @@ import { useChartLayoutStore } from '@/store/modules/chartLayoutStore/chartLayou
import { ChartLayoutStoreEnum } from '@/store/modules/chartLayoutStore/chartLayoutStore.d'
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
import { CreateComponentType } from '@/packages/index.d'
import cloneDeep from 'lodash/cloneDeep';
import {
ChartEditStoreEnum,
TargetChartType
} from '@/store/modules/chartEditStore/chartEditStore.d'
import cloneDeep from 'lodash/cloneDeep'
import {
useContextMenu,
MenuOptionsItemType,
MenuEnum
} from '@/views/chart/hooks/useContextMenu.hook'
import { ListItem } from './components/ListItem/index'
import { LayersListItem } from './components/LayersListItem/index'
import { icon } from '@/plugins'
const { LayersIcon } = icon.ionicons5
@ -55,7 +50,7 @@ const { handleContextMenu } = useContextMenu({
})
//
const reverseList = computed(()=>{
const reverseList = computed(() => {
const list: CreateComponentType[] = cloneDeep(chartEditStore.getComponentList)
return list.reverse()
})