refactor(plugin-workflow): adjust date type of variable (#6717)

This commit is contained in:
Junyi 2025-04-20 14:13:12 +08:00 committed by GitHub
parent aa6a46924a
commit 817ba15a91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,20 +125,8 @@ export const systemOptions = {
export const BaseTypeSets = {
boolean: new Set(['checkbox']),
number: new Set(['integer', 'number', 'percent']),
string: new Set([
'input',
'password',
'email',
'phone',
'select',
'radioGroup',
'text',
'markdown',
'richText',
'expression',
'time',
]),
date: new Set(['date', 'createdAt', 'updatedAt']),
string: new Set(['input', 'password', 'email', 'phone', 'select', 'radioGroup', 'text', 'markdown', 'richText']),
date: new Set(['datetime', 'datetimeNoTz', 'dateOnly', 'createdAt', 'updatedAt']),
};
// { type: 'reference', options: { collection: 'users', multiple: false } }