Skip to content

Commit

Permalink
fix: Appdeploy schemaform support select (#3415)
Browse files Browse the repository at this point in the history
appdeploy schemaform support select

Co-authored-by: Liu Xin <[email protected]>
  • Loading branch information
SongJXin and harrisonliu5 authored Oct 18, 2023
1 parent 46eecf6 commit 694bb99
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import React from 'react'
import PropTypes from 'prop-types'
import { map, get, set, every, has, debounce, isEmpty, isNaN } from 'lodash'
import { Form, Input, Slider, TextArea, Toggle } from '@kube-design/components'
import { Form, Input, Slider, TextArea, Toggle, Select } from '@kube-design/components'
import { Text } from 'components/Base'
import { NumberInput } from 'components/Inputs'

Expand Down Expand Up @@ -89,6 +89,13 @@ export default class SchemaForm extends React.Component {
)
} else if (propObj.render === 'textArea') {
content = <TextArea {...attrs} />
} else if (propObj.render === 'select') {
content = (
<Select
options={propObj.options}
defaultValue={propObj.defaultValue}
{...attrs} />
)
} else {
content = <Input {...attrs} />
}
Expand Down

0 comments on commit 694bb99

Please sign in to comment.