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.2.2 #2335

Merged
merged 222 commits into from
Aug 30, 2023
Merged

1.2.2 #2335

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
cdc817f
fix(loading): resolve style error (#1873)
Cyrus97 Apr 10, 2023
c460d4a
feat: empty的文案添加换行 (#1870)
favouredddd Apr 10, 2023
aafa112
fix(button): 修复[button] type="submit"时,disabled未生效 (#1878)
bitjian Apr 10, 2023
432ea8b
style(row): row垂直居中样式 (#1866)
tomcat-hz Apr 10, 2023
9288e4c
fix(progress): 安卓机朗读异常 & 动态朗读 (#1354)
yaogengzhu Apr 10, 2023
8da37b5
feature/swiper aria v2 (#1598)
zhangpaopao0609 Apr 10, 2023
dedcb82
docs: update custom theme
LeeJim Apr 11, 2023
765e185
fix(radio): resolve style (#1889)
LeeJim Apr 11, 2023
ff19036
feat: 支持分割线组件的线条使用变量控制属性 (#1890)
favouredddd Apr 12, 2023
962fe6e
fix(action-sheet): resolve ts error of show method (#1907)
LeeJim Apr 17, 2023
2e8d6c3
fix(grid): 修复column>=4个时,--td-grid-item-image-width和--td-grid-item-te…
lolhezihehe Apr 17, 2023
d4cecc3
chore: update _common (#1902)
anlyyao Apr 17, 2023
4ac3280
feat: 支持radio的内容字体大小使用变量。 (#1895)
favouredddd Apr 17, 2023
b8bed5b
Bitjian fix/radio icon size (#1909)
LeeJim Apr 17, 2023
12bbeae
chore: publish v1.1.2 (#1910)
LeeJim Apr 17, 2023
680725e
fix(rate): 评分组件支持无障碍滑动 (#1574)
byq1213 Apr 18, 2023
6fc6f06
build: remove preview workflow tentatively
LeeJim Apr 18, 2023
f1e78af
fix(upload): resolve max (#1914)
LeeJim Apr 19, 2023
769fef3
fix(navbar): resolve capsule zindex (#1920)
LeeJim Apr 23, 2023
8f1c734
chore: update site
LeeJim Apr 25, 2023
9b150bc
fix(button): 修复variant=outline等状态下loading不展示 (#1922)
lolhezihehe Apr 25, 2023
1737ab5
fix(navbar): resolve vertical align (#1926)
LeeJim Apr 25, 2023
f78e01f
fix(dropdown-menu): support multiple column radio (#1927)
LeeJim Apr 25, 2023
75c87bf
fix(Link): resolve disabled problem (#1928)
anlyyao Apr 25, 2023
066fe08
fix(calendar): resolve error (#1930)
LeeJim Apr 26, 2023
b15175d
fix(tabs): resolve content overflow (#1931)
LeeJim Apr 26, 2023
2971200
chore: update issue template
LeeJim Apr 26, 2023
e057915
fix(Input): resolve vertical layout style error (#1934)
anlyyao Apr 26, 2023
32617d7
feat(collapse): add header-left-icon property (#1933)
LeeJim Apr 26, 2023
5443109
feat(tabs): add middle slot (#1936)
LeeJim Apr 26, 2023
4f7c16b
chore: publish v1.1.3 (#1937)
LeeJim Apr 26, 2023
292fd25
Merge branch 'main' into develop
LeeJim Apr 27, 2023
c4c5c5f
fix(slider): enable dragstart and dragend event (#1940)
LeeJim Apr 27, 2023
348ba4c
fix(image-viewer): add using-custom-navation property (#1944)
LeeJim Apr 28, 2023
c977ec5
feat(Swiper): update api docs (#1945)
anlyyao Apr 28, 2023
049edc7
fix(picker): enable to using falsy value (#1948)
LeeJim Apr 29, 2023
20f4899
fix(toast): auto hide when page is hide (#1947)
LeeJim Apr 29, 2023
7f05e3b
feat(swiper): add image-load event (#1949)
LeeJim May 1, 2023
e1e7aa7
chore: publish v1.1.4 (#1950)
LeeJim May 1, 2023
d7d5b45
Merge branch 'main' into develop
LeeJim May 1, 2023
e3ba571
docs(picker): enrich api detail (#1956)
LeeJim May 4, 2023
2a83725
fix(tabs): resolve track position (#1958)
LeeJim May 4, 2023
6fe5ae9
feat(pulldown-refresh): add some properties from scroll-view (#1959)
LeeJim May 4, 2023
3577c0a
feat(loading): support indicator slot
LeeJim May 4, 2023
482264c
test: update snapshot
LeeJim May 4, 2023
c7c153d
fix(pulldown-refresh): resolve value (#1960)
LeeJim May 5, 2023
ab51f1b
feat(datetime-picker): support steps property (#1961)
LeeJim May 5, 2023
10fd22b
feat(steps): add sequence property (#1962)
LeeJim May 5, 2023
0cfca34
feat(dropdown-menu): add css variable for border width (#1967)
LeeJim May 6, 2023
2c2b6c5
feat(Stepper): allow input to be empty (#1971)
anlyyao May 6, 2023
0ffbd27
fix(calendar): enable scroll into view when use-popup is false (#1969)
LeeJim May 8, 2023
76d7669
chore(image-viewer): update demo (#1968)
LeeJim May 8, 2023
d512d01
chore: publish v1.1.5 (#1975)
LeeJim May 8, 2023
a521ef8
Merge branch 'main' into develop
LeeJim May 8, 2023
6457944
docs(badge): update api
LeeJim May 10, 2023
3c15af0
fix(navbar): Fix invalid fixed attribute of Navbar component (#1982)
betavs May 11, 2023
2d13cc6
feat(Icon): update icon from 0.1.2 to 0.1.4 (#1979)
anlyyao May 11, 2023
3639313
Feat/picker-zindex (#1985)
favouredddd May 11, 2023
8b3bc0f
fix(DropdownMenu): auto scroll to current (#1788) (#1981)
jarmywang May 11, 2023
87bd5e6
feat: 添加支持date-picker的蒙层属性透 (#1991)
favouredddd May 12, 2023
27016c4
feat(Slider): the step attribute supports decimals (#1990)
anlyyao May 12, 2023
112934b
chore: publish v1.1.5-beta
LeeJim May 12, 2023
68d51a0
fix(pulldown-refresh): resolve refresh event
LeeJim May 15, 2023
a3a89c5
fix: 修复variant动态修改无效
favouredddd May 15, 2023
eac3b78
feat(Grid): enrich demo (#1993)
anlyyao May 15, 2023
9fb1d70
feat(Input): resolve label content wraps (#1994)
anlyyao May 15, 2023
657a6b8
docs(Steps): remove invalid attributes (#1995)
anlyyao May 15, 2023
e15895e
fix(pulldown-refresh): resolve refresh event (#1998)
LeeJim May 15, 2023
12dc34e
Merge branch 'fix/button_variant' of github.com:favouredddd/tdesign-m…
LeeJim May 15, 2023
06cacd2
fix: fix [下拉菜单] 单选选项行高不一致 #1980 (#1992)
bitjian May 15, 2023
c963d3a
feat: action-sheet支持层级 (#2002)
favouredddd May 15, 2023
720478a
fix: 修复多余 row 的样式导致 col 不换行问题 (#1996)
wuping97 May 15, 2023
5b32707
fix(dialog): display of cancel and confirm button when calling a comm…
yuchumian May 15, 2023
6438cf7
fix(calendar): enable calendar type (#2003)
LeeJim May 15, 2023
a0e578b
chore: publish v1.1.6 (#2004)
LeeJim May 15, 2023
70c9d31
Merge branch 'main' into develop
LeeJim May 15, 2023
562673d
chore(ActionSheet): prohibit exporting components at index (#2008)
anlyyao May 16, 2023
5869e01
feat: action-sheet支持cancel的颜色变量 (#2007)
favouredddd May 17, 2023
bc1b1c5
fix(sticky): resolve width (#2012)
LeeJim May 17, 2023
d0a2a61
fix(side-bar-item): fix prefix and suffix style anomalies (#2011)
betavs May 17, 2023
66f7ad0
fix(tabbar): resolve width when virtual-host not available (#2013)
LeeJim May 17, 2023
2ed0bfb
chore: publish v1.1.6-beta
LeeJim May 17, 2023
1891f5c
build: update npm publish
LeeJim May 18, 2023
3cf740b
fix(action-sheet): resolve invalid syntax
LeeJim May 18, 2023
20dbd73
fix(Icon): rename some icons (#2020)
anlyyao May 23, 2023
cb9cb36
chore: publish v1.1.7 (#2031)
LeeJim May 23, 2023
0eb8f6a
Merge branch 'main' into develop
LeeJim May 24, 2023
8ca7590
feat(Textarea): support max/min height (#2035)
anlyyao May 30, 2023
cf355d1
fix: rename proposal to transform and display installation dependenci…
zhangpaopao0609 May 30, 2023
a828676
fix(DropdownMenu): resolved the basic library cannot be used under ve…
anlyyao May 30, 2023
588e4e3
fix(Sticky): resolved width problem (#2047)
anlyyao May 30, 2023
24f7b18
fix(navbar): polish bg support (#2049)
LeeJim May 30, 2023
43dbad6
fix(drawer): resolve word misspelling (#2039)
ElanYoung May 30, 2023
f570486
fix(image): enable dynamic dimension (#2050)
LeeJim May 30, 2023
8529327
chore: publish v1.1.8 (#2051)
LeeJim May 30, 2023
6520232
Merge branch 'main' into develop
LeeJim May 31, 2023
aac30fd
fix(indexes): 索引导航无法选中问题 (#2036)
lolhezihehe Jun 1, 2023
5c397a3
feat(switch): prevent click when the switch component props loading i…
betavs Jun 5, 2023
e276138
feat(checkbox): 自定义图标增加半选中态 (#2056)
lolhezihehe Jun 5, 2023
d6f34fc
feat(Search): support cursor-spacing attr (#2065)
anlyyao Jun 6, 2023
5794711
fix(Switch): resolved loading state style (#2074)
anlyyao Jun 8, 2023
7dcf574
fix(Icon): resolved icon naming error (#2076)
anlyyao Jun 9, 2023
20b4908
fix(tree-select): enable keys property (#2085)
LeeJim Jun 12, 2023
ab16f53
fix(radio-group): fix abnormal display of radio group selection statu…
betavs Jun 12, 2023
162b1c9
docs(slider): add faq part
LeeJim Jun 12, 2023
601d650
fix(CellGroup): resolved borderen invalid (#2089)
anlyyao Jun 13, 2023
7b7acc4
chore: publish v1.1.9 (#2091)
LeeJim Jun 13, 2023
5caf7f8
Merge branch 'main' into develop
LeeJim Jun 13, 2023
bf30f2a
feat(notice-bar): add interval property when direction='vertical'
betavs Jun 16, 2023
20e5461
test(notice-bar): add interval property when direction='vertical'
betavs Jun 16, 2023
6ae343f
fix(Grid): resolved align='laft' valid (#2110)
anlyyao Jun 20, 2023
97a9bfc
fix(Fab): resolved hover-class invalid (#2093)
anlyyao Jun 20, 2023
551f3f3
Merge pull request #2097 from betavs/feature/notice-bar
anlyyao Jun 20, 2023
cfb629f
fix(upload): fix abnormal image display (#2098)
betavs Jun 20, 2023
7677300
feat(tabs): add split property (#2113)
LeeJim Jun 20, 2023
3bcf5d7
fix(slider): fix abnormal calculation of slider mark (#2114)
betavs Jun 20, 2023
d8324c3
fix(Input): resolve value=0 is valid when type is number (#2108)
anlyyao Jun 20, 2023
6092abb
fix(slider): enable async render (#2115)
LeeJim Jun 20, 2023
f7fa258
fix: add type check before call pagescroll (#2116)
LeeJim Jun 20, 2023
f27a96f
build: remove issue assign logic
LeeJim Jun 20, 2023
7919521
fix(action-sheet): do not trigger close event when disabled (#2117)
LeeJim Jun 20, 2023
0687641
fix(stepper): trigger change when value changed (#2118)
LeeJim Jun 20, 2023
c4b3e32
chore: publish v1.1.10 (#2119)
LeeJim Jun 20, 2023
3767d36
Merge branch 'main' into develop
LeeJim Jun 21, 2023
410299a
fix(tabs): fix style anomalies caused by too many tabs items (#2123)
betavs Jun 21, 2023
52b1f8b
fix(picker): fix default value is invalid (#2126)
betavs Jun 26, 2023
b40609d
feat(checkbox-group): add borderless property (#2124)
betavs Jun 26, 2023
4aab257
fix(Stepper): resolved precision problem (#2130)
anlyyao Jun 28, 2023
615d3f8
fix(radio): fix vertical align (#2135)
betavs Jun 29, 2023
729ddc3
fix(checkbox): resolve align when icon size changed (#2136)
LeeJim Jun 29, 2023
63142ee
docs(checkbox): update (#2137)
LeeJim Jun 29, 2023
c0cefc4
fix(search): catch tap event when trigger clear (#2139)
LeeJim Jun 29, 2023
8494918
docs: update used page
LeeJim Jun 30, 2023
1346534
fix(divider): replace external class (#2140)
LeeJim Jun 30, 2023
f2f9f1a
feat(radio): enable allow-uncheck (#2141)
betavs Jul 2, 2023
909dba8
fix(toast): resolve repeated event triggering (#2146)
LeeJim Jul 3, 2023
e003f2a
feat(dropdown-item): add close event (#2147)
LeeJim Jul 3, 2023
231b70e
fix: resolve console warnings (#2149)
LeeJim Jul 4, 2023
0a71e11
Update README.md (#2150)
LeeJim Jul 4, 2023
3fc323a
fix(popup): update width when placement is bottom (#2152)
LeeJim Jul 4, 2023
1bdb0cd
chore: publish v1.1.11 (#2153)
LeeJim Jul 4, 2023
10a22fb
Merge branch 'main' into develop
LeeJim Jul 4, 2023
34250f5
test: remove snapshot for virtual-host (#2161)
LeeJim Jul 6, 2023
0adead3
fix(*): resolve console warn (#2164)
betavs Jul 10, 2023
246d5a7
fix: 修复rate组件选中没有生效 (#2158)
AntzyMo Jul 10, 2023
ff11c7d
fix(rate): uncatch event (#2168)
LeeJim Jul 10, 2023
20cd8d3
feat(pull-down-refresh): 增加show-scrollbar参数 (#2163)
lolhezihehe Jul 10, 2023
9446f5f
docs(pulldown-refresh): add show-scrollbar property
LeeJim Jul 10, 2023
3082456
fix(picker): observe value (#2169)
betavs Jul 10, 2023
b623bf3
fix(tabs): enable scroll smoothly (#2170)
LeeJim Jul 10, 2023
3767aeb
fix(tree-select): enable value with empty array (#2173)
LeeJim Jul 11, 2023
6ad792d
chore: publish v1.1.12 (#2175)
LeeJim Jul 11, 2023
13b8261
Merge branch 'main' into develop
LeeJim Jul 12, 2023
be7cf15
chore: add css variables content for api docs (#2182)
anlyyao Jul 13, 2023
09b70c5
docs: add external-class content (#2186)
anlyyao Jul 13, 2023
4e0d501
feat(action-sheet): support the show-overlay property (#2194)
betavs Jul 14, 2023
fa14977
fix(toast): fix type error in the close method of toast (#2191)
betavs Jul 14, 2023
a61812b
fix: action ci script security
xiaosansiji Jul 17, 2023
ead01ff
Merge pull request #2201 from Tencent/fix/ci-security
anlyyao Jul 17, 2023
271e822
fix: resolved some spelling mistake (#2197)
anlyyao Jul 17, 2023
9181dbc
Fix/20230715 wrong label (#2195)
hwaphon Jul 17, 2023
3368cd4
docs(action-sheet): enable show-overlay (#2196)
betavs Jul 17, 2023
a31d475
fix(picker): column index is always zero (#2188)
betavs Jul 18, 2023
af69008
docs: add external-class content (#2200)
ccccpj Jul 18, 2023
a1781bb
chore: publish v1.1.13 (#2205)
LeeJim Jul 18, 2023
be8e097
Merge branch 'main' into develop
LeeJim Jul 19, 2023
431dada
fix(popup): resolve auto focus (#2209)
LeeJim Jul 21, 2023
e9c8f16
feat(action-sheet): support suffix icon for list type (#2210)
LeeJim Jul 21, 2023
22a3645
fix: resolve slider render (#2211)
LeeJim Jul 21, 2023
d66e67c
feat(TreeSelect): support label super long ellipsis (#2208)
anlyyao Jul 21, 2023
a3d2376
chore: publish v1.1.13-beta
LeeJim Jul 21, 2023
1ac5ba5
fix: enable remove scroller when component detached (#2215)
LeeJim Jul 25, 2023
e941403
fix: resolve grammar problem (#2217)
LeeJim Jul 25, 2023
bba642f
feat(overlay): enable duration (#2179)
betavs Jul 25, 2023
4299e29
chore: publish v1.1.14 (#2219)
LeeJim Jul 25, 2023
9a3d411
Merge branch 'main' into develop
LeeJim Jul 25, 2023
715c332
docs(link): 补充使用说明,修复文档中句号导致的链接跳转错误 (#2227)
qianxuu Jul 30, 2023
24e9d32
fix: update script for testing demo (#2235)
LeeJim Jul 31, 2023
f6ab6fb
fix(action-sheet): enable item color for grid type (#2231)
LeeJim Jul 31, 2023
62c2d26
chore: remove getphonenumber on demo (#2225)
LeeJim Jul 31, 2023
4be1e88
fix(swipe-cell): enable dynaimc props (#2239)
LeeJim Aug 1, 2023
e7d0def
feat(dropdown-menu): support custom icon for arrow (#2240)
LeeJim Aug 1, 2023
c5ccbf2
chore: publish v1.1.15 (#2241)
LeeJim Aug 1, 2023
e13bada
Merge branch 'main' into develop
LeeJim Aug 1, 2023
e232fe0
fix(Swiper): resolved loading style (#2246)
anlyyao Aug 4, 2023
1648691
feat(search): support property for input (#2229)
betavs Aug 7, 2023
90fc22c
docs(swiper): add external class (#2256)
LeeJim Aug 7, 2023
0f155c1
fix(TabBar): resolved demo code error (#2257)
anlyyao Aug 8, 2023
4ac23db
feat(Icon): update icon form 0.1.4 to 0.2.0 (#2254)
anlyyao Aug 8, 2023
d595a18
fix(Input): resolved t-class-label invalid (#2259)
anlyyao Aug 9, 2023
a7ab4d3
fix(grid-item): invalid less variables (#2253)
betavs Aug 10, 2023
e65dd44
chore: upgrade icon-view component (#2269)
uyarn Aug 10, 2023
427a56b
fix(radio): avoid unnecessary render (#2271)
LeeJim Aug 14, 2023
9bf915c
fix(swipe-cell): prevent default scroll (#2281)
LeeJim Aug 15, 2023
3ac0b6b
fix(collapse): enable expand all (#2280)
LeeJim Aug 15, 2023
acfbb30
docs(radio): update api
LeeJim Aug 15, 2023
39079b2
fix(swipe-cell): enable hidden on the beginning (#2283)
LeeJim Aug 15, 2023
7ed3170
fix(checkbox): enable icon using slot (#2285)
LeeJim Aug 15, 2023
277d8c7
feat(loading): add css variable for text color (#2273)
ElanYoung Aug 16, 2023
e2a4c8f
fix(popup): resolve scroll over throught (#2290)
LeeJim Aug 16, 2023
84aed34
chore: publish v1.2.0 (#2293)
LeeJim Aug 16, 2023
2a12dc1
Merge branch 'main' into develop
LeeJim Aug 16, 2023
295dfd3
feat(radio): enable readonly (#2292)
betavs Aug 17, 2023
a87218b
fix(CellGroup): resolved updateLastChid is triggered multiple times (…
anlyyao Aug 18, 2023
cdce071
fix(Popup): resolved visibleChange event parameter error (#2303)
anlyyao Aug 19, 2023
03d38c8
fix(rate): when value = 0, default-value != 0, allow-half = true, the…
betavs Aug 21, 2023
dea3606
chore: update swiper demo
LeeJim Aug 22, 2023
29154a4
fix(radio): resolve event propagation (#2309)
LeeJim Aug 22, 2023
9088f56
chore: publish v1.2.1 (#2310)
LeeJim Aug 22, 2023
f5295e4
Merge branch 'main' into develop
LeeJim Aug 22, 2023
a154eef
fix(stepper): enable input decimal number (#2314)
LeeJim Aug 23, 2023
3a4d383
fix(tree-select): resolve async options (#2315)
LeeJim Aug 23, 2023
c16b567
fix(action-sheet): remove unused component (#2318)
betavs Aug 25, 2023
9fa21a8
feat(rate): rate组件库支持自定义图标前缀iconPrefix,适配第三方图标库
lixingdecai Aug 29, 2023
2ea2840
feat: fix
lixingdecai Aug 29, 2023
56b5517
fix(side-bar): example abnormal (#2325)
betavs Aug 29, 2023
71084c9
Helly w feature/button agreeprivacyauthorization (#2330)
LeeJim Aug 29, 2023
d562260
Merge branch 'develop' of github.com:lixingdecai/tdesign-miniprogram …
LeeJim Aug 29, 2023
1403a42
docs: recover en api
LeeJim Aug 29, 2023
60e493a
chore: update demo
LeeJim Aug 29, 2023
804be6f
chore: publish v1.2.2 (#2333)
LeeJim Aug 29, 2023
e290205
Merge branch 'main' into develop
LeeJim Aug 30, 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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ toc: false
docClass: timeline
---

## 🌈 1.2.2 `2023-08-29`
### 🚀 Features
- `Rate`: 支持第三方图标 @lixingdecai ([#2328](https://github.com/Tencent/tdesign-miniprogram/pull/2328))
- `Button`: 新增 `t-id` 属性,相等于 `id` @HellyW ([#2320](https://github.com/Tencent/tdesign-miniprogram/pull/2320))
- `Button`: 属性 `open-type` 新增支持 `agreePrivacyAuthorization` @HellyW ([#2320](https://github.com/Tencent/tdesign-miniprogram/pull/2320))

### 🐞 Bug Fixes
- `Stepper`: 修复无法输出小数的问题 @LeeJim ([#2314](https://github.com/Tencent/tdesign-miniprogram/pull/2314))
- `Stepper`: 修复输入小数后增减的精度问题 @LeeJim ([#2314](https://github.com/Tencent/tdesign-miniprogram/pull/2314))
- `TreeSelect`: 解决异步 options 导致无法渲染的问题 @LeeJim ([#2315](https://github.com/Tencent/tdesign-miniprogram/pull/2315))
- `TreeSelect`: 解决异步数据导致的报错问题 @LeeJim ([#2315](https://github.com/Tencent/tdesign-miniprogram/pull/2315))
- `ActionSheet`: 移除未使用的组件 @betavs ([#2318](https://github.com/Tencent/tdesign-miniprogram/pull/2318))
- `SideBar`: 修复示例滚动问题 @betavs ([#2325](https://github.com/Tencent/tdesign-miniprogram/pull/2325))

## 🌈 1.2.1 `2023-08-22`
### 🚀 Features
- `Radio`: 新增 `readonly` 属性 @betavs ([#2292](https://github.com/Tencent/tdesign-miniprogram/pull/2292))
Expand Down
2 changes: 1 addition & 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.2.1",
"version": "1.2.2",
"description": "tdesign-miniprogram",
"title": "tdesign-ßminiprogram",
"main": "miniprogram_dist/index.js",
Expand Down
3 changes: 1 addition & 2 deletions src/action-sheet/action-sheet.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"t-icon": "../icon/icon",
"t-popup": "../popup/popup",
"t-grid": "../grid/grid",
"t-grid-item": "../grid-item/grid-item",
"t-swiper-nav": "../swiper-nav/swiper-nav"
"t-grid-item": "../grid-item/grid-item"
}
}
4 changes: 3 additions & 1 deletion src/button/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

name | type | default | description | required
-- | -- | -- | -- | --
t-id | String | - | button tag id | N
block | Boolean | false | make button to be a block-level element | N
content | String / Slot | - | button's children elements | N
custom-dataset | Object | - | Typescript:`any` | N
Expand All @@ -20,7 +21,7 @@ suffix | Slot | - | \- | N
theme | String | default | button theme。options:default/primary/danger | N
type | String | - | type of button element, same as formType of Miniprogram。options:submit/reset | N
variant | String | base | button variant。options:base/outline/text | N
open-type | String | - | options:contact/share/getPhoneNumber/getUserInfo/launchApp/openSetting/feedback/chooseAvatar | N
open-type | String | - | options:contact/share/getPhoneNumber/getUserInfo/launchApp/openSetting/feedback/chooseAvatar/agreePrivacyAuthorization | N
hover-stop-propagation | Boolean | false | \- | N
hover-start-time | Number | 20 | \- | N
hover-stay-time | Number | 70 | \- | N
Expand All @@ -38,6 +39,7 @@ binderror | Eventhandle | - | \- | N
bindopensetting | Eventhandle | - | \- | N
bindlaunchapp | Eventhandle | - | \- | N
bindchooseavatar | Eventhandle | - | \- | N
bindagreeprivacyauthorization | Eventhandle | - | \-| N

### Button Events

Expand Down
4 changes: 3 additions & 1 deletion src/button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ isComponent: true

名称 | 类型 | 默认值 | 说明 | 必传
-- | -- | -- | -- | --
t-id | String | - | 按钮标签id | N
block | Boolean | false | 是否为块级元素 | N
content | String / Slot | - | 按钮内容 | N
custom-dataset | Object | - | 自定义 dataset,可通过 event.currentTarget.dataset.custom 获取。TS 类型:`any` | N
Expand All @@ -79,7 +80,7 @@ suffix | Slot | - | 右侧内容,可用于定义右侧图标 | N
theme | String | default | 组件风格,依次为品牌色、危险色。可选项:default/primary/danger/light | N
type | String | - | 同小程序的 formType。可选项:submit/reset | N
variant | String | base | 按钮形式,基础、线框、文字。可选项:base/outline/dashed/text | N
open-type | String | - | 微信开放能力。<br />具体释义:<br />`contact` 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从 bindcontact 回调中获得具体信息,<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/customer-message.html">具体说明</a> (*小程序插件中不能使用*);<br />`share` 触发用户转发,使用前建议先阅读<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#使用指引">使用指引</a>;<br />`getPhoneNumber` 获取用户手机号,可以从 bindgetphonenumber 回调中获取到用户信息,<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html">具体说明</a> (*小程序插件中不能使用*);<br />`getUserInfo` 获取用户信息,可以从 bindgetuserinfo 回调中获取到用户信息 (*小程序插件中不能使用*);<br />`launchApp` 打开APP,可以通过 app-parameter 属性设定向 APP 传的参数<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/launchApp.html">具体说明</a>;<br />`openSetting` 打开授权设置页;<br />`feedback` 打开“意见反馈”页面,用户可提交反馈内容并上传<a href="https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/wx.getLogManager.html">日志</a>,开发者可以登录<a href="https://mp.weixin.qq.com/">小程序管理后台</a>后进入左侧菜单“客服反馈”页面获取到反馈内容;<br />`chooseAvatar` 获取用户头像,可以从 bindchooseavatar 回调中获取到头像信息。<br />[小程序官方文档](https://developers.weixin.qq.com/miniprogram/dev/component/button.html)。可选项:contact/share/getPhoneNumber/getUserInfo/launchApp/openSetting/feedback/chooseAvatar | N
open-type | String | - | 微信开放能力。<br />具体释义:<br />`contact` 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从 bindcontact 回调中获得具体信息,<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/customer-message.html">具体说明</a> (*小程序插件中不能使用*);<br />`share` 触发用户转发,使用前建议先阅读<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#使用指引">使用指引</a>;<br />`getPhoneNumber` 获取用户手机号,可以从 bindgetphonenumber 回调中获取到用户信息,<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html">具体说明</a> (*小程序插件中不能使用*);<br />`getUserInfo` 获取用户信息,可以从 bindgetuserinfo 回调中获取到用户信息 (*小程序插件中不能使用*);<br />`launchApp` 打开APP,可以通过 app-parameter 属性设定向 APP 传的参数<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/launchApp.html">具体说明</a>;<br />`openSetting` 打开授权设置页;<br />`feedback` 打开“意见反馈”页面,用户可提交反馈内容并上传<a href="https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/wx.getLogManager.html">日志</a>,开发者可以登录<a href="https://mp.weixin.qq.com/">小程序管理后台</a>后进入左侧菜单“客服反馈”页面获取到反馈内容;<br />`chooseAvatar` 获取用户头像,可以从 bindchooseavatar 回调中获取到头像信息;<br />`agreePrivacyAuthorization`用户同意隐私协议按钮。用户点击一次此按钮后,所有隐私接口可以正常调用。可通过`bindagreeprivacyauthorization`监听用户同意隐私协议事件。隐私合规开发指南详情可见《<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/user-privacy/PrivacyAuthorize.html">小程序隐私协议开发指南</a>》。<br />[小程序官方文档](https://developers.weixin.qq.com/miniprogram/dev/component/button.html)。可选项:contact/share/getPhoneNumber/getUserInfo/launchApp/openSetting/feedback/chooseAvatar/agreePrivacyAuthorization | N
hover-class | String | '' | 指定按钮按下去的样式类,按钮不为加载或禁用状态时有效。当 `hover-class="none"` 时,没有点击态效果 | N
hover-stop-propagation | Boolean | false | 指定是否阻止本节点的祖先节点出现点击态 | N
hover-start-time | Number | 20 | 按住后多久出现点击态,单位毫秒 | N
Expand All @@ -98,6 +99,7 @@ binderror | Eventhandle | - | 当使用开放能力时,发生错误的回调
bindopensetting | Eventhandle | - | 在打开授权设置页后回调,open-type=openSetting时有效 | N
bindlaunchapp | Eventhandle | - | 打开 APP 成功的回调,open-type=launchApp时有效 | N
bindchooseavatar | Eventhandle | - | 获取用户头像回调,open-type=chooseAvatar时有效 | N
bindagreeprivacyauthorization | Eventhandle | - | 用户同意隐私协议事件回调,open-type=agreePrivacyAuthorization时有效 | N

### Button Events

Expand Down
6 changes: 6 additions & 0 deletions src/button/__test__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ describe('button', () => {
const handler = jest.fn();
const id = simulate.load({
template: `<t-button
tId="test"
class="btn"
openType="{{openType}}"
bind:getuserinfo="handler"
Expand All @@ -66,6 +67,7 @@ describe('button', () => {
bind:opensetting="handler"
bind:launchapp="handler"
bind:chooseavatar="handler"
bind:agreeprivacyauthorization="handler"
></t-button>`,
data: {
openType: 'getUserInfo',
Expand Down Expand Up @@ -109,5 +111,9 @@ describe('button', () => {
$btn.dispatchEvent('chooseavatar');
await simulate.sleep(10);
expect(handler).toHaveBeenCalledTimes(14);

$btn.dispatchEvent('agreeprivacyauthorization');
await simulate.sleep(10);
expect(handler).toHaveBeenCalledTimes(16);
});
});
3 changes: 3 additions & 0 deletions src/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export default class Button extends SuperComponent {
chooseavatar(e) {
this.triggerEvent('chooseavatar', e.detail);
},
agreeprivacyauthorization(e) {
this.triggerEvent('agreeprivacyauthorization', e.detail);
},
handleTap(e) {
if (this.data.disabled || this.data.loading) return;

Expand Down
2 changes: 2 additions & 0 deletions src/button/button.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<wxs src="../common/utils.wxs" module="_" />

<button
id="{{tId}}"
style="{{_._style([style, customStyle])}}"
data-custom="{{ customDataset }}"
class="class {{className}}"
Expand All @@ -26,6 +27,7 @@
bind:opensetting="opensetting"
bind:launchapp="launchapp"
bind:chooseavatar="chooseavatar"
bind:agreeprivacyauthorization="agreeprivacyauthorization"
aria-label="{{ariaLabel}}"
>
<template
Expand Down
6 changes: 5 additions & 1 deletion src/button/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
* */

import { TdButtonProps } from './type';
const props: TdButtonProps = {
const props: TdButtonProps = {
/**按钮id */
tId: {
type: String,
},
/** 是否为块级元素 */
block: {
type: Boolean,
Expand Down
8 changes: 7 additions & 1 deletion src/button/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import { LoadingProps } from '../loading/index';
import { SizeEnum } from '../common/common';

export interface TdButtonProps {
/**按钮id */
tId?: {
type: StringConstructor;
value?: string;
};
/**
* 是否为块级元素
* @default false
Expand Down Expand Up @@ -127,7 +132,8 @@ export interface TdButtonProps {
| 'launchApp'
| 'openSetting'
| 'feedback'
| 'chooseAvatar';
| 'chooseAvatar'
| 'agreePrivacyAuthorization';
};
/**
* 指定按钮按下去的样式类,按钮不为加载或禁用状态时有效。当 `hover-class="none"` 时,没有点击态效果
Expand Down
2 changes: 2 additions & 0 deletions src/calendar/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ exports[`calendar :base 1`] = `
hoverStartTime="{{20}}"
hoverStayTime="{{70}}"
hoverStopPropagation="{{false}}"
id=""
lang="en"
openType=""
sendMessageImg=""
Expand All @@ -765,6 +766,7 @@ exports[`calendar :base 1`] = `
sessionFrom=""
showMessageCard="{{false}}"
style=""
bind:agreeprivacyauthorization="agreeprivacyauthorization"
bind:chooseavatar="chooseavatar"
bind:contact="contact"
bind:error="error"
Expand Down
1 change: 1 addition & 0 deletions src/common/template/button.wxml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template name="button">
<t-button
t-id="{{tId}}"
block="{{block || false}}"
class="{{class || ''}}"
t-class="{{externalClass}}"
Expand Down
3 changes: 2 additions & 1 deletion src/rate/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ size | String | 24px | \- | N
texts | Array | [] | Typescript:`Array<string>` | N
value | Number | 0 | \- | N
default-value | Number | undefined | uncontrolled property | N
iconPrefix | String | undefined | icon prefix | N
variant | String | outline | options:outline/filled | N

### Rate Events
Expand All @@ -36,4 +37,4 @@ Name | Default Value | Description
--td-rate-text-active-font-weight | 600 | -
--td-rate-text-color | @font-gray-4 | -
--td-rate-text-font-size | @font-size-m | -
--td-rate-unselected-color | @bg-color-secondarycomponent | -
--td-rate-unselected-color | @bg-color-secondarycomponent | -
5 changes: 5 additions & 0 deletions src/rate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ isComponent: true

{{ special }}

自定义图片前缀

{{iconPrefix}}


## API
### Rate Props
Expand All @@ -75,6 +79,7 @@ size | String | 24px | 评分图标的大小 | N
texts | Array | [] | 评分等级对应的辅助文字。组件内置默认值为:['极差', '失望', '一般', '满意', '惊喜']。自定义值示例:['1分', '2分', '3分', '4分', '5分']。TS 类型:`Array<string>` | N
value | Number | 0 | 选择评分的值 | N
default-value | Number | undefined | 选择评分的值。非受控属性 | N
iconPrefix | String | undefined | 定义图标前缀
variant | String | outline | 废弃。形状类型,有描边类型和填充类型两种。可选项:outline/filled | N

### Rate Events
Expand Down
13 changes: 13 additions & 0 deletions src/rate/_example/custom-prefix/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Component({
data: {
value: 3,
},
methods: {
onChange(e) {
const { value } = e.detail;
this.setData({
value,
});
},
},
});
6 changes: 6 additions & 0 deletions src/rate/_example/custom-prefix/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"t-rate": "tdesign-miniprogram/rate/rate"
}
}
4 changes: 4 additions & 0 deletions src/rate/_example/custom-prefix/index.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<view class="demo-rate">
<view class="demo-rate__title">第三方图标</view>
<t-rate value="{{value}}" iconPrefix="icon" icon="a-1h" bind:change="onChange" />
</view>
22 changes: 22 additions & 0 deletions src/rate/_example/custom-prefix/index.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.demo-rate {
background-color: #fff;
height: 96rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32rpx;
border-bottom: solid 1rpx #f0f0f0;
border-top: solid 1rpx #f0f0f0;
margin-top: 32rpx;
margin-bottom: 32rpx;
}

.demo-rate__title {
width: 200rpx;
}

.demo-rate__transparent {
background-color: transparent;
padding-left: 32rpx;
border: 0;
}
31 changes: 31 additions & 0 deletions src/rate/_example/iconfont.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@font-face {
font-family: 'icon'; /* Project id 3144196 */
src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAPUAAsAAAAACGAAAAOFAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDGgqEPIQBATYCJAMUCwwABCAFhDcHQhtVBxHVmy/JfhzGjunMd9u7ZdNoJGL95+B5ckPfvzsIgZjoVHHRKe1qNlEdfUoAPFpzlgKhvLdV7dpf4MyYhRbmw1+ObxM9+wDSmJP2okWn0XkEe1sWSOAJJR4mYA3TSx7kD48ggEsZ9VFNm7ftSsjYQVPHk4DBlwpUtTJ21IhBONyBmagVHAR76U6DbMQCtUo9BzZk75cfVIgDCkvjn9NxeLOhPPTb+R31wtqF6PckEgQ4WwEWoIGih7mk93SgK7pIF6FxhwKGPDTZIOB3rK312yWKZ//hgaDQGBAbvzoIgIYwY8BvFxEI+O0JFPgdCDT4HVVfpN0CwAWWfQ68w1yWUQUvFRUUEJMZ0zBmzKILZ26suXbqHGrh2ZNXV18/fV68hafWnInRi06vPskQ3VV6eKqH9vB2nPDWbNu2C1xZtH31VhgiPfbE7kmo2ba78+R9oy6cueOtuXVuHwt3+kNEdfVYNWfEmhMii067q3cK6kYqetu26F2w6GjUtlO79uXprVE7b7r38YsHl62wxmwPBrvdDvyl7A2Os2v65berseOS461n/fL6PbPim4dlpFSGJIdmpmSGMm3NvmaVrZtVNPePPcwtGCU9i0KcX3dKyKGCTUFnY9aHrCNjTeN5PzcGxQd6498Eh4WH5zXPjbbvdIxJHLz4dnx4QLNlC4Y/nd98/MZvwLSjqfOTGoRGhEX8dfOa50XbtyfEJHVbM+JAnW7F8SnLQr7+lxVUpFRN6PF4ZnpY62/ZybnNs8Ki0qIimiWf7HroYciPBM85E3+uGqdmAKjPamomzPiEAAJN2zkJA0Lr/nY8A8DHwLJq4DAszzgoYIrfbuy7UNRYGTKaoc7Ih2BddD9goQJcXKDWj0Tw8RhT5OIkCKahZFAEEAuNIYUyXAYsPHJgYyiHSyHV+z0iGYhGTCCQwxQAwWEXFCEcgsbhAmW4G7CI4QFsHF7AxXn+ZQ85QYZDxpFxgekHag6eQj1npVcULztmKY8ST8xFwTh0dVvPXdBjXrOmvEXPTEA5ODhvvQ+tDRBz0DhzLZnjvmlo6Cn1HNzqkHFkXIDpB6g5eEos3Fx+RfGyYx5QZ74nQl3hclgPdNS0E9TF4Ce7XrS+vEUPMwFkq4MDzlf70AbpAMThaRpnrpEbknFPg8RoqaG+1uTekpz14a+2RIkWI5bYbAdV7S6ydTKm+/ggVysAAAA=')
format('woff2'),
url('//at.alicdn.com/t/font_3144196_s14ifjx2cyi.woff?t=1642299317916') format('woff'),
url('//at.alicdn.com/t/font_3144196_s14ifjx2cyi.ttf?t=1642299317916') format('truetype');
}

.icon {
font-family: 'icon' !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-a-0:before {
content: '\e64d';
}

.icon-a-1h:before {
content: '\e64e';
}

.icon-a-2h:before {
content: '\e64f';
}

.icon-a-3h:before {
content: '\e650';
}
1 change: 1 addition & 0 deletions src/rate/_example/rate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"usingComponents": {
"base": "./base",
"custom": "./custom",
"custom-prefix": "./custom-prefix",
"special": "./special",
"un-filled": "./un-filled",
"count": "./count",
Expand Down
1 change: 1 addition & 0 deletions src/rate/_example/rate.less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import './iconfont.wxss';
3 changes: 3 additions & 0 deletions src/rate/_example/rate.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<view class="demo-desc">自定义评分</view>
<custom />

<view class="demo-desc">第三方图标评分</view>
<custom-prefix />

<view class="demo-desc">自定义评分数量</view>
<count />

Expand Down
5 changes: 5 additions & 0 deletions src/rate/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ const props: TdRateProps = {
type: null,
value: 8,
},
/** 自定义图标前缀 */
iconPrefix: {
type: String,
value: undefined,
},
/** 自定义评分图标,[选中图标,未选中图标] */
icon: {
type: null,
Expand Down
1 change: 1 addition & 0 deletions src/rate/rate.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
t-class="{{prefix}}-class-icon"
name="{{utils.getIconName(defaultValue, value, index, icon)}}"
size="{{ size }}"
prefix="{{iconPrefix}}"
/>
</view>
<text
Expand Down
8 changes: 8 additions & 0 deletions src/rate/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ export interface TdRateProps {
type: null;
value?: string | number;
};
/**
* 自定义图标前缀
*/
iconPrefix?: {
type: StringConstructor;
value?: string;
reuqired?: boolean;
};
/**
* 自定义评分图标,[选中图标,未选中图标]
*/
Expand Down
Loading
Loading