Skip to content

Commit 28b6237

Browse files
liweijie0812github-actions[bot]
authored andcommitted
feat(tag-input): show move cursor when draggable (#3594)
* feat(tag-input): show move cursor when draggable * chore: update snapshot --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent bb3ac23 commit 28b6237

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/tag-input/tag-input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default defineComponent({
7979
[`${COMPONENT_NAME.value}--break-line`]: excessTagsDisplayType.value === 'break-line',
8080
[`${classPrefix.value}-is-empty`]: isEmpty,
8181
[`${classPrefix.value}-tag-input--with-tag`]: !isEmpty,
82+
[`${classPrefix.value}-tag-input--drag-sort`]: props.dragSort && !disabled.value && !readonly.value,
8283
},
8384
];
8485
});

test/snap/__snapshots__/csr.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106118,7 +106118,7 @@ exports[`csr snapshot test > csr test ./src/tag-input/_example/draggable.vue 1`]
106118106118
class="t-space-item"
106119106119
>
106120106120
<div
106121-
class="t-input__wrap t-tag-input t-tag-input--break-line t-tag-input--with-tag"
106121+
class="t-input__wrap t-tag-input t-tag-input--break-line t-tag-input--with-tag t-tag-input--drag-sort"
106122106122
>
106123106123
<div
106124106124
class="t-input t-input--prefix"
@@ -106216,7 +106216,7 @@ exports[`csr snapshot test > csr test ./src/tag-input/_example/draggable.vue 1`]
106216106216
class="t-space-item"
106217106217
>
106218106218
<div
106219-
class="t-input__wrap t-tag-input t-tag-input--break-line t-tag-input--with-tag"
106219+
class="t-input__wrap t-tag-input t-tag-input--break-line t-tag-input--with-tag t-tag-input--drag-sort"
106220106220
>
106221106221
<div
106222106222
class="t-input t-input--prefix"

0 commit comments

Comments
 (0)