Skip to content

Commit

Permalink
更新crud示例
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaoxiang committed Nov 26, 2018
1 parent cf1ad27 commit 0275aa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/demo/d2-crud/demo25/MyTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export default {
return this.value ? 'success' : 'danger'
},
text () {
if (this.scope.$index === 1) {
return this.myProps
}
return this.value ? '' : ''
}
},
Expand Down
3 changes: 3 additions & 0 deletions src/pages/demo/d2-crud/demo25/codeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default {
return this.value ? 'success' : 'danger'
},
text () {
if (this.scope.$index === 1) {
return this.myProps
}
return this.value ? '是' : '否'
}
},
Expand Down

0 comments on commit 0275aa4

Please sign in to comment.