Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Simoje丶
vue-vben-admin
提交
69af37ec
V
vue-vben-admin
项目概览
Simoje丶
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
69af37ec
编写于
11月 03, 2020
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(table): fix table typo
上级
86de3104
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
12 deletion
+22
-12
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+6
-0
src/components/Table/src/types/table.ts
src/components/Table/src/types/table.ts
+10
-6
src/views/demo/table/tableData.tsx
src/views/demo/table/tableData.tsx
+6
-6
未找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
69af37ec
...
...
@@ -7,6 +7,12 @@
### 🎫 Chores
-
删除菜单背景图
-
更新
`ant-design-vue`
版本为
`beta13`
-
更新
`vite`
版本为
`rc.9`
### 🐛 Bug Fixes
-
修复升级之后 table 类型问题
## 2.0.0-rc.8 (2020-11-2)
...
...
src/components/Table/src/types/table.ts
浏览文件 @
69af37ec
import
type
{
VNodeChild
}
from
'
vue
'
;
import
type
{
PaginationProps
}
from
'
./pagination
'
;
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
{
ColumnProps
}
from
'
./column
'
;
//
import { ColumnProps } from './column';
export
declare
type
SortOrder
=
'
ascend
'
|
'
descend
'
;
export
interface
TableCurrentDataSource
<
T
=
any
>
{
currentDataSource
:
T
[];
...
...
@@ -55,8 +58,8 @@ export interface TableCustomRecord<T = any> {
index
?:
number
;
}
export
interface
SorterResult
<
T
>
{
column
:
ColumnProps
<
T
>
;
export
interface
SorterResult
{
column
:
ColumnProps
;
order
:
SortOrder
;
field
:
string
;
columnKey
:
string
;
...
...
@@ -309,7 +312,7 @@ export interface BasicTableProps<T = any> {
* Set props on per header row
* @type Function
*/
customHeaderRow
?:
(
column
:
I
ColumnProps
,
index
:
number
)
=>
object
;
customHeaderRow
?:
(
column
:
ColumnProps
,
index
:
number
)
=>
object
;
/**
* Set props on per row
...
...
@@ -366,8 +369,9 @@ export interface BasicTableProps<T = any> {
onExpandedRowsChange
?:
(
expandedRows
:
string
[]
|
number
[])
=>
void
;
}
export
interface
BasicColumn
extends
I
ColumnProps
{
export
interface
BasicColumn
extends
ColumnProps
{
children
?:
BasicColumn
[];
//
flag
?:
'
INDEX
'
|
'
DEFAULT
'
|
'
CHECKBOX
'
|
'
RADIO
'
|
'
ACTION
'
;
...
...
src/views/demo/table/tableData.tsx
浏览文件 @
69af37ec
...
...
@@ -80,8 +80,8 @@ export function getMultipleHeaderColumns(): BasicColumn[] {
dataIndex
:
'
no
'
,
width
:
120
,
filters
:
[
{
text
:
'
Male
'
,
value
:
'
male
'
},
{
text
:
'
Female
'
,
value
:
'
female
'
},
{
text
:
'
Male
'
,
value
:
'
male
'
,
children
:
[]
},
{
text
:
'
Female
'
,
value
:
'
female
'
,
children
:
[]
},
],
},
...
...
@@ -125,8 +125,8 @@ export function getCustomHeaderColumns(): BasicColumn[] {
dataIndex
:
'
no
'
,
width
:
120
,
filters
:
[
{
text
:
'
Male
'
,
value
:
'
male
'
},
{
text
:
'
Female
'
,
value
:
'
female
'
},
{
text
:
'
Male
'
,
value
:
'
male
'
,
children
:
[]
},
{
text
:
'
Female
'
,
value
:
'
female
'
,
children
:
[]
},
],
},
{
...
...
@@ -190,8 +190,8 @@ export function getMergeHeaderColumns(): BasicColumn[] {
dataIndex
:
'
no
'
,
colSpan
:
0
,
filters
:
[
{
text
:
'
Male
'
,
value
:
'
male
'
},
{
text
:
'
Female
'
,
value
:
'
female
'
},
{
text
:
'
Male
'
,
value
:
'
male
'
,
children
:
[]
},
{
text
:
'
Female
'
,
value
:
'
female
'
,
children
:
[]
},
],
customRender
:
renderContent
,
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录