mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-11 11:56:48 +08:00
feat:修改面授课下载
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
:key="i"
|
||||
class="cha"
|
||||
:style="{
|
||||
top: `${imgAttr.positions[i]?.top - (current === i ? 1 : 0)}px`,
|
||||
left: `${imgAttr.positions[i]?.left - (current === i ? 11 : 0)}px`,
|
||||
top: `${imgAttr?.positions[i]?.top - (current === i ? 1 : 0)}px`,
|
||||
left: `${imgAttr?.positions[i]?.left - (current === i ? 11 : 0)}px`,
|
||||
}"
|
||||
>
|
||||
<div
|
||||
@@ -152,10 +152,14 @@ const imageAttrs = {
|
||||
},
|
||||
};
|
||||
|
||||
const imgAttr = computed(
|
||||
() =>
|
||||
imageAttrs[Object.keys(imageAttrs).find((e) => props.img.includes(e))] || {}
|
||||
);
|
||||
const imgAttr = computed(() => {
|
||||
if (props.img) {
|
||||
return (
|
||||
imageAttrs[Object.keys(imageAttrs).find((e) => props.img.includes(e))] ||
|
||||
{}
|
||||
);
|
||||
}
|
||||
});
|
||||
const imgAttrindex = computed(
|
||||
() => {
|
||||
// console.log("props.img.includes1", props.img);
|
||||
|
||||
Reference in New Issue
Block a user