Skip to content

Commit dde481a

Browse files
anlyyaoliweijie0812novlan1Wesley-0808uyarn
authored
chore: update site (#4035)
* chore: merge deploy mode (#3965) * chore: merge deploy mode * chore: rename * chore: pin [email protected] --------- Co-authored-by: 黎伟杰 <[email protected]> * chore: update build package name (#3974) * chore: update build package name * chore: fix typos * chore(indexes): fix sidebar click error in demo (#3980) * chore(indexes): fix sidebar click error in demo * chore: retain controlled usage --------- Co-authored-by: anlyyao <[email protected]> * fix(sidebar): fix color of disabled sidebar (#3982) * fix(sidebar): fix color of disabled sidebar * chore: optimize active state logic --------- Co-authored-by: anlyyao <[email protected]> * chore: update site (#3984) * chore: update site * chore: update image link --------- Co-authored-by: anlyyao <[email protected]> * feat(Drawer): add overlayProps attr (#3978) * feat(Drawer): add overlayProps attr * chore: unified code standard * feat(Watermark): support layout API (#3976) * fix: mini..._npm path * feat: api * feat: function * feat: layout demo * chore: docs * chore: typo * fix(Watermark): fix demo --------- Co-authored-by: anlyyao <[email protected]> * fix(SideBarItem): min-height is set to auto (#3985) * fix(SideBarItem): min-height is set to auto * docs: update css vars * chore(deploy): add static prefix (#3987) * chore: static * chore: add static prefix * 【DOC】修复文档错误、优化脚本 (#3993) * chore: update css generation script * chore: update script * fix(Calendar): fix action button status error (#3996) * chore: publish v1.11.0 (#3999) * chore: publish v1.11.0 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: fix typo (#4002) * feat: add qrcode to page watermark (#4004) * docs: generate slots documents for all components (#4008) * docs: generate slots documents for all components * fix: fix test * docs: format * fix(Calendar): fixed initialization error when value[] is combined with switch-mode (#4005) * chore: trusted publisher (#4020) * chore: trusted publisher * chore: 提权 * chore: publishConfig * fix: form提交时能正确获取checkbox-group的值 (#4017) * fix(tabbar): 修复自定义tabbar颜色叠加问题 (#4019) * fix: 修复自定义tabbar颜色叠加问题 * fix: 移 除tabbar-item的背景颜色 * fix(types): type definition error (#4021) * fix(types): type definition error * chore: update common.ts --------- Co-authored-by: anlyyao <[email protected]> * refactor: improve the verification number function (#4015) * fix(action-sheet): exception caused by repeated modification of component initialization data (#4013) * fix(Toast): fix radius error (#4031) * fix(Upload): fixed component display error when changing draggable (#4030) * fix(DateTimePicker): 修复了 DateTimePicker 即使设置了 autoClose 为 false,点击遮罩层也会重置选项为拨动前的 Bug (#3874) * fix: resolve merge conflicts * chore: update ISSUE TEMPLATE --------- Co-authored-by: anlyyao <[email protected]> * chore: publish v1.11.1 (#4034) * chore: publish v1.11.1 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: 黎伟杰 <[email protected]> Co-authored-by: novlan1 <[email protected]> Co-authored-by: Wesley <[email protected]> Co-authored-by: wū yāng <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Boomkaa <[email protected]> Co-authored-by: betavs <[email protected]> Co-authored-by: composable-tu <[email protected]>
1 parent bf39d23 commit dde481a

File tree

123 files changed

+2383
-1389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+2383
-1389
lines changed

.github/ISSUE_TEMPLATE/bug-report.zh-CN.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 反馈 Bug
2-
description: 通过 github 模板进行 Bug 反馈。
2+
description: 通过 GitHub 模板进行 Bug 反馈。
33
title: "[组件名称] 描述问题的标题"
44
labels: [🐞 bug, 🧐 unconfirmed]
55
body:
@@ -11,13 +11,13 @@ body:
1111
1212
在发布一个 Issue 前,请确保:
1313
- 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/Tencent/tdesign-miniprogram/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正)
14-
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue
14+
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 Issue
1515
1616
- type: input
1717
id: version
1818
attributes:
1919
label: tdesign-miniprogram 版本
20-
description: 请检查在最新项目版本中能否重现此 issue
20+
description: 请检查在最新项目版本中能否重现此 Issue
2121
placeholder: 请填写
2222
validations:
2323
required: true

.github/ISSUE_TEMPLATE/feature-report.zh-CN.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 反馈新功能
2-
description: 通过 github 模板进行新功能反馈。
2+
description: 通过 GitHub 模板进行新功能反馈。
33
title: "[组件名称] 描述问题的标题"
44
labels: [💪🏻 enhancement, 🧐 unconfirmed]
55
body:
@@ -11,7 +11,7 @@ body:
1111
1212
在发布一个 Issue 前,请确保:
1313
- 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/Tencent/tdesign-miniprogram/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正)
14-
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue
14+
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 Issue
1515
1616
- type: textarea
1717
id: functionContent

