1.1.8 • Published 2 years ago

roche-vue2-datepicker v1.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

roche-vue2-datepicker

A Datepicker Component For Vue2

Install

$ npm install roche-vue2-datepicker --save

组件使用文档

属性

nametype默认值可选值说明
v-model/valueString/Array/Date--选中值
widthString/Number350-日期选择面板大小
placementStringtop/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-endbottom出现位置
disabledbooleanfalsetrue/false是否禁用
placeholderstring请选择输入框说明
inputTypestringdefaultdefault/simple/inputinput框类型
inputClassstring----input框class
modulesarray'preset','date','week','month','range'--选择要使用的模块
formatstringMM月DD日--展示的日期格式
yearFormatstringYYYY年MM月DD日--展示的日期格式(包括年)
valueFormatstring--日期值格式
disabledDatefunction----禁用日期
presetListarray----预设列表
themestringdefaultdefault/dark主题

事件

name说明回调参数
change选中值发生变化的回调value

插槽

name说明

方法

name说明回调参数

使用

<template>
    <r-date-picker v-model="now" @change='onChange'></r-date-picker>
<template>

<script>
    import { RDatePicker } from "roche-vue2-datepicker";
    // 汉化
    import "roche-vue2-datepicker/dist/locale/zh-cn";
    import "roche-vue2-datepicker/dist/index.css";
    export default {
        data(){
            return {
                now:''
            }
        },
        components:{
            RDatePicker
        },
        methods:{
            onChange(val){
                console.log('日期发生变化:',val)
            }
        }
    }
</script>
1.1.1

2 years ago

1.1.0

2 years ago

1.1.8

2 years ago

1.0.9

2 years ago

1.1.7

2 years ago

1.0.8

2 years ago

1.1.6

2 years ago

1.0.7

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago