feat: support setting sequence as the title field for calendar block (#6562)

This commit is contained in:
Katherine 2025-03-26 16:24:31 +08:00 committed by GitHub
parent 46a3816d83
commit cded825bda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,9 @@ export class PluginFieldSequenceClient extends Plugin {
async load() { async load() {
this.app.use(SequenceFieldProvider); this.app.use(SequenceFieldProvider);
this.app.dataSourceManager.addFieldInterfaces([SequenceFieldInterface]); this.app.dataSourceManager.addFieldInterfaces([SequenceFieldInterface]);
const calendarPlugin: any = this.app.pm.get('calendar');
// 注册标题字段
calendarPlugin.registerTitleFieldInterface('sequence');
} }
} }