vue.js遍历单个对象_Vue.js的单个日期选择器

vue.js遍历单个对象

唯一日期选择器 (vue-single-date-picker)

A single date picker with Vue.js.

Vue.js的单个日期选择器。

安装 (Installation)

Plugin is currently only available via Github packages

当前只能通过Github软件包使用插件

Refer to guide here on how to authenticate to install github packages

请参阅此处的指南以了解如何进行身份验证以安装github软件包

Add the following line to your package.json,

package.json下行添加到package.json

dependencies {
  "@jiayingy/vue-single-date-picker": "0.4.3"
}

Run npm install

运行npm install

如何使用 (How to use)

零件 (Component)

Import package

进口包装

import SingleDatePicker from '@jiayingy/vue-single-date-picker';

export default {
  components: {
    SingleDatePicker
  }
}

Create component in your template

在模板中创建组件

<SingleDatePicker />

款式 (Styles)

  1. This library uses Google Material Icon pack. Refer to here on how to include it in your project.

    该库使用Google Material Icon包。 有关如何将其包含在项目中的信息,请参见此处

  2. In your css/scss file,

    在您的css / scss文件中,

@import '[email protected]/vue-single-date-picker/dist/vue-single-date-picker.css';

大事记 (Events)

eventsargumentsremarks
@selectDate{ year: <Number>, month: <Number>, date: <Number> }E.g. 1 Jan 2020
{year: 2020, month: 0, date: 1}
大事记 论点 备注
@selectDate { year: <Number>, month: <Number>, date: <Number> } 例如2020年1月1日
{年:2020,月:0,日期:1}

翻译自: https://vuejsexamples.com/a-single-date-picker-with-vue-js/

vue.js遍历单个对象

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值