chore(docs): update example styles (#1469)

* chore(docs): update basic example styles

* chore(docs): update confirm delete example styles

* chore(docs): update dnd example styles

* chore(docs): update hidden example

* chore(docs): update update node example

* chore(docs): update node toolbar example styles

* chore(docs): update transition example styles

* chore(docs): cleanup basic example els

* chore(docs): cleanup examples
This commit is contained in:
Braks
2024-06-10 23:51:47 +02:00
committed by braks
parent 5dc8711a6b
commit d71de0a92d
34 changed files with 528 additions and 244 deletions
+18 -3
View File
@@ -7,15 +7,30 @@ import CustomNode from './CustomNode.vue'
const { addEdges } = useVueFlow()
const nodes = ref([
{ id: '0', type: 'custominput', position: { x: 0, y: 150 }, isValidTargetPos: (connection) => connection.target === 'B' },
{
id: '0',
type: 'custominput',
position: { x: 0, y: 150 },
isValidTargetPos: (connection) => connection.target === 'B',
},
{
id: 'A',
type: 'custom',
position: { x: 250, y: 0 },
isValidSourcePos: () => false,
},
{ id: 'B', type: 'custom', position: { x: 250, y: 150 }, isValidSourcePos: (connection) => connection.target === 'B' },
{ id: 'C', type: 'custom', position: { x: 250, y: 300 }, isValidSourcePos: (connection) => connection.target === 'B' },
{
id: 'B',
type: 'custom',
position: { x: 250, y: 150 },
isValidSourcePos: (connection) => connection.target === 'B',
},
{
id: 'C',
type: 'custom',
position: { x: 250, y: 300 },
isValidSourcePos: (connection) => connection.target === 'B',
},
])
const edges = ref([])