ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

希望可以添加Split 面板分割组件

Open David-TechNomad opened this issue 1 year ago • 1 comments
trafficstars

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

将一片区域,分割为可以拖拽调整宽度或高度的两部分区域。

What does the proposed API look like?

<template>
  <div class="split-v-model">
    <a-split v-model="split1">
      <template #left>
         <div class="demo-split-pane">左面板</div>
      </template>
      <template #right>
         <div class="demo-split-pane">右面板</div>
      </template>
    </a-split>
  </div>
</template>

<script setup lang="jsx">
import { ref } from 'vue'
import { Split as TinySplit } from '@opentiny/vue'

const split1 = ref(0.5)
</script>

<style scoped>
.split-v-model {
  height: 200px;
  border: 1px solid #d9d9d9;
}

.demo-split-pane {
   padding: 10px;
}
</style>

David-TechNomad avatar Jul 17 '24 09:07 David-TechNomad

用第三方的吧

andyesfly avatar Jul 24 '24 06:07 andyesfly

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Sep 23 '24 02:09 github-actions[bot]

https://antoniandre.github.io/splitpanes/

andyesfly avatar Sep 30 '24 08:09 andyesfly

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Oct 01 '25 01:10 github-actions[bot]