.github/workflows/tag-push.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: create
55
jobs:
66
TAG_PUSH:
77
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
id-token: write
811
if: github.event.ref_type == 'tag'
912
steps:
1013
- uses: actions/checkout@v4
@@ -24,12 +27,14 @@ jobs:
2427
env:
2528
MINI_APP_ID: ${{ secrets.TDESIGN_APP_ID }}
2629
MINI_APP_PRIVATE_KEY: ${{ secrets.TDESIGN_MINI_KEY }}
30+
31+
- run: sudo npm install -g npm@latest
32+
2733
- id: publish
2834
name: publish NPM
2935
uses: JS-DevTools/npm-publish@v4
3036
with:
3137
package: packages/tdesign-miniprogram
32-
token: ${{ secrets.TDESIGN_NPM_TOKEN }}
3338
tag: ${{ contains(github.ref_name, 'beta') && 'beta' || 'latest' }}
3439
- if: steps.publish.outputs.type != 'none'
3540
run: |

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@
4646
"[typescript]": {
4747
"editor.defaultFormatter": "esbenp.prettier-vscode"
4848
},
49-
"cSpell.words": ["stylelint"]
49+
"cSpell.words": ["stylelint", "cascader"]
5050
}

packages/components/action-sheet/README.en-US.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ cancel | \- | \-
2929
close | `(trigger: ActionSheetTriggerSource)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/action-sheet/type.ts)。<br/>`type ActionSheetTriggerSource = 'overlay' \| 'command' \| 'select' `<br/>
3030
selected | `(selected: ActionSheetItem \| string, index: number)` | \-
3131

32+
### ActionSheet Slots
33+
34+
name | Description
35+
-- | --
36+
\- | \-
37+
3238
### ActionSheet External Classes
3339

3440
className | Description

packages/components/action-sheet/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ cancel | \- | 点击取消按钮时触发
117117
close | `(trigger: ActionSheetTriggerSource)` | 关闭时触发。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/action-sheet/type.ts)。<br/>`type ActionSheetTriggerSource = 'overlay' \| 'command' \| 'select' `<br/>
118118
selected | `(selected: ActionSheetItem \| string, index: number)` | 选择菜单项时触发
119119

120+
### ActionSheet Slots
121+
122+
名称 | 描述
123+
-- | --
124+
\- | 默认插槽,自定义内容区域内容
125+
120126
### ActionSheet External Classes
121127

122128
类名 | 描述

packages/components/action-sheet/action-sheet.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ export default class ActionSheet extends SuperComponent {
3737
];
3838

3939
observers = {
40-
'visible, items'(visible: boolean) {
41-
if (!visible) return;
40+
items() {
41+
this.splitGridThemeActions();
42+
},
43+
};
44+
45+
lifetimes = {
46+
ready() {
4247
this.init();
4348
},
4449
};

packages/components/avatar/README.en-US.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ name | params | description
2424
-- | -- | --
2525
error | - | trigger on image load failed
2626

27+
### Avatar Slots
28+
29+
name | Description
30+
-- | --
31+
\- | \-
32+
2733
### Avatar External Classes
2834

2935
className | Description
@@ -42,7 +48,7 @@ name | type | default | description | required
4248
style | Object | - | CSS(Cascading Style Sheets) | N
4349
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
4450
cascading | String | 'left-up' | multiple images cascading。options: left-up/right-up。Typescript:`CascadingValue` `type CascadingValue = 'left-up' \| 'right-up'`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/avatar-group/type.ts) | N
45-
collapse-avatar | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N
51+
collapse-avatar | String | - | \- | N
4652
max | Number | - | \- | N
4753
shape | String | - | shape。options: circle/round。Typescript:`ShapeEnum`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N
4854
size | String | - | size | N
@@ -53,6 +59,13 @@ name | params | description
5359
-- | -- | --
5460
collapsed-item-click | - | \-
5561

62+
### AvatarGroup Slots
63+
64+
name | Description
65+
-- | --
66+
\- | \-
67+
collapse-avatar | \-
68+
5669
### AvatarGroup External Classes
5770

5871
className | Description

packages/components/avatar/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ size | String | - | 尺寸,示例值:small/medium/large/24px/38px 等。优
8484
-- | -- | --
8585
error | - | 图片加载失败时触发
8686

87+
### Avatar Slots
88+
89+
名称 | 描述
90+
-- | --
91+
\- | 默认插槽,自定义内容区域内容
92+
8793
### Avatar External Classes
8894

8995
类名 | 描述
@@ -102,7 +108,7 @@ t-class-image | 图片样式类
102108
style | Object | - | 样式 | N
103109
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
104110
cascading | String | 'left-up' | 图片之间的层叠关系,可选值:左侧图片在上和右侧图片在上。可选项:left-up/right-up。TS 类型:`CascadingValue` `type CascadingValue = 'left-up' \| 'right-up'`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/avatar-group/type.ts) | N
105-
collapse-avatar | String / Slot | - | 头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5``...`, `更多`[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N
111+
collapse-avatar | String | - | 头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5``...`, `更多` | N
106112
max | Number | - | 能够同时显示的最多头像数量 | N
107113
shape | String | - | 形状。优先级低于 Avatar.shape。可选项:circle/round。TS 类型:`ShapeEnum`[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N
108114
size | String | - | 尺寸,示例值:small/medium/large/24px/38px 等。优先级低于 Avatar.size | N
@@ -113,6 +119,13 @@ size | String | - | 尺寸,示例值:small/medium/large/24px/38px 等。优
113119
-- | -- | --
114120
collapsed-item-click | - | 点击头像折叠元素触发
115121

122+
### AvatarGroup Slots
123+
124+
名称 | 描述
125+
-- | --
126+
\- | 默认插槽,自定义内容区域内容
127+
collapse-avatar | 自定义 `collapse-avatar` 显示内容
128+
116129
### AvatarGroup External Classes
117130

118131
类名 | 描述

packages/components/back-top/README.en-US.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name | type | default | description | required
99
style | Object | - | CSS(Cascading Style Sheets) | N
1010
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
1111
fixed | Boolean | true | \- | N
12-
icon | String / Boolean / Object / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts) | N
12+
icon | String / Boolean / Object | true | \- | N
1313
scroll-top | Number | 0 | \- | N
1414
text | String | '' | \- | N
1515
theme | String | round | options: round/half-round/round-dark/half-round-dark | N
@@ -21,6 +21,13 @@ name | params | description
2121
-- | -- | --
2222
to-top | \- | \-
2323

24+
### BackTop Slots
25+
26+
name | Description
27+
-- | --
28+
\- | \-
29+
icon | \-
30+
2431
### BackTop External Classes
2532

2633
className | Description

0 commit comments

Comments
 (0)