Open
Conversation
rename `ListContainer` -> `CellConainer` rename `Card` -> `Box` store `fontSize` in store.js, change by window's resizing
add new localize string to `lang` save search string in vue-router's query rename FlexboxContainer -> BoxContainer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #90
组件
元素组件
Block组件,添加可选项显示卡片数量Box组件,对应MD的Card组件,显示桌面视图中的单张卡片(图片+卡名),带有显示详细信息的按钮,单击可以选中该卡片CardInfoTable组件,显示卡片详细信息的表格DeckHead组件,用于指示卡组的卡片数量,生命爆发数量和Mayu‘roomTips插件,用于显示tips容器组件
CellContainer组件,使用作用域插槽插入子组件,可选项长列表优化,根据窗口宽度自适应2列布局FlexboxContainer组件,用于容纳Box组件,可选项滚动到底部加载更多DeckSubheader组件,显示在Deck页面中,其中包含DeckHead组件布局组件
Sidebar组件,用于显示卡片大图和详细信息,点击一张卡片的详情按钮后出现ActionButtonBar组件,用于对当前选中的卡片进行某项操作,单击一张或多张卡片后出现功能按钮
状态管理
resize事件并更新数值windowWidthfontSizeshownPid,表示DeckEditor的侧边栏中显示详细信息的卡片shownPid === 0时,隐藏侧边栏,为合法值时弹出侧边栏selectedPids,表示DeckEdtior中当前选中的卡片selectedPids为空时,隐藏ActionButtonBar,数组不为空时,弹出ActionButtonBar图标
TODO
toast组件