docs(reorder-group): fix vue usage of reorder-group (#23130)

resolves https://github.com/ionic-team/ionic-docs/issues/1804
This commit is contained in:
William Martin
2021-04-01 16:19:02 -04:00
committed by GitHub
parent 28c52fd4e3
commit f4eb4b34d6
2 changed files with 4 additions and 4 deletions

View File

@@ -629,7 +629,7 @@ export default defineComponent({
const doReorder = (event: CustomEvent) => {
// Before complete is called with the items they will remain in the
// order before the drag
console.log('Before complete', this.items);
console.log('Before complete', items.value);
// Finish the reorder and position the item in the DOM based on
// where the gesture ended. Update the items variable to the
@@ -637,7 +637,7 @@ export default defineComponent({
items.value = event.detail.complete(items.value);
// After complete is called the items will be in the new order
console.log('After complete', this.items);
console.log('After complete', items.value);
}
return { doReorder, items, ... }
}

View File

@@ -121,7 +121,7 @@ export default defineComponent({
const doReorder = (event: CustomEvent) => {
// Before complete is called with the items they will remain in the
// order before the drag
console.log('Before complete', this.items);
console.log('Before complete', items.value);
// Finish the reorder and position the item in the DOM based on
// where the gesture ended. Update the items variable to the
@@ -129,7 +129,7 @@ export default defineComponent({
items.value = event.detail.complete(items.value);
// After complete is called the items will be in the new order
console.log('After complete', this.items);
console.log('After complete', items.value);
}
return { doReorder, items, ... }
}