Skip to content

style: 优化选中关卡体验#42

Open
cyan0714 wants to merge 1 commit intoliyupi:masterfrom
cyan0714:master
Open

style: 优化选中关卡体验#42
cyan0714 wants to merge 1 commit intoliyupi:masterfrom
cyan0714:master

Conversation

@cyan0714
Copy link
Copy Markdown

目前进入挑战页面只能通过点击"挑战"按钮才能进入, 不方便用户操作, 所以增加了点击关卡名字也可进入挑战页面的功能

Comment thread src/pages/LevelsPage.vue
<a-list item-layout="horizontal" :data-source="mainLevels">
<template #renderItem="{ item: level, index }">
<a-list-item>
<a-list-item-meta :title="`${index + 1}、${level.title}`" />
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么不选择在 title 外面套路由呢?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

也可以, 但是要给 a 中的 li 加个 border-bottom, 不然样式和原来的不一致了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants