Skip to content

Commit c798e9b

Browse files
committed
update(uni-ui): plusClick --> fabClick
1 parent 72ff6cb commit c798e9b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

components/uni-fab/uni-fab.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
* @property {Array} content 展开菜单内容配置项
5959
* @property {Boolean} popMenu 是否使用弹出菜单
6060
* @event {Function} trigger 展开菜单点击事件,返回点击信息
61+
* @event {Function} fabClick 悬浮按钮点击事件
6162
*/
6263
export default {
6364
name: 'UniFab',
@@ -167,7 +168,7 @@
167168
},
168169
methods: {
169170
_onClick() {
170-
this.$emit('plusClick')
171+
this.$emit('fabClick')
171172
if (!this.popMenu) {
172173
return
173174
}

pages/extUI/fab/fab.nvue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<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>
88
<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>
99
</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" />
1111
</view>
1212
</template>
1313

@@ -74,9 +74,9 @@
7474
}
7575
})
7676
},
77-
plusClick() {
77+
fabClick() {
7878
uni.showToast({
79-
title: '点击了加号按钮',
79+
title: '点击了悬浮按钮',
8080
icon: 'none'
8181
})
8282
},

0 commit comments

Comments
 (0)