Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.2 #1742

Merged
merged 64 commits into from
Mar 8, 2023
Merged

1.0.2 #1742

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
fb4a31a
fix(SwipeCell): fix docs (#1634)
anlyyao Feb 22, 2023
5da469e
fix(Dialog): fix button style (#1633)
anlyyao Feb 22, 2023
0813b23
fix(loading): update loading color (#1627)
LeeJim Feb 22, 2023
2c96f51
Refactor/loading remove (#1626)
LeeJim Feb 22, 2023
61d9a43
chore(Cell): adjust className for hover-class (#1635)
anlyyao Feb 22, 2023
488c6ff
chore(Picker&&DateTimePicker): remove footer slot (#1631)
anlyyao Feb 22, 2023
bfcf649
chore(Radio): align attribute is renamed to placement (#1630)
anlyyao Feb 22, 2023
8f1c4b0
chore(Checkbox): align attribute is renamed to placement (#1629)
anlyyao Feb 22, 2023
cfddfb3
chore(Search): remove the right-icon and add the clearable attribute …
anlyyao Feb 22, 2023
86f4742
feat(button): support suffix slot (#1624)
LeeJim Feb 22, 2023
062ef43
chore(Avatar): remove bordered attribute (#1632)
anlyyao Feb 23, 2023
221aba8
chore(Message): remove action and add the link attribute (#1637)
anlyyao Feb 23, 2023
ff77931
fix(navbar): resolve capsule event currectly (#1641)
LeeJim Feb 23, 2023
c787a51
chore(Footer): copyright attribute is renamed to text (#1642)
anlyyao Feb 23, 2023
e810c0d
fix(dialog): resolve word misspelling (#1644)
jarmywang Feb 23, 2023
ee6b48b
chore(CountDown): remove hightlight theme (#1645)
anlyyao Feb 23, 2023
dfbf99e
fix(slider): 规范无障碍语义. (#1388)
byq1213 Feb 23, 2023
7fc0312
docs(steps): update api
LeeJim Feb 23, 2023
82e96e7
fix(toast): replace fail theme with error (#1647)
LeeJim Feb 23, 2023
41f0689
docs: update api & changelog
LeeJim Feb 24, 2023
a0afded
fix: fix overview.md errors (#1651)
anlyyao Feb 24, 2023
e2c7b6a
fix: update pages
LeeJim Feb 24, 2023
7d3ccdb
fix(collapse): resolve disabled color (#1648)
LeeJim Feb 24, 2023
7b911df
chore(Link): remove status and add disabled and hover (#1652)
anlyyao Feb 24, 2023
62e12ad
feat(Drawer): add hover style (#1673)
anlyyao Feb 27, 2023
c649a1d
fix(Tag): use catch to bind events (#1669)
anlyyao Feb 27, 2023
2fb8cea
fix(rate): remove variant property and update tips disapper logic (#1…
LeeJim Feb 27, 2023
e191668
fix(BackTop): fix icon (#1660)
anlyyao Feb 27, 2023
03055b0
fix(Picker): update demo (#1661)
anlyyao Feb 27, 2023
f754cbb
fix: update sidebar of the site (#1659)
anlyyao Feb 27, 2023
8992f67
docs(common): update design docs (#1658)
anlyyao Feb 27, 2023
79d9ea5
fix(SideBar): fix inaccurate positioning when the page was init (#1675)
anlyyao Feb 27, 2023
1009e42
fix(slider): remove colors and disabledColor property (#1676)
LeeJim Feb 27, 2023
23cd33a
feat(AvatarGroup): add border style (#1678)
anlyyao Feb 27, 2023
4a3270c
fix(dialog): resolve action tsd error and support buttonLayout (#1654…
jarmywang Feb 27, 2023
0186186
chore(NoticeBar): extra attribute is renamed to operation (#1638)
anlyyao Feb 27, 2023
a515aef
fix(Cell): resolve demo problems (#1679)
anlyyao Feb 27, 2023
a2ee5b2
chore: publish v1.0.0 (#1680)
LeeJim Feb 27, 2023
e8d589a
docs: update changelog
LeeJim Feb 28, 2023
8ec6f71
chore: update common
LeeJim Feb 28, 2023
eb80e2e
fix(action-sheet): add close event (#1683)
LeeJim Feb 28, 2023
7f50b82
fix(cascader): resolve events (#1685)
LeeJim Feb 28, 2023
aef1bff
fix(drawer): resolve close event (#1686)
LeeJim Feb 28, 2023
cb1bbef
feat(picker): add close event (#1687)
LeeJim Feb 28, 2023
46fa5bf
fix(Message): fix t-class-link invalid (#1690)
anlyyao Mar 1, 2023
5a04c66
fix: fix docs (#1688)
anlyyao Mar 1, 2023
c9f9ad5
feat(upload): support aria (#1238)
zhangpaopao0609 Mar 1, 2023
9bf9e0f
fix: resolve radio placement (#1693)
LeeJim Mar 1, 2023
b30c83a
fix(Message): fix demo for message (#1694)
anlyyao Mar 1, 2023
79d4126
chore: publish v1.0.1 (#1695)
LeeJim Mar 1, 2023
bd6a0e9
Merge branch 'main' into develop
LeeJim Mar 2, 2023
b57419e
chore: add test:snap-update (#1706)
anlyyao Mar 2, 2023
76dbab8
fix: update api for checkbox and radio (#1707)
LeeJim Mar 6, 2023
9f53b78
fix(action-sheet): resolve click event (#1726)
LeeJim Mar 6, 2023
df7b9bd
feat: update used page (#1734)
LeeJim Mar 7, 2023
c92849d
fix(Swiper): resolve border radius invalid (#1733)
anlyyao Mar 7, 2023
764a156
docs: update changelog
LeeJim Mar 7, 2023
010f34d
fix(navbar): resolve extenal class (#1735)
LeeJim Mar 7, 2023
efe64e5
docs(Footer): update docs (#1737)
anlyyao Mar 7, 2023
5009073
fix(Swiper): the image is disappears when the version is lower than 2…
anlyyao Mar 7, 2023
61a2ff8
chore(ImageViewer): resolved imageViewer display is incomplete (#1656)
anlyyao Mar 7, 2023
dc4fb64
fix(Input): resolve maxLength invalid (#1732)
anlyyao Mar 7, 2023
9ba0038
chore: publish v1.0.2 (#1740)
LeeJim Mar 7, 2023
c024338
Merge branch 'main' into develop
LeeJim Mar 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ toc: false
docClass: timeline
---

## 🌈 1.0.2 `2023-03-07`
### 🐞 Bug Fixes
- `Radio`: 修复使用 options 时可传入的属性不齐的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707))
- `Checkbox`: 修复使用 options 时可传入的属性不齐的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707))
- `RadioGroup`: 修复 placement 默认值错误的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707))
- `RadioGroup`: 修复 icon 消失的问题 @LeeJim ([#1707](https://github.com/Tencent/tdesign-miniprogram/pull/1707))
- `ActionSheet`: 修复点击报错的问题 @LeeJim ([#1726](https://github.com/Tencent/tdesign-miniprogram/pull/1726))
- `Swiper`: 修复在真机上圆角无效问题 @anlyyao ([#1733](https://github.com/Tencent/tdesign-miniprogram/pull/1733))
- `NavBar`: 修复外部样式类不可用的问题 @LeeJim ([#1735](https://github.com/Tencent/tdesign-miniprogram/pull/1735))
- `Footer`: 补齐 API 文档描述 @anlyyao ([#1737](https://github.com/Tencent/tdesign-miniprogram/pull/1737))
- `Swiper`: 修复基础调试库低于2.19.2时,图片不显示问题 @anlyyao ([#1736](https://github.com/Tencent/tdesign-miniprogram/pull/1736))
- `ImageViewer`: 修复图片显示不全的问题 @anlyyao ([#1656](https://github.com/Tencent/tdesign-miniprogram/pull/1656))
- `Input`: 修复 `maxLength` 无效问题,并将默认值变更为 -1 @anlyyao ([#1732](https://github.com/Tencent/tdesign-miniprogram/pull/1732))
- `Input`: 修复键盘弹起时,点击 clear 没反应的问题 @anlyyao ([#1732](https://github.com/Tencent/tdesign-miniprogram/pull/1732))

## 🌈 1.0.1 `2023-03-01`
### 🚀 Features
- `Cascader`: 新增 close 事件 @LeeJim ([#1685](https://github.com/Tencent/tdesign-miniprogram/pull/1685))
Expand All @@ -23,6 +38,7 @@ docClass: timeline

## 🌈 1.0.0 `2023-02-27`
### ❗ Breaking Changes
- 主题色 CSS Variables 命名从 `--td-primary-color` 改成 `--td-brand-color` @LeeJim ([#1623](https://github.com/Tencent/tdesign-miniprogram/pull/1623))
- `Cell`: 调整 hover 状态对应的类名 @anlyyao ([#1635](https://github.com/Tencent/tdesign-miniprogram/pull/1635))
- `Checkbox`: 属性 align 更名为 placement @anlyyao ([#1629](https://github.com/Tencent/tdesign-miniprogram/pull/1629))
- `Toast`: 属性 theme 的枚举值 fail 替换成 error @LeeJim ([#1647](https://github.com/Tencent/tdesign-miniprogram/pull/1647))
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-miniprogram",
"purename": "tdesign",
"version": "1.0.1",
"version": "1.0.2",
"description": "tdesign-miniprogram",
"title": "tdesign-ßminiprogram",
"main": "miniprogram_dist/index.js",
Expand Down Expand Up @@ -33,6 +33,7 @@
"cover": "jest --coverage",
"test": "jest && jest -c jest.virtualHost.config.js && jest -c jest.e2e.config.js",
"test:virtualHost": "jest -c jest.virtualHost.config.js",
"test:snap-update": "npm run test:virtualHost -- -u && npm run test:unit -- -u",
"test:demo": "node gen-demo-test.js",
"test:unit": "jest",
"test:e2e": "jest -c jest.e2e.config.js",
Expand Down
206 changes: 206 additions & 0 deletions site/pages/used.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
<template>
<td-doc-content ref="tdDocContent" platform="mobile" page-status="hidden">
<td-doc-header platform="mobile" slot="doc-header" ref="tdDocHeader"></td-doc-header>
<div class="content">
<h3>上线项目案例</h3>
<p>目前已上线 400+ 个小程序,部分小程序二维码如下。如果你也在使用 TDesign 搭建你的小程序,也欢迎添加你的项目: <a
href="https://github.com/Tencent/tdesign-miniprogram/discussions/1094" target="_blank">添加项目</a></p>

<div class="projects">
<div v-for="p in projects" :key="p.name" class="card">
<div class="card__infos">
<div class="card__title">
<a v-if="p.url" :href="p.url" class="card__link" target="_blank">{{ p.name }}</a>
<template v-else>{{ p.name }}</template>
</div>
<ul class="card__tags">
<li class="card__tag" v-for="t in p.tags">{{ t }}</li>
</ul>
</div>
<div class="card__imgs">
<div class="card__preview">
<img :src="p.preview[0]" :alt="p.name + '预览图'">
</div>
<div class="card__qrcode">
<img :src="p.qrcode" :alt="p.name + '二维码'">
</div>
</div>
</div>
</div>
</div>
</td-doc-content>
</template>

<script lang="ts">
import { onMounted } from 'vue';

export default {
data() {
return {
projects: [
{
name: '未来运动场',
tags: ['趣味游戏'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/weilaiyundongchang.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/weilaiyundongchang-code.jpg',
},
{
name: '程序员做饭指南',
tags: ['效率工具', '开源项目'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/zuofanzhinan.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/zuofanzhinan-code.jpg',
url: 'https://github.com/LeeJim/HowToCookOnMiniprogram',
},
{
name: '小云卡片',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/xiaoyunkapian.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/xiaoyunkapian-code.jpg'
},
{
name: '小楼助教',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/xiaolouzhujiao.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/xiaolouzhujiao-code.png'
},
{
name: 'frmall',
tags: ['电商', '开源项目'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/frmall.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/frmall-code.jpg',
},
{
name: 'Coding 鱼塘',
tags: ['效率工具'],
preview: ['https://tdesign.gtimg.com/miniprogram/case/codingyutang.png'],
qrcode: 'https://tdesign.gtimg.com/miniprogram/case/codingyutang-code.jpg',
},
]
}
},
mounted() {
const { tdDocContent, tdDocHeader, tdDocTabs } = this.$refs;

this.$emit('loaded', () => {
tdDocHeader.docInfo = {
title: '谁在用', desc: ''
}
tdDocContent.pageStatus = 'show';
});
}
}
</script>

<style lang="less" scoped>
h1 {
padding: 30px 40px;
font-size: 20px;
color: #000;
border-bottom: 1px solid #dcdcdc;
}

ul {
list-style: none;
}

.content {
padding: 46px 0;
color: #181818;

h3 {
font-size: 20px;
line-height: 28px;
}

p {
font-size: 14px;
line-height: 20px;
margin-top: 8px;
font-weight: 500;
}
}

.projects {
width: 864px;
margin-top: 40px;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}

.card {
position: relative;
width: 420px;
border-radius: 12px;
background: linear-gradient(-1.8deg, #f1f2f5 0%, #f1f2f5 100%);
padding: 32px 44px 0;
box-sizing: border-box;

&__link {
text-decoration: none;

&:hover {
color: var(--brand-main);
}
}

&__infos {
display: flex;
}

&__title {
font-size: 18px;
font-weight: 600;
}

&__tag {
padding: 2px 8px;
border-radius: 3px;
background: #fff;
font-size: 12px;
cursor: pointer;
margin-left: 8px;

&s {
margin-left: auto;
display: flex;
}
}

&__imgs {
margin: 20px 0 0;
display: flex;
justify-content: space-between;
align-items: center;
}

&__preview {
width: 180px;
box-sizing: border-box;
height: 260px;
border-radius: 12px 12px 0 0;
overflow: hidden;
border: 8px solid #f7f7f9;
border-bottom: 0;

img {
width: 100%;
}
}

&__qrcode {
width: 140px;
height: 140px;
border-radius: 50%;
background: #ffffff;
box-shadow: 0 14.74px 22.11px 0 #e3e6eb;
padding: 16px;
box-sizing: border-box;
overflow: hidden;

img {
width: 100%;
}
}
}
</style>
2 changes: 1 addition & 1 deletion site/site.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
name: 'used',
meta: { docType: 'explain' },
path: '/miniprogram/used',
component: () => import('@/../USED.md'),
component: () => import('@pages/used.vue'),
},
{
title: '更新日志',
Expand Down
1 change: 1 addition & 0 deletions site/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default ({ mode }: any) => {
'@common': path.resolve(__dirname, '../common'),
'@components': path.resolve(__dirname, './components'),
'@docs': path.resolve(__dirname, './docs'),
'@pages': path.resolve(__dirname, './pages'),
},
},
server: {
Expand Down
2 changes: 1 addition & 1 deletion src/action-sheet/action-sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class ActionSheet extends SuperComponent {
const realIndex = isSwiperMode ? index + currentSwiperIndex * count : index;
if (item) {
this.triggerEvent('selected', { selected: item, index: realIndex });
this.trigger('close', { trigger: 'select' });
this.triggerEvent('close', { trigger: 'select' });
this._trigger('visible-change', { visible: false });
}
},
Expand Down
12 changes: 6 additions & 6 deletions src/button/__test__/__virtualHostSnapshot__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ exports[`Button Button icon-btn demo works fine 1`] = `
加载中
</t-button>
<t-button
ariaLabel="返回"
ariaLabel="搜索"
class="margin"
icon="chevron-left"
icon="search"
shape="square"
size="large"
theme="primary"
Expand All @@ -205,8 +205,8 @@ exports[`Button Button shape demo works fine 1`] = `
填充按钮
</t-button>
<t-button
ariaLabel="返回"
icon="chevron-left"
ariaLabel="搜索"
icon="search"
shape="square"
size="large"
theme="primary"
Expand All @@ -219,8 +219,8 @@ exports[`Button Button shape demo works fine 1`] = `
填充按钮
</t-button>
<t-button
ariaLabel="返回"
icon="chevron-left"
ariaLabel="搜索"
icon="search"
shape="circle"
size="large"
theme="primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ exports[`cell :base 1`] = `
class="t-cell__left t-class-left"
/>
<wx-view
class="t-cell__title t-class-title"
class="t-cell__title"
>
<wx-view
class="t-cell__title-text"
class="t-cell__title-text t-class-title"
/>
<wx-view
class="t-cell__description t-class-description"
Expand Down
59 changes: 0 additions & 59 deletions src/checkbox-group/README.md

This file was deleted.

Loading