mirror of
https://github.com/koush/scrypted.git
synced 2026-02-18 12:32:37 +00:00
17 lines
317 B
Vue
17 lines
317 B
Vue
<script>
|
|
export default {
|
|
methods: {
|
|
createLazyValue() {
|
|
return Object.entries(this.value).map(([key, value]) => ({
|
|
key,
|
|
value
|
|
}));
|
|
},
|
|
createInputValue() {
|
|
var ret = {};
|
|
this.lazyValue.forEach(e => (ret[e.key] = e.value));
|
|
return ret;
|
|
}
|
|
}
|
|
};
|
|
</script> |