pull/36/head
sentsin 2016-11-07 11:00:03 +08:00
parent 943169f38a
commit af2d8952cf
6 changed files with 10 additions and 14 deletions

View File

@ -22,6 +22,7 @@
* 将prompt层改成页面层结构即当你弹出prompt层时再弹出msg不会将prompt销毁。 * 将prompt层改成页面层结构即当你弹出prompt层时再弹出msg不会将prompt销毁。
* prompt层的textarea模式支持area参数来设定宽高 * prompt层的textarea模式支持area参数来设定宽高
* layer.css大面积改善 * layer.css大面积改善
* 降解IE6的fixed支持不过仍然对ie6兼容话说现在全浏览器兼容的组件已经不多了layer后续会整理出不兼容ie6/7的版本
* 修复iframe层在用于iPhone设备时无法触发滚动的Bug * 修复iframe层在用于iPhone设备时无法触发滚动的Bug

View File

@ -1,7 +1,7 @@
{ {
"name": "layer", "name": "layer",
"main": "src/layer.js", "main": "src/layer.js",
"version": "2.4.0", "version": "3.0.0",
"homepage": "https://github.com/sentsin/layer", "homepage": "https://github.com/sentsin/layer",
"authors": [ "authors": [
"sentsin <xu@sentsin.com>" "sentsin <xu@sentsin.com>"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "layer", "name": "layer",
"version": "2.4.0", "version": "3.0.0",
"mobile": "2.0.0", "mobile": "2.0.0",
"description": "Web弹层组件", "description": "Web弹层组件",
"main": "src/layer.js", "main": "src/layer.js",

View File

@ -257,6 +257,10 @@ Class.pt.creat = function(){
config.anim = config.shift; config.anim = config.shift;
} }
if(layer.ie == 6){
config.fixed = false;
}
switch(config.type){ switch(config.type){
case 0: case 0:
config.btn = ('btn' in config) ? config.btn : ready.btn[0]; config.btn = ('btn' in config) ? config.btn : ready.btn[0];
@ -655,15 +659,6 @@ ready.reselect = function(){
}; };
Class.pt.IE6 = function(layero){ Class.pt.IE6 = function(layero){
var that = this, _ieTop = layero.offset().top;
//ie6的固定与相对定位
function ie6Fix(){
layero.css({top : _ieTop + (that.config.fixed ? win.scrollTop() : 0)});
};
ie6Fix();
win.scroll(ie6Fix);
//隐藏select //隐藏select
$('select').each(function(index , value){ $('select').each(function(index , value){
var sthis = $(this); var sthis = $(this);