cuth / postcss-pxtorem

Convert pixel units to rem (root em) units using PostCSS
MIT License
2.02k stars 174 forks source link

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

Open Massionter opened 3 years ago

Massionter commented 3 years ago

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>