IronKinoko
IronKinoko
postcss-pxtorem 只处理 css 文件,不会处理 js 文件
```css .custom-wrapper { --dot-szie: 14px; } ``` ```js ``` 你把这些自定义的属性,写到 css 文件里就可以了
请使用 `window.antdMobile`
![image](https://user-images.githubusercontent.com/32838658/191710389-448e5bf5-d792-41c4-86a9-c8c5a7dcb87a.png)
> ![image](https://user-images.githubusercontent.com/32838658/191710389-448e5bf5-d792-41c4-86a9-c8c5a7dcb87a.png) vite配置可能有点问题,打包后把 this 转成了 globalThis,导致兼容性出问题了 https://caniuse.com/?search=globalthis
一样的,compatible文件里也能找到 globalThis ![image](https://user-images.githubusercontent.com/32838658/191927902-270bbd52-94ca-410b-ab08-969c97a36d92.png)
```diff
我看了 `antd` 和 `procomponent` 也没处理这个,只有 `preserve={false}` 受影响
如果增加 form 标签,可能出现 form 嵌套的情况 ```tsx ``` 上面这种情况就会控制台报错
手头只有 iOS11.4 的模拟器,较老的浏览器应该都会有这种情况吧,网络上搜索相关的内容,也只有 iOS 相关的讨论 https://caniuse.com/?search=enterkeyhint