Commit c70e6299 authored by 田翔's avatar 田翔

fix: 时间增加时间段优化2

parent c42d2de5
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.9.24", "version": "5.9.25",
"description": "5.9.24 时间增加时间段优化", "description": "5.9.25 时间增加时间段优化2",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -86,6 +86,7 @@ const DateTime = (props) => { ...@@ -86,6 +86,7 @@ const DateTime = (props) => {
{ {
format === 'datePeriod' && ( format === 'datePeriod' && (
<Select <Select
disabled={disabled}
value={period} value={period}
style={{ width: '70px' }} style={{ width: '70px' }}
onChange={(value) => selectChange(value)} onChange={(value) => selectChange(value)}
......
...@@ -31,6 +31,7 @@ const getJson = (json, value) => { ...@@ -31,6 +31,7 @@ const getJson = (json, value) => {
const RadioGroup = (props) => { const RadioGroup = (props) => {
console.log('props', props)
const { value, schema, onChange } = props const { value, schema, onChange } = props
const [values, setvalues] = useState(value) const [values, setvalues] = useState(value)
...@@ -46,8 +47,8 @@ const RadioGroup = (props) => { ...@@ -46,8 +47,8 @@ const RadioGroup = (props) => {
<div className={styles.radioGroup}> <div className={styles.radioGroup}>
<Radio.Group <Radio.Group
onChange={onSelect} onChange={onSelect}
defaultValue={value}
buttonStyle="solid" buttonStyle="solid"
value={value}
> >
{ {
schema?.enum?.map((v, i) => { schema?.enum?.map((v, i) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment