File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5858 * @property {Array} content 展开菜单内容配置项
5959 * @property {Boolean} popMenu 是否使用弹出菜单
6060 * @event {Function} trigger 展开菜单点击事件,返回点击信息
61+ * @event {Function} fabClick 悬浮按钮点击事件
6162 */
6263 export default {
6364 name: ' UniFab' ,
167168 },
168169 methods: {
169170 _onClick () {
170- this .$emit (' plusClick ' )
171+ this .$emit (' fabClick ' )
171172 if (! this .popMenu ) {
172173 return
173174 }
Original file line number Diff line number Diff line change 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
7474 }
7575 })
7676 },
77- plusClick () {
77+ fabClick () {
7878 uni.showToast({
79- title: '点击了加号按钮 ',
79+ title: '点击了悬浮按钮 ',
8080 icon: 'none'
8181 })
8282 },
You can’t perform that action at this time.
0 commit comments