Skip to content

Commit

Permalink
fix(gi-table): 修复 GiTable 使用一些属性提示类型错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
KAI authored and Charles7c committed Dec 18, 2024
1 parent 7fb3db6 commit aed635f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ VITE_API_WS_URL = 'wss://api.continew.top'
VITE_BASE = '/'

# 应用配置面板
VITE_APP_SETTING = false
VITE_APP_SETTING = true
13 changes: 10 additions & 3 deletions src/components/GiTable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@
</template>

<script setup lang="ts" generic="T extends TableData">
import type { DropdownInstance, TableColumnData, TableData, TableInstance } from '@arco-design/web-vue'
import type {
DropdownInstance,
Table,
TableColumnData,
TableData,
TableInstance,
} from '@arco-design/web-vue'
import { VueDraggable } from 'vue-draggable-plus'
defineOptions({ name: 'GiTable', inheritAttrs: false })
Expand Down Expand Up @@ -137,8 +144,8 @@ defineSlots<{
const attrs = useAttrs()
const slots = useSlots()
interface Props {
type TableProps = Partial<InstanceType<typeof Table>['$props']>
interface Props extends TableProps {
title?: string
data: T[]
disabledTools?: string[]
Expand Down

0 comments on commit aed635f

Please sign in to comment.