@@ -152,8 +152,19 @@ const height = ref<{
})
const showAnchor = ref
(false)
const anchorData = ref()
-const condition = ref('AND')
+const condition = computed({
+ set: (v) => {
+ set(props.nodeModel.properties, 'condition', v)
+ },
+ get: () => {
+ if (props.nodeModel.properties.condition) {
+ return props.nodeModel.properties.condition
+ }
+ set(props.nodeModel.properties, 'condition', 'AND')
+ return true
+ }
+})
const showNode = computed({
set: (v) => {
set(props.nodeModel.properties, 'showNode', v)