Skip to content

Commit 6251ef1

Browse files
committedMar 17, 2017
update testAction dataSchema
1 parent 8049d13 commit 6251ef1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎src/schema/testAction.dataSchema.js

+12
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ module.exports = [
1515
dataType: 'varchar',
1616
validator: [{type: 'string', max: 10, message: '最多10个字符'}],
1717
},
18+
{
19+
key: 'touxiang',
20+
title: '头像',
21+
dataType: 'varchar',
22+
showType: 'image',
23+
width: 60,
24+
},
1825
{
1926
key: 'desc',
2027
title: '描述',
@@ -62,6 +69,11 @@ module.exports = [
6269
keys: ['birthday'],
6370
visible: (record) => record.id >= 1010, // 所有action都可以定义visible函数, 返回false则对这行记录不显示这个操作
6471
},
72+
{
73+
name: '更新头像',
74+
type: 'update',
75+
keys: ['touxiang'],
76+
},
6577
{
6678
type: 'newLine', // 换行, 纯粹用于排版的, 更美观一点
6779
},

0 commit comments

Comments
 (0)
Please sign in to comment.