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

[Bug report]微信小程序不支持component动态引入组件 #1376

Closed
Tyh2001 opened this issue Jan 12, 2024 · 2 comments
Closed

[Bug report]微信小程序不支持component动态引入组件 #1376

Tyh2001 opened this issue Jan 12, 2024 · 2 comments

Comments

@Tyh2001
Copy link

Tyh2001 commented Jan 12, 2024

问题描述
微信小程序不支持component动态引入组件

环境信息描述
操作系统:windows
依赖版本

    "@mpxjs/api-proxy": "^2.9.0",
    "@mpxjs/core": "^2.9.0",
    "@mpxjs/fetch": "^2.9.0",
    "@mpxjs/pinia": "^2.9.0",
    "@mpxjs/store": "^2.9.0",
    "@mpxjs/utils": "^2.9.0",

小程序平台:微信小程序

最简复现demo
微信图片_20240112084353

@hiyuki
Copy link
Collaborator

hiyuki commented Jan 12, 2024

改成is="{{}}"吧,mpx内不支持:is这种形式的数据绑定,语法上和vue是有区别的

@hiyuki hiyuki closed this as completed Jan 12, 2024
@Tyh2001
Copy link
Author

Tyh2001 commented Jan 12, 2024

我天,居然编译结果也是用wx:if实现的
36bcafaf50a7cc75e85604085877ec8

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

No branches or pull requests

2 participants