修改页面样式
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user