ionic-team / ionic-team/ionic-docs

Platform : condition for device types

未关闭
#948 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
content
主要语言
MDX
星标
621
派生
3.2k
平均合并
1 天 2 小时
30 天内合并 PR
86

描述

**URL**
https://ionicframework.com/docs/utilities/platform

**What is missing or inaccurate about the content on this page?**
About the method is(platformName: Platforms), it would be great to know which conditions make it answer true for "mobile" "phablet" and "tablet".
I always thought a phablet would always return true for both "mobile" and "tablet" but I've done tests with a Pixel 3 on Android Q with display set to small (high resolution) and it returns true for both "mobile" and "tablet" but false for "phablet".
It is very hard to tell if it's a bug or an undocumented feature.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。