// import { Grid, GridItem } from 'vant'; import { defineComponent } from 'vue'; import styles from './tool.module.less'; import iconPen from '../image/icon-pen.png'; export type ToolType = 'init' | 'pen'; export type ToolItem = { type: ToolType; name: string; icon: string; }; export default defineComponent({ name: 'tool', emits: ['handleTool'], setup(props, { emit }) { const tool: ToolItem[] = [ { type: 'pen', icon: iconPen, name: '批注' } ]; return () => (
教学功能
{/* {tool.map(item => ( emit('handleTool', item)}> ))} */}
); } });