u
This commit is contained in:
1 parent
f572dce2f6
commit
e99a9fb274
356 files changed
+28877
-1055
No files matched your search
@@ -0,0 +1,34 @@
|
||||
<script setup lang="ts">
|
||||
// direction="vertical":上下分栏,此时用 defaultSize 控制高度
|
||||
// barOnHover 默认 true:分割线只在 hover / 聚焦 / 拖拽时显示
|
||||
import { G3Space, G3Splitter, G3SplitterPanel, G3Switch } from '@g3soft/ui'
|
||||
import { ref } from 'vue'
|
||||
|
||||
const barOnHover = ref(true)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<G3Space direction="vertical" :size="12" style="display: flex">
|
||||
<G3Switch v-model="barOnHover">分割线仅在 hover / 拖拽时显示</G3Switch>
|
||||
|
||||
<G3Splitter
|
||||
direction="vertical"
|
||||
:bar-on-hover="barOnHover"
|
||||
style="height: 240px; border: 1px solid #d9d9d9; border-radius: 8px"
|
||||
>
|
||||
<G3SplitterPanel :default-size="120">
|
||||
<div class="pane">上:120px</div>
|
||||
</G3SplitterPanel>
|
||||
<G3SplitterPanel>
|
||||
<div class="pane">下:自动填充</div>
|
||||
</G3SplitterPanel>
|
||||
</G3Splitter>
|
||||
</G3Space>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.pane {
|
||||
padding: 16px;
|
||||
font-size: 13px;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user