窗外下着雨
窗外下着雨
  • 发布:2023-11-28 10:42
  • 更新:2023-11-28 15:03
  • 阅读:244

cli命令( npx @dcloudio/uvm@latest )升级uniapp后,vant组件等皆失效【报Bug】

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 11th Gen Intel(R) Core(TM) i5-11400 @ 260GHz 2.59 GHz

第三方开发者工具版本号: w1.06 2310071

基础库版本号: 3.2.2

项目创建方式: CLI

CLI版本号: 5.0.8

示例代码:
<template>  
  <view class="content">  
    <image class="logo" src="/static/logo.png" />  
    <view class="text-area">  
      <text class="title">{{ title }}</text>  
    </view>  
  </view>  
  <view style="margin: 40rpx 0">  
    <van-button type="default">默认按钮</van-button>  
    <van-button type="primary">主要按钮</van-button>  
    <van-button type="info">信息按钮</van-button>  
    <van-button type="warning">警告按钮</van-button>  
    <van-button type="danger">危险按钮</van-button>  
  </view>  
  <view style="margin-top: 10rpx">  
    <l-painter>  
      <l-painter-view css="background: #07c160; height: 120rpx; width: 120rpx; display: inline-block"></l-painter-view>  
      <l-painter-view  
        css="background: #1989fa; height: 120rpx; width: 120rpx; border-top-right-radius: 60rpx; border-bottom-left-radius: 60rpx; display: inline-block; margin: 0 30rpx;"  
      ></l-painter-view>  
      <l-painter-view  
        css="background: #ff9d00; height: 120rpx; width: 120rpx; border-radius: 50%; display: inline-block"  
      ></l-painter-view>  
    </l-painter>  
  </view>  
</template>

操作步骤:

1、使用cli命令创建项目;
2、新建wxcomponents(放vant)、uni_modules(放lime-painter);
3、引入使用(3.0.0-3080720230703001 正常);
4、升级版本后,引入的全部失效,无用。

预期结果:

升级版本后,应该兼容低版本,即就是不影响低版本写的功能样式。

实际结果:

不兼容,导致原有的功能和样式失效

bug描述:

在低版本时,vant组件和插件等都是能够正常使用;
升级后,vant组件的样式丢失或无效,插件直接被干掉了,但是结构又仍然存在。

2023-11-28 10:42 负责人:无 分享
已邀请:
YUANRJ

YUANRJ

提供下测试工程

要回复问题请先登录注册