跳到主要内容

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

属性

属性类型是否必填说明
keyStringYes自定义字段类型的key,可以被proxima:CustomField中的fieldType引用。在Manifest文件中必须是唯一的。
规则: ^[a-zA-Z0-9_-]+$
nameStringYes自定义字段类型名称
descriptionStringNo自定义字段类型的说明
typeStringYes类型:默认Custom
dataTypeStringYes数据类型,array为数组
resourceStringYes指向静态资源的key