Vuetify.js的DatetimePicker组件

vuetify-datetime-picker (vuetify-datetime-picker)

DatetimePicker component for Vuetify.js.

Vuetify.js的DatetimePicker组件。

安装 (Installation)

npm install --save vuetify-datetime-picker

or

yarn add vuetify-datetime-picker
import Vue from 'vue'
import DatetimePicker from 'vuetify-datetime-picker'
import 'vuetify-datetime-picker/src/stylus/main.styl'

Vue.use(DatetimePicker)

用法 (Usage)

Once installed, it can be used in a template as simply as:

安装后,可以在模板中简单地使用它,如下所示:

<v-datetime-picker
        label="Select Datetime"
        v-model="datetime">
</v-datetime-picker>

物产 (Properties)

NameTypeDefault ValueDescription
datetime (model)Date/StringTime picker model.
labelstringSets input label.
widthNumber320The width of the content.
formatstringYYYY-MM-DD HH:mm:ssDefines the format of a datetime displayed in field.
timePickerFormatstring24hrDefines the format of a time displayed in picker. Available options are ampm and 24hr.
localestringen-usSets the locale. Accepts a string with a BCP 47 language tag.
clearTextstringCLEARSets the handler when the clear button clicked.
okTextstringOKSets the color of the ok button to danger.
名称 类型 默认值 描述
日期时间(模型) 日期/字串 时间选择器模型。
标签 设置输入标签。
宽度 320 内容的宽度。
格式 YYYY-MM-DD HH:mm:ss 定义字段中显示的日期时间的格式。
timePickerFormat 24小时 定义在选择器中显示的时间格式。 可用选项为ampm和24hr。
地区 我们 设置语言环境。 接受带有BCP 47语言标记的字符串。
clearText 明确 单击清除按钮时设置处理程序。
okText 将确定按钮的颜色设置为危险。

大事记 (Events)

NameArgumentsDescription
inputvalue (Date/String)The updated bound model
名称 争论 描述
输入 值(日期/字符串) 更新的绑定模型

翻译自: https://vuejsexamples.com/datetimepicker-component-for-vuetify-js/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值