Skip to content

Commit

Permalink
fix: 修复piui宫格布局边框无法设定的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhenfei committed Nov 16, 2020
1 parent e72b861 commit 8a87337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/pi-grid-item/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ export default {
return `calc((100% - ${this.getRowGapWidth}) / ${this.getCol})`
},
getSquare() {
return this.inheritProps.square || this.square
return this.inheritProps.square !== undefined ? this.inheritProps.square : this.square
},
getBorder() {
return this.inheritProps.border || this.border
return this.inheritProps.border !== undefined ? this.inheritProps.border : this.border
},
itemStyle() {
const gap = this.$pi.common.addUnit(this.getGap)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sadais-piui",
"version": "1.0.8",
"version": "1.0.9",
"description": "piui组件库",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 8a87337

Please sign in to comment.