File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<view >
3
- <view v-if =" !onlyPlusButton && (leftBottom||rightBottom||leftTop||rightTop)" :class =" {
3
+ <view v-if =" popMenu && (leftBottom||rightBottom||leftTop||rightTop)" :class =" {
4
4
'uni-fab--leftBottom': leftBottom,
5
5
'uni-fab--rightBottom': rightBottom,
6
6
'uni-fab--leftTop': leftTop,
56
56
* @value horizontal 水平显示
57
57
* @value vertical 垂直显示
58
58
* @property {Array} content 展开菜单内容配置项
59
- * @property {Boolean} onlyPlusButton 是否只显示加号按钮
59
+ * @property {Boolean} popMenu 是否使用弹出菜单
60
60
* @event {Function} trigger 展开菜单点击事件,返回点击信息
61
61
*/
62
62
export default {
90
90
type: Boolean ,
91
91
default: false
92
92
},
93
- onlyPlusButton : {
93
+ popMenu : {
94
94
type: Boolean ,
95
- default: false
95
+ default: true
96
96
}
97
97
},
98
98
data () {
168
168
methods: {
169
169
_onClick () {
170
170
this .$emit (' plusClick' )
171
- if (this .onlyPlusButton ) {
171
+ if (! this .popMenu ) {
172
172
return
173
173
}
174
174
this .isShow = ! this .isShow
You can’t perform that action at this time.
0 commit comments