From 606ed22977e7586736ee24cc85c8ca4872ad93cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 14 Oct 2024 14:56:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=92=8C=E5=95=86=E5=93=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model-custom/components/index.scss | 93 +++++++++++++--- .../model-custom/components/index.ts | 1 + .../model-custom/components/index.vue | 102 ++++++++++++++---- .../model-custom/model-custom-content.vue | 2 +- src/config/const/goods-list.ts | 2 +- src/config/const/goods-tabs.ts | 2 +- 6 files changed, 167 insertions(+), 35 deletions(-) diff --git a/src/components/model-custom/components/index.scss b/src/components/model-custom/components/index.scss index 98646f3c..963ad115 100644 --- a/src/components/model-custom/components/index.scss +++ b/src/components/model-custom/components/index.scss @@ -53,8 +53,54 @@ .vdr-handle.vdr-handle-bl, .vdr-handle.vdr-handle-bm, .vdr-handle.vdr-handle-br { + width: 5px; + height: 5px; display: none !important; } + .vdr-handle-tl { + top: -3px; + left: -3px; + cursor: nw-resize; + } + .vdr-handle-tm { + top: -3px; + left: 50%; + margin-left: -3px; + cursor: n-resize; + } + .vdr-handle-tr { + top: -3px; + right: -3px; + cursor: ne-resize; + } + .vdr-handle-ml { + top: 50%; + margin-top: -3px; + left: -3px; + cursor: w-resize; + } + .vdr-handle-mr { + top: 50%; + margin-top: -3px; + right: -3px; + cursor: e-resize; + } + .vdr-handle-bl { + bottom: -3px; + left: -3px; + cursor: sw-resize; + } + .vdr-handle-bm { + bottom: -3px; + left: 50%; + margin-left: -3px; + cursor: s-resize; + } + .vdr-handle-br { + bottom: -3px; + right: -3px; + cursor: se-resize; + } } :deep(.plug-in-show-tabs.vdr-container) { .vdr-handle.vdr-handle-tl, @@ -85,14 +131,14 @@ .plug-in-border { cursor: pointer; position: relative; - box-shadow: 0px 0 0px 0.2rem $cr-main; + box-shadow: 0rem 0 0rem 0.1rem $cr-main; border: 0; } .plug-in-right { cursor: default; background: $cr-main; - position: absolute; - right: -5rem; + // position: absolute; + // right: -5rem; display: flex; flex-direction: column; gap: 2rem; @@ -147,10 +193,10 @@ } .drag-btn { position: absolute; - width: 7px; - height: 7px; + width: 0.7rem; + height: 0.7rem; background: #f0f0f0; - border: 1px solid #333; + border: 0.1rem solid #333; z-index: 1; } .drag-tl { @@ -237,10 +283,10 @@ position: absolute; background: rgba(41, 128, 185, 0.3); border: 1px dashed #34495e; - width: 0px; - height: 0px; - left: 0px; - top: 0px; + width: 0rem; + height: 0rem; + left: 0rem; + top: 0rem; z-index: 6; display: none; } @@ -249,6 +295,17 @@ cursor: pointer; color: $cr-main; } +.acticons { + position: absolute; + left: 50%; + margin-left: 23rem; + top: 50%; + display: flex; + flex-direction: column; + gap: 2rem; + z-index: 1; + transform: translate(-50%, -50%); +} .drawer-container { position: relative; @@ -262,18 +319,26 @@ overflow-y: auto; } .drawer-drag { + height: 4rem; cursor: move; } .drawer-drag:hover { background: #f2f8ff; - .iconfont.icon-close-b { - display: block !important; + .draggable-icon { + opacity: 1 !important; } } - .iconfont.icon-close-b { + .draggable-icon { + display: flex; + align-items: center; + gap: 1rem; right: 1rem; - top: 1.4rem; color: #8a8a8a; cursor: pointer; } +} + +.break{ + word-wrap: break-word; + word-break:break-all; } \ No newline at end of file diff --git a/src/components/model-custom/components/index.ts b/src/components/model-custom/components/index.ts index 4aa09660..b85b707b 100644 --- a/src/components/model-custom/components/index.ts +++ b/src/components/model-custom/components/index.ts @@ -14,6 +14,7 @@ interface diy_content extends diy{ com_width: number, com_height: number, name: string, + new_name: string, show_tabs: string, is_enable: string, src: string, diff --git a/src/components/model-custom/components/index.vue b/src/components/model-custom/components/index.vue index bd3a2bd5..34e6d865 100644 --- a/src/components/model-custom/components/index.vue +++ b/src/components/model-custom/components/index.vue @@ -24,12 +24,22 @@