vue.js城市选择框组件_仅适用于月份和年份选择器的Vue.js组件

vue.js城市选择框组件

每月选票 (vue-monthly-picker)

Vue Monthly Picker Components.

Vue每月选择器组件。

安装 (Install)

npm install vue-monthly-picker --save
import VueMonthlyPicker from 'vue-monthly-picker'
Vue.component('my-component', {
    components: {
        VueMonthlyPicker
    }
});

用法 (Usage)

<vue-monthly-picker
 v-model="selectedMonth">
</vue-monthly-picker>

可用道具 (Available props)

PropTypeDefaultDescription
disabledBooleanfalseEnable/disable component
monthLabelsArray['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']Customize month labels
placeHolderString''Place holder when value is null
minmomentnullMinimum time to select
maxmomentnullMaximum time to select
dateFormatStringYYYY/MMDisplay format.
Struts 类型 默认 描述
残障人士 布尔型 false 启用/禁用组件
monthLabels 数组 ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] 自定义月份标签
placeHolder '' 值为空时的占位符
时刻 null 最短选择时间
最高 时刻 null 选择的最长时间
日期格式 YYYY/MM 显示格式。

大事记 (Events)

EventParamsDescription
selectedselected month in momentA month has been selected
事件 参数 描述
已选 在选定月份moment 已选择一个月

构建设置 (Build Setup)

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

翻译自: https://vuejsexamples.com/vuejs-monthly-picker-component/

vue.js城市选择框组件

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值