import { watch,ref } from "vue"; /** * 这个是用于判断是否正在拖动,来决定是否显示左右轮播图的按钮 */ const isDrag = ref(false); watch(isDrag, (val) => { // console.log('isDrag', val); }) export {isDrag}