fix: remove vue from dev-deps

* fix default prop types
This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent a686d62528
commit 9b08271696
11 changed files with 11 additions and 173 deletions
-2
View File
@@ -43,7 +43,6 @@
"devDependencies": {
"@rollup/plugin-replace": "^2.4.2",
"@vitejs/plugin-vue": "^2.2.0",
"@vue/compiler-sfc": "3.2.22",
"autoprefixer": "^10.3.7",
"np": "^7.5.0",
"postcss": "^8.4.8",
@@ -53,7 +52,6 @@
"vite": "2.5.x",
"vite-plugin-vue-type-imports": "^0.1.3",
"vite-svg-loader": "^2.2.0",
"vue": "3.2.21",
"vue-tsc": "^0.29.5"
},
"peerDependencies": {
+1 -1
View File
@@ -9,7 +9,7 @@ const props = withDefaults(defineProps<EdgeProps>(), {
sourcePosition: 'bottom' as Position,
targetPosition: 'top' as Position,
labelStyle: () => ({}),
label: () => '',
label: '',
labelShowBg: true,
labelBgStyle: () => ({}),
})
@@ -9,7 +9,7 @@ const props = withDefaults(defineProps<EdgeProps>(), {
sourcePosition: 'bottom' as Position,
targetPosition: 'top' as Position,
labelStyle: () => ({}),
label: () => '',
label: '',
labelShowBg: true,
labelBgStyle: () => ({}),
})
@@ -8,7 +8,7 @@ const props = withDefaults(defineProps<SmoothStepEdgeProps>(), {
selected: false,
sourcePosition: 'bottom' as Position,
targetPosition: 'top' as Position,
label: () => '',
label: '',
labelStyle: () => ({}),
labelShowBg: true,
labelBgStyle: () => ({}),
+1 -1
View File
@@ -7,7 +7,7 @@ const props = withDefaults(defineProps<EdgeProps>(), {
selected: false,
sourcePosition: 'bottom' as Position,
targetPosition: 'top' as Position,
label: () => '',
label: '',
labelStyle: () => ({}),
labelShowBg: true,
labelBgStyle: () => ({}),
@@ -7,7 +7,7 @@ const props = withDefaults(defineProps<EdgeProps>(), {
selected: false,
sourcePosition: 'bottom' as Position,
targetPosition: 'top' as Position,
label: () => '',
label: '',
labelStyle: () => ({}),
labelShowBg: true,
labelBgStyle: () => ({}),
+1 -1
View File
@@ -23,7 +23,7 @@ const props = withDefaults(defineProps<FlowProps>(), {
applyDefault: undefined,
fitViewOnInit: undefined,
connectOnClick: undefined,
connectionLineStyle: () => null,
connectionLineStyle: null,
})
const emit = defineEmits([...Object.keys(createHooks()), 'update:modelValue', 'update:edges', 'update:nodes'])