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
运行引入的组件时,报 Do not use built-in or reserved HTML elements as component id #25
Comments
请问你是怎么注册组件的?贴一下完整代码 |
import Element from 'element-ui' 直接在main.js里面注册 |
Vue 和 Element 的版本号报一下 |
"element-ui": "^1.0.0-rc.1", |
直接是你的项目里面将docs 里面用法拷过来,报这个error的 |
<template>
<div class="y_table">
<el-table
:data="tableData3"
selection-mode="multiple"
:fixed-column-count="2"
height="600"
border
>
<el-table-column type="selection">
</el-table-column>
<el-table-column inline-template label="操作">
<a style="color: #ff6161;">{{ row.item1 }}操作</a>
</el-table-column>
</el-table>
</div>
</template>
<script>
import Element from 'element-ui';
import Vue from 'vue';
import 'element-ui/lib/theme-default/index.css';
Vue.use(Element);
export default {
name: 'app',
data() {
return {
tableData3: [
{ item1: 'aaa' }
]
};
}
};
</script> |
建议全文搜索一下 |
好的 |
文档什么时候能出啊 |
完善中,快了,没具体时间 |
doc 里的md已经很全了。 |
现在在跑官方项目 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
代码如下:
运行结果报: [Vue warn]: Do not use built-in or reserved HTML elements as component id: Table
期望回复:这是因为缺少什么属性导致的吗,如何解决
What is actually happening?
The text was updated successfully, but these errors were encountered: