Skip to content

vue版本Table组件,丢失ts类型 #3586

@779102260

Description

@779102260

Basic Info

  • Package Name And Version: @arco-design/[email protected]
  • Framework version: vue 3.5.17
  • Browser: chrome139.0.0.0

Extra info

table.d.ts类型错误,导出了_default
import type { PropType } from 'vue';
import type { TableBorder, TableChangeExtra, TableColumnData, TableComponents, TableData, TableDraggable, TableExpandable, TableOperationColumn, TableRowSelection } from './interface';
import { PaginationProps } from '../pagination';
import { VirtualListProps } from '../_components/virtual-list-v2/interface';
import { ScrollbarProps } from '../scrollbar';
import type { BaseType } from '../_utils/types';
declare const _default;
export default _default;

What is expected?

正确的类型推断

Steps to reproduce

table缺失类型,推断成了any

<script setup lang="ts"> import { Table as ArcoTable } from "@arco-design/web-vue"; const columns = [ { title: "Name", dataIndex: "name", }, ]; const data = [ { name: "John Doe", }, ]; </script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions