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