feat(ui): add SplitPane calcBasedParent prop

This commit is contained in:
songlh
2024-09-09 10:44:58 +08:00
parent 478e9519e8
commit ef8ddeebe7
14 changed files with 413 additions and 192 deletions

View File

@@ -13,6 +13,7 @@
:paneLengthPixel.sync="paneLengthPixel"
appName="cmdb-ci-types"
:triggerLength="18"
calcBasedParent
>
<template #one>
<div class="ci-types-left">

View File

@@ -1,5 +1,5 @@
<template>
<TwoColumnLayout appName="cmdb-adc">
<TwoColumnLayout appName="cmdb-adc" calcBasedParent>
<template #one>
<div class="cmdb-adc-group" v-for="group in ci_types_list" :key="group.id">
<p>

View File

@@ -7,6 +7,7 @@
:paneLengthPixel.sync="paneLengthPixel"
:appName="`cmdb-relation-views-${viewId}`"
:triggerLength="18"
calcBasedParent
>
<template #one>
<div class="relation-views-left" :style="{ height: `${windowHeight - 64}px` }">

View File

@@ -15,6 +15,7 @@
:paneLengthPixel.sync="paneLengthPixel"
appName="cmdb-topo-views"
:triggerLength="18"
calcBasedParent
>
<template #one>
<a-input

View File

@@ -10,6 +10,7 @@
:paneLengthPixel.sync="paneLengthPixel"
appName="cmdb-tree-views"
:triggerLength="18"
calcBasedParent
>
<template #one>
<div class="tree-views-left" :style="{ height: `${windowHeight - 64}px` }">