Skip to content

Commit

Permalink
feat: add deepClamp mode
Browse files Browse the repository at this point in the history
Signed-off-by: daeyeon ko <[email protected]>
  • Loading branch information
kkdy21 committed Jan 20, 2025
1 parent 6ca3bf2 commit 82aa9e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<p-collapsible-panel v-show="togglePosition === COLLAPSIBLE_LIST_TOGGLE_POSITION.contents || proxyUnfoldedIndices.includes(idx)"
:is-collapsed="!proxyUnfoldedIndices.includes(idx)"
:line-clamp="togglePosition === COLLAPSIBLE_LIST_TOGGLE_POSITION.contents ? lineClamp : -1"
:enable-deep-clamp="item.enableDeepClamp"
@update:isCollapsed="onUpdateCollapsed(idx, ...arguments)"
>
<slot v-bind="{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { COLLAPSIBLE_TOGGLE_TYPE } from '@/data-display/collapsible/collaps
export interface CollapsibleItem<T = string> {
name?: string;
title?: string;
enableDeepClamp?: boolean;
data: T;
}

Expand Down

0 comments on commit 82aa9e4

Please sign in to comment.