Skip to content

Commit 650d4a5

Browse files
docs: fix docs style (#186)
1 parent cd9fbe8 commit 650d4a5

File tree

10 files changed

+23
-19
lines changed

10 files changed

+23
-19
lines changed

src/__docs__/handle/demo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div
1212
v-for="(item, index) in list"
1313
:key="item.id"
14-
class="h-50px bg-gray-500/5 rounded flex items-center justify-between px-4"
14+
class="h-50px bg-gray-500/5 px-2 rounded flex items-center justify-between"
1515
>
1616
<IconSort class="handle cursor-move"></IconSort>
1717
<input type="text" v-model="item.name" />

src/__docs__/handle/directive.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<div class="flex justify-between">
55
<section
66
v-draggable="[list, { animation: 150, handle: '.handle' }]"
7-
class="flex flex-col gap-2 p-4 w-300px bg-gray-500/5 rounded"
7+
class="flex flex-col p-4 gap-2 w-300px bg-gray-500/5 rounded"
88
>
99
<div
1010
v-for="(item, index) in list"
1111
:key="item.id"
12-
class="h-50px bg-gray-500/5 rounded flex items-center justify-between px-4"
12+
class="h-50px bg-gray-500/5 rounded flex p-4 items-center justify-between px-2"
1313
>
1414
<IconSort class="handle cursor-move"></IconSort>
1515
<input type="text" v-model="item.name" />

src/__docs__/handle/function.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<div class="flex justify-between">
55
<section
66
ref="el"
7-
class="flex flex-col gap-2 p-4 w-300px bg-gray-500/5 rounded"
7+
class="flex flex-col p-4 gap-2 w-300px bg-gray-500/5 rounded"
88
>
99
<div
1010
v-for="(item, index) in list"
1111
:key="item.id"
12-
class="h-50px bg-gray-500/5 rounded flex items-center justify-between px-4"
12+
class="h-50px bg-gray-500/5 rounded flex items-center justify-between px-2"
1313
>
1414
<IconSort class="handle cursor-move"></IconSort>
1515
<input type="text" v-model="item.name" />

src/__docs__/table-column/index.en-US.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ We specify the thead of the table as the [target container](../target-container/
99
## Component Usage
1010

1111
<demo src="./demo.vue"
12-
title="使用组件完成表格列排序"
13-
desc="拖拽表头进行列排序">
12+
title="Using component to sort table columns"
13+
desc="Drag the header to sort columns">
1414
</demo>
1515

1616
## Function Usage
17+
1718
<demo src="./function.vue"
18-
title="使用函数完成表格列排序"
19-
desc="拖拽表头进行列排序">
19+
title="Using function to sort table columns"
20+
desc="Drag the header to sort columns">
2021
</demo>
2122

22-
2323
## Directive Usage
24+
2425
<demo src="./directive.vue"
25-
title="使用指令完成表格列排序"
26-
desc="拖拽表头进行列排序">
26+
title="Using directive to sort table columns"
27+
desc="Drag the header to sort columns">
2728
</demo>

src/__docs__/transition/demo.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="flex justify-between">
55
<VueDraggable
66
v-model="list"
7-
class="flex flex-col gap-2 p-4 w-300px bg-gray-500/5 rounded"
7+
class="flex flex-col gap-2 w-300px bg-gray-500/5 rounded"
88
target=".sort-target"
99
:scroll="true"
1010
>
@@ -81,4 +81,7 @@ function remove(index: number) {
8181
.fade-leave-active {
8282
position: absolute;
8383
}
84+
.sort-target {
85+
padding: 0 1rem;
86+
}
8487
</style>

src/__docs__/transition/directive.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
type="transition"
88
tag="ul"
99
name="fade"
10-
class="flex flex-col gap-2 p-4 w-300px bg-gray-500/5 rounded"
10+
class="flex flex-col p-4 w-300px bg-gray-500/5 rounded"
1111
>
1212
<li
1313
v-for="(item, index) in list"

src/__docs__/transition/function.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
type="transition"
88
tag="ul"
99
name="fade"
10-
class="flex flex-col gap-2 p-4 w-300px bg-gray-500/5 rounded"
10+
class="flex flex-col p-4 w-300px bg-gray-500/5 rounded"
1111
>
1212
<li
1313
v-for="(item, index) in list"
1414
:key="item.id"
15-
class="h-50px bg-gray-500/5 rounded flex items-center justify-between px-2"
15+
class="h-50px bg-gray-500/5 rounded flex items-center justify-between px-2 m-0"
1616
>
1717
<IconSort class="handle cursor-move"></IconSort>
1818
<input type="text" v-model="item.name" />

src/__docs__/transitions/demo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
v-model="list"
66
:animation="150"
77
target=".sort-target"
8-
class="flex flex-col gap-2 p-4 w-300px bg-gray-500/5 rounded"
8+
class="flex flex-col gap-2 pr-4 w-300px bg-gray-500/5 rounded"
99
@start="onStart"
1010
@end="onEnd"
1111
>

src/__docs__/transitions/directive.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="flex justify-between">
44
<TransitionGroup
55
v-draggable="[list, { animation: 150, onStart, onEnd }]"
6-
class="flex flex-col gap-2 p-4 w-300px bg-gray-500/5 rounded"
6+
class="flex flex-col p-4 w-300px bg-gray-500/5 rounded"
77
type="transition"
88
tag="ul"
99
:name="!drag ? 'fade' : undefined"

src/__docs__/transitions/function.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<button @click="sort">还原</button>
33
<div class="flex justify-between">
44
<TransitionGroup
5-
class="flex flex-col gap-2 p-4 w-300px bg-gray-500/5 rounded"
5+
class="flex flex-col p-4 w-300px bg-gray-500/5 rounded"
66
ref="el"
77
type="transition"
88
tag="ul"

0 commit comments

Comments
 (0)