profile
viewpoint

Ask questions[Android] The cell/cell-slot in the list/recycle-list component of weex cannot be used with vue :is dynamic component usage, not in the list component is normal

<!-- Thanks for using Weex. Github Issue is only used for bur report and please follow the template to report the bug. A good bug report should include the following information: -->

<!-- Requirements: please go through this checklist before opening a new issue

    • Review the documentation: https://weex.apache.org/index.html
    • Search for existing issues: https://github.com/apache/incubator-weex/issues
    • Use the latest Weex release: https://github.com/apache/incubator-weex/releases -->

The cell/cell-slot in the list/recycle-list component of weex cannot be used with vue :is dynamic component usage

The cell/cell-slot in the list/recycle-list component of weex cannot be used with vue :is dynamic component usage, while not in the list component is normal

Environment

android

demo

<template>
    <list >
        <cell  v-for="(rowdata, i) in handleDataSet" :key="i"  >
            <div class="panel" >
                <text class="text">test{{rowdata.rowData.name}}</text>
            <lm-list-row-test
                            :list_data="rowdata">
            </lm-list-row-test>
                <component
                :is="lm-list-row-test"
                :list_data="rowdata">
                </component>
            </div>
        </cell>
    </list>
</template>

When i use <lm-list-row-test>, it was useful ,but when it change to <component :is="lm-list-row-test"> , it can't work well , i hope someone can explain this situation

emergency !!!!

dotwe address

http://editor.weex.io/p/Jackhu9018/test_is/commit/c99079b80e64209551c08fae36417767 <!-- Add any other context about the problem here.-->

apache/incubator-weex

Answer questions Hanks10100

The :is property is equal with v-bind:is which takes a js variable as its value, not the string literal of component name.

Remove the : or binding it with a js variable can solve it.

<component
  is="lm-list-row-test"
  list_data="rowdata">
</component>
useful!

Related questions

[Android]Unexpected behavior with android app bundle and dynamic feature from varsion gradle 3.3.0 where weex version is 0.20.0.2@aar hot 1
集成sdk源码报错:More than one file was found with OS independent path 'lib/armeabi/libweexjsb.so' hot 1
0.24sdk 在android x86模拟器上跑不起来,出现要降级h5的错误 hot 1
[iOS]线性渐变 Linear-gradient IOS has bugs hot 1
[iOS][Dev-tool]vue is not defined hot 1
android使用源码导入工程失败,界面显示 reader error -1001 degradeToH5|createInstance fail|wx_create_instance_error isJSFrameworkInit==false reInitCount == 1 hot 1
Weex Rendering failed(must stop callNative) hot 1
[Android] error_code: -1001, degradeToH5|createInstance fail|wx_create_instance_error isJSFrameworkInit==false reInitCount == 1 hot 1
android使用源码导入工程失败,界面显示 reader error -1001 degradeToH5|createInstance fail|wx_create_instance_error isJSFrameworkInit==false reInitCount == 1 hot 1
jsframework has no such api hot 1
[Android]Unexpected behavior with android app bundle and dynamic feature from varsion gradle 3.3.0 where weex version is 0.20.0.2@aar hot 1
weex手势密码的源代码在哪里可以找到? hot 1
集成sdk源码报错:More than one file was found with OS independent path 'lib/armeabi/libweexjsb.so' hot 1
[Android]有谁能联系到作者吗,跪求0.27.0的发布呀,我们周一上线google play。 hot 1
android使用源码导入工程失败,界面显示 reader error -1001 degradeToH5|createInstance fail|wx_create_instance_error isJSFrameworkInit==false reInitCount == 1 hot 1
Github User Rank List