Custom field type
通过定义proxima:FieldType,可以创建team的自定义字段类型。创建后的自定义字段类型可以被应用的自定义字段引用。
Manifest示例
modules:
proxima:FieldType:
- key: custom-field-type
name: 自定义字段类型
description: 这是一个自定义字段类型
type: Custom
dataType: array
resource: field-type-resource
resources:
- key: field-type-resource
path: ./field-type
属性
| 属性 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| key | String | Yes | 自定义字段类型的key,可以被proxima:CustomField中的fieldType引用。在Manifest文件中必须是唯一的。 规则: ^[a-zA-Z0-9_-]+$ |
| name | String | Yes | 自定义字段类型名称 |
| description | String | No | 自定义字段类型的说明 |
| type | String | Yes | 类型:默认Custom |
| dataType | String | Yes | 数据类型,array为数组 |
| resource | String | Yes | 指向静态资源的key |