Browse Source

fix(compat): return value of vue compat set() (#9377)

According to https://v2.vuejs.org/v2/api/#Vue-set, Returns: the set value.
pull/9259/head
Vít Stanislav 2 years ago
committed by GitHub
parent
commit
e3c2d699f6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/runtime-core/src/compat/instance.ts

1
packages/runtime-core/src/compat/instance.ts

@ -58,6 +58,7 @@ export interface LegacyPublicProperties {
export function installCompatInstanceProperties(map: PublicPropertiesMap) {
const set = (target: any, key: any, val: any) => {
target[key] = val
return target[key]
}
const del = (target: any, key: any) => {

Loading…
Cancel
Save