mirror of
https://github.com/nextcloud/server.git
synced 2025-05-20 13:10:13 +00:00
24 lines
373 B
JavaScript
24 lines
373 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
const valueMixin = {
|
|
data() {
|
|
return {
|
|
newValue: [],
|
|
}
|
|
},
|
|
watch: {
|
|
modelValue() {
|
|
this.updateInternalValue()
|
|
},
|
|
},
|
|
methods: {
|
|
updateInternalValue() {
|
|
this.newValue = this.modelValue
|
|
},
|
|
},
|
|
}
|
|
|
|
export default valueMixin
|