插件和主题组件类型之间存在差异。
我尝试制作了一个表格(预计会有小的错误或分组)
| 类别 | 功能 | 插件语法 | TC 语法 |
|---|---|---|---|
| 基本类型 | 字符串 | type: stringmin: ..max: ..regex: ..secret: true/falseglobal validator: 类名 |
type: stringmin: ..max: ..- - - - |
| 多行文本 | type: stringtextarea: true |
type: stringtextarea: true |
|
| 整数 | type: integermin: ..max: .. |
type: integermin: ..max: .. |
|
| 浮点数 | type: floatmin: ..max: .. |
type: floatmin: ..max: .. |
|
| 布尔值 | type: bool |
type: bool |
|
| 时间 | type: time |
- | |
| Null | type: null |
- | |
| 选择类型 | 枚举(下拉菜单) | type: enumchoices: [option1, option2]enum: .. |
type: enumchoices: [option1, option2] |
| 类别 | type: category |
- | |
| 颜色 | type: color |
- | |
| 组 | type: group |
- | |
| 电子邮件 | type: email |
- | |
| 用户名 | type: username |
- | |
| 列表类型 | 通用列表 | type: listallow_any: true/false |
type: list |
| 简单/紧凑列表 | type: simple_list或 type: listlist_type: compactlist_type: simple |
type: listlist_type: compactlist_type: simple |
|
| 类别列表 | type: category_list |
type: listlist_type: category |
|
| 组列表 | type: group_list |
type: listlist_type: group |
|
| 标签列表 | type: tag_list |
type: listlist_type: tag |
|
| 标签组列表 | type: tag_group_list |
- | |
| URL 列表 | type: url_list |
- | |
| 主机列表 | type: host_list |
- | |
| 值列表 | type: value_list |
- | |
| Emoji 列表 | type: emoji_list |
- | |
| 文件类型 | 上传 | type: upload |
type: upload |
| 上传图片列表 | type: uploaded_image_list |
- | |
| 文件大小限制 | type: file_size_restrictionmin: ..max: .. |
- | |
| 特殊类型 | HTML(已弃用) | type: html_deprecated |
- |
| JSON 对象 | 已弃用 | 已弃用 | |
| 对象 | - | type: objects |