This commit is contained in:
X1627315083
2024-07-18 13:19:43 +08:00
parent 246128f132
commit 0e46da8978
10 changed files with 240 additions and 136 deletions

View File

@@ -237,7 +237,7 @@ export default defineComponent({
var remain = t_width - width * num_x;
var gap_x = remain / (num_x + 1);
this.gap_x = gap_x;
this.gap_y = gap_x > 30 ? 30 : gap_x;
this.gap_y = gap_x > 30 ? 30 : gap_x < 30 ? 20 : gap_x;
this.num_x = num_x;
var poss = [];
for (var i = 0; i < num_x; i++) poss.push(0);