chore: remove unused attrs
This commit is contained in:
@@ -92,7 +92,7 @@ export default {
|
|||||||
<svg
|
<svg
|
||||||
:width="elementWidth"
|
:width="elementWidth"
|
||||||
:height="elementHeight"
|
:height="elementHeight"
|
||||||
:viewBox="[viewBox.x, viewBox.y, viewBox.width, viewBox.height]"
|
:viewBox="[viewBox.x, viewBox.y, viewBox.width, viewBox.height].join(',')"
|
||||||
class="vue-flow__minimap"
|
class="vue-flow__minimap"
|
||||||
>
|
>
|
||||||
<MiniMapNode
|
<MiniMapNode
|
||||||
|
|||||||
@@ -2,17 +2,14 @@ import { FunctionalComponent } from 'vue'
|
|||||||
import Handle from '../Handle/Handle.vue'
|
import Handle from '../Handle/Handle.vue'
|
||||||
import { NodeProps, Position } from '~/types'
|
import { NodeProps, Position } from '~/types'
|
||||||
|
|
||||||
const DefaultNode: FunctionalComponent<NodeProps> = function (
|
const DefaultNode: FunctionalComponent<NodeProps> = function ({
|
||||||
{
|
sourcePosition = Position.Bottom,
|
||||||
sourcePosition = Position.Bottom,
|
targetPosition = Position.Top,
|
||||||
targetPosition = Position.Top,
|
label,
|
||||||
label,
|
connectable = false,
|
||||||
connectable = false,
|
isValidTargetPos,
|
||||||
isValidTargetPos,
|
isValidSourcePos,
|
||||||
isValidSourcePos,
|
}) {
|
||||||
}: NodeProps,
|
|
||||||
{ attrs },
|
|
||||||
) {
|
|
||||||
return [
|
return [
|
||||||
h(Handle, { type: 'target', position: targetPosition, isConnectable: connectable, isValidConnection: isValidTargetPos }),
|
h(Handle, { type: 'target', position: targetPosition, isConnectable: connectable, isValidConnection: isValidTargetPos }),
|
||||||
typeof label !== 'string' && label ? h(label) : h('span', {}, label),
|
typeof label !== 'string' && label ? h(label) : h('span', {}, label),
|
||||||
|
|||||||
@@ -2,10 +2,12 @@ import { FunctionalComponent } from 'vue'
|
|||||||
import Handle from '../Handle/Handle.vue'
|
import Handle from '../Handle/Handle.vue'
|
||||||
import { NodeProps, Position } from '~/types'
|
import { NodeProps, Position } from '~/types'
|
||||||
|
|
||||||
const InputNode: FunctionalComponent<NodeProps> = function (
|
const InputNode: FunctionalComponent<NodeProps> = function ({
|
||||||
{ sourcePosition = Position.Bottom, label, connectable = false, isValidSourcePos }: NodeProps,
|
sourcePosition = Position.Bottom,
|
||||||
{ attrs },
|
label,
|
||||||
) {
|
connectable = false,
|
||||||
|
isValidSourcePos,
|
||||||
|
}) {
|
||||||
return [
|
return [
|
||||||
typeof label !== 'string' && label ? h(label) : h('span', {}, label),
|
typeof label !== 'string' && label ? h(label) : h('span', {}, label),
|
||||||
h(Handle, { type: 'source', position: sourcePosition, isConnectable: connectable, isValidConnection: isValidSourcePos }),
|
h(Handle, { type: 'source', position: sourcePosition, isConnectable: connectable, isValidConnection: isValidSourcePos }),
|
||||||
|
|||||||
@@ -2,10 +2,12 @@ import { FunctionalComponent } from 'vue'
|
|||||||
import Handle from '../Handle/Handle.vue'
|
import Handle from '../Handle/Handle.vue'
|
||||||
import { NodeProps, Position } from '~/types'
|
import { NodeProps, Position } from '~/types'
|
||||||
|
|
||||||
const OutputNode: FunctionalComponent<NodeProps> = function (
|
const OutputNode: FunctionalComponent<NodeProps> = function ({
|
||||||
{ targetPosition = Position.Top, label, connectable = false, isValidTargetPos }: NodeProps,
|
targetPosition = Position.Top,
|
||||||
{ attrs },
|
label,
|
||||||
) {
|
connectable = false,
|
||||||
|
isValidTargetPos,
|
||||||
|
}) {
|
||||||
return [
|
return [
|
||||||
h(Handle, { type: 'target', position: targetPosition, isConnectable: connectable, isValidConnection: isValidTargetPos }),
|
h(Handle, { type: 'target', position: targetPosition, isConnectable: connectable, isValidConnection: isValidTargetPos }),
|
||||||
typeof label !== 'string' && label ? h(label) : h('span', {}, label),
|
typeof label !== 'string' && label ? h(label) : h('span', {}, label),
|
||||||
|
|||||||
Reference in New Issue
Block a user