import CipDropdown from '../../cip-dropdown' import { ElDropdownItem, ElDropdownMenu } from 'element-plus' const layoutOptions = ['left', 'left-2', 'top', 'top-left'] export default { props: { modelValue: String, options: { type: Array, default: () => layoutOptions } }, emits: ['update:modelValue'], setup (props, { emit }) { const handlerCommand = (val) => { emit('update:modelValue', val) } return () => handlerCommand(val)} popperClass='cip-nav-layout'> {{ default: () => {props.modelValue}, dropdown: () => {props.options.map(option => {option})} }} } }