Former-commit-id: 43cda8a56782ad34aa47f18af671392015c96a97 Former-commit-id: a4f093cad7533863e8162398e231eb98c9f8c697 Former-commit-id: f574f1a366d1557c37f8b3a8cb1ba714dee6cff1 Former-commit-id: 5f5b5f3c4617aa115bcb2d738bfc76aeff787853
36 lines
941 B
Vue
36 lines
941 B
Vue
<template>
|
|
<d2-container>
|
|
<template slot="header">区域划分</template>
|
|
<div style="height: 400px; margin: -16px;">
|
|
<SplitPane :min-percent='20' :default-percent='30' split="vertical">
|
|
<template slot="paneL"><div style="margin: 10px;">左</div></template>
|
|
<template slot="paneR">
|
|
<SplitPane split="horizontal">
|
|
<template slot="paneL"><div style="margin: 10px;">右上</div></template>
|
|
<template slot="paneR"><div style="margin: 10px;">右下</div></template>
|
|
</SplitPane>
|
|
</template>
|
|
</SplitPane>
|
|
</div>
|
|
</d2-container>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
mounted () {
|
|
// 加载完成后显示提示
|
|
this.showInfo()
|
|
},
|
|
methods: {
|
|
// 显示提示
|
|
showInfo () {
|
|
this.$notify({
|
|
title: '提示',
|
|
message: '在横向或者纵向的分割线上拖拽调整分区大小'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|