Skip to content

Commit

Permalink
1.0.4 (#1819)
Browse files Browse the repository at this point in the history
* fix(SwipeCell): fix docs (#1634)

* fix(Dialog): fix button style (#1633)

* fix(loading): update loading color (#1627)

* Refactor/loading remove (#1626)

* fix(loading): remove bar and error theme

* test(loading): update

* test(image-viewer): update snapshot

* chore(Cell): adjust className for hover-class (#1635)

* chore(Cell): adjust className for hover-class

* test: update snapshots

* chore(Picker&&DateTimePicker): remove footer slot (#1631)

* chore(Radio): align attribute is renamed to placement (#1630)

* chore(Checkbox): align attribute is renamed to placement (#1629)

* chore(Search): remove the right-icon and add the clearable attribute (#1628)

* feat(button): support suffix slot (#1624)

* feat(button): support suffix slot

* test(button): update snapshot

* chore(Avatar): remove bordered attribute (#1632)

* chore(Avatar): remove bordered attribute

* fix: fix cr

* chore(Message): remove action and add the link attribute (#1637)

* chore(Message): remove action and add the link attribute

* fix: fix cr

* fix(navbar): resolve capsule event currectly (#1641)

* chore(Footer): copyright attribute is renamed to text (#1642)

* chore(Footer): copyright attribute is renamed to text

* chore(CountDown): remove theme attribute

* fix(dialog): resolve word misspelling (#1644)

* chore(CountDown): remove hightlight theme (#1645)

* fix(slider): 规范无障碍语义. (#1388)

* fix(slider): 规范无障碍语义

* fix(slider): 无障碍滑块valuetext规范.(#1402)

* fix(slider): 无用动态百分比播报问题.(#1402)

* fix(slider): 隐藏数值读取.(#1402)

* fix(slider): 隐藏数值读取.(#1402)

* fix(slider): 变量规范.(#1402)

* docs(steps): update api

* fix(toast): replace fail theme with error (#1647)

* docs: update api & changelog

* fix: fix overview.md errors (#1651)

* fix: update pages

* fix(collapse): resolve disabled color (#1648)

* fix(collapse): resolve disabled color

* test: update snapshot

* chore(Link): remove status and add disabled and hover (#1652)

* chore(Link): remove status and add disabled and hover

* feat(Link): support external-classes

* feat(Drawer): add hover style (#1673)

* fix(Tag): use catch to bind events (#1669)

* fix(rate): remove variant property and update tips disapper logic (#1674)

* fix(rate): remove variant property and update tips disapper logic

* test(rate): update snapshot

* fix(BackTop): fix icon (#1660)

* fix(Picker): update demo (#1661)

* fix: update sidebar of the site (#1659)

* docs(common): update design docs (#1658)

* fix(SideBar): fix inaccurate positioning when the page was init (#1675)

* fix(slider): remove colors and disabledColor property (#1676)

* feat(AvatarGroup): add border style (#1678)

* fix(dialog): resolve action tsd error and support buttonLayout (#1654) (#1655)

* chore(NoticeBar): extra attribute is renamed to operation (#1638)

* fix(Cell): resolve demo problems (#1679)

* chore: publish v1.0.0 (#1680)

* chore: publish v1.0.0

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: update changelog

* chore: update common

* fix(action-sheet): add close event (#1683)

* fix(cascader): resolve events (#1685)

* fix(drawer): resolve close event (#1686)

* feat(picker): add close event (#1687)

* feat(picker): add close event

* test(date-time-picker): update snapshots

* fix(Message): fix t-class-link invalid (#1690)

* fix: fix docs

* fix(Message): fix t-class-link invalid

* fix: fix docs (#1688)

* feat(upload): support aria (#1238)

* feat(upload): support aria

* chore(upload): update snap

* feat(upload): icon hidden

* feat(upload): hack

* revert(upload): revert grid

* chore(upload): update snap

* feat(upload): file.status

* feat(upload): enhance

* feat(upload): upload wxs

* feat(upload): enhance

* feat(upload): add button role

* feat(upload): remove   aria-labelledby="{{labelID}}"

* feat(upload): ariaLabel labelledby

* feat(grid): describedby

* feat(upload): optimization

* fix: resolve radio placement (#1693)

* fix(Message): fix demo for message (#1694)

* chore: publish v1.0.1 (#1695)

* chore: publish v1.0.1

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: add test:snap-update (#1706)

* fix: update api for checkbox and radio (#1707)

* fix: update api for checkbox and radio

* chore: update demo

* test(radio): update snapshot

* fix(action-sheet): resolve click event (#1726)

* feat: update used page (#1734)

* fix(Swiper): resolve border radius invalid (#1733)

* docs: update changelog

* fix(navbar): resolve extenal class (#1735)

* fix(navbar): resolve extenal class

* test(navbar): update snapshot

* docs(Footer): update docs (#1737)

* fix(Swiper): the image is disappears when the version is lower than 2.19.2 (#1736)

* chore(ImageViewer): resolved imageViewer display is incomplete (#1656)

* chore(ImageViewer): remove backgroundColor attribute

* fix(ImageViewer): update images

* fix: fix cr

* fix(image-viewer): recover background-colorproperty

---------

Co-authored-by: leejimqiu <leejimqiu@gmail.com>

* fix(Input): resolve maxLength invalid (#1732)

* fix(Input): resolve maxlength invalid

* chore(Input): clear event uses touchstart

* test: update snapshots

* chore: publish v1.0.2 (#1740)

* chore: publish v1.0.2

* docs: update changelog

* fix(dropdown-menu): resolve label and radio icon placement (#1748)

* Update README.md (#1751)

删除文档多余的两个空行

* fix(popup): resolve close can not tap (#1754)

* fix(calendar): resolve format property reactive (#1753)

* fix(calendar): resolve format property reactive

* fix(calendar): resolve format property

* fix: fix docs for upload and icon components (#1752)

* feat(picker): support keys property (#1759)

* feat(picker): support keys property

* fix(picker): remove info about columns property

* fix(checkbox): resolve check all when some is diabled (#1766)

* fix(badge): resolve color property (#1764)

* feat(Input): support bindnicknamereview (#1755)

* fix(upload): make size-limit support object (#1763)

* fix(upload): make size-limit support object

* test(upload): update

* fix(Button): fix disabled invalid (#1739)

* fix(Button): fix disabled invalid

* fix: fix cr

* fix(grid | cell | tabs | tabbar | sliderBar): 有 badge,有新的消息、不朗读异常 (#1428)

* fix: fix code

* fix: fix code

* fix: fix code

* fix: fix code

* fix: fix code

* fix: fix code

* fix: fix tabs aira

* fix: slid-bar aira

* fix: cell demo aira

* test: update snap

* fix: fix code

* test: update snap

* fix: fix code

* fix: fix demo

* test: update snap

* fix: fix code

* test: update snap

* test: update snap

update snap

* fix: 优化demo

* fix: update snap

* fix: 优化朗读文案

* test: update snap

* fix: 优化朗读role的使用方式

* test: update snap

* fix: 改变朗读的通用方法

* fix: 优化方法

* test: update snap

* fix: 修改注释

* test: update snap'

* fix: 补充demo

* fix: update demo

* fix: 优化

* fix: remove demo

* fix: 解决冲突

---------

Co-authored-by: leejimqiu <leejimqiu@gmail.com>

* chore: update projects who use tdesign

* fix(Cell): resolve the incomplete display of note content (#1769)

* feat(wxs): the style attr supports camel case (#1744)

* feat(popup): support background,border-radius,safe-area (#1758)

* fix(popup): resolve close can not tap

* feat(popup): support background,border-radius,safe-area

* fix(popup): add less variable (#1758)

* fix(Progress): resolve slot invalid when label is true (#1771)

* fix(grid): resolve image slot (#1772)

* chore: publish v1.0.3 (#1774)

* chore: publish v1.0.3

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat(pull-down-refresh.wxml): pull-down-refresh无障碍支持 (#1241)

feat #1071

* docs(radio): update api

* fix(Textarea): resolve the style problem when autosize is true (#1781)

* feat(step aria): step aria (#1783)

* chore: update site-components (#1795)

* fix(upload): 修复upload点击事件失效问题 (#1802)

* fix: 修复upload点击事件失效问题

* test: update snap

* fix(switch): resolve label and icon (#1809)

* fix(loading): resolve style error (#1810)

* chore: add new project

* fix(radio): resolve placement (#1812)

* fix(button): resolve multiple slot (#1813)

* fix(upload): 修复limit限制的问题 (#1800)

* fix: 修复limit限制的问题

fix #1779

* fix: fix code

* test: update snap

* build: add workflow for issue labeld

* fix: resolve multiple slots (#1816)

* chore: publish v1.0.4 (#1818)

* chore: publish v1.0.4

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Y <anly_yaw@163.com>
Co-authored-by: Wang <awangjianjun9@gmail.com>
Co-authored-by: byqbai <byq1213@qq.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: zhangpaopao <zhangpaopao0609@gmail.com>
Co-authored-by: hezhi3f <58511226+hezhi3f@users.noreply.github.com>
Co-authored-by: 龙风 <455947455@qq.com>
Co-authored-by: shinyina <92632534+shinyina@users.noreply.github.com>
Co-authored-by: jerimizhang <3435677954@qq.com>
Co-authored-by: Kyrielin <a154571896@gmail.com>
  • Loading branch information
11 people authored Mar 20, 2023
1 parent dd51d75 commit 0fbb3a8
Show file tree
Hide file tree
Showing 46 changed files with 2,272 additions and 2,526 deletions.
7 changes: 7 additions & 0 deletions .github/issue-shoot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## IssueShoot
- 预估时长: {{ .duration }}
- 期望完成时间: {{ .deadline }}
- 开发难度: {{ .level }}
- 参与人数: 1
- 验收标准: 实现期望改造效果,提 PR 并通过验收无误
- 备注: 最终激励以实际提交 `pull request` 并合并为准
50 changes: 50 additions & 0 deletions .github/workflows/issue-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: issue on label
on:
issues:
types: ['labeled']
jobs:
add-issueshoot-template:
runs-on: ubuntu-latest
if: contains(fromJSON('["easy", "middle", "hard"]'), github.event.label.name)
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get token
id: token
run: |
label=${{ github.event.label.name }}
if [[ $label = "easy" ]]
then
echo "level=简单" >> $GITHUB_OUTPUT
echo "duration=1" >> $GITHUB_OUTPUT
deadline=$(date -d "+3 days" +'%Y-%m-%d')
echo "deadline=${deadline}" >> $GITHUB_OUTPUT
elif [[ $label = "middle" ]]
then
echo "level=中等" >> $GITHUB_OUTPUT
echo "duration=3" >> $GITHUB_OUTPUT
deadline=$(date -d "+7 days" +'%Y-%m-%d')
echo "deadline=${deadline}" >> $GITHUB_OUTPUT
else
echo "level=困难" >> $GITHUB_OUTPUT
echo "duration=5" >> $GITHUB_OUTPUT
deadline=$(date -d "+10 days" +'%Y-%m-%d')
echo "deadline=${deadline}" >> $GITHUB_OUTPUT
fi
- name: Create template
id: template
uses: chuhlomin/render-template@v1.4
with:
template: .github/issue-shoot.md
vars: |
level: ${{ steps.token.outputs.level }}
duration: ${{ steps.token.outputs.duration }}
deadline: ${{ steps.token.outputs.deadline }}
- name: Update issue
uses: actions-cool/issues-helper@v3
with:
actions: 'update-issue'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: ${{ steps.template.outputs.result }}
update-mode: 'append'
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ toc: false
docClass: timeline
---

## 🌈 1.0.4 `2023-03-20`
### 🚀 Features
- `PullDownRefresh`: 支持无障碍访问支持 @shinyina ([#1241](https://github.com/Tencent/tdesign-miniprogram/pull/1241))
- `Steps`: 支持无障碍访问 @tangzixuan ([#1783](https://github.com/Tencent/tdesign-miniprogram/pull/1783))

### 🐞 Bug Fixes
- `Textarea`: 修复 `autosize``true` 时,`placeholder` 上移问题 @anlyyao ([#1781](https://github.com/Tencent/tdesign-miniprogram/pull/1781))
- `Switch`: 修复 label 和 icon 渲染顺序错误的问题 @LeeJim ([#1809](https://github.com/Tencent/tdesign-miniprogram/pull/1809))
- `Loading`: 修复错误的 style 导致 wxs 报错 @LeeJim ([#1810](https://github.com/Tencent/tdesign-miniprogram/pull/1810))
- `Radio`: 修复 placement 优先级的问题 @LeeJim ([#1812](https://github.com/Tencent/tdesign-miniprogram/pull/1812))
- `Button`: 解决多个插槽的渲染问题 @LeeJim ([#1813](https://github.com/Tencent/tdesign-miniprogram/pull/1813))
- `Link`: 解决多个插槽无法渲染的问题 @LeeJim ([#1816](https://github.com/Tencent/tdesign-miniprogram/pull/1816))
- `TabPanel`: 解决多个插槽无法渲染的问题 @LeeJim ([#1816](https://github.com/Tencent/tdesign-miniprogram/pull/1816))
- `Upload`: 修复点击事件失效问题 @yaogengzhu ([#1802](https://github.com/Tencent/tdesign-miniprogram/pull/1802))
- `Upload`: 修复 limit 限制的问题 @yaogengzhu ([#1800](https://github.com/Tencent/tdesign-miniprogram/pull/1800))


## 🌈 1.0.3 `2023-03-14`
### 🚀 Features
- `Picker`: 新增支持 keys 属性 @LeeJim ([#1759](https://github.com/Tencent/tdesign-miniprogram/pull/1759))
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-miniprogram",
"purename": "tdesign",
"version": "1.0.3",
"version": "1.0.4",
"description": "tdesign-miniprogram",
"title": "tdesign-ßminiprogram",
"main": "miniprogram_dist/index.js",
Expand Down Expand Up @@ -102,7 +102,7 @@
"stylelint": "^13.13.1",
"tdesign-icons-view": "^0.1.0",
"tdesign-publish-cli": "^0.0.12",
"tdesign-site-components": "^0.11.1",
"tdesign-site-components": "^0.12.2",
"typescript": "~4.7.2",
"vite": "^2.7.6",
"vite-plugin-tdoc": "^2.0.1",
Expand Down
6 changes: 6 additions & 0 deletions site/data/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,10 @@ export default
preview: ['https://tdesign.gtimg.com/miniprogram/case/codingyutang.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/codingyutang-code.jpg',
},
{
name: '智写 AI',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/zhixieai.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/zhixieai-code.png',
},
]
50 changes: 20 additions & 30 deletions src/avatar/__test__/__virtualHostSnapshot__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,35 @@

exports[`Avatar & Avatar Groups Avatar Props : style && customStyle 1`] = `
<main>
<main
class="avatar"
<wx-view
class="t-avatar__wrapper class t-class"
style="color: red; font-size: 9px;"
>
<wx-view
class="t-avatar__wrapper class t-class"
style="color: red; font-size: 9px;"
ariaDescribedby="t_badge_0_description"
ariaLabelledby="t_badge_0_label"
ariaRole="option"
class="t-badge class t-class"
style=""
>
<t-badge
tClass=""
tClassContent=""
tClassCount=""
<wx-view
ariaHidden="true"
class="t-badge__content t-class-content"
id="t_badge_0_label"
>
<wx-view
ariaDescribedby="t_badge_0_description"
ariaLabelledby="t_badge_0_label"
ariaRole="option"
class="t-badge class t-class"
ariaHidden="{{false}}"
ariaLabel="头像"
ariaRole="img"
class="t-avatar t-avatar--circle t-avatar--medium t-class-image"
style=""
>
<wx-view
ariaHidden="true"
class="t-badge__content t-class-content"
id="t_badge_0_label"
>
<wx-view
ariaHidden="{{false}}"
ariaLabel="头像"
ariaRole="img"
class="t-avatar t-avatar--circle t-avatar--medium t-class-image"
style=""
>
<wx-view
class="t-avatar__text t-class-content"
/>
</wx-view>
</wx-view>
class="t-avatar__text t-class-content"
/>
</wx-view>
</t-badge>
</wx-view>
</wx-view>
</main>
</wx-view>
</main>
`;
4 changes: 4 additions & 0 deletions src/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export default class Button extends SuperComponent {

properties = props;

options = {
multipleSlots: true,
};

data = {
prefix,
className: '',
Expand Down
Loading

0 comments on commit 0fbb3a8

Please sign in to comment.