mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-06 09:12:26 +03:00
add LICENSE
This commit is contained in:
@@ -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.
|
||||
@@ -46,7 +46,7 @@ export default {
|
||||
</div>
|
||||
</template>
|
||||
```
|
||||
## 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
|
||||
|
||||
+10
-4
@@ -46,7 +46,7 @@ export default {
|
||||
</div>
|
||||
</template>
|
||||
```
|
||||
## 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
|
||||
|
||||
Reference in New Issue
Block a user