File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " flyme-ui" ,
3
- "version" : " 0.5.5 " ,
3
+ "version" : " 0.5.6 " ,
4
4
"description" : " 一套基于 Vue.js 的响应式移动端 UI 组件库" ,
5
5
"main" : " src/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 44
44
45
45
<template >
46
46
<div class =" fm-menu" >
47
- <fm-icon @click.native =" hide " id =" more" color =" #666" ></fm-icon >
48
- <div v-if =" show" @click =" hide" class =" fm-menu--background" ></div >
47
+ <fm-icon @click.native =" show = true " id =" more" color =" #666" ></fm-icon >
48
+ <div v-if =" show" @touchstart =" hide" class =" fm-menu--background" ></div >
49
49
<transition name =" fm-menu--transition" >
50
50
<fm-list v-if =" show" >
51
51
<slot ></slot >
77
77
},
78
78
methods: {
79
79
hide () {
80
- this .show ? history .back () : this .show = true ;
80
+ setTimeout (() => {
81
+ history .back ();
82
+ }, 200 ); // 防止 touchstart 在菜单键范围内触发时再次打开菜单的问题
81
83
},
82
84
popstateEvent () {
83
85
this .show = false ;
You can’t perform that action at this time.
0 commit comments