File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 58
58
* @property {Array} content 展开菜单内容配置项
59
59
* @property {Boolean} popMenu 是否使用弹出菜单
60
60
* @event {Function} trigger 展开菜单点击事件,返回点击信息
61
+ * @event {Function} fabClick 悬浮按钮点击事件
61
62
*/
62
63
export default {
63
64
name: ' UniFab' ,
167
168
},
168
169
methods: {
169
170
_onClick () {
170
- this .$emit (' plusClick ' )
171
+ this .$emit (' fabClick ' )
171
172
if (! this .popMenu ) {
172
173
return
173
174
}
Original file line number Diff line number Diff line change 7
7
<view class="word-btn" hover-class="word-btn--hover" :hover-start-time="20" :hover-stay-time="70" @click="switchBtn('left', 'top')"><text class="word-btn-white">左上角显示</text></view>
8
8
<view class="word-btn" hover-class="word-btn--hover" :hover-start-time="20" :hover-stay-time="70" @click="switchBtn('right', 'top')"><text class="word-btn-white">右上角显示</text></view>
9
9
</view>
10
- <uni-fab ref="fab" :pattern="pattern" :content="content" :horizontal="horizontal" :vertical="vertical" :direction="direction" @trigger="trigger" @plusClick="plusClick " />
10
+ <uni-fab ref="fab" :pattern="pattern" :content="content" :horizontal="horizontal" :vertical="vertical" :direction="direction" @trigger="trigger" @fabClick="fabClick " />
11
11
</view>
12
12
</template>
13
13
74
74
}
75
75
})
76
76
},
77
- plusClick () {
77
+ fabClick () {
78
78
uni.showToast({
79
- title: '点击了加号按钮 ',
79
+ title: '点击了悬浮按钮 ',
80
80
icon: 'none'
81
81
})
82
82
},
You can’t perform that action at this time.
0 commit comments