[已删除]
[已删除]
  • 发布:2022-06-20 18:14
  • 更新:2022-06-20 18:14
  • 阅读:1158

【报Bug】vue3 使用renderjs 会提示Cannot read property 'insert' of undefined

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10专业版 21H1

HBuilderX类型: 正式

HBuilderX版本号: 3.4.15

手机系统: Android

手机系统版本号: Android 6.0

手机厂商: 模拟器

手机机型: 华为

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
<hsDragSort class="drag-content" v-else :list="myList" isLongTouch :rowHeight="height"  
        :listHeight="listHeight"  
         @confirm="confirm">  
            <template #rowContent="{row}">  
                <view class="hs-flex-1 hs-flex hs-overflow-hidden">  
                    <text class="hs-line-1 text">{{row.name}}</text>  
                </view>  
            </template>  
        </hsDragSort>
import {  
        ref  
    } from 'vue';  
const height = uni.upx2px(144);  
    const listHeight = uni.getWindowInfo().windowHeight - uni.upx2px(90) - 1;  
    const myList = ref([{  
            "name": "花呗"  
        },  
        {  
            "name": "余额宝"  
        },  
        {  
            "name": "账户余额"  
        },  
        {  
            "name": "交通银行信用卡(0001)"  
        },  
        {  
            "name": "中国建设银行信用卡(4401)"  
        },  
        {  
            "name": "网商储蓄卡(7223)"  
        }  
    ]);

操作步骤:

把附件解压之后放入组件里,之后在页面把代码示例粘贴即可使用

预期结果:

不报错,可以拿到正常定义的vue的数据,并且拖动之后不提示 Uncaught TypeError: Cannot read property 'insert' of undefined at uni-app-view.umd.js:3..拖动之后的数据不消失

实际结果:

报错,可以拿到正常定义的vue的数据,并且拖动之后提示 Uncaught TypeError: Cannot read property 'insert' of undefined at uni-app-view.umd.js:3..导致拖动之后的数据消失

bug描述:

首先加载的时候会提示TypeError: Cannot read property 'getAttribute' of null at uni-app-view.umd.js:3,...之后按住右边拖动数据,提示Uncaught TypeError: Cannot read property 'insert' of undefined at uni-app-view.umd.js:3,然后拖动的数据...h5都是正常的,请问一下是写错了还是怎么的呢?

2022-06-20 18:14 负责人:无 分享
已邀请:

要回复问题请先登录注册