简体   繁体   English

道具在 vue js 中发生突变

[英]props being mutated in vue js

On running my vue file I get the following console error, am new to the vue programming and trying to use syncfusion UI component to print a grid.在运行我的 vue 文件时,我收到以下控制台错误,我是 vue 编程的新手,并尝试使用 syncfusion UI 组件来打印网格。

Prop being mutated: "hierarchyPrintMode"

Here is my code, where to add the computed property since i dont have any props and i couldn't understand the solution as listed here .这是我的代码,在哪里添加计算属性,因为我没有任何道具,我无法理解此处列出的解决方案。

here is the hosted app, https://codesandbox.io/s/printing-grid-wqrgz这是托管应用程序https://codesandbox.io/s/printing-grid-wqrgz

Add hierarchyPrintMode: 'All' to a data section, pass it to a ejs-grid like this hierarchyPrintMode:="hierarchyPrintMode" and then in a code just change this.hierarchyPrintMode to anything you need将 hierarchyPrintMode: 'All' 添加到数据部分,将其传递给 ejs-grid 像这样的 hierarchyPrintMode:="hierarchyPrintMode" 然后在代码中将 this.hierarchyPrintMode 更改为您需要的任何内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM