【发布时间】:2019-11-20 18:38:17
【问题描述】:
我在 reorderMode="Drag" 中使用 ReorderHandle 时遇到错误,RadListView 组件中的 nativescript-ui-listview/vue like
[Vue warn]: Unknown custom element: <ReorderHandle> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
如何根据这个doc link在Nativescript-vue使用ReorderHandle?
对此功能的任何帮助将不胜感激。
这是我的代码
main.js
import Vue from 'nativescript-vue'
import RadListView from 'nativescript-ui-listview/vue';
Vue.use(RadListView);
我的 Vue 组件
<RadListView ref="listView" for="(manager, index) in managers" :itemReorder="true" reorderMode="Drag">
<v-template>
<Label>{{ manager.name }}</Label>
<ReorderHandle col="1" verticalAlignment="center">
<Image android:src="res://reorder_icon" ios:src="res://reorder-icon" stretch="none" verticalAlignment="stretch" margin="16" />
</ReorderHandle>
</v-template>
</RadListView>
【问题讨论】:
标签: nativescript-vue radlistview nativescript-ui-listview