mirror of https://github.com/layui/layer
3.0
parent
943169f38a
commit
af2d8952cf
|
@ -22,6 +22,7 @@
|
|||
* 将prompt层改成页面层结构,即当你弹出prompt层时,再弹出msg,不会将prompt销毁。
|
||||
* prompt层的textarea模式支持area参数来设定宽高
|
||||
* layer.css大面积改善
|
||||
* 降解IE6的fixed支持,不过仍然对ie6兼容(话说现在全浏览器兼容的组件已经不多了,layer后续会整理出不兼容ie6/7的版本)
|
||||
|
||||
* 修复iframe层在用于iPhone设备时,无法触发滚动的Bug
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "layer",
|
||||
"main": "src/layer.js",
|
||||
"version": "2.4.0",
|
||||
"version": "3.0.0",
|
||||
"homepage": "https://github.com/sentsin/layer",
|
||||
"authors": [
|
||||
"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
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "layer",
|
||||
"version": "2.4.0",
|
||||
"version": "3.0.0",
|
||||
"mobile": "2.0.0",
|
||||
"description": "Web弹层组件",
|
||||
"main": "src/layer.js",
|
||||
|
|
13
src/layer.js
13
src/layer.js
|
@ -257,6 +257,10 @@ Class.pt.creat = function(){
|
|||
config.anim = config.shift;
|
||||
}
|
||||
|
||||
if(layer.ie == 6){
|
||||
config.fixed = false;
|
||||
}
|
||||
|
||||
switch(config.type){
|
||||
case 0:
|
||||
config.btn = ('btn' in config) ? config.btn : ready.btn[0];
|
||||
|
@ -655,15 +659,6 @@ ready.reselect = function(){
|
|||
};
|
||||
|
||||
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').each(function(index , value){
|
||||
var sthis = $(this);
|
||||
|
|
Loading…
Reference in New Issue