Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第七章组件详解中的实战部分 标签页组件无法显示 #120

Open
ashen006 opened this issue Dec 4, 2019 · 1 comment
Open

Comments

@ashen006
Copy link

ashen006 commented Dec 4, 2019

7.7实战中的开发一个标签页组件。

按照作者书上的完整代码敲了一遍,没有显示标签页,界面上只显示了pane中间的文本信息:标签一的内容 标签二的内容 标签三的内容

<tabs v-model="activeKey">
                <pane label="标签一" name="1">标签一的内容</pane>
                <pane label="标签二" name="2">标签二的内容</pane>
                <pane label="标签三" name="3">标签三的内容</pane>
            </tabs>

请问这是哪里出了问题?望作者回复,毕竟买书不易。

@netuxi
Copy link

netuxi commented Mar 8, 2020

建议检查下 tabs 组件的模板内容是否缺少了 {{ item.label }} 这行代码。如果还不行的话,可以去我的 gitee 仓库 下载代码然后进行比较。
希望能帮到你 @ashen006

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

No branches or pull requests

2 participants