Open nancy-lanlan opened 2 months ago
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 <template v-for="(point, i) in points"
<rect :key="i" :fill="mergedColor[0]" :x="point[0] - halfPointSideLength" :y="point[1] - halfPointSideLength" :width="pointSideLength" :height="pointSideLength"
2.node_modules\@jiaminghi\data-view\lib\components\decoration6\src\main.vue <template v-for="(point, i) in points"
<rect :key="i" :fill="mergedColor[Math.random() > 0.5 ? 0 : 1]" :x="point[0] - halfRectWidth" :y="point[1] - heights[i] / 2" :width="rectWidth" :height="heights[i]"
[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 <template v-for="(point, i) in points" :key="i"
<rect :fill="mergedColor[0]" :x="point[0] - halfPointSideLength" :y="point[1] - halfPointSideLength" :width="pointSideLength" :height="pointSideLength"
2.node_modules\@jiaminghi\data-view\lib\components\decoration6\src\main.vue <template v-for="(point, i) in points" :key="i"
<rect :fill="mergedColor[Math.random() > 0.5 ? 0 : 1]" :x="point[0] - halfRectWidth" :y="point[1] - heights[i] / 2" :width="rectWidth" :height="heights[i]"
以上路径打开两份文件的:key="i"提到template标签内保存,否则自动化打包会导致线上报错 npm install @jiaminghi/data-view 都会导致以上路径的两份文件都报错
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 <template v-for="(point, i) in points"
2.node_modules\@jiaminghi\data-view\lib\components\decoration6\src\main.vue <template v-for="(point, i) in points"
控制台错误输出?
[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 <template v-for="(point, i) in points" :key="i"
2.node_modules\@jiaminghi\data-view\lib\components\decoration6\src\main.vue <template v-for="(point, i) in points" :key="i"
以上路径打开两份文件的:key="i"提到template标签内保存,否则自动化打包会导致线上报错 npm install @jiaminghi/data-view 都会导致以上路径的两份文件都报错
实际情况?
其他相关信息