import { defineComponent, ref } from 'vue'; import Overflow from '..'; import '../assets/index.less'; import './common.less'; interface ItemType { value: string | number; label: string; } function createData(count: number): ItemType[] { const data: ItemType[] = new Array(count).fill(undefined).map((_, index) => ({ value: index, label: `Label ${index}`, })); return data; } function renderItem(item: ItemType) { return (
{item.label}
); } function renderRest(items: ItemType[]) { return (
+{items.length}...
); } export default defineComponent({ setup() { const responsive = ref(true); const data = ref(createData(1)); return () => { return (
); }; }, });