From 09ea265b73b9320bb1fb91ed1027d1075fece10f Mon Sep 17 00:00:00 2001 From: ChangChi Date: Wed, 18 Jan 2023 16:15:18 +0800 Subject: [PATCH] feat: new design rule --- .../editor/dialogs/SettingDialog.vue | 29 ++++++------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/src/components/editor/dialogs/SettingDialog.vue b/src/components/editor/dialogs/SettingDialog.vue index 478a744..1e7a532 100644 --- a/src/components/editor/dialogs/SettingDialog.vue +++ b/src/components/editor/dialogs/SettingDialog.vue @@ -33,15 +33,12 @@

- gap size: - - + + - - um -

@@ -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() },