tachybase_todo/packages/plugins/workflow/src/client/interfaces/expression.tsx

25 lines
568 B
TypeScript
Raw Normal View History

import { IField, interfacesProperties } from "@nocobase/client";
import { NAMESPACE } from "../locale";
const { defaultProps } = interfacesProperties;
export default {
name: 'expression',
type: 'string',
group: 'advanced',
order: 1,
title: `{{t("Expression", { ns: "${NAMESPACE}" })}}`,
description: `{{t("An expression for calculation in each rows", { ns: "${NAMESPACE}" })}}`,
sortable: true,
default: {
type: 'text',
uiSchema: {
'x-component': 'DynamicExpression',
},
},
properties: {
...defaultProps,
},
} as IField;