Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

AtNavBar表现不正确 #89

Closed
qweasdzxcpkh opened this issue Dec 9, 2020 · 1 comment
Closed

AtNavBar表现不正确 #89

qweasdzxcpkh opened this issue Dec 9, 2020 · 1 comment

Comments

@qweasdzxcpkh
Copy link

问题描述
使用AtNavBar组件时出现非预期行为

复现步骤
taro init
使用Taro+vue, typescript,模板使用Taro-vue-ui模板

<template>
  <view class="index">
      <AtNavBar
        color="#000"
        leftIconType="chevron-left"
        rightFirstIconType='bullet-list'
      >
        navigation
      </AtNavBar>
  </view>
</template>

<script>
// 按需引入, 更小的应用体积
import { AtNavBar } from 'taro-ui-vue'
import "taro-ui-vue/dist/style/components/nav-bar.scss"
import "taro-ui-vue/dist/style/components/icon.scss"
import './index.less' 
export default {
  components: {
    AtNavBar,
  },
  data () {
    return {
    }
  },
}
</script>

若将

<AtNavBar
        color="#000"
        leftIconType="chevron-left"
        rightFirstIconType='bullet-list'
      >
        navigation
      </AtNavBar>

改为

<AtNavBar
        color="#000"
        leftIconType="chevron-left"
        rightFirstIconType='bullet-list'
      >
        <view>navigation</view>
      </AtNavBar>

则出现报错

期望行为
在小程序能呈现跟官方例子一样的效果
实际效果:
image
image

系统信息
👽 Taro v3.0.17

Taro CLI 3.0.17 environment info:
System:
OS: macOS 10.14.4
Shell: 5.3 - /bin/zsh
Binaries:
Node: 11.14.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
npmPackages:
@tarojs/cli: 3.0.17 => 3.0.17
@tarojs/components: 3.0.17 => 3.0.17
@tarojs/mini-runner: 3.0.17 => 3.0.17
@tarojs/runtime: 3.0.17 => 3.0.17
@tarojs/taro: 3.0.17 => 3.0.17
@tarojs/webpack-runner: 3.0.17 => 3.0.17
babel-preset-taro: 3.0.17 => 3.0.17
eslint-config-taro: 3.0.17 => 3.0.17
npmGlobalPackages:
typescript: 3.7.3

taro-ui-vue版本: 1.0.0-alpha.14

补充信息

AtNavBar的嵌套子组件处理bug?

psaren added a commit that referenced this issue Dec 9, 2020
@psaren psaren added this to the V1.0.0-alpha.15 milestone Dec 9, 2020
@psaren
Copy link
Owner

psaren commented Dec 9, 2020

推荐先使用title,会在2020/12/13发版修复

@psaren psaren closed this as completed in 4eb5a62 Dec 13, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants