fix: calender default view locale (#6084)

This commit is contained in:
Katherine 2025-01-17 15:26:13 +08:00 committed by GitHub
parent aa8aae89d5
commit d87e7bb78e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -149,9 +149,9 @@ export const calendarBlockSettings = new SchemaSettings({
title: t('Default view'), title: t('Default view'),
value: field['decoratorProps']['defaultView'] || 'month', value: field['decoratorProps']['defaultView'] || 'month',
options: [ options: [
{ value: 'month', label: '月' }, { value: 'month', label: t('Month') },
{ value: 'week', label: '周' }, { value: 'week', label: t('Week') },
{ value: 'day', label: '天' }, { value: 'day', label: t('Day') },
], ],
onChange: (v) => { onChange: (v) => {
field.decoratorProps.defaultView = v; field.decoratorProps.defaultView = v;