Skip to content

不要再模板上做计算,做单位添加( #18

Description

@wlchair
<div class="col" v-for="item in colList" :key="item.alias" :style="{
        left: item.left - offsetLeft + 'px', 
        width: item.width + 'px'}">
  • 如果以后改变单位,这个代码都是有问题的

为什么要left-offsetLeft,这个注释没法添加,一旦操作出现错误,
会报告模板错误,但是不知道为什么,需要调试模板部分。

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions