mirror of https://github.com/vuejs/core.git
fix(compat): return value of vue compat set() (#9377)
According to https://v2.vuejs.org/v2/api/#Vue-set, Returns: the set value.
This commit is contained in:
parent
8611874e09
commit
e3c2d699f6
|
@ -58,6 +58,7 @@ export interface LegacyPublicProperties {
|
||||||
export function installCompatInstanceProperties(map: PublicPropertiesMap) {
|
export function installCompatInstanceProperties(map: PublicPropertiesMap) {
|
||||||
const set = (target: any, key: any, val: any) => {
|
const set = (target: any, key: any, val: any) => {
|
||||||
target[key] = val
|
target[key] = val
|
||||||
|
return target[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
const del = (target: any, key: any) => {
|
const del = (target: any, key: any) => {
|
||||||
|
|
Loading…
Reference in New Issue