import { defineComponent, PropType } from 'vue' import { prefixCls } from '../constant' import { voidFn } from '../utils' import { MouseEventHandler } from '../types' import { SvgIcon } from './svg-icon' export const Toolbar = defineComponent({ name: 'Toolbar', props: { zoomIn: { type: Function as PropType, default: voidFn }, zoomOut: { type: Function as PropType, default: voidFn }, rotateLeft: { type: Function as PropType, default: voidFn }, rotateRight: { type: Function as PropType, default: voidFn }, resize: { type: Function as PropType, default: voidFn }, rotateDisabled: { type: Boolean, default: false }, zoomDisabled: { type: Boolean, default: false } }, setup(props) { return () => { return (
{!props.zoomDisabled && ( <>
)}
{!props.rotateDisabled && ( <>
)}
) } } })