UNPKG
d2p-extends
Version:
beta (1.0.4)
latest (2.17.9)
2.17.9
2.17.8
2.17.7
2.17.6
2.17.5
2.17.3
2.17.2
2.17.1
2.17.0
2.16.9
2.16.8
2.16.7
2.16.6
2.16.5
2.16.4
2.16.3
2.16.2
2.16.1
2.16.0
2.15.3
2.15.2
2.15.1
2.15.0
2.14.0
2.13.6
2.13.5
2.13.4
2.13.3
2.13.2
2.13.1
2.13.0
2.12.3
2.12.2
2.12.0
1.9.17
1.9.16
1.9.15
1.9.14
1.9.13
1.9.12
1.9.11
1.9.10
1.9.9
1.9.8
1.9.7
1.9.6
1.9.5
1.9.4
1.9.3
1.9.2
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.13
1.7.12
1.7.11
1.7.10
1.7.9
1.7.8
1.7.7
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.10
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.9
1.0.8
1.0.7-alpha.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
d2-crud-plus的扩展
github.com/greper/d2-crud-plus
greper/d2-crud-plus
d2p-extends
/
src
/
demo-extend
/
types.js
13 lines
(12 loc)
•
398 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
default
{
// 字段类型配置,注册之后即可在crud.js中使用了
'demo-extend'
: {
// 表单组件配置
form
: {
component
: {
name
:
'd2p-form-input'
,
props
: {
color
:
'danger'
} } },
// 行组件配置
component
: {
name
:
'd2p-row-format'
,
props
: {
color
:
'success'
} },
// 行展示时居中
align
:
'center'
// 您还可以写更多默认配置
} }