mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 19:29:04 +08:00
fix(table): fix table typo
This commit is contained in:
@@ -7,6 +7,12 @@
|
|||||||
### 🎫 Chores
|
### 🎫 Chores
|
||||||
|
|
||||||
- 删除菜单背景图
|
- 删除菜单背景图
|
||||||
|
- 更新`ant-design-vue`版本为`beta13`
|
||||||
|
- 更新`vite`版本为`rc.9`
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- 修复升级之后 table 类型问题
|
||||||
|
|
||||||
## 2.0.0-rc.8 (2020-11-2)
|
## 2.0.0-rc.8 (2020-11-2)
|
||||||
|
|
||||||
|
@@ -1,9 +1,12 @@
|
|||||||
import type { VNodeChild } from 'vue';
|
import type { VNodeChild } from 'vue';
|
||||||
import type { PaginationProps } from './pagination';
|
import type { PaginationProps } from './pagination';
|
||||||
import type { FormProps } from '/@/components/Form/index';
|
import type { FormProps } from '/@/components/Form/index';
|
||||||
import type { IColumnProps, ITableRowSelection } from 'ant-design-vue/lib/table/interface';
|
import type {
|
||||||
|
ColumnProps,
|
||||||
|
TableRowSelection as ITableRowSelection,
|
||||||
|
} from 'ant-design-vue/lib/table/interface';
|
||||||
import { ComponentType } from './componentType';
|
import { ComponentType } from './componentType';
|
||||||
import { ColumnProps } from './column';
|
// import { ColumnProps } from './column';
|
||||||
export declare type SortOrder = 'ascend' | 'descend';
|
export declare type SortOrder = 'ascend' | 'descend';
|
||||||
export interface TableCurrentDataSource<T = any> {
|
export interface TableCurrentDataSource<T = any> {
|
||||||
currentDataSource: T[];
|
currentDataSource: T[];
|
||||||
@@ -55,8 +58,8 @@ export interface TableCustomRecord<T = any> {
|
|||||||
index?: number;
|
index?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SorterResult<T> {
|
export interface SorterResult {
|
||||||
column: ColumnProps<T>;
|
column: ColumnProps;
|
||||||
order: SortOrder;
|
order: SortOrder;
|
||||||
field: string;
|
field: string;
|
||||||
columnKey: string;
|
columnKey: string;
|
||||||
@@ -309,7 +312,7 @@ export interface BasicTableProps<T = any> {
|
|||||||
* Set props on per header row
|
* Set props on per header row
|
||||||
* @type Function
|
* @type Function
|
||||||
*/
|
*/
|
||||||
customHeaderRow?: (column: IColumnProps, index: number) => object;
|
customHeaderRow?: (column: ColumnProps, index: number) => object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set props on per row
|
* Set props on per row
|
||||||
@@ -366,8 +369,9 @@ export interface BasicTableProps<T = any> {
|
|||||||
onExpandedRowsChange?: (expandedRows: string[] | number[]) => void;
|
onExpandedRowsChange?: (expandedRows: string[] | number[]) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BasicColumn extends IColumnProps {
|
export interface BasicColumn extends ColumnProps {
|
||||||
children?: BasicColumn[];
|
children?: BasicColumn[];
|
||||||
|
|
||||||
//
|
//
|
||||||
flag?: 'INDEX' | 'DEFAULT' | 'CHECKBOX' | 'RADIO' | 'ACTION';
|
flag?: 'INDEX' | 'DEFAULT' | 'CHECKBOX' | 'RADIO' | 'ACTION';
|
||||||
|
|
||||||
|
@@ -80,8 +80,8 @@ export function getMultipleHeaderColumns(): BasicColumn[] {
|
|||||||
dataIndex: 'no',
|
dataIndex: 'no',
|
||||||
width: 120,
|
width: 120,
|
||||||
filters: [
|
filters: [
|
||||||
{ text: 'Male', value: 'male' },
|
{ text: 'Male', value: 'male', children: [] },
|
||||||
{ text: 'Female', value: 'female' },
|
{ text: 'Female', value: 'female', children: [] },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -125,8 +125,8 @@ export function getCustomHeaderColumns(): BasicColumn[] {
|
|||||||
dataIndex: 'no',
|
dataIndex: 'no',
|
||||||
width: 120,
|
width: 120,
|
||||||
filters: [
|
filters: [
|
||||||
{ text: 'Male', value: 'male' },
|
{ text: 'Male', value: 'male', children: [] },
|
||||||
{ text: 'Female', value: 'female' },
|
{ text: 'Female', value: 'female', children: [] },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -190,8 +190,8 @@ export function getMergeHeaderColumns(): BasicColumn[] {
|
|||||||
dataIndex: 'no',
|
dataIndex: 'no',
|
||||||
colSpan: 0,
|
colSpan: 0,
|
||||||
filters: [
|
filters: [
|
||||||
{ text: 'Male', value: 'male' },
|
{ text: 'Male', value: 'male', children: [] },
|
||||||
{ text: 'Female', value: 'female' },
|
{ text: 'Female', value: 'female', children: [] },
|
||||||
],
|
],
|
||||||
customRender: renderContent,
|
customRender: renderContent,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user