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

项目里的组件名称在哪里定义的? #96

Open
Miya-- opened this issue Aug 6, 2018 · 1 comment
Open

项目里的组件名称在哪里定义的? #96

Miya-- opened this issue Aug 6, 2018 · 1 comment

Comments

@Miya--
Copy link

Miya-- commented Aug 6, 2018

import utils from '../libs/utils.js';
import nvHead from '../components/header.vue';
import nvTop from '../components/backtotop.vue';

import的nvHead在哪里定义的?没有找到

<nv-head :page-type="getTitleStr(searchKey.tab)" ref="head" :fix-head="true" :need-add="true">
</nv-head>

为什么会用这个标签呢?在哪里定义的?

项目里的组件是在哪里注册的?

@DuYueYu
Copy link

DuYueYu commented Dec 15, 2019

Vue的语法:
引入:
import nvHead from '../components/header.vue';
使用:
nv-head
原因请看Vue官方教程的组件章节。

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