Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Releases: b2nil/taro-ui-vue3

Release v1.0.0-alpha.21

24 May 06:18
Compare
Choose a tag to compare
Pre-release

修复

  • fix(tabs): 所有小程序平台支持 scroll 属性(c974fdb)
  • fix(float-layout): 阻止滚动穿透 (38464a3, 4467278, bb861ac)
  • fix(action-sheet): 阻止滚动穿透 (05d3565)
  • fix(modal): 阻止滚动穿透 (0c394ec, 2db17c4, 6f00bad)
  • fix(calendar): 阻止滚动穿透 (7164d10)
  • fix(calendar): h5 平台支持 isVertical 属性 (d0f3a4a)

其他

  • 重构 Repo 结构
  • 更新文档并修复文档网站的一系列问题
  • 删除组件中仅用于测试的代码

Release v1.0.0-alpha.20

25 Apr 10:56
6a3c0c9
Compare
Choose a tag to compare
Pre-release

Features

Fixes

  • fix(SearchBar): 不默认清除搜索文字 (385cc1b)
  • fix(components): 移除组件带有 default 值的 props 的 required 属性 (07c9c4f, 3a638ff, b57c958, 7d008ad)
  • refactor(tabs): 简化 refs 的使用 (db9c8ee)

Release v1.0.0-alpha.19

20 Mar 04:30
Compare
Choose a tag to compare
Pre-release

Fixes

  • fix(types): export createUI as Plugin (685161c)
  • fix(ImagePicker): 修复内容不居中 (868bab0, e8f5820), by @unforesndprson
  • fix(events): use onLowercase syntax for all taro builtin events to comply with vue@^3.0.6 (b01004a)
  • fix(calendar): render marks in months other than the current month (5772de5)
  • and a bunch of other related fixes and refactor to tests and demos and deps

Notes

vue@3.0.6 之前,web components 的自定义 kebab-case 事件 foo-bar 会被解析为 foobar,vue 会将 foobar 作为事件监听器名称。

vue@3.0.6 中对 kebab-case 事件引入了这个 Commit: kebab-case events are attached correctly on web components, see #2841 (b302cbb) 。引入这一变更后,@foobaronFoobar 对应的事件名称为 foobar, 而 @foo-baronFooBar 对应的事件名称为 foo-bar

这会影响到 Taro 内置组件事件名称超过(含)两个单词的所有事件,例如 onTouchStartonKeyboardHeightChange

本次发布修改了 taro-ui-vue3 所有用到的 Taro 内置组件事件的写法,即将 onCamelCase 写法改为了 onLowercasewhateverfollows 写法。如果发现 taro-ui-vue3 组件的事件触发不了,请将下面的依赖更新至以下版本或以上:

"dependencies": {
    "@tarojs/components": "^3.1.4",
    "@tarojs/taro": "^3.1.4",
    "vue": "^3.0.6"
  },

注意

使用 Taro vue 3.0 框架时:

  • 如果直接使用 Taro 内置组件,绑定内置组件事件时,请使用 @alllowercasewhateverfollows (针对 sfc),或使用 onLowercasewhateverfollows (针对 render 函数和 jsx)
  • 如果使用 taro-ui-vue3 组件,请按照文档绑定事件名称,无需引入任何变化

Release v1.0.0-alpha.18

25 Feb 17:31
Compare
Choose a tag to compare
Pre-release

Features

  • feat: add ui component registering plugin (c3a4bc1)
  • feat(tab-bar): props fontSize and iconSize accept both string and number (72492d4)
  • feat(rate): make props size, max, margin accept both number and string (5d45eb9)
  • feat(segmented-controll): make prop fontSize accept both number and string (c40d35a)

