password.tsx 354 B

1234567891011
  1. import { IFlowNodeParameter } from '@/types/flow';
  2. import { convertKeysToCamelCase } from '@/utils/flow';
  3. import { Input } from 'antd';
  4. const { Password } = Input;
  5. export const renderPassword = (data: IFlowNodeParameter) => {
  6. const attr = convertKeysToCamelCase(data.ui?.attr || {});
  7. return <Password {...attr} placeholder='input password' />;
  8. };