Skip to content

Commit

Permalink
fix: 修复级联懒加载时无法反显的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Oct 20, 2020
1 parent 0500c40 commit ed840d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -2,7 +2,6 @@
<el-cascader
class="d2p-cascade"
:value="currentValue"
:options="_options"
:disabled="disabled" :readonly="readonly"
v-bind="_elProps"
@input="onInput" />
Expand Down Expand Up @@ -62,6 +61,12 @@ export default {
defaultElProps.props.value = this.dict.value
}
merge(defaultElProps, this.elProps)
if (defaultElProps.props && defaultElProps.props.lazy === true) {
} else {
defaultElProps.options = this._options
}
console.log('cascade:', defaultElProps, this.elProps)
return defaultElProps
}
Expand Down
2 changes: 1 addition & 1 deletion packages/d2-crud-plus/src/lib/mixins/input-dict.js
Expand Up @@ -49,7 +49,7 @@ export default {
if (this.dictOptions != null) {
return this.dictOptions
}
return []
return undefined
}
},
watch: {
Expand Down

0 comments on commit ed840d3

Please sign in to comment.