Skip to content

Commit b73bd92

Browse files
committed
chore: update version
1 parent 6bed017 commit b73bd92

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

packages/notification/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@v-c/notification",
33
"type": "module",
4-
"version": "2.0.0-rc.3",
4+
"version": "2.0.0-rc.4",
55
"publishConfig": {
66
"access": "public"
77
},

packages/notification/src/NotificationList/Content.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ const Content = defineComponent<ContentProps>(
3939
prevHeight = height
4040

4141
const contentPrefixCls = `${listPrefixCls}-content`
42+
// Force height to a string so Vue's style patcher always re-applies the
43+
// unit. Passing a plain number (e.g. 0 → 216) was getting silently
44+
// skipped during patch — the CSS variables on the same vnode style
45+
// were applied, but `height: 216` was not patched onto the DOM until
46+
// a manual `inst.update()` was invoked.
4247
const contentStyle: ContentStyle = {
4348
...style,
44-
height,
49+
height: `${height}px`,
4550
'--top-notificiation-height': `${topNoticeHeight}px`,
4651
'--top-notificiation-width': `${topNoticeWidth}px`,
4752
}
@@ -60,6 +65,11 @@ const Content = defineComponent<ContentProps>(
6065
{
6166
name: 'NotificationListContent',
6267
inheritAttrs: false,
68+
// Declare runtime props so Vue tracks reactive reads inside the render
69+
// closure. Without this, `props.height` in `const { height } = props`
70+
// does not subscribe to updates, so the rendered `height: 0px` stays
71+
// stale even after position recomputes with measured node sizes.
72+
props: ['listPrefixCls', 'height', 'topNoticeHeight', 'topNoticeWidth', 'className', 'style'] as any,
6373
},
6474
)
6575

0 commit comments

Comments
 (0)