release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 89cd109587 - Show all commits

View File

@ -68,8 +68,8 @@ export default defineComponent({
},
},
setup(props) {
const _volume = ref<number>();
const volume = computed({
const _volume = ref<number|undefined>();
const volume = computed<number|undefined>({
get: () => {
if (_volume.value !== undefined) {
return _volume.value;
@ -77,9 +77,9 @@ export default defineComponent({
if (props.props.volumes.length > 0) {
return props.props.volumes[0].id;
}
return null;
return undefined;
},
set: (val: number) => (_volume.value = val),
set: (val: number|undefined) => (_volume.value = val),
});
return { volume };
},