postcss-pxtorem icon indicating copy to clipboard operation
postcss-pxtorem copied to clipboard

it doesn't work when i use v-bind of Vuejs to get the px number

Open Massionter opened this issue 4 years ago • 0 comments

just like below in Vue.js, it doesn't work. The 'left' and 'top' can't change to rem.

<ul
    v-show="visible"
   :style="{left: contextMenuLeft + 'px', top: contextMenuTop + 'px'}"
   class="contextmenu"
 >
   <li v-for="(item, key) of menuList" @click="handleTagsOption(key)" :key="key">{{item}}</li>
 </ul>

Massionter avatar Jan 20 '21 07:01 Massionter