{
- toggleChildren(),
- saveRequest &&
- onSelectPick({
- pickedType: isAlreadyInRoot(node.data.value.collectionID)
- ? 'my-collection'
- : 'my-folder',
- ...getCollectionIndexPathArgs(
- node.data.value.collectionID
- ),
- })
- }
- "
- @update-collection-order="
- updateCollectionOrder($event, {
- destinationCollectionIndex: node.data.value.collectionID,
- destinationCollectionParentIndex:
- node.data.value.parentCollectionID,
- })
- "
- @update-last-collection-order="
- updateCollectionOrder($event, {
- destinationCollectionIndex: null,
- destinationCollectionParentIndex:
- node.data.value.parentCollectionID,
- })
- "
- />
+ "
+ :save-request="saveRequest"
+ @add-request="addRequest"
+ @add-child-collection="addChildCollection"
+ @dragging="
+ (isDraging) =>
+ highlightChildren(
+ isDraging ? node.data.value.collectionID : null
+ )
+ "
+ @drag-event="dragEvent($event, node.data.value.collectionID)"
+ @drop-event="dropEvent($event, node.data.value.collectionID)"
+ @edit-child-collection="editChildCollection"
+ @edit-root-collection="editRootCollection"
+ @edit-collection-properties="editCollectionProperties"
+ @export-collection="exportCollection"
+ @remove-child-collection="removeChildCollection"
+ @remove-root-collection="removeRootCollection"
+ @select-pick="onSelectPick"
+ @toggle-children="
+ () => {
+ toggleChildren(),
+ saveRequest &&
+ onSelectPick({
+ pickedType: isAlreadyInRoot(
+ node.data.value.collectionID
+ )
+ ? 'my-collection'
+ : 'my-folder',
+ ...getCollectionIndexPathArgs(
+ node.data.value.collectionID
+ ),
+ })
+ }
+ "
+ @update-collection-order="
+ updateCollectionOrder($event, {
+ destinationCollectionIndex: node.data.value.collectionID,
+ destinationCollectionParentIndex:
+ node.data.value.parentCollectionID,
+ })
+ "
+ @update-last-collection-order="
+ updateCollectionOrder($event, {
+ destinationCollectionIndex: null,
+ destinationCollectionParentIndex:
+ node.data.value.parentCollectionID,
+ })
+ "
+ />
-
-
- {{ node.data.value }}
-
-