mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
* chore: update class names of plugins * fix: build * chore: add back sample-hello * fix: test
21 lines
670 B
TypeScript
21 lines
670 B
TypeScript
import { Plugin } from '@nocobase/client';
|
|
import { Formula } from './components';
|
|
import { renderExpressionDescription } from './scopes';
|
|
import { FormulaFieldInterface } from './interfaces/formula';
|
|
import { FormulaComponentFieldSettings } from './FormulaComponentFieldSettings';
|
|
|
|
export class PluginFormulaFieldClient extends Plugin {
|
|
async load() {
|
|
this.app.addComponents({
|
|
Formula,
|
|
});
|
|
this.app.addScopes({
|
|
renderExpressionDescription,
|
|
});
|
|
this.app.dataSourceManager.addFieldInterfaces([FormulaFieldInterface]);
|
|
this.app.schemaSettingsManager.add(FormulaComponentFieldSettings);
|
|
}
|
|
}
|
|
|
|
export default PluginFormulaFieldClient;
|