v-on:mouseup="handleMouseUp"> <!-- 横向内容 --> </template> .scroll-container{ overflow-x: scroll; white-space: nowrap; } .scroll-content{ /* 横向内容样式 */ } import{ ref }from'vue' letisDragging =false letstartX =0 letscrollLeft =0 constscrollContainer =ref(null) funct...