mirror of https://github.com/layui/layui
微调 `upload` 代码书写规范
parent
da146066d0
commit
cde6a44836
|
@ -53,7 +53,6 @@ layui.define(['lay','layer'], function(exports){
|
||||||
var ELEM_CHOOSE = 'layui-upload-choose';
|
var ELEM_CHOOSE = 'layui-upload-choose';
|
||||||
var ELEM_DRAG = 'layui-upload-drag';
|
var ELEM_DRAG = 'layui-upload-drag';
|
||||||
|
|
||||||
|
|
||||||
// 构造器
|
// 构造器
|
||||||
var Class = function(options){
|
var Class = function(options){
|
||||||
var that = this;
|
var that = this;
|
||||||
|
@ -152,8 +151,8 @@ layui.define(['lay','layer'], function(exports){
|
||||||
//异常提示
|
//异常提示
|
||||||
Class.prototype.msg = function(content){
|
Class.prototype.msg = function(content){
|
||||||
return layer.msg(content, {
|
return layer.msg(content, {
|
||||||
icon: 2
|
icon: 2,
|
||||||
,shift: 6
|
shift: 6
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue