|
@@ -45,32 +45,32 @@ export default defineComponent({
|
|
|
);
|
|
|
|
|
|
return () => (
|
|
|
- <NModal
|
|
|
- v-model:show={show.value}
|
|
|
- onUpdate:show={() => {
|
|
|
- emit('update:show', show.value);
|
|
|
- }}
|
|
|
- class={styles.previewWindow}
|
|
|
- showIcon={false}
|
|
|
- displayDirective="show">
|
|
|
- {type.value === 'attend' ? (
|
|
|
- <AttendClass
|
|
|
- type={params.value.type || ''}
|
|
|
- subjectId={params.value.subjectId || ''}
|
|
|
- detailId={params.value.detailId || ''}
|
|
|
- classGroupId={params.value.classGroupId || ''}
|
|
|
- onClose={() => emit('update:show', false)}
|
|
|
- />
|
|
|
- ) : (
|
|
|
- ''
|
|
|
- )}
|
|
|
- {/* 曲谱 */}
|
|
|
- {type.value === 'notation' ? (
|
|
|
- <iframe src={params.value.src}></iframe>
|
|
|
- ) : (
|
|
|
- ''
|
|
|
- )}
|
|
|
- </NModal>
|
|
|
+ <>
|
|
|
+ <NModal
|
|
|
+ v-model:show={show.value}
|
|
|
+ onUpdate:show={() => {
|
|
|
+ emit('update:show', show.value);
|
|
|
+ }}
|
|
|
+ class={styles.previewWindow}
|
|
|
+ showIcon={false}
|
|
|
+ displayDirective="show">
|
|
|
+ <>
|
|
|
+ {type.value == 'attend' ? (
|
|
|
+ <AttendClass
|
|
|
+ type={params.value.type || ''}
|
|
|
+ subjectId={params.value.subjectId || ''}
|
|
|
+ detailId={params.value.detailId || ''}
|
|
|
+ classGroupId={params.value.classGroupId || ''}
|
|
|
+ onClose={() => emit('update:show', false)}
|
|
|
+ />
|
|
|
+ ) : type.value == 'notation' ? (
|
|
|
+ <iframe src={params.value.src}></iframe>
|
|
|
+ ) : (
|
|
|
+ ''
|
|
|
+ )}
|
|
|
+ </>
|
|
|
+ </NModal>
|
|
|
+ </>
|
|
|
);
|
|
|
}
|
|
|
});
|