Skip to content

Commit 898ec1d

Browse files
author
sentsin
committed
5.0.7
1 parent 2c8c9e3 commit 898ec1d

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

dist/laydate.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/theme/default/laydate.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ var task = {
2121
.pipe(minify({
2222
compatibility: 'ie7'
2323
}))
24-
.pipe(header('/*! <%= pkg.alias %>-v<%= pkg.version %> <%= pkg.description %> <%= pkg.license %> License <%= pkg.homepage %> By <%= pkg.author %> */\n', {pkg: pkg}))
24+
.pipe(header('/*! <%= pkg.realname %>-v<%= pkg.version %> <%= pkg.description %> <%= pkg.license %> License <%= pkg.homepage %> By <%= pkg.author %> */\n', {pkg: pkg}))
2525
.pipe(gulp.dest('./dist'));
2626

2727
return gulp.src('./src/laydate.js').pipe(uglify())
28-
.pipe(header('/*! <%= pkg.alias %>-v<%= pkg.version %> <%= pkg.description %> <%= pkg.license %> License <%= pkg.homepage %> By <%= pkg.author %> */\n ;', {pkg: pkg}))
28+
.pipe(header('/*! <%= pkg.realname %>-v<%= pkg.version %> <%= pkg.description %> <%= pkg.license %> License <%= pkg.homepage %> By <%= pkg.author %> */\n ;', {pkg: pkg}))
2929
.pipe(gulp.dest('./dist'));
3030

3131
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "layui-laydate",
3-
"version": "5.0.6",
4-
"alias": "laydate",
3+
"realname": "laydate",
4+
"version": "5.0.7",
55
"description": "日期与时间组件",
66
"main": "src/laydate.js",
77
"license": "MIT",

src/laydate.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
3-
@Name : layDate 5.0.6 日期时间控件
3+
@Name : layDate 5.0.7 日期时间控件
44
@Author: 贤心
55
@Site:http://www.layui.com/laydate/
66
@License:MIT
@@ -55,7 +55,7 @@
5555
}
5656

5757
,laydate = {
58-
v: '5.0.6'
58+
v: '5.0.7'
5959
,config: {} //全局配置项
6060
,index: (window.laydate && window.laydate.v) ? 100000 : 0
6161
,path: ready.getPath
@@ -71,7 +71,6 @@
7171
,ready: function(fn){
7272
var cssname = 'laydate', ver = ''
7373
,path = (isLayui ? 'modules/laydate/' : 'theme/') + 'default/laydate.css?v='+ laydate.v + ver;
74-
if(typeof define === 'function' && define.amd) return fn();
7574
isLayui ? layui.addcss(path, fn, cssname) : ready.link(path, fn, cssname);
7675
return this;
7776
}

0 commit comments

Comments
 (0)