Skip to content

Commit 72ff6cb

Browse files
committed
update(uni-ui): onlyPlusButton --> popMenu
1 parent 6572928 commit 72ff6cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/uni-fab/uni-fab.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<view>
3-
<view v-if="!onlyPlusButton && (leftBottom||rightBottom||leftTop||rightTop)" :class="{
3+
<view v-if="popMenu && (leftBottom||rightBottom||leftTop||rightTop)" :class="{
44
'uni-fab--leftBottom': leftBottom,
55
'uni-fab--rightBottom': rightBottom,
66
'uni-fab--leftTop': leftTop,
@@ -56,7 +56,7 @@
5656
* @value horizontal 水平显示
5757
* @value vertical 垂直显示
5858
* @property {Array} content 展开菜单内容配置项
59-
* @property {Boolean} onlyPlusButton 是否只显示加号按钮
59+
* @property {Boolean} popMenu 是否使用弹出菜单
6060
* @event {Function} trigger 展开菜单点击事件,返回点击信息
6161
*/
6262
export default {
@@ -90,9 +90,9 @@
9090
type: Boolean,
9191
default: false
9292
},
93-
onlyPlusButton: {
93+
popMenu: {
9494
type: Boolean,
95-
default: false
95+
default: true
9696
}
9797
},
9898
data() {
@@ -168,7 +168,7 @@
168168
methods: {
169169
_onClick() {
170170
this.$emit('plusClick')
171-
if (this.onlyPlusButton) {
171+
if (!this.popMenu) {
172172
return
173173
}
174174
this.isShow = !this.isShow

0 commit comments

Comments
 (0)