Skip to content

Commit aed635f

Browse files
KAICharles7c
authored andcommitted
fix(gi-table): 修复 GiTable 使用一些属性提示类型错误的问题
1 parent 7fb3db6 commit aed635f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ VITE_API_WS_URL = 'wss://api.continew.top'
1111
VITE_BASE = '/'
1212

1313
# 应用配置面板
14-
VITE_APP_SETTING = false
14+
VITE_APP_SETTING = true

src/components/GiTable/index.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,14 @@
9797
</template>
9898

9999
<script setup lang="ts" generic="T extends TableData">
100-
import type { DropdownInstance, TableColumnData, TableData, TableInstance } from '@arco-design/web-vue'
100+
import type {
101+
DropdownInstance,
102+
Table,
103+
TableColumnData,
104+
TableData,
105+
TableInstance,
106+
} from '@arco-design/web-vue'
107+
101108
import { VueDraggable } from 'vue-draggable-plus'
102109
103110
defineOptions({ name: 'GiTable', inheritAttrs: false })
@@ -137,8 +144,8 @@ defineSlots<{
137144
138145
const attrs = useAttrs()
139146
const slots = useSlots()
140-
141-
interface Props {
147+
type TableProps = Partial<InstanceType<typeof Table>['$props']>
148+
interface Props extends TableProps {
142149
title?: string
143150
data: T[]
144151
disabledTools?: string[]

0 commit comments

Comments
 (0)