Skip to content

Commit 292eaab

Browse files
Merge pull request xiaoluoboding#77 from CandyACE/main
fix: title type changed,render error
2 parents fde2983 + 9ac5953 commit 292eaab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/Toast.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ const pointerStartRef = ref<{ x: number; y: number } | null>(null)
212212
const coords = computed(() => props.position.split('-'))
213213
const y = computed(() => coords.value[0])
214214
const x = computed(() => coords.value[1])
215-
const isStringOfTitle = typeof props.toast.title !== 'string'
216-
const isStringOfDescription = typeof props.toast.description !== 'string'
215+
const isStringOfTitle = computed(() => typeof props.toast.title !== 'string')
216+
const isStringOfDescription = computed(() => typeof props.toast.description !== 'string')
217217
218218
const toastsHeightBefore = computed(() => {
219219
return props.heights.reduce((prev, curr, reducerIndex) => {

0 commit comments

Comments
 (0)