From a4e55c3fb65266b1f5af650e43a7b97a031d93db Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 23 Feb 2022 15:15:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=AA=E8=A1=A8=E6=9D=BF=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E8=83=8C=E6=99=AF=E6=94=AF=E6=8C=81=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/DeDrag/index.vue | 8 +- .../components/Editor/ComponentWrapper.vue | 6 +- .../canvas/components/Editor/index.vue | 1 - .../canvas/custom-component/component-list.js | 6 +- frontend/src/lang/en.js | 3 +- frontend/src/lang/tw.js | 3 +- frontend/src/lang/zh.js | 3 +- .../src/views/background/BackgroundItem.vue | 14 +- frontend/src/views/background/index.vue | 168 ++++++++++++++++-- 9 files changed, 177 insertions(+), 35 deletions(-) diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue index 4d11ced659..307613ee69 100644 --- a/frontend/src/components/DeDrag/index.vue +++ b/frontend/src/components/DeDrag/index.vue @@ -30,7 +30,7 @@ ]" :style="mainSlotStyle" > - +
- {{ template.name }} -
@@ -59,25 +57,25 @@ export default { .testcase-template { display: inline-block; - margin: 10px 30px; - width: 150px; + margin: 10px 0px; + width: 90px; } .demonstration { display: block; - font-size: 14px; + font-size: 8px; color: gray; text-align: center; margin: 10px auto; - width: 150px; + width: 130px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .template-img { - height: 112px; - width: 200px; + height: 80px; + width: 130px; margin: 0 auto; box-shadow: 0 0 2px 0 rgba(31,31,31,0.15), 0 1px 2px 0 rgba(31,31,31,0.15); border: solid 2px #fff; diff --git a/frontend/src/views/background/index.vue b/frontend/src/views/background/index.vue index d91dcd9809..9807d56b51 100644 --- a/frontend/src/views/background/index.vue +++ b/frontend/src/views/background/index.vue @@ -1,24 +1,75 @@