Skip to content

Commit ae81c67

Browse files
committed
upd: drag y demo
1 parent 4590a58 commit ae81c67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/packages/drag/demo.vue

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<nut-drag direction="x" :style="{ top: '200px', left: '8px' }">
1010
<div class="touch-dom">只能在X轴拖动</div>
1111
</nut-drag>
12+
<nut-drag direction="y" :style="{ top: '200px', right: '8px' }">
13+
<div class="touch-dom">只能在Y轴拖动</div>
14+
</nut-drag>
1215
<h4 :style="{ top: '250px' }">自动吸边</h4>
1316
<nut-drag direction="x" :attract="true" :style="{ top: '300px', left: '8px' }">
1417
<div class="touch-dom">拖动我</div>

0 commit comments

Comments
 (0)