[Enhancement] [tab-pane] add a prop for el-tabs so that el-tab-pane can be sorted via dragging #16577
polarove
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature type:
Enhancement
Details
tab-pane
Description
为 el-tabs 组件添加一个prop,使得
el-tab-pane
组件可以通过拖拽进行排序,并持久化状态到sessionStorage
或localStorage
,或其他地方add a prop for
el-tabs
so thatel-tab-pane
can be sorted via dragging, and we can persist the state intosessionStorage
orlocalStorage
after sorting it.类型定义 ( type defination )
特性 ( Feature )
若
sort-via
字段为drag
,则 el-tab-pane 可以通过拖拽排序,否则不能进行拖拽排序将排序后的顺序持久化到
sessionStorage
或localStorage
中重新渲染组件后,保持渲染前的顺序
考虑将拖拽排序应用到类似组件上,如
el-segmented
if
sort-via
equas todrag
, thenel-tab-pane
can be sorted via user dragging, otherwise not.persist the state into
sessionStorage
orlocalStorage
.keep the sequence as it-is after re-render.
perhaps this can be implemented to similar components, like
el-segmented
.Additional comments
示例代码 ( Sample code )
1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions