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:
@@ -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([])
|
||||
|
||||
Reference in New Issue
Block a user