textarea显示在组件里placeholder-style失效
发布于 5 年前 作者 xiulanding 7004 次浏览 来自 官方Issues

引用组件内显示textarea, 默认placeholder-style样式失效, 输入然后再次删除之后才生效。

下面的图片参考一下:

1 回复

在组件里面开启样式穿透试试

/* 组件 custom-component.js */
Component({
  options: {
    addGlobalClass: true,
  }
})

https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/wxml-wxss.html

回到顶部