Merge branch 'dev' of github.com:jetlinks/jetlinks-ui-vue into dev

This commit is contained in:
JiangQiming 2023-03-22 16:39:48 +08:00
commit bccff19042
1 changed files with 11 additions and 8 deletions

View File

@ -108,6 +108,9 @@ watchEffect(() => {
_value.value = props.value || {
expands: {}
}
if (props.onlyObject) {
_value.value.type = 'object'
}
})
watch(_value,
@ -116,14 +119,14 @@ watch(_value,
},
{ deep: true, immediate: true })
onMounted(() => {
if (props.onlyObject) {
_value.value = {
type: 'object',
expands: {}
}
}
})
// onMounted(() => {
// if (props.onlyObject) {
// _value.value = props.value || {
// type: 'object',
// expands: {}
// }
// }
// })
const unit = reactive({
unitOptions: [] as DefaultOptionType[],