Tencent / wepy

小程序组件化开发框架
https://wepyjs.gitee.io/wepy-docs/
Other
22.54k stars 3.05k forks source link

样式使用 scoped 之后 input 组件的 placeholder-class 失效 #1886

Open kong-dev opened 6 years ago

kong-dev commented 6 years ago

Description

样式使用 scoped 编译之后会添加 hash 后缀,但是 wxml 中的 placeholder-class 的值没有添加,导致无法应用自定义样式

Environment

Relevant Code / Logs


<!-- 去掉 scoped 则正常 -->
<style lang="scss" scoped>
  .placeholder {
    color: red;
  }
</style>
<template>
  <input class="input" placeholder-class="placeholder" placeholder="placeholder"/>
</template>
  ```
shawbs commented 5 years ago

wepy不支持soped吧?

orange9719 commented 5 years ago

placeholder-style="color: red;"