mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
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:
@@ -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, ... }
|
||||
}
|
||||
|
||||
@@ -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, ... }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user