mirror of https://github.com/usual2970/certimate
				
				
				
			feat(ui): auto complete tencentcloud ssl deploy resource type
							parent
							
								
									cb88df04b0
								
							
						
					
					
						commit
						4a02c252d5
					
				| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
import { memo } from "react";
 | 
			
		||||
import { useTranslation } from "react-i18next";
 | 
			
		||||
import { FormOutlined as FormOutlinedIcon } from "@ant-design/icons";
 | 
			
		||||
import { Alert, Button, Form, type FormInstance, Input, Space } from "antd";
 | 
			
		||||
import { Alert, AutoComplete, Button, Form, type FormInstance, Input, Space } from "antd";
 | 
			
		||||
import { createSchemaFieldRule } from "antd-zod";
 | 
			
		||||
import { z } from "zod";
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -86,7 +86,11 @@ const DeployNodeConfigFormTencentCloudSSLDeployConfig = ({
 | 
			
		|||
        rules={[formRule]}
 | 
			
		||||
        tooltip={<span dangerouslySetInnerHTML={{ __html: t("workflow_node.deploy.form.tencentcloud_ssl_deploy_resource_type.tooltip") }}></span>}
 | 
			
		||||
      >
 | 
			
		||||
        <Input placeholder={t("workflow_node.deploy.form.tencentcloud_ssl_deploy_resource_type.placeholder")} />
 | 
			
		||||
        <AutoComplete
 | 
			
		||||
          options={["apigateway", "cdn", "clb", "cos", "ddos", "lighthouse", "live", "tcb", "teo", "tke", "tse", "vod", "waf"].map((value) => ({ value }))}
 | 
			
		||||
          placeholder={t("workflow_node.deploy.form.tencentcloud_ssl_deploy_resource_type.placeholder")}
 | 
			
		||||
          filterOption={(inputValue, option) => option!.value.toLowerCase().includes(inputValue.toLowerCase())}
 | 
			
		||||
        />
 | 
			
		||||
      </Form.Item>
 | 
			
		||||
 | 
			
		||||
      <Form.Item
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue