肖强的博客 肖强的博客
Home
Guide
Web Document
  • Plugins
  • Case
  • Animation
Components
  • Categories
  • Tags
  • Archives
Website Tools

xiaoQiang

因为爱所以爱
Home
Guide
Web Document
  • Plugins
  • Case
  • Animation
Components
  • Categories
  • Tags
  • Archives
Website Tools
  • 快速上手
    • 安装
    • datePicker
      • 日期选择组件
      • Props
    • serialAnimation
    • icon
    • loading
    • scrollbar
    • drag
  • views
xiaoQiang
2021-08-04

datePicker

# 日期选择组件

<< < 2021年12月 > >>
日
一
二
三
四
五
六
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
昨天今天明天
getDate
<template>
  <div class="datePicker">
    <xiao-date-picker v-model="date" format="YYYY/MM/DD" />
    <div class="datePicker__button" @click="handler">getDate</div>
  </div>
</template>

<script>
export default {
  name: 'Index',
  data() {
    return {
      date: '',
    }
  },

  methods: {
    handler() {
      console.log(this.date)
    },
  },
}
</script>

# Props

参数 说明 类型 默认值 可选值
v-model - string -
placeholderText 输入框的placeholder string 请选择日期
format 格式 string YYYY-MM-DD
示例:2021-07-05
#components
安装
serialAnimation

← 安装 serialAnimation→

最近更新
01
drag
12-22
02
入场/出场05
10-16
03
入场/出场04
10-16
更多文章>
icon组件不能用
时间左侧 © 2021-2021 时间右侧
冀公网安备 13108202000744号
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式
欢迎来到我的家
Back