perf(layout): 重构 layout 组件, 增强 carouel 轮播组件

This commit is contained in:
就眠仪式
2021-10-24 17:23:39 +08:00
parent 23ac843852
commit 3bd3dbf6cb
22 changed files with 1076 additions and 764 deletions

View File

@@ -19,6 +19,7 @@ const props = withDefaults(
defineProps<{
length?: number
modelValue?: number
character?: string
}>(),
{
length: 5,
@@ -45,7 +46,6 @@ const mouseenter = function (index: number) {
}
// select update 时, 通知 change 事件
emit('update:modelValue', index + 1)
}
</script>