Skip to content

Commit 7863ac8

Browse files
authored
chore: remove is-mobile (#3953)
1 parent f42b629 commit 7863ac8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

components/input/Search.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineComponent, inject } from 'vue';
22
import classNames from '../_util/classNames';
3-
import { isMobile } from 'is-mobile';
3+
import isMobile from '../vc-menu/utils/isMobile';
44
import Input from './Input';
55
import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined';
66
import SearchOutlined from '@ant-design/icons-vue/SearchOutlined';
@@ -43,7 +43,7 @@ export default defineComponent({
4343
return;
4444
}
4545
this.$emit('search', this.input.stateValue, e);
46-
if (!isMobile({ tablet: true })) {
46+
if (!isMobile.tablet) {
4747
this.input.focus();
4848
}
4949
},

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@
210210
"async-validator": "^3.3.0",
211211
"dom-align": "^1.10.4",
212212
"dom-scroll-into-view": "^2.0.0",
213-
"is-mobile": "^2.2.1",
214213
"lodash-es": "^4.17.15",
215214
"moment": "^2.27.0",
216215
"omit.js": "^2.0.0",

0 commit comments

Comments
 (0)