From 16690ed1d19722278fe87fc12e2bd2067d64480f Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Sun, 18 Feb 2024 18:40:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):?= =?UTF-8?q?=20=E5=9B=BE=E5=BD=A2=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/ComponentConfig.ts | 12 ---- .../src/custom-component/component-list.ts | 8 +-- .../custom-component/de-graphical/Attr.vue | 55 ------------------- .../de-graphical/Component.vue | 12 +--- 4 files changed, 5 insertions(+), 82 deletions(-) diff --git a/core/core-frontend/src/custom-component/common/ComponentConfig.ts b/core/core-frontend/src/custom-component/common/ComponentConfig.ts index 36f712596b..ab15c2c185 100644 --- a/core/core-frontend/src/custom-component/common/ComponentConfig.ts +++ b/core/core-frontend/src/custom-component/common/ComponentConfig.ts @@ -70,18 +70,6 @@ export const CANVAS_MATERIAL = [ type: 'graphical', title: '矩形', icon: 'graphical-rect' - }, - { - value: 'triangle', - type: 'graphical', - title: '三角形', - icon: 'graphical-triangle' - }, - { - value: 'circular', - type: 'graphical', - title: '圆形', - icon: 'graphical-circular' } ] }, diff --git a/core/core-frontend/src/custom-component/component-list.ts b/core/core-frontend/src/custom-component/component-list.ts index f0e688753a..234f4c2305 100644 --- a/core/core-frontend/src/custom-component/component-list.ts +++ b/core/core-frontend/src/custom-component/component-list.ts @@ -195,10 +195,10 @@ const list = [ sizeX: 15, sizeY: 15, style: { - width: 300, - height: 200, - color: '#000000', - board: 1 + borderColor: '#000', + borderWidth: 1, + backgroundColor: '', + borderStyle: 'solid' } }, { diff --git a/core/core-frontend/src/custom-component/de-graphical/Attr.vue b/core/core-frontend/src/custom-component/de-graphical/Attr.vue index ff1c824d1c..8205da1dca 100644 --- a/core/core-frontend/src/custom-component/de-graphical/Attr.vue +++ b/core/core-frontend/src/custom-component/de-graphical/Attr.vue @@ -95,67 +95,12 @@ onBeforeUnmount(() => { diff --git a/core/core-frontend/src/custom-component/de-graphical/Component.vue b/core/core-frontend/src/custom-component/de-graphical/Component.vue index 956c32c325..2b998e8e91 100644 --- a/core/core-frontend/src/custom-component/de-graphical/Component.vue +++ b/core/core-frontend/src/custom-component/de-graphical/Component.vue @@ -1,15 +1,5 @@