|
@@ -3,7 +3,7 @@ import React, { forwardRef, useEffect } from 'react'
|
|
|
import { connect } from 'dva'
|
|
import { connect } from 'dva'
|
|
|
|
|
|
|
|
const CLazyCascader = props => {
|
|
const CLazyCascader = props => {
|
|
|
- const { refinstance, options, dispatch, onChange, ...resetProps } = props
|
|
|
|
|
|
|
+ const { refinstance, options, dispatch, onChange, changeOnSelect = false, ...resetProps } = props
|
|
|
// console.log(props.defaultValue)
|
|
// console.log(props.defaultValue)
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
if (!options.length) {
|
|
if (!options.length) {
|
|
@@ -48,7 +48,7 @@ const CLazyCascader = props => {
|
|
|
onChange={handleOnChange}
|
|
onChange={handleOnChange}
|
|
|
loadData={loadData}
|
|
loadData={loadData}
|
|
|
fieldNames={{ label: 'name', value: 'id' }}
|
|
fieldNames={{ label: 'name', value: 'id' }}
|
|
|
- // changeOnSelect
|
|
|
|
|
|
|
+ changeOnSelect={changeOnSelect}
|
|
|
/>
|
|
/>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|