-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
163 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,37 @@ | ||
<markdown> | ||
# Multiple Panels | ||
</markdown> | ||
<script lang="ts"> | ||
import { defineComponent } from 'vue' | ||
export default defineComponent({ | ||
name: 'SplitMultiPanel' | ||
}) | ||
</script> | ||
|
||
<template> | ||
<n-split direction="horizontal" style="height: 200px"> | ||
<n-split style="height: 200px" :default-size="[0.2, 0.4, 0.4]"> | ||
<template #1> | ||
Pane 1 | ||
<div class="split-panel"> | ||
Panel 1 | ||
</div> | ||
</template> | ||
<template #2> | ||
Pane 2 | ||
<div class="split-panel"> | ||
Panel 2 | ||
</div> | ||
</template> | ||
<template #3> | ||
Pane 3 | ||
<div class="split-panel"> | ||
Panel 3 | ||
</div> | ||
</template> | ||
</n-split> | ||
</template> | ||
|
||
<style scoped> | ||
.split-panel { | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: rgba(128, 128, 128, 0.3); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/split/demos/zhCN/mutil-number-default-size-debug.demo.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<markdown> | ||
# 多个 number 类型 default-size 调试 | ||
</markdown> | ||
|
||
<template> | ||
<n-split | ||
direction="horizontal" | ||
style="height: 200px" | ||
:default-size="[0.3, 0.2, 0.5]" | ||
> | ||
<template #1> | ||
Pane 1 | ||
</template> | ||
<template #2> | ||
Pane 2 | ||
</template> | ||
<template #3> | ||
Pane 3 | ||
</template> | ||
</n-split> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<markdown> | ||
# 多个 number 类型 size 调试 | ||
</markdown> | ||
|
||
<template> | ||
<n-split direction="horizontal" style="height: 200px" :size="[0.3, 0.2, 0.5]"> | ||
<template #1> | ||
Pane 1 | ||
</template> | ||
<template #2> | ||
Pane 2 | ||
</template> | ||
<template #3> | ||
Pane 3 | ||
</template> | ||
</n-split> | ||
</template> |
23 changes: 23 additions & 0 deletions
23
src/split/demos/zhCN/mutil-number-size-threshold-debug.demo.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<markdown> | ||
# 多个 number 类型 size threshold 调试 | ||
</markdown> | ||
|
||
<template> | ||
<n-split | ||
direction="horizontal" | ||
style="height: 200px" | ||
:size="[0.3, 0.2, 0.5]" | ||
:min="[0.1, 0.2, 0.3]" | ||
:max="[0.4, 0.5, 0.9]" | ||
> | ||
<template #1> | ||
Pane 1 | ||
</template> | ||
<template #2> | ||
Pane 2 | ||
</template> | ||
<template #3> | ||
Pane 3 | ||
</template> | ||
</n-split> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<markdown> | ||
# 多个 px 类型 default-size 调试 | ||
</markdown> | ||
|
||
<template> | ||
<n-split | ||
direction="horizontal" | ||
style="height: 200px" | ||
:default-size="['200px', '200px', '200px']" | ||
> | ||
<template #1> | ||
Pane 1 | ||
</template> | ||
<template #2> | ||
Pane 2 | ||
</template> | ||
<template #3> | ||
Pane 3 | ||
</template> | ||
</n-split> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<markdown> | ||
# 多个 px 类型 size 调试 | ||
</markdown> | ||
|
||
<template> | ||
<n-split | ||
direction="horizontal" | ||
style="height: 200px" | ||
:size="['200px', '200px', '200px']" | ||
> | ||
<template #1> | ||
Pane 1 | ||
</template> | ||
<template #2> | ||
Pane 2 | ||
</template> | ||
<template #3> | ||
Pane 3 | ||
</template> | ||
</n-split> | ||
</template> |
23 changes: 23 additions & 0 deletions
23
src/split/demos/zhCN/mutil-px-size-threshold-debug.demo.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<markdown> | ||
# 多个 px 类型 size threshold 调试 | ||
</markdown> | ||
|
||
<template> | ||
<n-split | ||
direction="horizontal" | ||
style="height: 200px" | ||
:size="['200px', '200px', '200px']" | ||
:min="['100px', '100px', '100px']" | ||
:max="['400px', '400px', '400px']" | ||
> | ||
<template #1> | ||
Pane 1 | ||
</template> | ||
<template #2> | ||
Pane 2 | ||
</template> | ||
<template #3> | ||
Pane 3 | ||
</template> | ||
</n-split> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<markdown> | ||
# 单 number 类型 default size 调试 ✔ | ||
# 单 number 类型 default-size 调试 | ||
</markdown> | ||
|
||
<template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<markdown> | ||
# 单 number 类型 size 调试 ✔ | ||
# 单 number 类型 size 调试 | ||
</markdown> | ||
|
||
<template> | ||
|
2 changes: 1 addition & 1 deletion
2
src/split/demos/zhCN/single-number-size-threshold-debug.demo.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<markdown> | ||
# 单 px 类型 default size 调试 | ||
# 单 px 类型 default-size 调试 | ||
</markdown> | ||
|
||
<template> | ||
|