Skip to content

Commit

Permalink
feat: 节点操作中的正则支持拖拽排序
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Dec 24, 2023
1 parent 85bafad commit 12be7bb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.26",
"version": "2.14.27",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
5 changes: 0 additions & 5 deletions src/views/Sub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,6 @@ const handleDragEnd = (dataValue: any) => {
// overflow: hidden;
}
.drag-handler {
padding-left: 16px;
color: var(--lowest-text-color);
}
.chosensub {
box-shadow: 0 0 10px var(--primary-color);
border-radius: var(--item-card-radios);
Expand Down
15 changes: 15 additions & 0 deletions src/views/editor/components/Regex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
v-model="dragData"
:force-fallback="true"
:scroll="true"
v-bind="{
chosenClass: 'chosentag',
}"
>
<template #item="{ element, index }">
<nut-tag
Expand Down Expand Up @@ -227,6 +230,13 @@
user-select: none;
margin-bottom: 12px;
max-width: 100%;
cursor: pointer;
&:active {
cursor: grabbing;
cursor: -moz-grabbing;
cursor: -webkit-grabbing;
}
.tag-item {
max-width: 100%;
Expand All @@ -247,6 +257,11 @@
}
}
.chosentag {
box-shadow: 0 0 5px var(--primary-color);
overflow: hidden;
}
.input-wrapper {
display: flex;
align-items: center;
Expand Down

0 comments on commit 12be7bb

Please sign in to comment.