mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 03:58:05 +08:00
chore: remove is-mobile (#3953)
This commit is contained in:
parent
f42b6292c0
commit
7863ac81ee
@ -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();
|
||||
}
|
||||
},
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user