+
@@ -27,6 +27,11 @@ export default {
sortTableData: []
}
},
+ mounted() {
+ this.$nextTick(() => {
+ this.tableHeight = window.innerHeight * 0.6
+ })
+ },
methods: {
// 行拖拽
rowDrop(className, targetName) {
diff --git a/src/views/category/sortDialog.vue b/src/views/category/sortDialog.vue
index d546b09..857a1bd 100644
--- a/src/views/category/sortDialog.vue
+++ b/src/views/category/sortDialog.vue
@@ -5,7 +5,7 @@
提示:请通过拖动鼠标来调整当前顺序
-
+
@@ -24,9 +24,15 @@ export default {
data() {
return {
sortVisible: false,
- sortTableData: []
+ sortTableData: [],
+ tableHeight: 0
}
},
+ mounted() {
+ this.$nextTick(() => {
+ this.tableHeight = window.innerHeight * 0.6
+ })
+ },
methods: {
// 行拖拽
rowDrop(className, targetName) {