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:
Evan You
2020-04-02 21:51:01 -04:00
parent 2103a485d7
commit 21bcdec943
5 changed files with 144 additions and 27 deletions

View File

@@ -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)
})