diff --git a/packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx b/packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx index 81935fa347..0f66b56457 100644 --- a/packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-delay/src/client/DelayInstruction.tsx @@ -8,11 +8,10 @@ */ import React from 'react'; -import { InputNumber, Select } from 'antd'; +import { Space } from 'antd'; import { HourglassOutlined } from '@ant-design/icons'; -import { css, useCompile } from '@nocobase/client'; -import { Instruction, JOB_STATUS } from '@nocobase/plugin-workflow/client'; +import { Instruction, JOB_STATUS, WorkflowVariableInput } from '@nocobase/plugin-workflow/client'; import { NAMESPACE } from '../locale'; @@ -24,47 +23,6 @@ const UnitOptions = [ { value: 604800_000, label: `{{t('Weeks', { ns: "workflow" })}}` }, ]; -function getNumberOption(v) { - return UnitOptions.slice() - .reverse() - .find((item) => !(v % item.value)); -} - -function Duration({ value = 60000, onChange }) { - const compile = useCompile(); - const option = getNumberOption(value); - const quantity = Math.round(value / option.value); - - return ( -
- onChange(Math.round(v * option.value))} - className="auto-width" - /> -