From 52372946ab3fd0f945032ce88324b353d3e338aa 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: Tue, 25 Oct 2022 21:28:44 +0800
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20=E6=9B=B4=E6=96=B0?=
=?UTF-8?q?=E6=97=A5=E5=BF=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../datePicker/components/DateRange.vue | 18 +++++++++++-------
.../src/component/datePicker/index.vue | 12 ++++++------
.../src/component/transfer/index.less | 2 --
.../src/document/zh-CN/guide/changelog.md | 13 ++++++++++++-
4 files changed, 29 insertions(+), 16 deletions(-)
diff --git a/package/component/src/component/datePicker/components/DateRange.vue b/package/component/src/component/datePicker/components/DateRange.vue
index 85ba24b6..8027c5aa 100644
--- a/package/component/src/component/datePicker/components/DateRange.vue
+++ b/package/component/src/component/datePicker/components/DateRange.vue
@@ -30,8 +30,8 @@
- {{ MONTH_NAME[startTime.month] }}
+ {{ MONTH_NAME[startTime.month] }}
- {{ MONTH_NAME[startTime.month + 1 > 11
- ? startTime.month + 1 - 12
- : startTime.month + 1] }}
+
+ {{
+ MONTH_NAME[
+ startTime.month + 1 > 11
+ ? startTime.month + 1 - 12
+ : startTime.month + 1
+ ]
+ }}
+
(), {
});
const startPlaceholder = computed(() => {
- if(Array.isArray(props.placeholder)) {
+ if (Array.isArray(props.placeholder)) {
return props.placeholder[0];
- }
- return props.placeholder;
+ }
+ return props.placeholder;
});
const endPlaceholder = computed(() => {
- if(Array.isArray(props.placeholder)) {
+ if (Array.isArray(props.placeholder)) {
return props.placeholder[1];
- }
- return props.placeholder;
+ }
+ return props.placeholder;
});
const dropdownRef = ref(null);
diff --git a/package/component/src/component/transfer/index.less b/package/component/src/component/transfer/index.less
index 6d77c6ba..22e55eb7 100644
--- a/package/component/src/component/transfer/index.less
+++ b/package/component/src/component/transfer/index.less
@@ -24,8 +24,6 @@
.layui-transfer-box {
position: relative;
border-width: 1px;
- width: 200px;
- height: 360px;
display: flex;
flex-direction: column;
border-radius: var(--transfer-box-border-radius);
diff --git a/package/document-component/src/document/zh-CN/guide/changelog.md b/package/document-component/src/document/zh-CN/guide/changelog.md
index 5b029f38..53a63e83 100644
--- a/package/document-component/src/document/zh-CN/guide/changelog.md
+++ b/package/document-component/src/document/zh-CN/guide/changelog.md
@@ -11,7 +11,18 @@
-
+
+
+ -
+
1.7.1 2022-10-25
+
+ - [新增] date-picker 组件 placeholder 属性 array 类型兼容。
+ - [修复] date-picker 组件 range 属性为 true 时的 国际化 翻译失效。
+ - [修复] date-picker 组件 range 属性为 true 时的 lay-dropdown 无法解析警告。
+
+
+
+