📝(layer): 重构文档

This commit is contained in:
就眠儀式
2022-06-27 17:04:24 +08:00
parent 4a52df1f28
commit 34e352b25c
13 changed files with 478 additions and 495 deletions

View File

@@ -159,25 +159,22 @@ 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];
h.value = area.value[1];
t.value = offset.value[0];
l.value = offset.value[1];
_w.value = area.value[0];
_l.value = area.value[1];
t.value = offset.value[0];
l.value = offset.value[1];
_t.value = offset.value[0];
_l.value = offset.value[1];
supportMove();