📝(all): 更新日志

This commit is contained in:
就眠儀式
2022-06-27 18:43:01 +08:00
parent 0a3ac48d95
commit d92880da97
10 changed files with 93 additions and 80 deletions

View File

@@ -159,14 +159,17 @@ const _l: Ref<string> = ref(offset.value[1]);
* <p>
*/
const firstOpenDelayCalculation = function () {
nextTick( async () => {
nextTick(async () => {
area.value = getArea(layero.value);
if (type == 4) {
area.value = calculateDrawerArea(props.offset, props.area);
}
if (type == 5) {
// @ts-ignore
area.value = await calculatePhotosArea(props.imgList[props.startIndex].src, props);
area.value = await calculatePhotosArea(
props.imgList[props.startIndex].src,
props
);
}
offset.value = calculateOffset(props.offset, area.value, props.type);
w.value = area.value[0];