Skip to content
New issue

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

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

Already on GitHub? # to your account

npm install @jiaminghi/data-view =》<template v-for> key should be placed on the <template> tag #326

Open
nancy-lanlan opened this issue Jul 1, 2024 · 0 comments

Comments

@nancy-lanlan
Copy link

Bug report

出现Bug的组件?

1.node_modules@jiaminghi\data-view\lib\components\decoration3\src\main.vue

2.node_modules@jiaminghi\data-view\lib\components\decoration6\src\main.vue

组件配置数据?

1.node_modules@jiaminghi\data-view\lib\components\decoration3\src\main.vue

2.node_modules@jiaminghi\data-view\lib\components\decoration6\src\main.vue

控制台错误输出?

[plugin:vite:vue] key should be placed on the tag.
/node_modules/@jiaminghi/data-view/lib/components/decoration6/src/main.vue:8:11
<rect: key=" i"
:fill="mergedcolor[Math.random()>0.5 ?0:1]':x=""point[0]- halfRectWidth'"

node_modules@jiaminghi\data-view\lib\components\decoration3\src\main.vue同上

期望情况?

1.node_modules@jiaminghi\data-view\lib\components\decoration3\src\main.vue

2.node_modules@jiaminghi\data-view\lib\components\decoration6\src\main.vue

以上路径打开两份文件的:key="i"提到template标签内保存,否则自动化打包会导致线上报错
npm install @jiaminghi/data-view 都会导致以上路径的两份文件都报错

实际情况?

其他相关信息

  • DataV版本
  • "@jiaminghi/data-view": "^2.10.0",
  • 浏览器版本
  • 126.0.6478.116 (正式版本) (64 位) (cohort: Stable)
  • 其他

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant