chore: remove is-mobile (#3953)

This commit is contained in:
zkwolf 2021-04-17 07:38:43 +08:00 committed by GitHub
parent f42b6292c0
commit 7863ac81ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import { defineComponent, inject } from 'vue';
import classNames from '../_util/classNames';
import { isMobile } from 'is-mobile';
import isMobile from '../vc-menu/utils/isMobile';
import Input from './Input';
import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined';
import SearchOutlined from '@ant-design/icons-vue/SearchOutlined';
@ -43,7 +43,7 @@ export default defineComponent({
return;
}
this.$emit('search', this.input.stateValue, e);
if (!isMobile({ tablet: true })) {
if (!isMobile.tablet) {
this.input.focus();
}
},

View File

@ -210,7 +210,6 @@
"async-validator": "^3.3.0",
"dom-align": "^1.10.4",
"dom-scroll-into-view": "^2.0.0",
"is-mobile": "^2.2.1",
"lodash-es": "^4.17.15",
"moment": "^2.27.0",
"omit.js": "^2.0.0",