|
@@ -54,6 +54,10 @@ export default defineComponent({
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
+ isLarge: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ },
|
|
|
/** 是否下架 */
|
|
|
offShelf: {
|
|
|
type: Boolean,
|
|
@@ -179,7 +183,8 @@ export default defineComponent({
|
|
|
<div
|
|
|
class={[
|
|
|
styles['train-content'],
|
|
|
- props.isDisabled && !props.isCLassWork && styles.trainDisabled
|
|
|
+ props.isDisabled && !props.isCLassWork && styles.trainDisabled,
|
|
|
+ props.isLarge && styles.trainDisabled
|
|
|
]}
|
|
|
onClick={() => {
|
|
|
if (props.isDisabled && !props.isCLassWork) {
|
|
@@ -248,14 +253,16 @@ export default defineComponent({
|
|
|
预览
|
|
|
</NButton>
|
|
|
</div> */}
|
|
|
- <img
|
|
|
- src={iconDelete}
|
|
|
- class={styles.iconDelete}
|
|
|
- onClick={(e: MouseEvent) => {
|
|
|
- e.stopPropagation();
|
|
|
- emit('delete', props.item);
|
|
|
- }}
|
|
|
- />
|
|
|
+ {props.isDelete && (
|
|
|
+ <img
|
|
|
+ src={iconDelete}
|
|
|
+ class={styles.iconDelete}
|
|
|
+ onClick={(e: MouseEvent) => {
|
|
|
+ e.stopPropagation();
|
|
|
+ emit('delete', props.item);
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ )}
|
|
|
</div>
|
|
|
<div class={styles['train-footer']}>
|
|
|
<div class={styles.trainInfo}>
|