Junyi c4afb7586c
Feat/plugin workflow (#278)
* fix(plugin-workflow): fix query node variable config

* feat(plugin-workflow): add more calculators

* refactor(plugin-workflow): simplify operand codes and fix variable component bugs
2022-04-10 20:06:40 +08:00

32 lines
592 B
TypeScript

import React from 'react';
import { Calculation } from '../calculators';
export default {
title: '运算',
type: 'calculation',
group: 'control',
fieldset: {
calculation: {
type: 'object',
title: '配置计算',
name: 'calculation',
required: true,
'x-decorator': 'FormItem',
'x-component': 'CalculationConfig',
}
},
view: {
},
components: {
CalculationConfig({ value, onChange }) {
return (
<Calculation {...value} onChange={onChange} />
);
}
},
getter() {
return <div></div>;
}
};