Skip to content

1.9.30 20240822

Latest
Compare
Choose a tag to compare
@imouou imouou released this 22 Aug 06:29
· 2 commits to 1.9.x since this release

1.9.30

升级指南

一、下载工程,进行bui.css,bui.js 资源替换

二、打开终端,进入工程,执行以下任意一行命令即可

# 更新 webapp 平台 bui.css, bui.js
$ npx buijs update   

# 更新 link 平台 bui.css, bui.js
$ npx buijs update -p link   

# 更新 dcloud 平台 bui.css, bui.js
$ npx buijs update -p dcloud   

gulpfile.js 工程更新,支持ctrl+点击,跳转编辑文件及预览,结合浏览器二维码插件,可以PC移动方便预览

兼容大部分 requirejs 模块,需要设置 window.define = loader.define;

bui.router

  1. 优化 beforeBack 在syncHistory:false 下 报错问题

bui.loader

  1. 新增 @/ 代表当前组件路径,可用于 css, image 等资源( 早期版本 #module.path 也可以,新版做了简化 )

bui.store

  1. 优化watch 触发多次问题
  2. 优化对象深层的触发问题
  3. 优化 b-show ,radio取直是"0" 时,无法做出正确处理;
  4. 优化 ref 属性支持 component 的获取,仅限于事件获取
  5. b-value 新增对普通标签的支持
  6. 新增 join 属性,用于处理数组展示默认的分隔符,默认 "," 可以修改为 join="-" 之类的
  7. 修复 component 自加载的方式,会跟父级的store二次渲染,导致数据不正确

bui.swipe

  1. 优化open方法
  2. 新增 onOpen,onClose,onBeforeOpen,onBeforeClose 参数

bui.array

  1. 优化getAll 方法

bui.touch

  1. 新增 scopeEl: "" 限定范围参数
  2. 新增 value 方法

bui.date

  1. 优化 count 方法,新增 total 返回 正反值,可以用于判断两个日期的大小

bui.select

  1. 新增 dialogClassName, itemClassName 参数
  2. 新增style 参数

bui.levelselect

  1. 新增style 参数

bui.pickerdate

  1. 新增style 参数

bui.input

  1. 优化 reset方法

bui.unit.copy

  1. 修复复制方法不支持ios问题

bui.searchbar

  1. 新增value参数