refactor(runtime-core): adjust attr fallthrough behavior
BREAKING CHANGE: attribute fallthrough behavior has been adjusted according to https://github.com/vuejs/rfcs/pull/154
This commit is contained in:
@@ -222,7 +222,8 @@ describe('Suspense', () => {
|
||||
|
||||
test('content update before suspense resolve', async () => {
|
||||
const Async = defineAsyncComponent({
|
||||
setup(props: { msg: string }) {
|
||||
props: { msg: String },
|
||||
setup(props: any) {
|
||||
return () => h('div', props.msg)
|
||||
}
|
||||
})
|
||||
@@ -569,7 +570,8 @@ describe('Suspense', () => {
|
||||
const calls: number[] = []
|
||||
|
||||
const AsyncChildWithSuspense = defineAsyncComponent({
|
||||
setup(props: { msg: string }) {
|
||||
props: { msg: String },
|
||||
setup(props: any) {
|
||||
onMounted(() => {
|
||||
calls.push(0)
|
||||
})
|
||||
@@ -583,7 +585,8 @@ describe('Suspense', () => {
|
||||
|
||||
const AsyncInsideNestedSuspense = defineAsyncComponent(
|
||||
{
|
||||
setup(props: { msg: string }) {
|
||||
props: { msg: String },
|
||||
setup(props: any) {
|
||||
onMounted(() => {
|
||||
calls.push(2)
|
||||
})
|
||||
@@ -594,7 +597,8 @@ describe('Suspense', () => {
|
||||
)
|
||||
|
||||
const AsyncChildParent = defineAsyncComponent({
|
||||
setup(props: { msg: string }) {
|
||||
props: { msg: String },
|
||||
setup(props: any) {
|
||||
onMounted(() => {
|
||||
calls.push(1)
|
||||
})
|
||||
@@ -604,7 +608,8 @@ describe('Suspense', () => {
|
||||
|
||||
const NestedAsyncChild = defineAsyncComponent(
|
||||
{
|
||||
setup(props: { msg: string }) {
|
||||
props: { msg: String },
|
||||
setup(props: any) {
|
||||
onMounted(() => {
|
||||
calls.push(3)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user