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

View File

@@ -167,17 +167,17 @@ const props = withDefaults(defineProps<DatePickerProps>(), {
});
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);

View File

@@ -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);