mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
* 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
32 lines
592 B
TypeScript
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>;
|
|
}
|
|
};
|