|
@@ -221,7 +221,8 @@ export default defineComponent({
|
|
|
const pptData = reactive({
|
|
|
pptEl: null as any,
|
|
|
slidesLen: 1,
|
|
|
- activeLen: 0
|
|
|
+ activeLen: 0,
|
|
|
+ disable: false
|
|
|
});
|
|
|
|
|
|
const activeData = reactive({
|
|
@@ -1162,6 +1163,7 @@ export default defineComponent({
|
|
|
// 是否允许上一页
|
|
|
const isUpArrow = computed(() => {
|
|
|
if (data.coursewareType === 'PPT') {
|
|
|
+ if (pptData.disable) return false;
|
|
|
if (pptData.activeLen > 0) {
|
|
|
return true;
|
|
|
}
|
|
@@ -1236,6 +1238,7 @@ export default defineComponent({
|
|
|
// 是否允许下一页
|
|
|
const isDownArrow = computed(() => {
|
|
|
if (data.coursewareType === 'PPT') {
|
|
|
+ if (pptData.disable) return false;
|
|
|
if (pptData.activeLen < pptData.slidesLen - 1) {
|
|
|
return true;
|
|
|
}
|
|
@@ -1971,8 +1974,13 @@ export default defineComponent({
|
|
|
ref={el => {
|
|
|
pptData.pptEl = el;
|
|
|
}}
|
|
|
+ onInit={() => {
|
|
|
+ pptData.disable = true;
|
|
|
+ }}
|
|
|
onInitPPT={({ slidesLen }) => {
|
|
|
+ pptData.disable = false;
|
|
|
pptData.slidesLen = slidesLen;
|
|
|
+ pptData.activeLen = 0;
|
|
|
}}
|
|
|
onChangeSlideIndex={({ slideIndex }) => {
|
|
|
pptData.activeLen = slideIndex;
|