From 09ea265b73b9320bb1fb91ed1027d1075fece10f Mon Sep 17 00:00:00 2001
From: ChangChi
- gap size: - -
@@ -68,8 +65,9 @@ export default { }, data () { return { + key: 0, keyInput: 0, - gapSize: 5, + substrate: 'glass', invalidInput: false } }, @@ -91,22 +89,13 @@ export default { this.$el.showModal() }, - getCornerSize(gapSize) { - const cornerSizeTable = { - 5: this.gridUnit.current / 100, - 30: this.gridUnit.current / 200 - } - return cornerSizeTable[gapSize] - }, - onConfirm () { - const cornerSize = this.getCornerSize(this.gapSize) this.newProject({ height: this.chip.height, width: this.chip.width, gridUnit: this.gridUnit.current, - cornerSize: cornerSize, - gapSize: this.gapSize / 10 + cornerSize: 5, + gapSize: 0.5 }) this.closeDialog() },