导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. 不明飞行吻
    不
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    不明飞行吻

    @不明飞行吻

    0
    声望
    17
    帖子
    436
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    不明飞行吻 关注

    不明飞行吻 发布的帖子

    • Taro的图片加载错误事件
        <Image
          className="user-avatar"
          src={avatar || defaultAvatar}
          lazyLoad
          onError={this.loadImageError.bind(this)}
        ></Image>
      

      Image标签加载图片失败如何在失败回调方法中设置默认图片路径呢?
      只能用修改原数据的方式来显示默认图片路径么?
      有么有更好的办法,比如像在html中一样这elem.src = img.png这也修改呢!

      发布在 Taro 实践 + 案例
      不
      不明飞行吻
    • RE: 关于ScrollView下拉刷新问题!

      微信小程序,使用ScrollView的自定义下拉刷新时,只有在初始设置固定高度才能下拉刷新,如果时动态设置 的scrollView高度则无法下拉刷新了

      发布在 提 Bug
      不
      不明飞行吻
    • 关于ScrollView下拉刷新问题!

      回复: scrollview 动态设置高度无法触发onRefresherRefresh

      我也发现了这个问题,请问有啥办法解决么,还是说要自己写一个下拉刷新才行

      发布在 提 Bug
      不
      不明飞行吻
    • RE: taro ui AtSwipeAction组件在用作拖动排序列表子项时,排序后报错width of null?

      没人遇到过么☹

      发布在 提 Bug
      不
      不明飞行吻
    • taro ui AtSwipeAction组件在用作拖动排序列表子项时,排序后报错width of null?

      这是拖动后排序后组件报错
      1fa4b27f-b8d3-4bbb-9c4e-919c0e4ea24a-image.png
      一个路径指向这儿
      4c6b318b-5533-4dd0-905e-9a48ec88f889-image.png
      另一个指向这儿
      ca9b0088-ce19-475b-881e-e25133f53b04-image.png
      请问,这是什么造成的?

      发布在 提 Bug
      不
      不明飞行吻
    • 使用taro ui 的AtSwipeAction组件做可排序列表,用户手动排序之后AtSwipeAction组件的左滑事件失效了?

      这是一个列表,是可以用户手动排序的。
      17715bd6-5e05-41b6-9bdc-35f5a9e1ef0d-image.png
      本来可以左滑出现操作按钮
      1939a01f-3094-4a73-ad8f-33cdea8e8c6d-image.png
      但是在先进行列表排序的情况下
      e5e4462f-30a4-4dce-b634-09b7a6b0ff42-image.png
      这个组件的左滑显示操作按钮的功能就失效了
      bf55c9c5-ce79-4618-8963-fcb4490a386c-image.png
      请问这是怎么回事儿?

      发布在 Taro UI
      不
      不明飞行吻
    • RE: 使用新版taro配合taroui出现这个问题?

      @好大一根木头 不清楚,因为我没有编译支付宝,只用了微信编译

      发布在 Taro
      不
      不明飞行吻
    • RE: 使用新版taro配合taroui出现这个问题?

      @好大一根木头 已经在issues上找到办法,安装对应版本taro ui ,具体版本是
      taro-ui@3.0.0-alpha.2

      发布在 Taro
      不
      不明飞行吻
    • RE: 使用新版taro配合taroui出现这个问题?

      如果不使用taro ui就没有问题,import { AtButton } from 'taro-ui' 随便引入一个,编译就报错。。。

      发布在 Taro
      不
      不明飞行吻
    • 使用新版taro配合taroui出现这个问题?

      � Taro v3.0.0-rc.6

      生成 工具配置 D:\x-20200623\converter\dist/project.config.json

      编译 发现入口 src/app.jsx
      编译 发现页面 src/pages/index/index.jsx
      编译 发现页面 src/pages/set/set.jsx
      编译 发现页面 src/pages/projectManage/projectManage.jsx
      � 编译失败.

      ./node_modules/_taro-ui@2.3.4@taro-ui/dist/weapp/common/component.tsx
      Module build failed (from ./node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js):
      SyntaxError: D:\x-20200623\converter\node_modules_taro-ui@2.3.4@taro-ui\dist\weapp\common\component.tsx: Unexpected token, expected "," (3:29)

      1 | import { Component } from '@tarojs/taro'
      2 |

      3 | const objectToString = (style: object | string): string => {
      | ^
      4 | if (style && typeof style === 'object') {
      5 | let styleStr = ''
      6 | Object.keys(style).forEach(key => {

      监听文件修改中...

      ./node_modules/_taro-ui@2.3.4@taro-ui/dist/weapp/common/component.tsx
      Module build failed (from ./node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js):
      SyntaxError: D:\x-20200623\converter\node_modules_taro-ui@2.3.4@taro-ui\dist\weapp\common\component.tsx: Unexpected token, expected "," (3:29)

      1 | import { Component } from '@tarojs/taro'
      2 |

      3 | const objectToString = (style: object | string): string => {
      | ^
      4 | if (style && typeof style === 'object') {
      5 | let styleStr = ''
      6 | Object.keys(style).forEach(key => {
      at Object._raise (D:\x-20200623\converter\node_modules_@babel_parser@7.10.4@@babel\parser\src\parser\error.js:60:45)
      at Object.raiseWithData (D:\x-20200623\converter\node_modules_@babel_parser@7.10.4@@babel\parser\src\parser\error.js:55:17)
      at Object.raise (D:\x-20200623\converter\node_modules_@babel_parser@7.10.4@@babel\parser\src\parser\error.js:39:17)
      at Object.unexpected (D:\x-20200623\converter\node_modules_@babel_parser@7.10.4@@babel\parser\src\parser\util.js:152:16)

      发布在 Taro
      不
      不明飞行吻