@buzz-code/custom-js-node
Version:
NocoBase plugin for executing custom JavaScript code in workflows
38 lines (37 loc) • 929 B
TypeScript
import { Instruction } from '@nocobase/plugin-workflow/client';
import React from 'react';
export default class extends Instruction {
title: string;
type: string;
group: string;
description: string;
icon: React.JSX.Element;
fieldset: {
code: {
type: string;
title: string;
'x-decorator': string;
'x-component': string;
'x-component-props': {
rows: number;
placeholder: string;
};
required: boolean;
default: string;
};
};
useVariables({ key, title }: {
key: any;
title: any;
}, { types, fieldNames }: {
types: any;
fieldNames?: {
readonly label: "label";
readonly value: "value";
readonly children: "children";
};
}): {
value: any;
label: any;
};
}