Skip to content

Commit

Permalink
修复转换avue配置时column和group同时存在的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
sscfaith committed Mar 18, 2020
1 parent 2e0121d commit c379b92
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions packages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ export default {
* @return {String}
*/
getCopyContent () {
if (this.beautifierOptions.enabled) return beautifier(this.widgetForm, this.beautifierOptions)
else return JSON.stringify(this.widgetForm, null, 2)
if (this.beautifierOptions.enabled) return beautifier(this.widgetFormPreview, this.beautifierOptions)
else return JSON.stringify(this.widgetFormPreview, null, 2)
},
// 表单设计器配置项 转化为 Avue配置项
transformToAvueOptions (obj) {
Expand Down Expand Up @@ -537,7 +537,8 @@ export default {
}
}
})
} else if (data.group && data.group.length > 0) {
}
if (data.group && data.group.length > 0) {
for (let i = 0; i < data.group.length; i++) {
if (!data.column) data.column = []
const col = data.group[i]
Expand Down
6 changes: 3 additions & 3 deletions public/cdn/avue/latest/avue.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/cdn/avue/latest/index.css

Large diffs are not rendered by default.

0 comments on commit c379b92

Please sign in to comment.