forked from nmxiaowei/avue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,849 additions
and
1,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ | |
trigger: 'blur' | ||
} | ||
], | ||
detail: true, | ||
label: "日期范围", | ||
prop: "daterange", | ||
type: "daterange", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
const gulp = require('gulp'); | ||
var sass = require('gulp-sass'); | ||
var autoprefixer = require('gulp-autoprefixer'); | ||
var cssmin = require('gulp-cssmin'); | ||
const webpack = require('webpack'); | ||
const webpackConf = require('./build/build.js'); | ||
const gulp = require("gulp"); | ||
var sass = require("gulp-sass"); | ||
var autoprefixer = require("gulp-autoprefixer"); | ||
var cssmin = require("gulp-cssmin"); | ||
const webpack = require("webpack"); | ||
const webpackConf = require("./build/build.js"); | ||
|
||
// 构建webpack配置 | ||
gulp.task('webpack', function () { | ||
webpack(webpackConf, function (err, stats) { | ||
gulp.task("webpack", async function() { | ||
await webpack(webpackConf, function(err, stats) { | ||
if (err) { | ||
console.log(err); | ||
} | ||
}); | ||
}); | ||
|
||
// 处理样式的配置 | ||
gulp.task('compile', function () { | ||
gulp.task("compile", function() { | ||
return gulp | ||
.src('./styles/index.scss') | ||
.src("./styles/index.scss") | ||
.pipe(sass.sync()) | ||
.pipe( | ||
autoprefixer({ | ||
browsers: ['ie > 9', 'last 2 versions'], | ||
browsers: ["ie > 9", "last 2 versions"], | ||
cascade: false | ||
}) | ||
) | ||
.pipe(cssmin()) | ||
.pipe(gulp.dest('./lib/')); | ||
.pipe(gulp.dest("./lib/")); | ||
}); | ||
|
||
// 打包文件 | ||
gulp.task('build', ['webpack', 'compile']); | ||
gulp.task("build", gulp.series(["webpack", "compile"])); | ||
|
||
// 监听文件变化 | ||
gulp.task('watch', ['webpack', 'compile'], function () { | ||
gulp.watch(['./src/**', './packages/**'], ['webpack']); | ||
gulp.watch(['./styles/**'], ['compile']); | ||
gulp.task("watch", async function() { | ||
gulp.watch(["./src/**", "./packages/**"], gulp.series(["webpack"])); | ||
gulp.watch(["./styles/**"], gulp.series(["compile"])); | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.