From 26c09a885c1d12e80f85509c8e4e818031cfa801 Mon Sep 17 00:00:00 2001 From: mxie <15623530290@163.com> Date: Wed, 10 Jan 2018 16:34:05 +0800 Subject: [PATCH] add LICENSE --- LICENSE | 21 +++++++++++++++++++++ README.md | 14 ++++++++++---- README_CN.md | 14 ++++++++++---- 3 files changed, 41 insertions(+), 8 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..54814dc --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017-present xiemengxiong + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 92436ef..28a38db 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ export default { ``` -## Attributes +### Attributes | Prop | Type | Default | Description | |---------------------|---------------|-------------|---------------------------------------------------| @@ -67,7 +67,7 @@ export default { | input-class | String | 'mx-input' | the input class name | | confirm-text | String | 'OK' | the default text to display on confirm button | -## shortcuts +#### shortcuts * true - show the default shortcuts * false - hide the shortcuts * Object[] - custom shortcuts, [{text, start, end}] @@ -78,7 +78,7 @@ export default { | start | Date | Start Date | | end | Date | End Date | -## time-picker-options +#### time-picker-options * Object[] - custom time-picker, [{start, step, end}] | Prop | Type | Description | @@ -88,7 +88,13 @@ export default { | end | String | endTime (eg '23:30') | -## Events +### Events | Name | Description | Callback Arguments | |-----------------|------------------------------|------------------------| | confirm | When you click 'OK' button | the currentValue | + +## License + +[MIT](https://github.com/mengxiong10/vue2-datepicker/blob/master/LICENSE) + +Copyright (c) 2017-present xiemengxiong diff --git a/README_CN.md b/README_CN.md index ee891be..b3f84fd 100644 --- a/README_CN.md +++ b/README_CN.md @@ -46,7 +46,7 @@ export default { ``` -## Props +### Props | 名称 | 类型 | 默认 | 说明 |---------------------|---------------|-------------|------------------------------------------- @@ -67,7 +67,7 @@ export default { | input-class | String | 'mx-input' | 自定义输入框的类名 | confirm-text | String | 'OK' | 确认按钮的名称 -## shortcuts +#### shortcuts * true - 显示默认快捷选择 * false - 隐藏快捷选择 * Object[] - 自定义快捷选择, 格式:[{text, start, end}] @@ -78,7 +78,7 @@ export default { | start | Date | 开始日期 | | end | Date | 结束日期 | -## time-picker-options +#### time-picker-options * Object[] - 自定义时间选择, 格式:[{start, step, end}] | 名称 | 类型 | 说明 | @@ -88,7 +88,13 @@ export default { | end | String | 结束时间 (eg '23:30') | -## Events +### Events | Name | 说明 | 回调参数 | |-----------------|------------------------------|-------------| | confirm | 点击确认按钮触发的事件 | 选择的日期 | + +## 许可证 + +[MIT](https://github.com/mengxiong10/vue2-datepicker/blob/master/LICENSE) + +Copyright (c) 2017-present xiemengxiong