mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-25 11:59:27 +08:00
🔨 优化mac拖拽
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<div id="components-layout" @mousedown="onMouseDown">
|
||||
<div
|
||||
id="components-layout"
|
||||
:class="commonConst.macOS() && 'drag'"
|
||||
@mousedown="onMouseDown"
|
||||
>
|
||||
<Search
|
||||
:currentPlugin="currentPlugin"
|
||||
@changeCurrent="changeIndex"
|
||||
@@ -34,6 +38,7 @@ import Search from './components/search.vue';
|
||||
import getWindowHeight from '../common/utils/getWindowHeight';
|
||||
import createPluginManager from './plugins-manager';
|
||||
import useDrag from '../common/utils/dragWindow';
|
||||
import commonConst from '@/common/utils/commonConst';
|
||||
|
||||
const { onMouseDown } = useDrag();
|
||||
|
||||
@@ -120,5 +125,8 @@ const clearSearchValue = () => {
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
}
|
||||
&.drag {
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user