Skip to content

Commit

Permalink
fix: 完善fix: 完善pi-picker注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Jau-work committed Mar 29, 2021
1 parent 7f6e68e commit 73df9d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion components/pi-navbar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default {
type: String,
// `'light'`
default: navbar.capsuleTheme,
validator: function (value) {
validator: function(value) {
return ['light', 'dark'].includes(value)
}
},
Expand Down
15 changes: 7 additions & 8 deletions components/pi-picker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@
<!-- 顶部操作条 -->
<pi-bottom-bar v-if="toolbarPosition === 'bottom'">
<slot v-if="$slots.toolbar" name="toolbar" />
<pi-button v-else width="100%" type="primary" @tap="handleConfirm">
确定
</pi-button>
<pi-button v-else width="100%" type="primary" @tap="handleConfirm">确定</pi-button>
</pi-bottom-bar>
</view>
</pi-popup>
Expand Down Expand Up @@ -103,8 +101,8 @@ export default {
// 自定义样式
customStyle: {
type: Object,
// {}
default() {
// {}
return picker.customStyle
}
},
Expand All @@ -120,8 +118,9 @@ export default {
toolbarPosition: {
// 'top', 'bottom'
type: String,
// 'bottom'
default: picker.toolbarPosition,
validator: function(value) {
validator: function (value) {
return ['top', 'bottom'].includes(value)
}
},
Expand Down Expand Up @@ -163,7 +162,7 @@ export default {
type: String,
// 'single'
default: picker.type,
validator: function(value) {
validator: function (value) {
return ['single', 'multi', 'multi-auto'].includes(value)
}
},
Expand Down Expand Up @@ -206,8 +205,8 @@ export default {
// 行样式
itemStyle: {
type: Object,
// {}
default() {
// {}
return picker.itemStyle
}
},
Expand Down Expand Up @@ -268,7 +267,7 @@ export default {
type: String,
// ''
default: picker.closeIconPosition,
validator: function(value) {
validator: function (value) {
return ['', 'tl', 'tr', 'bl', 'br'].includes(value)
}
},
Expand Down

0 comments on commit 73df9d9

Please sign in to comment.