Commit 2b1387f2 authored by hbcui1984's avatar hbcui1984

编译至mui v1.7.0

parent bfb1f589
/*!
* =====================================================
* Mui v1.6.0 (https://github.com/dcloudio/mui)
* Mui v1.7.0 (https://github.com/dcloudio/mui)
* =====================================================
*/
......
This diff is collapsed.
/*!
* =====================================================
* Mui v1.6.0 (https://github.com/dcloudio/mui)
* Mui v1.7.0 (https://github.com/dcloudio/mui)
* =====================================================
*/
/**
......@@ -879,7 +879,7 @@ var mui = (function(document, undefined) {
var tagName = target.tagName;
if (event === 'tap' && (tagName !== 'INPUT' && tagName !== 'TEXTAREA' && tagName !== 'SELECT')) {
e.preventDefault();
e.detail && e.detail.gesture && e.detail.gesture.preventDefault()
e.detail && e.detail.gesture && e.detail.gesture.preventDefault();
}
$.each(handler.handlers, function(index, handler) {
$.each(handler, function(index, callback) {
......@@ -918,6 +918,16 @@ var mui = (function(document, undefined) {
if (isAddEventListener) {
delegateFns[mid(element)] = delegateFn(element, event, selector, callback);
element.addEventListener(event, delegateFns[mid(element)]);
if (event === 'tap') { //TODO 需要找个更好的解决方案
element.addEventListener('click', function(e) {
if (e.target) {
var tagName = e.target.tagName;
if (tagName !== 'INPUT' && tagName !== 'TEXTAREA' && tagName !== 'SELECT') {
e.preventDefault();
}
}
});
}
}
});
};
......@@ -5914,7 +5924,7 @@ var mui = (function(document, undefined) {
var isExpand = false;
var classList = cell.classList;
var ul = cell.parentNode;
if (ul.classList.contains(CLASS_RADIO_VIEW)) {
if (ul && ul.classList.contains(CLASS_RADIO_VIEW)) {
if (classList.contains(CLASS_SELECTED)) {
return;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
/*!
* =====================================================
* Mui v1.6.0 (https://github.com/dcloudio/mui)
* Mui v1.7.0 (https://github.com/dcloudio/mui)
* =====================================================
*/
......
This diff is collapsed.
......@@ -51,7 +51,7 @@
</p>
<p>更多详细介绍,请到<a href="http://dcloudio.github.io/mui">mui官网</a>查看;</p>
<h4>版本介绍</h4>
<p>当前版本为1.6.0,可到<a href="https://github.com/dcloudio/mui">Github</a>上获取最新版本。</p>
<p>当前版本为1.7.0,可到<a href="https://github.com/dcloudio/mui">Github</a>上获取最新版本。</p>
<h4>License</h4>
<p>
mui遵循MIT License,源码已提交至Github,<a href="https://github.com/dcloudio/mui">点击查看</a>;
......
/*!
* =====================================================
* Mui v1.6.0 (https://github.com/dcloudio/mui)
* Mui v1.7.0 (https://github.com/dcloudio/mui)
* =====================================================
*/
/**
......@@ -879,7 +879,7 @@ var mui = (function(document, undefined) {
var tagName = target.tagName;
if (event === 'tap' && (tagName !== 'INPUT' && tagName !== 'TEXTAREA' && tagName !== 'SELECT')) {
e.preventDefault();
e.detail && e.detail.gesture && e.detail.gesture.preventDefault()
e.detail && e.detail.gesture && e.detail.gesture.preventDefault();
}
$.each(handler.handlers, function(index, handler) {
$.each(handler, function(index, callback) {
......@@ -918,6 +918,16 @@ var mui = (function(document, undefined) {
if (isAddEventListener) {
delegateFns[mid(element)] = delegateFn(element, event, selector, callback);
element.addEventListener(event, delegateFns[mid(element)]);
if (event === 'tap') { //TODO 需要找个更好的解决方案
element.addEventListener('click', function(e) {
if (e.target) {
var tagName = e.target.tagName;
if (tagName !== 'INPUT' && tagName !== 'TEXTAREA' && tagName !== 'SELECT') {
e.preventDefault();
}
}
});
}
}
});
};
......@@ -5914,7 +5924,7 @@ var mui = (function(document, undefined) {
var isExpand = false;
var classList = cell.classList;
var ul = cell.parentNode;
if (ul.classList.contains(CLASS_RADIO_VIEW)) {
if (ul && ul.classList.contains(CLASS_RADIO_VIEW)) {
if (classList.contains(CLASS_SELECTED)) {
return;
}
......
......@@ -266,7 +266,7 @@
$.ready(function() {
setTimeout(function() {
$('.' + lockerClassName).locker();
}, 200);
}, 350);
});
}(mui, document));
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -82,7 +82,7 @@
var tagName = target.tagName;
if (event === 'tap' && (tagName !== 'INPUT' && tagName !== 'TEXTAREA' && tagName !== 'SELECT')) {
e.preventDefault();
e.detail && e.detail.gesture && e.detail.gesture.preventDefault()
e.detail && e.detail.gesture && e.detail.gesture.preventDefault();
}
$.each(handler.handlers, function(index, handler) {
$.each(handler, function(index, callback) {
......@@ -121,6 +121,16 @@
if (isAddEventListener) {
delegateFns[mid(element)] = delegateFn(element, event, selector, callback);
element.addEventListener(event, delegateFns[mid(element)]);
if (event === 'tap') { //TODO 需要找个更好的解决方案
element.addEventListener('click', function(e) {
if (e.target) {
var tagName = e.target.tagName;
if (tagName !== 'INPUT' && tagName !== 'TEXTAREA' && tagName !== 'SELECT') {
e.preventDefault();
}
}
});
}
}
});
};
......
{
"name": "mui",
"description": "Build mobile apps with simple HTML, CSS, and JS components.",
"version": "1.6.0",
"version": "1.7.0",
"keywords": [
"css",
"fonts",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment