[Bug Report] tree tree custom node content source code copied to the local project reported error (render-content function error)

as236676674
创建于
2017-05-16 07:28:43

Element UI version

1.3.1

OS/Browsers version

最新

Vue version

2.3.0

Reproduction Link

https://jsfiddle.net/api/post/library/pure/

Steps to reproduce

讲自定义树形节点代码拷贝到项目中运行就报错

What is Expected?

不报错,正常显示

What is actually happening?

报错 Module build failed: SyntaxError: C:/upms/src/modules/system/views/user/Power.vue: Unexpected token (338:10)

4条回答
element-bot
回复于
2017-05-16 07:28:46
#1

Translation of this issue:

Element UI version

1.3.1

OS/Browsers version

Newest

Vue version

2.3.0

Reproduction Link

https://jsfiddle.net/api/post/library/pure/

Steps to reproduce

Custom tree nodes, code copy to the project, running on the wrong

What is Expected?

No error, normal display

What is actually happening?

Error reporting Module, build, failed:, SyntaxError:, C:/upms/src/modules/system/views/user/Power.vue:, Unexpected, token (338:10)

element-bot
回复于
2017-05-16 07:28:46
#2

Hi, your JSFiddle page is blank because it seems you forgot to click the Save button. Please save your fiddle and then edit this issue with the new link.

Mxsion
回复于
2017-05-17 03:16:34
#3

yep,i got this issue too.

Leopoldthecoder
回复于
2017-05-18 21:30:29
#4

Read the FAQ and get yourself familiar with render functions.

当前位于第1页,总计4 条回复

推荐相似问题

tree树形自定义节点内容 源代码拷贝到本地项目中报错(render-content函数报错)

tree树形自定义节点内容 源代码拷贝到本地项目中报错(render-content函数报错)
讨论数 4
element
创建时间:2017-05-16 07:24:19

When the [Bug Report] Select component is used in the dialog component, click the pop-up layer on the tab to shake the text down

Element UI version 1.3.3 OS/Browsers version macOS/windows 7 chrome 58 Vue version 2.3.3 Reproduction Link https://jsfid
讨论数 5
element
创建时间:2017-05-16 07:21:05

[Bug Report] tree tree custom node content online can not run the custom area content display blank

Element UI version 1.3.1 OS/Browsers version 最新 Vue version 2.3.0 Reproduction Link https://jsfiddle.net/api/post/librar
讨论数 4
element
创建时间:2017-05-16 06:45:57

tree树形自定义节点内容在线运行不了 自定义区内容显示空白

tree树形自定义节点内容在线运行不了 自定义区内容显示空白
讨论数 2
element
创建时间:2017-05-16 06:38:42

The [Feature Request] tabs component suggests opening the right mouse button event

Existing Component 是 Component Name Tabs Description 应用场景:为tab添加右键菜单:关闭所有、关闭其他、关闭当前页、刷新等功能,类似浏览器tab页功能
讨论数 4
element
创建时间:2017-05-16 04:03:37

[Feature Request] Popover pop-up box integration confirmation dialog box

Existing Component 是 Component Name popover弹出框 Description 点击元素可以弹出汽泡式的确认框,这在表格里删除操作时可以用到,手动嵌套操作需要定义v-model,当api显示表格内容时,
讨论数 3
element
创建时间:2017-05-16 03:06:50

[Bug Report] Active style issues for tabs components

Element UI version 1.3.3 OS/Browsers version macOS Sierra 10.12.4 Vue version 2.3.3 Reproduction Link https://jsfiddle.n
讨论数 2
element
创建时间:2017-05-16 02:50:22

[Bug Report] form validate: after called this.resetForm('ruleForm') in mounted, the error information didn't disappear.

Element UI version 1.3.3 OS/Browsers version Google Vue version 2.3.3 Reproduction Link https://jsfiddle.net/axzL7v19/8/
讨论数 5
element
创建时间:2017-05-16 01:27:07

The [Bug Report] rendering <el-select>'s <el-option> with V-for causes the component <el-form>'s form validation to always be in error state after it is triggered

Element UI version 1.3.2 OS/Browsers version windows/Chrome&Edge Vue version 2.3.0 Reproduction Link https://jsfiddle.ne
讨论数 3
element
创建时间:2017-05-15 09:36:54

[Bug Report]用v-for渲染<el-select>的<el-option>会导致该组件<el-form>的表单验证触发后永远处于错误状态

Element UI version 1.3.2 OS/Browsers version windows/Chrome&Edge Vue version 2.3.0 Reproduction Link Demo 见下 Steps to re
讨论数 5
element
创建时间:2017-05-15 09:30:59