Skip to content

Commit

Permalink
feat:SupperButton componentProps 深拷贝后再传入自定义组件
Browse files Browse the repository at this point in the history
  • Loading branch information
LLoyou00 committed Dec 30, 2020
1 parent d6ad4ae commit 8df624f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Common/SuperButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export default {
return strVarReplace(str, data)
},
transProps(componentProps) {
componentProps = this._.cloneDeep(componentProps)
Object.keys(componentProps).forEach(item => {
if (type(componentProps[item]) === 'string') {
componentProps[item] = strVarReplace(componentProps[item], this.$props.baseData)
Expand Down

0 comments on commit 8df624f

Please sign in to comment.