fix(ui): bind attributes to PublishWidgetList
list (#2952)
This commit is contained in:
parent
dd6fab86ee
commit
dbf743afd9
|
@ -37,6 +37,7 @@ function isFirstItem(index: number) {
|
|||
<template v-if="isHydrated && currentUser">
|
||||
<PublishWidget
|
||||
v-for="(_, index) in threadItems" :key="`${draftKey}-${index}`"
|
||||
v-bind="$attrs"
|
||||
:draft-key="draftKey"
|
||||
:draft-item-index="index"
|
||||
:expanded="isFirstItem(index) ? expanded : true"
|
||||
|
|
|
@ -88,7 +88,7 @@ onReactivated(() => {
|
|||
<PublishWidgetList
|
||||
v-if="currentUser"
|
||||
ref="publishWidget"
|
||||
border="y base"
|
||||
class="border-y border-base"
|
||||
:draft-key="replyDraft!.key"
|
||||
:initial="replyDraft!.draft"
|
||||
@published="refreshContext()"
|
||||
|
|
Loading…
Reference in a new issue