update: Color prop optional in MarkerDefinitions

This commit is contained in:
Braks
2021-08-17 22:14:02 +02:00
parent ece1fecbf8
commit d6a8ed6be5
2 changed files with 9 additions and 1 deletions
@@ -10,7 +10,8 @@ export default defineComponent({
props: {
color: {
type: String as PropType<MarkerDefinitionsProps['color']>,
required: true
required: false,
default: ''
}
},
setup(props) {
+7
View File
@@ -0,0 +1,7 @@
import { InjectionKey } from 'vue';
import { RevueFlowStore } from '../types';
import { RevueFlowHooks } from '../hooks/RevueFlowHooks';
export const StoreKey: InjectionKey<RevueFlowStore> = Symbol('store');
export const HooksKey: InjectionKey<RevueFlowHooks> = Symbol('hooks');
export const NodeIdContextKey: InjectionKey<string> = Symbol('NodeIdContext');