import ColUpload from "@/components/col-upload"; import { Button, Grid, GridItem, Icon, Sticky } from "vant"; import { defineComponent } from "vue"; import styles from './create.module.less'; import ClassInfo from "./class-info"; import ClassContent from "./class-content"; import nameActive from './images/icon_name_active.png' import education from './images/icon_education.png' import educationActive from './images/icon_education_active.png' import CreateSubmit from "./create-submit"; export default defineComponent({ name: 'Create', data() { return { active: 1, } }, render() { return (
{this.active <= 2 ? ( <> = 1 ? styles.active : null]}>课程信息 ) }} /> ( <> 课程内容 ) }} /> : null} {/* 课程信息 */} {this.active === 1 ? <> : null} {/* 课程内容 */} {this.active === 2 ? <> : null} {/* 预览 */} {this.active === 3 ? <> : null}
) } })