mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-06 06:08:07 +08:00
refactor(plugin-workflow): add calculation nodes group (#5035)
This commit is contained in:
parent
4aaab331ae
commit
e245da8f29
@ -43,9 +43,9 @@ function DynamicExpression({ value, onChange }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default class extends Instruction {
|
export default class extends Instruction {
|
||||||
title = `{{t("Dynamic Calculation", { ns: "${NAMESPACE}" })}}`;
|
title = `{{t("Dynamic expression calculation", { ns: "${NAMESPACE}" })}}`;
|
||||||
type = 'dynamic-calculation';
|
type = 'dynamic-calculation';
|
||||||
group = 'extended';
|
group = 'calculation';
|
||||||
description = `{{t("Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.", { ns: "${NAMESPACE}" })}}`;
|
description = `{{t("Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.", { ns: "${NAMESPACE}" })}}`;
|
||||||
fieldset = {
|
fieldset = {
|
||||||
expression: {
|
expression: {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Expression": "表达式",
|
"Expression": "表达式",
|
||||||
"Dynamic Calculation": "动态表达式计算",
|
"Dynamic expression calculation": "动态表达式计算",
|
||||||
"Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "基于计算引擎计算表达式并获取值作为结果。可以在表达式中使用上游节点的变量。表达式是从表达式表中动态获取的。",
|
"Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "基于计算引擎计算表达式并获取值作为结果。可以在表达式中使用上游节点的变量。表达式是从表达式表中动态获取的。",
|
||||||
"Select dynamic expression": "选择动态表达式",
|
"Select dynamic expression": "选择动态表达式",
|
||||||
"Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "从上游节点中选择查询出来的动态表达式。你需要从动态表达式类型的数据表中查询。",
|
"Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "从上游节点中选择查询出来的动态表达式。你需要从动态表达式类型的数据表中查询。",
|
||||||
|
@ -38,6 +38,7 @@ export function AddButton(props: AddButtonProps) {
|
|||||||
const groups = useMemo(() => {
|
const groups = useMemo(() => {
|
||||||
return [
|
return [
|
||||||
{ key: 'control', label: `{{t("Control", { ns: "${NAMESPACE}" })}}` },
|
{ key: 'control', label: `{{t("Control", { ns: "${NAMESPACE}" })}}` },
|
||||||
|
{ key: 'calculation', label: `{{t("Calculation", { ns: "${NAMESPACE}" })}}` },
|
||||||
{ key: 'collection', label: `{{t("Collection operations", { ns: "${NAMESPACE}" })}}` },
|
{ key: 'collection', label: `{{t("Collection operations", { ns: "${NAMESPACE}" })}}` },
|
||||||
{ key: 'manual', label: `{{t("Manual", { ns: "${NAMESPACE}" })}}` },
|
{ key: 'manual', label: `{{t("Manual", { ns: "${NAMESPACE}" })}}` },
|
||||||
{ key: 'extended', label: `{{t("Extended types", { ns: "${NAMESPACE}" })}}` },
|
{ key: 'extended', label: `{{t("Extended types", { ns: "${NAMESPACE}" })}}` },
|
||||||
|
@ -20,7 +20,7 @@ import { Instruction } from '.';
|
|||||||
export default class extends Instruction {
|
export default class extends Instruction {
|
||||||
title = `{{t("Calculation", { ns: "${NAMESPACE}" })}}`;
|
title = `{{t("Calculation", { ns: "${NAMESPACE}" })}}`;
|
||||||
type = 'calculation';
|
type = 'calculation';
|
||||||
group = 'control';
|
group = 'calculation';
|
||||||
description = `{{t("Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression.", { ns: "${NAMESPACE}" })}}`;
|
description = `{{t("Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression.", { ns: "${NAMESPACE}" })}}`;
|
||||||
fieldset = {
|
fieldset = {
|
||||||
engine: {
|
engine: {
|
||||||
|
Loading…
Reference in New Issue
Block a user