mirror of
https://gitee.com/dromara/go-view.git
synced 2024-12-12 12:45:15 +08:00
fix: 修改规范性命名问题
This commit is contained in:
parent
6c402b3a17
commit
33b0c94159
@ -0,0 +1,3 @@
|
||||
import LayersListItem from './index.vue'
|
||||
|
||||
export { LayersListItem }
|
@ -1,3 +0,0 @@
|
||||
import ListItem from './index.vue'
|
||||
|
||||
export { ListItem }
|
@ -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()
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user