修改页面样式

This commit is contained in:
GGJ
2025-04-24 16:29:15 +08:00
parent dc4b37b833
commit cd20b4134a
9 changed files with 400 additions and 230 deletions

View File

@@ -137,11 +137,11 @@ const currentTDinfo = ref<any>(null)
// td 中开始拖拽拖拽
function tdDragStart(parentIndex: number, index: number, e: any) {
if (!classScheduleCardList.value[parentIndex].courseList[index]) return
const item = JSON.parse(JSON.stringify(classScheduleCardList.value[parentIndex].courseList[index]))
item.customDelete = false
dragingTdInfo.value = item
classScheduleCardList.value[parentIndex].courseList[index] = null
// if (!classScheduleCardList.value[parentIndex].courseList[index]) return
// const item = JSON.parse(JSON.stringify(classScheduleCardList.value[parentIndex].courseList[index]))
// item.customDelete = false
// dragingTdInfo.value = item
// classScheduleCardList.value[parentIndex].courseList[index] = null
}
// 移动到 td 上触发
@@ -183,6 +183,7 @@ function tdDragleave(parentIndex: number, index: number, event: any) {
// td中拖拽课程结束
function tdDragend(parentIndex: number, index: number, e: any) {
if (currentTDinfo.value == null) return
const { parentIndex: currentParentIndex, index: currentIndex } = currentTDinfo.value
const currentTd = classScheduleCardList.value[currentParentIndex].courseList[currentIndex]
@@ -224,7 +225,7 @@ function remove(parentIndex: number, index: number) {
margin-bottom: 10px;
text-align: center;
cursor: grab;
text-align: center;
user-select: none; /* 防止拖拽时选中文字 */
transition: transform 0.2s, background-color 0.2s;