(component): 更新日志

This commit is contained in:
就眠儀式 2022-10-25 21:28:44 +08:00
parent 74200d7e92
commit 52372946ab
4 changed files with 29 additions and 16 deletions

View File

@ -30,8 +30,8 @@
</template> </template>
</lay-dropdown> </lay-dropdown>
<lay-dropdown ref="dropdownMonthPanelRefLeft"> <lay-dropdown ref="dropdownMonthPanelRefLeft">
<span class="laydate-range-time" <span class="laydate-range-time">
> {{ MONTH_NAME[startTime.month] }}</span {{ MONTH_NAME[startTime.month] }}</span
> >
<template #content> <template #content>
<MonthPanel <MonthPanel
@ -87,11 +87,15 @@
</template> </template>
</lay-dropdown> </lay-dropdown>
<lay-dropdown ref="dropdownMonthPanelRefRight"> <lay-dropdown ref="dropdownMonthPanelRefRight">
<span class="laydate-range-time" <span class="laydate-range-time">
> {{ MONTH_NAME[startTime.month + 1 > 11 {{
? startTime.month + 1 - 12 MONTH_NAME[
: startTime.month + 1] }} </span startTime.month + 1 > 11
> ? startTime.month + 1 - 12
: startTime.month + 1
]
}}
</span>
<template #content> <template #content>
<MonthPanel <MonthPanel
class="time-panel" class="time-panel"

View File

@ -167,17 +167,17 @@ const props = withDefaults(defineProps<DatePickerProps>(), {
}); });
const startPlaceholder = computed(() => { const startPlaceholder = computed(() => {
if(Array.isArray(props.placeholder)) { if (Array.isArray(props.placeholder)) {
return props.placeholder[0]; return props.placeholder[0];
} }
return props.placeholder; return props.placeholder;
}); });
const endPlaceholder = computed(() => { const endPlaceholder = computed(() => {
if(Array.isArray(props.placeholder)) { if (Array.isArray(props.placeholder)) {
return props.placeholder[1]; return props.placeholder[1];
} }
return props.placeholder; return props.placeholder;
}); });
const dropdownRef = ref(null); const dropdownRef = ref(null);

View File

@ -24,8 +24,6 @@
.layui-transfer-box { .layui-transfer-box {
position: relative; position: relative;
border-width: 1px; border-width: 1px;
width: 200px;
height: 360px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border-radius: var(--transfer-box-border-radius); border-radius: var(--transfer-box-border-radius);

View File

@ -11,7 +11,18 @@
<template> <template>
<lay-timeline> <lay-timeline>
<lay-timeline-item title="1.7.x"> <lay-timeline-item title="1.7.x">
<ul> <ul>
<a name="1-7-1"></a>
<li>
<h3>1.7.1 <span class="layui-badge-rim">2022-10-25</span></h3>
<ul>
<li>[新增] date-picker 组件 placeholder 属性 array 类型兼容。</li>
<li>[修复] date-picker 组件 range 属性为 true 时的 国际化 翻译失效。</li>
<li>[修复] date-picker 组件 range 属性为 true 时的 lay-dropdown 无法解析警告。</li>
</ul>
</li>
</ul>
<ul>
<a name="1-7-0"></a> <a name="1-7-0"></a>
<li> <li>
<h3>1.7.0 <span class="layui-badge-rim">2022-10-24</span></h3> <h3>1.7.0 <span class="layui-badge-rim">2022-10-24</span></h3>