Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

广告组件Ad编译后丢失adType、adTheme属性 #7237

Closed
Jeepeng opened this issue Aug 3, 2020 · 0 comments · Fixed by #7223 or #7257
Closed

广告组件Ad编译后丢失adType、adTheme属性 #7237

Jeepeng opened this issue Aug 3, 2020 · 0 comments · Fixed by #7223 or #7257
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@Jeepeng
Copy link

Jeepeng commented Aug 3, 2020

相关平台

微信小程序

小程序基础库: 2.8.0
使用框架: React

复现步骤

<Ad unitId='*************' adType='video' adTheme='white'></Ad>

编译后:

<template name="tmpl_0_ad">
  <ad unit-id="{{ i.unitId }}" ad-intervals="{{ i.adIntervals }}" bindload="eh" binderror="eh" bindclose="eh" style="{{ i.st }}" class="{{ i.cl }}" bindtap="eh"  id="{{ i.uid }}">
    <block wx:for="{{i.cn}}" wx:key="id">
      <template is="tmpl_1_container" data="{{i: item}}" />
    </block>
  </ad>
</template>

期望结果

能正常编译adType、adTheme

实际结果

adType、adTheme属性丢失

环境信息

Taro CLI 3.0.6 environment info:
    System:
      OS: macOS 10.15.6
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.4.0 - /usr/local/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.5 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.6 => 3.0.6 
      @tarojs/mini-runner: 3.0.6 => 3.0.6 
      @tarojs/react: 3.0.6 => 3.0.6 
      @tarojs/runtime: 3.0.6 => 3.0.6 
      @tarojs/taro: 3.0.6 => 3.0.6 
      @tarojs/webpack-runner: 3.0.6 => 3.0.6 
      babel-preset-taro: 3.0.6 => 3.0.6 
      eslint-config-taro: 3.0.6 => 3.0.6 
      react: ^16.13.1 => 16.13.1 
      taro-ui: 3.0.0-alpha.2 => 3.0.0-alpha.2 

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 3, 2020
@Chen-jj Chen-jj added this to the 3.0.7 milestone Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants