mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 处理 TS 报错
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
<n-scrollbar style="max-height: 500px">
|
||||
<div
|
||||
class="list-item go-flex-items-center go-ellipsis-1"
|
||||
v-for="item in options"
|
||||
:key="item.key"
|
||||
v-for="(item, index) in options"
|
||||
:key="index"
|
||||
:title="item.label"
|
||||
>
|
||||
<n-icon
|
||||
@@ -66,6 +66,7 @@ import {
|
||||
HistoryTargetTypeEnum,
|
||||
HistoryActionTypeEnum,
|
||||
} from '@/store/modules/chartHistoryStore/chartHistoryStore.d'
|
||||
import { isArray } from 'node_modules/_@types_lodash@4.14.182@@types/lodash'
|
||||
|
||||
const {
|
||||
DesktopOutlineIcon,
|
||||
@@ -127,7 +128,6 @@ const options = computed(() => {
|
||||
const options = backStack.map((e: HistoryItemType) => {
|
||||
return {
|
||||
label: labelHandle(e),
|
||||
key: e.id,
|
||||
icon: iconHandle(e),
|
||||
}
|
||||
})
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
<!-- 图表 -->
|
||||
<div v-for="(item, index) in chartEditStore.getComponentList" :key="item.id">
|
||||
<!-- 分组 -->
|
||||
<edit-group v-if="item.isGroup" :groupData="item" :groupIndex="index"></edit-group>
|
||||
<edit-group v-if="item.isGroup" :groupData="(item as CreateComponentGroupType)" :groupIndex="index"></edit-group>
|
||||
|
||||
<!-- 单组件 -->
|
||||
<edit-shape-box
|
||||
v-if="!item.isGroup"
|
||||
v-else
|
||||
:data-id="item.id"
|
||||
:index="index"
|
||||
:style="useComponentStyle(item.attr, index)"
|
||||
|
||||
Reference in New Issue
Block a user