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

[IOS 兼容] 在 ios 中存在兼容问题 #186

Open
lizy0329-biubiubiu opened this issue May 20, 2022 · 3 comments
Open

[IOS 兼容] 在 ios 中存在兼容问题 #186

lizy0329-biubiubiu opened this issue May 20, 2022 · 3 comments

Comments

@lizy0329-biubiubiu
Copy link

反馈问题请先查看文档和务必提供详细的复现代码,遵循如下格式,描述不清楚的问题将会直接关闭。

vue和ui框架

vue2或者vue3、ui框架element antd、vjsf 使用版本说明

@lljj/vue3-form-element 1.12.2

问题描述

对错误是什么的清晰简洁的描述。
image

在 IOS 中,这个 props 的下属所有属性为 enumerable: false

导致了
const curProps = {
...props,
schema
}

// curProps -> {schema} 只有 schema 属性存在

控件无法正常渲染

image

如何复现

使用 IOS 低版本测试
当前使用 ios 11.3.1

期望的结果

ios 能够正确渲染组件

@lizy0329-biubiubiu
Copy link
Author

image

是由于 h 函数生成的 props 在 ios 某些机型下(例如 11.3.1) 被修改为 non-enumerable 导致 core-js 的 _objectSpread2 函数无法正常复制对象,从而导致控件渲染不出来的现象

@kamilic
Copy link

kamilic commented May 22, 2022

related: vuejs/core#5980

@lljj-x
Copy link
Owner

lljj-x commented May 22, 2022

所以看起来这像是一个 vue3的已知问题,可能是ios11对一些es6+ 的语法兼容性问题 。

如果可以有些polyfill的方案欢迎pr

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

3 participants