From 71d5a0ec8665956c6ecb9ef11b162aedad5b2a86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com>
Date: Sun, 27 Mar 2022 13:27:22 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20date-picker=20?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6=20name=20=E5=B1=9E=E6=80=A7,=20type=20?=
=?UTF-8?q?=E5=B1=9E=E6=80=A7=20date=20=E4=B8=8E=20datetime=20=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
example/docs/zh-CN/guide/changelog.md | 4 ++
package.json | 5 +-
src/component/datePicker/index.vue | 68 +++++++++++++++------------
3 files changed, 44 insertions(+), 33 deletions(-)
diff --git a/example/docs/zh-CN/guide/changelog.md b/example/docs/zh-CN/guide/changelog.md
index 87d12988..f329f237 100644
--- a/example/docs/zh-CN/guide/changelog.md
+++ b/example/docs/zh-CN/guide/changelog.md
@@ -16,9 +16,13 @@
0.4.3 2022-03-27
+ - [新增] date-picker 组件 name 属性, 等同原生 name 属性。
+ - [新增] date-picker 组件 type 属性 date 值, 支持日期选择。
+ - [新增] date-picker 组件 type 属性 datetime 值, 支持日期时间选择。
- [修复] menu 组件 level 属性的语义与实际功能相悖。
- [修复] input 组件 height 高度固定 38 px。
- [修复] step 组件 line 样式。
+ - [依赖] monent 日期 js 框架。
diff --git a/package.json b/package.json
index f95c3e15..1280cb79 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
- "version": "0.4.2",
+ "version": "0.4.3-alpha.1",
"author": "就眠儀式",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue",
@@ -41,10 +41,11 @@
"@vueuse/core": "^7.6.2",
"async-validator": "^4.0.7",
"evtd": "^0.2.3",
+ "moment": "^2.29.1",
+ "uuid": "^8.3.2",
"vue": "^3.2.31",
"vue-i18n": "^9.2.0-beta.33",
"vue-router": "^4.0.12",
- "uuid": "^8.3.2",
"xlsx": "^0.18.4"
},
"devDependencies": {
diff --git a/src/component/datePicker/index.vue b/src/component/datePicker/index.vue
index fd4944bd..7d0658cf 100644
--- a/src/component/datePicker/index.vue
+++ b/src/component/datePicker/index.vue
@@ -1,10 +1,14 @@