Fixes

  • fix(input): value 0 will lead to improper rendering of clear icon, close #81 (e4d840f)
  • fix(modal): modal action buttons should not have top margin, close #76 (0a1b8a2)
  • fix(input): class named '.at-input--without-border' exists when prop border is true, by @SUDOCS (10ed436)
  • fix(textarea): placeholder class style bug, by @Chenxinan (9b21c32)
  • fix(noticebar): support more miniapp platforms (6ce1738)
  • fix(input): not to render slot container node if no slot content (61d5452)
  • fix(input): input event handlers should not be triggered if disabled (d39acae)
  • fix(input): space following default placeholderClass should be trimmed (3e5c1ef)
  • fix(input): placeholderClass should be string rather than object (5d852b3)
  • fix(image-picker): fix sizeType and sourceType typo and add default values for both props (3b733bb)
  • fix(skeleton): use TransitionGroup instead of Transition (e739dea)
  • fix(skeleton): should return a11y attributes when loading (25e980a)
  • fix(toast): ReferenceError: Cannot access 'state' before initialization (e3c3dc4)

tests

  • update roughly half of the test cases

Release v1.0.0-alpha.17

07 Dec 10:50
Compare
Choose a tag to compare
Pre-release

New Features

这些组件仍兼容原有属性和用法;使用 v-model 时,需明确绑定属性名称,如:v-model:value="modelValue", v-model:selected-list="modelValue",直接写 v-model="modelValue" 则无效。

// 采用 onChange 事件更新 value 的值
<AtInput :value="modelValue" @change="updateValue"/>

// 采用 v-model 更新 value 的值
<AtInput v-model:value="modelValue" />
  • AtRate 新增 iconcolor 属性,支持自定义图标('star' | 'heart')和图标颜色 (229d93e)

Release v1.0.0-alpha.16

04 Dec 15:29
697e21f
Compare
Choose a tag to compare
Pre-release

Fixes

  • AtSlider: 修复当 step < 1 时 value 精度不准确的问题 taro-ui #758 (91c1612)
  • taro-ui-vue3/lib: 修复 @/utils@/composables 的引用路径问题 (#63) (b88d600)

其他

  • dayjslodash 依赖切换为兼容 es module 的依赖 (39fac1e, ca8192a)
  • 打包文件移除了 umd 格式,仅提供 esmcjs 格式
  • 如需按需引用,请从 taro-ui-vue3/lib 目录下引用组件

Release v1.0.0-alpha.15

20 Nov 14:52
Compare
Choose a tag to compare
Pre-release

Fixes

Release v1.0.0-alpha.14

14 Nov 16:50
Compare
Choose a tag to compare
Pre-release

Features

  • 新增 AtSkeleton 骨架组件 (4caf076)

Fixes

  • AtVirtualScroll: 移除 viewport 属性,并修复可视区域的计算逻辑 (d76edcd)
  • AtInput: 修复 AtInputProps style 属性冲突以及 maxlength 属性 失效 (25fcb4f, 36c9b97)

Release v1.0.0-alpha.13

29 Oct 09:54
Compare
Choose a tag to compare
Pre-release

Fixes

  • AtSwipeAction: 修复 could not find width of null 的错误, #51 (3050c68)

  • AtCurtain: 修复 Invalid VNode type: undefined 的错误, #53 (1510079)

  • AtCalendar: 修复页面重新渲染后无法切换月份,#55 (e4271f2)

  • AtButton: 修复 onGetUserInfo 等事件失效的问题, #56 (fcefbbf)

Optimization

  • style:优化组件依赖的样式的引入方式,按需引用时,一个组件只需引入一个样式文件即可,#54 (d8fdd9f)

1024 Special Release: v1.0.0-alpha.12 with :heart:

24 Oct 12:11
Compare
Choose a tag to compare

Fixes

  • 修复 pxTransform 未处理 h5 样式转换的问题 (#47) (68dd196)
  • 修复 AtDivider height, fontSize 传入 string 时类型校验失败 (#48) (3c10e6f)
  • 修复 AtVirtualScroll 初始视图未跳转至 scrollIntoItem 对应的列表行 (#49)(e3082f8)

Enhancement

  • AtVirtualScroll 增加 headerfooter 插槽 (c873efb)