File tree Expand file tree Collapse file tree 2 files changed +48
-3
lines changed
Expand file tree Collapse file tree 2 files changed +48
-3
lines changed Original file line number Diff line number Diff line change 1+ <!--
2+ - SPDX-FileCopyrightText: 2025 Christian Hartmann <[email protected] > 3+ - SPDX-License-Identifier: AGPL-3.0-or-later
4+ -->
5+
6+ <template >
7+ <span
8+ :aria-hidden =" !title"
9+ :aria-label =" title"
10+ class =" material-design-icon drag-indicator-icon"
11+ role =" img"
12+ v-bind =" $attrs"
13+ @click =" $emit('click', $event)" >
14+ <svg
15+ :fill =" fillColor"
16+ class =" material-design-icon__svg"
17+ :height =" size"
18+ :width =" size"
19+ viewBox =" 0 0 16 16" >
20+ <path
21+ d =" M360-160q-33 0-56.5-23.5T280-240q0-33 23.5-56.5T360-320q33 0 56.5 23.5T440-240q0 33-23.5 56.5T360-160Zm240 0q-33 0-56.5-23.5T520-240q0-33 23.5-56.5T600-320q33 0 56.5 23.5T680-240q0 33-23.5 56.5T600-160ZM360-400q-33 0-56.5-23.5T280-480q0-33 23.5-56.5T360-560q33 0 56.5 23.5T440-480q0 33-23.5 56.5T360-400Zm240 0q-33 0-56.5-23.5T520-480q0-33 23.5-56.5T600-560q33 0 56.5 23.5T680-480q0 33-23.5 56.5T600-400ZM360-640q-33 0-56.5-23.5T280-720q0-33 23.5-56.5T360-800q33 0 56.5 23.5T440-720q0 33-23.5 56.5T360-640Zm240 0q-33 0-56.5-23.5T520-720q0-33 23.5-56.5T600-800q33 0 56.5 23.5T680-720q0 33-23.5 56.5T600-640Z" />
22+ <title v-if =" title" >{{ title }}</title >
23+ </svg >
24+ </span >
25+ </template >
26+
27+ <script >
28+ export default {
29+ name: ' IconDragIndicator' ,
30+ props: {
31+ title: {
32+ type: String ,
33+ default: ' ' ,
34+ },
35+ fillColor: {
36+ type: String ,
37+ default: ' currentColor' ,
38+ },
39+ size: {
40+ type: Number ,
41+ default: 20 ,
42+ },
43+ },
44+ }
45+ </script >
Original file line number Diff line number Diff line change 2929 <IconArrowUp :size =" 20" />
3030 </template >
3131 </NcButton >
32- <IconDragHorizontalVariant :size =" 20" />
32+ <IconDragIndicator :size =" 20" />
3333 <NcButton
3434 ref =" buttonDown"
3535 :aria-label =" t('forms', 'Move question down')"
@@ -166,8 +166,8 @@ import IconArrowUp from 'vue-material-design-icons/ArrowUp.vue'
166166import IconAsterisk from ' vue-material-design-icons/Asterisk.vue'
167167import IconContentCopy from ' vue-material-design-icons/ContentCopy.vue'
168168import IconDelete from ' vue-material-design-icons/Delete.vue'
169- import IconDragHorizontalVariant from ' vue-material-design-icons/DragHorizontalVariant.vue'
170169import IconDotsHorizontal from ' vue-material-design-icons/DotsHorizontal.vue'
170+ import IconDragIndicator from ' ../Icons/IconDragIndicator.vue'
171171import IconIdentifier from ' vue-material-design-icons/Identifier.vue'
172172import IconOverlay from ' ../Icons/IconOverlay.vue'
173173
@@ -181,8 +181,8 @@ export default {
181181 IconAsterisk,
182182 IconContentCopy,
183183 IconDelete,
184- IconDragHorizontalVariant,
185184 IconDotsHorizontal,
185+ IconDragIndicator,
186186 IconIdentifier,
187187 IconOverlay,
188188 NcActions,
You can’t perform that action at this time.
0 commit comments