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