mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:25:48 +00:00
parent
980957f3ad
commit
5feeab5aec
@ -18,8 +18,7 @@ import { Icon, Message } from '@alifd/next';
|
|||||||
const addHelloAction = (ctx: IPublicModelPluginContext) => {
|
const addHelloAction = (ctx: IPublicModelPluginContext) => {
|
||||||
return {
|
return {
|
||||||
async init() {
|
async init() {
|
||||||
const { addBuiltinComponentAction } = ctx.material;
|
ctx.material.addBuiltinComponentAction({
|
||||||
addBuiltinComponentAction({
|
|
||||||
name: 'hello',
|
name: 'hello',
|
||||||
content: {
|
content: {
|
||||||
icon: <Icon type="atm" />,
|
icon: <Icon type="atm" />,
|
||||||
@ -54,8 +53,7 @@ import { IPublicModelPluginContext } from '@alilc/lowcode-types';
|
|||||||
const removeCopyAction = (ctx: IPublicModelPluginContext) => {
|
const removeCopyAction = (ctx: IPublicModelPluginContext) => {
|
||||||
return {
|
return {
|
||||||
async init() {
|
async init() {
|
||||||
const { removeBuiltinComponentAction } = ctx.material;
|
ctx.material.removeBuiltinComponentAction('copy');
|
||||||
removeBuiltinComponentAction('copy');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user