import { defineComponent, reactive } from 'vue'; import styles from './index.module.less'; import { NButton, NDataTable, NForm, NFormItem, NImage, NSelect, NSpace } from 'naive-ui'; import SearchInput from '@/components/searchInput'; import CSelect from '@/components/CSelect'; import Pagination from '@/components/pagination'; import add from './images/add.png'; export default defineComponent({ name: 'student-studentList', setup(props, { emit }) { const state = reactive({ searchWord: '', orchestraType: null, courseTypeCode: null, loading: false, pagination: { page: 1, rows: 10, pageTotal: 0 }, tableList: [] as any }); const search = () => { console.log('search', state); }; const onReset = () => { console.log('search'); }; const getList = () => { console.log('getList'); }; const columns = () => { return [ { title: '姓名', key: 'id' }, { title: '手机号', key: 'id' }, { title: '性别', key: 'id' }, { title: '乐器', key: 'id' }, { title: '班级', key: 'id' }, { title: '学生类型', key: 'id' }, { title: '操作', key: 'id' } ]; }; return () => (