Skip to content

Commit

Permalink
feat: transfer isMobile from share to dom package
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatAuk committed Mar 6, 2023
1 parent 2e38e97 commit f2357fc
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ pnpm add @utopia-utils/dom
* waitForSelector: 等待指定的选择器匹配的元素出现在页面中,如果调用此方法时已经有匹配的元素,那么此方法立即返回。 如果指定的选择器在超时时间后扔不出现,返回 `null`[source](https://github.com/GreatAuk/utopia-utils/blob/main/packages/dom/src/waitForSelector.ts)
* panzoom: 为指定的元素添加拖拽缩放功能。[source](https://github.com/GreatAuk/utopia-utils/blob/main/packages/dom/src/panzoom/core.ts)
* isWeixin: 判断是否是微信浏览器。[source](https://github.com/GreatAuk/utopia-utils/blob/main/packages/dom/src/isWeixin.ts)
* isMobile: 判断是否是移动端浏览器。[source](https://github.com/GreatAuk/utopia-utils/blob/main/packages/share/src/isMobile.ts)
### 杂项
* [defineDictionary](#defineDictionary): 定义业务字典。 **typesafe** [source](https://github.com/GreatAuk/utopia-utils/blob/main/packages/core/src/defineDictionary.ts)
* ~~[createEnumFromOptions](#createEnumFromOptions): 通过 `options` 自动生成对应的 `enum`, 后期只需要维护 `options`**typesafe**[source](https://github.com/GreatAuk/utopia-utils/blob/main/packages/core/src/createEnumFromOptions.ts)~~
Expand Down Expand Up @@ -120,7 +121,6 @@ pnpm add @utopia-utils/share
* isObject
* isIntegerKey
* isEmpty
* isMobile: 判断是否是移动端浏览器。[source](https://github.com/GreatAuk/utopia-utils/blob/main/packages/share/src/isMobile.ts)
------

### vendor
Expand Down
1 change: 1 addition & 0 deletions packages/dom/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './panzoom'
export * from './isMobile'
export * from './isWeixin'
export * from './waitForSelector'
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/share/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './is'
export * from './isMobile'
export * from '../../dom/src/isMobile'
export * from './isEmpty'
export * from './measurePerformance'
export * from './utils'

0 comments on commit f2357fc

Please sign in to comment.