1.1.8 • Published 9 months ago

roche-vue2-datepicker v1.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months 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

12 months ago

1.1.0

12 months ago

1.1.8

9 months ago

1.0.9

12 months ago

1.1.7

9 months ago

1.0.8

12 months ago

1.1.6

9 months ago

1.0.7

12 months ago

1.1.5

10 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago