|
@@ -34,6 +34,7 @@ const LazyCascader = props => {
|
|
|
options={options}
|
|
options={options}
|
|
|
onChange={handleOnChange}
|
|
onChange={handleOnChange}
|
|
|
loadData={loadData}
|
|
loadData={loadData}
|
|
|
|
|
+ allowClear={false}
|
|
|
fieldNames={{ label: 'name', value: 'id' }}
|
|
fieldNames={{ label: 'name', value: 'id' }}
|
|
|
changeOnSelect
|
|
changeOnSelect
|
|
|
defaultValue={['省', '市', '区']}
|
|
defaultValue={['省', '市', '区']}
|
|
@@ -41,7 +42,6 @@ const LazyCascader = props => {
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export default connect(({ district, loading }) => ({
|
|
|
|
|
- options: district.data,
|
|
|
|
|
- loadingDistrict: loading.effects['district/fetch']
|
|
|
|
|
|
|
+export default connect(({ district }) => ({
|
|
|
|
|
+ options: district.data
|
|
|
}))(LazyCascader)
|
|
}))(LazyCascader)
|