From 2f547731e547f57effe457ea8ef9306fbc77bb6d Mon Sep 17 00:00:00 2001 From: mxie <15623530290@163.com> Date: Thu, 30 Nov 2017 12:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=95=E5=85=A5=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .babelrc | 11 + .gitignore | 1 - .postcssrc.js | 8 + README.md | 2 +- datepicker/calendar-panel.vue | 267 +- datepicker/index.vue | 256 +- demo/App.vue | 2 +- dist/build.js | 1 + index.js | 7 + package-lock.json | 8135 +++++++++++++++++++++++++++++++++ package.json | 27 +- webpack.config.js | 5 +- 12 files changed, 8471 insertions(+), 251 deletions(-) create mode 100644 .babelrc create mode 100644 .postcssrc.js create mode 100644 dist/build.js create mode 100644 index.js create mode 100644 package-lock.json diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..4cb5108 --- /dev/null +++ b/.babelrc @@ -0,0 +1,11 @@ +{ + "presets": [ + [ + "env", + { + "modules": false + } + ], + "stage-3" + ] +} diff --git a/.gitignore b/.gitignore index 0d09221..219fb81 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,3 @@ node_modules/ npm-debug.log yarn-error.log -package-lock.json diff --git a/.postcssrc.js b/.postcssrc.js new file mode 100644 index 0000000..ea9a5ab --- /dev/null +++ b/.postcssrc.js @@ -0,0 +1,8 @@ +// https://github.com/michael-ciniawsky/postcss-load-config + +module.exports = { + "plugins": { + // to edit target browsers: use "browserlist" field in package.json + "autoprefixer": {} + } +} diff --git a/README.md b/README.md index 0d3fdc8..3629895 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ export default { | shortcuts | Boolean/Array | true | the shortcuts for the range picker | | first-day-of-week | Number | 7 | set the first day of week (1-7) | | minute-step | Number | 0 | if > 0 don't show the second picker(0 - 60) | -| input-class | String | 'input' | the input class name | +| input-class | String | 'mx-input' | the input class name | | confirm-text | String | 'OK' | the default text to display on confirm button | diff --git a/datepicker/calendar-panel.vue b/datepicker/calendar-panel.vue index c192513..cfadfd1 100644 --- a/datepicker/calendar-panel.vue +++ b/datepicker/calendar-panel.vue @@ -1,18 +1,18 @@