imatrix-ui 2.9.19-boe09 → 2.9.19-boe10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imatrix-ui",
3
- "version": "2.9.19-boe09",
3
+ "version": "2.9.19-boe10",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -253,3 +253,14 @@ export function removeCustomControlValidatorRef(pageCode, refName) {
253
253
  const pageCustomControlRef = window.customValidatorRef.get(pageCode)
254
254
  pageCustomControlRef.delete(refName)
255
255
  }
256
+
257
+ export function isMobileBrowser() {
258
+ if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobi|Windows CE|Symbian|Windows Phone|POLARIS|lgtelecom|nokia|SonyEricsson|LG|SAMSUNG|Samsung/i
259
+ .test(navigator.userAgent)) {
260
+ // 移动端浏览器
261
+ return true
262
+ } else {
263
+ // PC浏览器
264
+ return false
265
+ }
266
+ }