From 23810899ae05f2bb94a9328285aaf71c67d9946b Mon Sep 17 00:00:00 2001 From: mxie <15623530290@163.com> Date: Tue, 8 Jan 2019 10:21:59 +0800 Subject: [PATCH] feat: add prop inputAttr --- README.md | 1 + src/index.vue | 6 ++++-- test/index.spec.js | 15 ++++++++++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e0d6535..e0345bd 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ export default { | first-day-of-week | Number | 7 | set the first day of week (1-7) | | input-class | String | 'mx-input' | the input class name | | input-name | String | 'date' | the input name attr | +| input-attr | Object | | the input attr(eg: { required: true, id: 'input'}) | | confirm-text | String | 'OK' | the default text to display on confirm button | | range-separator | String | '~' | the range separator text | | date-format | String | '' | format the time header and tooltip | diff --git a/src/index.vue b/src/index.vue index a035c0b..de0b95f 100644 --- a/src/index.vue +++ b/src/index.vue @@ -12,11 +12,12 @@