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

小程序:Picker组件警告 Template 'tmpl_0_custom-wrapper' not found. 无法正常显示选项 #332

Open
Deain opened this issue Aug 23, 2022 · 5 comments

Comments

@Deain
Copy link

Deain commented Aug 23, 2022

BUG 描述
小程序:Picker组件警告 Template 'tmpl_0_custom-wrapper' not found. 无法正常显示选项

复现步骤

<Picker
    valueKey={'text'}
    toolbarPosition={'top'}
    title={'title'}
    defaultIndex={1}
    columns={[
      {text: '干线', value: 1,},
      {text: '城市', value: 2,},
      {text: '农村', value: 3,},
      {text: '集装', value: 4,},
      {text: '其他', value: 5,},
    ]}
    // onCancel={hide}
    onConfirm={({detail}) => {
      console.log(detail);
    }}
  />

截图
image

image

image

@hisanshao
Copy link
Contributor

这个不是组件库的问题。Taro版本用3.4试试,另外你可以试试重新编译,然后关闭开发者工具再打开试试。

@yunfengsa
Copy link

一般这种情况可以试试关闭掉wxml压缩

@jinxing88
Copy link

app.config中添加
usingComponents: {
'custom-wrapper': '/custom-wrapper',
}

@hugyu
Copy link

hugyu commented Oct 28, 2022

一般这种情况可以试试关闭掉wxml压缩

没用啊,兄弟

@hugyu
Copy link

hugyu commented Oct 28, 2022

app.config中添加 usingComponents: { 'custom-wrapper': '/custom-wrapper', }
image
兄弟,这个咋解决呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants