Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mui
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mui
Commits
7df18dac
Commit
7df18dac
authored
Nov 14, 2014
by
hbcui1984
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改手势事件默认监听的描述
parent
34aab784
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
24 deletions
+28
-24
dist/css/mui.css
dist/css/mui.css
+5
-1
dist/css/mui.min.css
dist/css/mui.min.css
+1
-1
dist/js/mui.js
dist/js/mui.js
+1
-1
dist/js/mui.min.js
dist/js/mui.min.js
+1
-1
index.html
index.html
+4
-4
javascript/index.html
javascript/index.html
+11
-11
sitemap.xml
sitemap.xml
+5
-5
No files found.
dist/css/mui.css
View file @
7df18dac
...
...
@@ -2356,11 +2356,13 @@ select:focus {
.mui-pagination
>
li
:first-child
>
a
,
.mui-pagination
>
li
:first-child
>
span
{
margin-left
:
0
;
background-clip
:
padding-box
;
border-top-left-radius
:
6px
;
border-bottom-left-radius
:
6px
;
}
.mui-pagination
>
li
:last-child
>
a
,
.mui-pagination
>
li
:last-child
>
span
{
background-clip
:
padding-box
;
border-top-right-radius
:
6px
;
border-bottom-right-radius
:
6px
;
}
...
...
@@ -2419,6 +2421,7 @@ select:focus {
display
:
inline-block
;
padding
:
5px
14px
;
background-color
:
#fff
;
background-clip
:
padding-box
;
border
:
1px
solid
#ddd
;
border-radius
:
6px
;
}
...
...
@@ -2590,6 +2593,7 @@ select:focus {
width
:
74px
;
height
:
30px
;
background-color
:
#fff
;
background-clip
:
padding-box
;
border
:
2px
solid
#ddd
;
border-radius
:
20px
;
-webkit-transition-duration
:
.2s
;
...
...
@@ -2605,6 +2609,7 @@ select:focus {
width
:
28px
;
height
:
28px
;
background-color
:
#fff
;
background-clip
:
padding-box
;
border-radius
:
16px
;
-webkit-box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
.4
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
.4
);
...
...
@@ -2624,7 +2629,6 @@ select:focus {
}
.mui-switch.mui-active
{
background-color
:
#4cd964
;
background-clip
:
padding-box
;
border-color
:
#4cd964
;
}
.mui-switch.mui-active
.mui-switch-handle
{
...
...
dist/css/mui.min.css
View file @
7df18dac
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/js/mui.js
View file @
7df18dac
...
...
@@ -1912,7 +1912,7 @@ var mui = (function(document, undefined) {
$
.
param
=
function
(
obj
,
traditional
)
{
var
params
=
[];
params
.
add
=
function
(
k
,
v
)
{
this
.
push
(
e
scape
(
k
)
+
'
=
'
+
escape
(
v
));
this
.
push
(
e
ncodeURIComponent
(
k
)
+
'
=
'
+
encodeURIComponent
(
v
));
};
serialize
(
params
,
obj
,
traditional
);
return
params
.
join
(
'
&
'
).
replace
(
/%20/g
,
'
+
'
);
...
...
dist/js/mui.min.js
View file @
7df18dac
This diff is collapsed.
Click to expand it.
index.html
View file @
7df18dac
...
...
@@ -10,8 +10,8 @@
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
>
<link
rel=
"stylesheet"
href=
"http://dcloudio.github.io/mui/dist/css/mui.min.css?v=2014-11-1
1 17:53:15
+0800"
>
<link
rel=
"stylesheet"
href=
"http://dcloudio.github.io/mui/assets/css/docs.css?v=2014-11-1
1 17:53:15
+0800"
>
<link
rel=
"stylesheet"
href=
"http://dcloudio.github.io/mui/dist/css/mui.min.css?v=2014-11-1
4 00:06:22
+0800"
>
<link
rel=
"stylesheet"
href=
"http://dcloudio.github.io/mui/assets/css/docs.css?v=2014-11-1
4 00:06:22
+0800"
>
<link
rel=
"apple-touch-icon-precomposed"
sizes=
"114x114"
href=
"http://dcloudio.github.io/mui/assets/img/apple-touch-icon-114x114.png"
>
...
...
@@ -119,8 +119,8 @@
</ul>
</div>
<script
src=
"http://dcloudio.github.io/mui/dist/js/jquery-2.1.1.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/dist/js/mui.min.js?v=2014-11-1
1 17:53:15
+0800"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.min.js?v=2014-11-1
1 17:53:15
+0800"
></script>
<script
src=
"http://dcloudio.github.io/mui/dist/js/mui.min.js?v=2014-11-1
4 00:06:22
+0800"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.min.js?v=2014-11-1
4 00:06:22
+0800"
></script>
<script
type=
"text/javascript"
>
var
_bdhmProtocol
=
((
"
https:
"
==
document
.
location
.
protocol
)
?
"
https://
"
:
"
http://
"
);
document
.
write
(
unescape
(
"
%3Cscript src='
"
+
_bdhmProtocol
+
"
hm.baidu.com/h.js%3Ffff299fda9ff2d5ac97d9e621f738e52' type='text/javascript'%3E%3C/script%3E
"
));
...
...
javascript/index.html
View file @
7df18dac
...
...
@@ -10,8 +10,8 @@
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
>
<link
rel=
"stylesheet"
href=
"http://dcloudio.github.io/mui/dist/css/mui.min.css?v=2014-11-1
1 17:53:15
+0800"
>
<link
rel=
"stylesheet"
href=
"http://dcloudio.github.io/mui/assets/css/docs.css?v=2014-11-1
1 17:53:15
+0800"
>
<link
rel=
"stylesheet"
href=
"http://dcloudio.github.io/mui/dist/css/mui.min.css?v=2014-11-1
4 00:06:22
+0800"
>
<link
rel=
"stylesheet"
href=
"http://dcloudio.github.io/mui/assets/css/docs.css?v=2014-11-1
4 00:06:22
+0800"
>
<link
rel=
"apple-touch-icon-precomposed"
sizes=
"114x114"
href=
"http://dcloudio.github.io/mui/assets/img/apple-touch-icon-114x114.png"
>
...
...
@@ -305,7 +305,7 @@ mui的解决思路是:单webview只承载单个页面的dom,减少dom层级
<!-- 手势事件 -->
<article
id=
"gesture"
class=
"component mui-active"
>
<h3
class=
"component-title"
>
手势事件
</h3>
<p
class=
"component-description"
>
在开发移动端的应用时,
经常会用到手势事件,比如滑动;
mui内置了常用的手势事件,目前支持的手势事件见如下列表:
</p>
<p
class=
"component-description"
>
在开发移动端的应用时,
会用到很多的手势操作,比如滑动、长按等,为了方便开放者快速集成这些手势,
mui内置了常用的手势事件,目前支持的手势事件见如下列表:
</p>
<table
id=
"gestureList"
style=
"border-style: solid; border-width: 0pt;"
border=
"1"
cellspacing=
"0"
cellpadding=
"5px"
>
<tbody>
<tr>
...
...
@@ -378,15 +378,15 @@ mui的解决思路是:单webview只承载单个页面的dom,减少dom层级
}
</style>
<h3
class=
"component-title"
>
手势事件配置
</h3>
<p
class=
"component-description"
>
mui默认会监听并触发所有手势事件,但为了节省资源,支持用户根据当前页面实际情况
,通过mui.init方法中的gestureConfig参数,配置具体需要监听的手势事件,。
</p>
<p
class=
"component-description"
>
除了不常用的双击和长按事件,mui默认会监听其它所有手势事件;为了开发出更高性能的moble App,mui支持用户根据实际业务需求
,通过mui.init方法中的gestureConfig参数,配置具体需要监听的手势事件,。
</p>
<div
class=
"highlight"
><pre><code
class=
"language-js"
data-lang=
"js"
><span
class=
"nx"
>
mui
</span><span
class=
"p"
>
.
</span><span
class=
"nx"
>
init
</span><span
class=
"p"
>
({
</span>
<span
class=
"nx"
>
gestureConfig
</span><span
class=
"o"
>
:
</span><span
class=
"p"
>
{
</span>
<span
class=
"nx"
>
tap
</span><span
class=
"o"
>
:
</span>
<span
class=
"kc"
>
true
</span><span
class=
"p"
>
,
</span>
<span
class=
"nx"
>
doubletap
</span><span
class=
"o"
>
:
</span>
<span
class=
"kc"
>
true
</span><span
class=
"p"
>
,
</span>
<span
class=
"nx"
>
longtap
</span><span
class=
"o"
>
:
</span>
<span
class=
"kc"
>
true
</span><span
class=
"p"
>
,
</span>
<span
class=
"nx"
>
swipe
</span><span
class=
"o"
>
:
</span>
<span
class=
"kc"
>
true
</span><span
class=
"p"
>
,
</span>
<span
class=
"nx"
>
drag
</span><span
class=
"o"
>
:
</span>
<span
class=
"kc"
>
true
</span>
<span
class=
"nx"
>
tap
</span><span
class=
"o"
>
:
</span>
<span
class=
"kc"
>
true
</span><span
class=
"p"
>
,
</span>
<span
class=
"c1"
>
//默认为true
</span>
<span
class=
"nx"
>
doubletap
</span><span
class=
"o"
>
:
</span>
<span
class=
"kc"
>
true
</span><span
class=
"p"
>
,
</span>
<span
class=
"c1"
>
//默认为false
</span>
<span
class=
"nx"
>
longtap
</span><span
class=
"o"
>
:
</span>
<span
class=
"kc"
>
true
</span><span
class=
"p"
>
,
</span>
<span
class=
"c1"
>
//默认为false
</span>
<span
class=
"nx"
>
swipe
</span><span
class=
"o"
>
:
</span>
<span
class=
"kc"
>
true
</span><span
class=
"p"
>
,
</span>
<span
class=
"c1"
>
//默认为true
</span>
<span
class=
"nx"
>
drag
</span><span
class=
"o"
>
:
</span>
<span
class=
"kc"
>
true
</span>
<span
class=
"c1"
>
//默认为true
</span>
<span
class=
"p"
>
}
</span>
<span
class=
"p"
>
});
</span></code></pre></div>
<p
class=
"component-note touch-only"
><strong>
注意:
</strong>
dragstart、drag、dragend共用drag开关,swipeleft、swiperight、swipeup、swipedown共用swipe开关
</p>
...
...
@@ -741,8 +741,8 @@ mui的解决思路是:单webview只承载单个页面的dom,减少dom层级
</ul>
</div>
<script
src=
"http://dcloudio.github.io/mui/dist/js/jquery-2.1.1.js"
></script>
<script
src=
"http://dcloudio.github.io/mui/dist/js/mui.min.js?v=2014-11-1
1 17:53:15
+0800"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.min.js?v=2014-11-1
1 17:53:15
+0800"
></script>
<script
src=
"http://dcloudio.github.io/mui/dist/js/mui.min.js?v=2014-11-1
4 00:06:22
+0800"
></script>
<script
src=
"http://dcloudio.github.io/mui/assets/js/docs.min.js?v=2014-11-1
4 00:06:22
+0800"
></script>
<script
type=
"text/javascript"
>
var
_bdhmProtocol
=
((
"
https:
"
==
document
.
location
.
protocol
)
?
"
https://
"
:
"
http://
"
);
document
.
write
(
unescape
(
"
%3Cscript src='
"
+
_bdhmProtocol
+
"
hm.baidu.com/h.js%3Ffff299fda9ff2d5ac97d9e621f738e52' type='text/javascript'%3E%3C/script%3E
"
));
...
...
sitemap.xml
View file @
7df18dac
...
...
@@ -2,7 +2,7 @@
<urlset
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns=
"http://www.sitemaps.org/schemas/sitemap/0.9"
>
<url>
<loc>
http://dcloudio.github.io/mui/
</loc>
<lastmod>
2014-11-1
1T17:53:15
+08:00
</lastmod>
<lastmod>
2014-11-1
4T00:06:22
+08:00
</lastmod>
<changefreq>
daily
</changefreq>
<priority>
1.0
</priority>
</url>
...
...
@@ -10,7 +10,7 @@
<url>
<loc>
http://dcloudio.github.io/mui/about/
</loc>
<lastmod>
2014-11-1
1T17:53:15
+08:00
</lastmod>
<lastmod>
2014-11-1
4T00:06:22
+08:00
</lastmod>
<changefreq>
weekly
</changefreq>
<priority>
0.7
</priority>
</url>
...
...
@@ -19,7 +19,7 @@
<url>
<loc>
http://dcloudio.github.io/mui/components/
</loc>
<lastmod>
2014-11-1
1T17:53:15
+08:00
</lastmod>
<lastmod>
2014-11-1
4T00:06:22
+08:00
</lastmod>
<changefreq>
weekly
</changefreq>
<priority>
0.7
</priority>
</url>
...
...
@@ -28,7 +28,7 @@
<url>
<loc>
http://dcloudio.github.io/mui/getting-started/
</loc>
<lastmod>
2014-11-1
1T17:53:15
+08:00
</lastmod>
<lastmod>
2014-11-1
4T00:06:22
+08:00
</lastmod>
<changefreq>
weekly
</changefreq>
<priority>
0.7
</priority>
</url>
...
...
@@ -39,7 +39,7 @@
<url>
<loc>
http://dcloudio.github.io/mui/javascript/
</loc>
<lastmod>
2014-11-1
1T17:53:15
+08:00
</lastmod>
<lastmod>
2014-11-1
4T00:06:22
+08:00
</lastmod>
<changefreq>
weekly
</changefreq>
<priority>
0.7
</priority>
</url>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment