Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1392 commits
Select commit Hold shift + click to select a range
23be22f
fix(Input): update style (#1381)
anlyyao Jan 4, 2023
b80a3e5
fix(indexes): update style (#1403)
LeeJim Jan 4, 2023
37d9313
fix(collapse): update demo (#1409)
LeeJim Jan 5, 2023
268b475
fix(image): update demo (#1410)
LeeJim Jan 5, 2023
f0a0eb6
feat(swiper): add image-props property (#1411)
LeeJim Jan 5, 2023
d4e6787
fix: use correct navbar title for components (#1413)
anlyyao Jan 5, 2023
02a6308
fix(radio): resolve click for a11y (#1416)
LeeJim Jan 5, 2023
530c10d
feat(Button): add some css variables (#1407)
anlyyao Jan 5, 2023
16d904a
fix(Avatar): update demo (#1419)
anlyyao Jan 5, 2023
2200ed7
fix: update images for demo (#1418)
anlyyao Jan 5, 2023
9a84f9b
feat(swiper): add click event (#1420)
LeeJim Jan 5, 2023
efc3f4a
chore: update issue template
LeeJim Jan 5, 2023
164f760
feat(pulldown-refresh): add scroll event (#1424)
LeeJim Jan 6, 2023
1b81ef2
fix(action-sheet): tabindex 元素去掉outline. (#1421) (#1427)
byq1213 Jan 6, 2023
368d2dd
fix(badge): update style (#1429)
LeeJim Jan 6, 2023
8bac428
fix(toast): prevent scroll on toast area (#1430)
LeeJim Jan 6, 2023
be0a56b
fix(dialog): update demo (#1433)
LeeJim Jan 6, 2023
dd587ab
fix(icon): remove invalid behaviors (#1434)
LeeJim Jan 6, 2023
3a2b794
feat(swiper): add click event (#1435)
LeeJim Jan 6, 2023
1ceb1dd
fix(tabs): update demo (#1437)
LeeJim Jan 6, 2023
4aa24c9
fix(slider): resolve default style (#1440)
LeeJim Jan 7, 2023
cdb757c
fix(avatar): optimize code (#1441)
LeeJim Jan 7, 2023
f71155f
fix: using uniform get rect function (#1443)
LeeJim Jan 7, 2023
fdc97ee
refactor(collapse): using animation to expand (#1445)
LeeJim Jan 8, 2023
639b077
feat(collapse): support placement property (#1446)
LeeJim Jan 8, 2023
78a73e3
feat(calendar): support auto-close property and close event (#1448)
LeeJim Jan 9, 2023
77f487c
Fix/navbar/demo (#1450)
LeeJim Jan 9, 2023
c47d6f2
refactor(avatar): make avatar-group a separate directory (#1452)
LeeJim Jan 9, 2023
d05ee05
refactor(collapse): make collapse-panel a separate directory (#1453)
LeeJim Jan 9, 2023
14a754d
refactor(dropdown-menu): make dropdown-item a separate directory (#1454)
LeeJim Jan 9, 2023
9cfea8f
fix(SwipeCell): fix swipe distance calculation error (#1449)
anlyyao Jan 9, 2023
0fbd9a3
refactor(picker): make picker-item a separate directory (#1455)
LeeJim Jan 9, 2023
dad54cb
refactor(steps): make step-item a separate directory (#1456)
LeeJim Jan 9, 2023
08af829
fix(Grid): update demo (#1451)
anlyyao Jan 9, 2023
7aa7d72
refactor(swiper): make swiper-nav a separate directory (#1457)
LeeJim Jan 9, 2023
509823c
refactor(grid): make grid-item a separate directory (#1459)
LeeJim Jan 9, 2023
8431d97
refactor(tab-bar): make tab-bar-item a separate directory (#1460)
LeeJim Jan 9, 2023
4e8ac2a
Refactor/dir/tab panel (#1462)
LeeJim Jan 9, 2023
1074f9e
refactor(tag): make check-tag a separate directory (#1466)
LeeJim Jan 9, 2023
c0183c4
fix(checkbox): upadte group props file (#1464)
LeeJim Jan 9, 2023
452f3d0
fix(Cell): update demo (#1465)
anlyyao Jan 9, 2023
fba41d8
fix(Textarea): fix model:value invalid problem (#1463)
anlyyao Jan 9, 2023
42e20dd
chore: publish v0.34.0 (#1467)
LeeJim Jan 9, 2023
f7dad74
Merge branch 'develop'
LeeJim Jan 10, 2023
8b7665f
docs: update changelog
LeeJim Jan 10, 2023
45391f9
Merge branch 'develop'
LeeJim Jan 10, 2023
2338048
fix: update using component (#1471)
LeeJim Jan 10, 2023
1167248
fix(calendar): update demo (#1473)
LeeJim Jan 10, 2023
e3cb63a
fix(collapse): enables nested use (#1477)
LeeJim Jan 10, 2023
f31cbd0
feat(cell): support custom height (#1482)
LeeJim Jan 11, 2023
1b8d32f
fix: some demo (#1483)
LeeJim Jan 11, 2023
fae2885
feat(indexes): support sticky-offset (#1485)
LeeJim Jan 11, 2023
4736509
feat: optimize QR code script (#1468)
anlyyao Jan 11, 2023
c7ddea7
fix(Textarea): support adaptive parent container height (#1484)
anlyyao Jan 11, 2023
baad26b
feat(Button): support 0.5px border by transform property (#1474)
anlyyao Jan 11, 2023
cacaccc
chore: publish v0.34.0-beta.0
LeeJim Jan 11, 2023
81a717d
fix(Stepper): fix disabled state style error (#1487)
anlyyao Jan 12, 2023
58b0dbc
fix(rate): optimize detail (#1490)
LeeJim Jan 12, 2023
98de808
fix: fix demo (#1489)
anlyyao Jan 12, 2023
538b193
fix(Button): fix style errors when using shape attribute (#1491)
anlyyao Jan 12, 2023
8487842
fix(tabs): remove placement property (#1492)
LeeJim Jan 12, 2023
a0eeb97
fix(collapse): remove header border when retracted (#1493)
LeeJim Jan 12, 2023
1482e71
refactor: using virtual-host and change custom-style to style (#1495)
LeeJim Jan 12, 2023
cb0e6d3
chore: publish v1.0.0-rc (#1496)
LeeJim Jan 12, 2023
d94ee11
docs: update
LeeJim Jan 12, 2023
b29e81a
Merge branch 'develop'
LeeJim Jan 12, 2023
b9bbb88
Revert "feat: optimize QR code script (#1468)" (#1499)
LeeJim Jan 13, 2023
29431a7
Merge branch 'develop'
LeeJim Jan 13, 2023
c66cc17
Fix/upload/slot (#1507)
LeeJim Jan 14, 2023
1fb856c
fix(cascader): enable multiple slot (#1508)
LeeJim Jan 15, 2023
1670a4b
feat(picker): upate ux (#1513)
LeeJim Jan 16, 2023
e0e45a0
chore: update qrcode (#1503)
anlyyao Jan 16, 2023
146f977
docs: add faq for image (#1512)
LeeJim Jan 16, 2023
1d9e567
feat(Cell): enrich CSS Variables (#1515)
anlyyao Jan 17, 2023
972c3ca
fix(dialog): remove built-in input style (#1516)
LeeJim Jan 17, 2023
4d1b4f9
feat(Cell): enrich CSS Variables (#1517)
anlyyao Jan 17, 2023
48cd90d
feat(NoticeBar): update demo (#1514)
anlyyao Jan 17, 2023
ddc21fb
fix(Swiper): fix swiper-item switching error when autoplay state (#1494)
anlyyao Jan 17, 2023
fdcc3eb
feat(sidebar): finish support icon (#1520)
LeeJim Jan 18, 2023
8c5d05d
Feat/tabs/add icon (#1519)
LeeJim Jan 18, 2023
3a6b785
chore: publish v1.0.0-rc.1 (#1522)
LeeJim Jan 19, 2023
6fc51ef
docs: update changelog
LeeJim Jan 19, 2023
6414081
test: update snapshot
LeeJim Jan 19, 2023
fecea35
1.0.0-rc.1 (#1524)
LeeJim Jan 19, 2023
479153f
fix(navbar): add height for root element (#1526)
LeeJim Jan 27, 2023
62fa290
fix(Search): fix slot name error (#1529)
anlyyao Jan 30, 2023
4383473
Fix/navbar/height (#1528)
LeeJim Jan 30, 2023
cc7d3f9
feat(loading): support aria (#1534)
yaogengzhu Jan 31, 2023
ee5a148
feat(Checkbox&&Button): enrich css variable (#1530)
anlyyao Jan 31, 2023
c4a1f33
fix: resolve slot (#1539)
LeeJim Feb 1, 2023
527d955
fix(image-viewer): update slot render logic & event params (#1544)
LeeJim Feb 2, 2023
bf45375
refactor: support both style and customStyle property (#1532)
LeeJim Feb 2, 2023
5dc4ad3
docs(image): update api for slot (#1549)
LeeJim Feb 3, 2023
b1b5758
fix: fix console warnings caused by template (#1548)
anlyyao Feb 3, 2023
6159222
chore(Icon): update default value of the color and size attr to an em…
anlyyao Feb 3, 2023
f15fa9a
fix: 组件引用路径改成相对路径 (#1551)
Feb 3, 2023
502522d
fix(Calendar): remove the outline style of the tabindex element (#1573)
anlyyao Feb 11, 2023
5107bf5
feat(Input): support for slots named tips (#1572)
anlyyao Feb 11, 2023
6b23f8c
fix(Button): fix css variable naming errors (#1563)
anlyyao Feb 12, 2023
d90949b
docs: add custom-style (#1581)
LeeJim Feb 13, 2023
82803bf
fix: resolve console warnings (#1586)
LeeJim Feb 13, 2023
1066a8f
fix(calendar): remove condition of title slot (#1588)
LeeJim Feb 13, 2023
cf4b959
feat: add submodule (#1589)
LeeJim Feb 13, 2023
b8ca575
chore: publish v1.0.0-rc.2 (#1590)
LeeJim Feb 13, 2023
5ea0950
docs: add changelog
LeeJim Feb 13, 2023
fdd1373
feat(sidebar): support aria (#1554)
zhangpaopao0609 Feb 14, 2023
c66e214
feat(drawer): support aria (#1552)
zhangpaopao0609 Feb 14, 2023
1d34db1
Merge branch 'main' into develop
LeeJim Feb 14, 2023
d37cc50
1.0.0-rc.2 (#1593)
LeeJim Feb 14, 2023
1e2379d
test: update jest.virtualHost.config.js (#1566)
anlyyao Feb 15, 2023
0de13c1
fix(image): update slot demo (#1600)
LeeJim Feb 16, 2023
c0d78dd
fix(Input): resolve the incorrect vertical layout style (#1585)
anlyyao Feb 16, 2023
26e804b
fix: resolve some demo problems (#1607)
anlyyao Feb 16, 2023
73e643c
refactor: support class (#1587)
anlyyao Feb 16, 2023
334ea48
fix(image): update slot render logic (#1609)
LeeJim Feb 17, 2023
2b14d80
docs: update overview.md (#1610)
anlyyao Feb 17, 2023
a45eb8a
fix: resolve the console warnings (#1611)
anlyyao Feb 17, 2023
8499862
fix(tabs): resolve property reactive problem (#1616)
LeeJim Feb 20, 2023
07a82e5
fix:修复下拉菜单遮罩层无法点击的问题 (#1615)
RoseyW Feb 20, 2023
aaadf25
feat(dropdown-menu): add reset event (#1617)
LeeJim Feb 20, 2023
8014982
fix(message): resolve event (#1618)
LeeJim Feb 20, 2023
730fa81
fix: resolve event name (#1619)
LeeJim Feb 20, 2023
33d1d20
chore: publish v1.0.0-rc.3 (#1620)
LeeJim Feb 20, 2023
86e909c
fix: optimize css token (#1623)
LeeJim Feb 21, 2023
feea65a
fix(fab): recover style default value (#1625)
LeeJim Feb 21, 2023
a4e3c2f
Merge branch 'develop'
LeeJim Feb 22, 2023
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
7e24936
1.0.0 (#1681)
LeeJim Feb 28, 2023
8ec6f71
chore: update common
LeeJim Feb 28, 2023
7018f84
chore: update common
LeeJim Feb 28, 2023
43437d5
fix(input): resolve wxml
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
f3ed075
1.0.1 (#1703)
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
00c7ff8
1.0.2 (#1742)
LeeJim Mar 8, 2023
1deb8ce
fix(dropdown-menu): resolve label and radio icon placement (#1748)
LeeJim Mar 8, 2023
b3a3cef
Update README.md (#1751)
hezhi3f Mar 9, 2023
be20b2f
fix(popup): resolve close can not tap (#1754)
jarmywang Mar 9, 2023
8dacfe8
fix(calendar): resolve format property reactive (#1753)
LeeJim Mar 9, 2023
6c6d3ca
fix: fix docs for upload and icon components (#1752)
anlyyao Mar 9, 2023
24f33b8
feat(picker): support keys property (#1759)
LeeJim Mar 11, 2023
6fb5a5d
fix(checkbox): resolve check all when some is diabled (#1766)
LeeJim Mar 13, 2023
e55efb2
fix(badge): resolve color property (#1764)
LeeJim Mar 13, 2023
ce1214b
feat(Input): support bindnicknamereview (#1755)
anlyyao Mar 13, 2023
87af653
fix(upload): make size-limit support object (#1763)
LeeJim Mar 13, 2023
fe550ec
fix(Button): fix disabled invalid (#1739)
anlyyao Mar 13, 2023
8a262e4
fix(grid | cell | tabs | tabbar | sliderBar): 有 badge,有新的消息、不朗读异常 (#1…
yaogengzhu Mar 13, 2023
c12d11d
chore: update projects who use tdesign
LeeJim Mar 14, 2023
934e981
fix(Cell): resolve the incomplete display of note content (#1769)
anlyyao Mar 14, 2023
38dd037
feat(wxs): the style attr supports camel case (#1744)
anlyyao Mar 14, 2023
96a3301
feat(popup): support background,border-radius,safe-area (#1758)
jarmywang Mar 14, 2023
a05cc67
fix(Progress): resolve slot invalid when label is true (#1771)
anlyyao Mar 14, 2023
98a0eb2
fix(grid): resolve image slot (#1772)
LeeJim Mar 14, 2023
875b28b
chore: publish v1.0.3 (#1774)
LeeJim Mar 14, 2023
6c9a9a9
Merge branch 'main' into develop
LeeJim Mar 14, 2023
dd51d75
1.0.3 (#1775)
LeeJim Mar 14, 2023
694a5e6
feat(pull-down-refresh.wxml): pull-down-refresh无障碍支持 (#1241)
shinyina Mar 14, 2023
680613c
docs(radio): update api
LeeJim Mar 15, 2023
fad9297
fix(Textarea): resolve the style problem when autosize is true (#1781)
anlyyao Mar 16, 2023
c0b6a40
feat(step aria): step aria (#1783)
tangzixuan Mar 16, 2023
83ad687
chore: update site-components (#1795)
honkinglin Mar 17, 2023
cba42b0
fix(upload): 修复upload点击事件失效问题 (#1802)
yaogengzhu Mar 18, 2023
7826aed
fix(switch): resolve label and icon (#1809)
LeeJim Mar 18, 2023
7b2c976
fix(loading): resolve style error (#1810)
LeeJim Mar 19, 2023
1c627de
chore: add new project
LeeJim Mar 19, 2023
bdf5ad5
fix(radio): resolve placement (#1812)
LeeJim Mar 19, 2023
b6e1d38
fix(button): resolve multiple slot (#1813)
LeeJim Mar 19, 2023
9fb1ed7
fix(upload): 修复limit限制的问题 (#1800)
yaogengzhu Mar 19, 2023
ee7d94c
build: add workflow for issue labeld
LeeJim Mar 20, 2023
d484171
fix: resolve multiple slots (#1816)
LeeJim Mar 20, 2023
d81e812
chore: publish v1.0.4 (#1818)
LeeJim Mar 20, 2023
41768cc
Merge branch 'main' into develop
LeeJim Mar 20, 2023
4478648
docs: update custom theme
LeeJim Mar 22, 2023
7275ed2
docs: update custom theme
LeeJim Mar 22, 2023
9b0c82a
新增layout布局 (#1821)
wuping97 Mar 22, 2023
b637569
build: update issue label workflow
LeeJim Mar 22, 2023
100d6d7
Docs/layout (#1822)
LeeJim Mar 22, 2023
9410d26
fix: cls函数支持传入数值类型 (#1827)
wuping97 Mar 23, 2023
c2b67ed
修复 button 组件 disableb 对控制 tap 无效问题 (#1833)
wuping97 Mar 24, 2023
5d460a6
feat(search): add type prop to input component (#1828)
haochenli Mar 24, 2023
96df1ba
fix(NoticeBar): resolve scroll (#1835)
anlyyao Mar 24, 2023
933f764
Merge remote-tracking branch 'origin/develop' into feature/update-fro…
Rimin Mar 24, 2023
010baf1
feat: delete qq example
Apr 1, 2023
8580c8b
feat: 更新qq/script 以及删除不可用语法
Apr 1, 2023
6ebb202
feat(slider): no catch
Apr 2, 2023
f07cc5b
feat: modify qq gulp base file
Apr 2, 2023
910e7a2
docs: update docs
Apr 2, 2023
099d934
docs: add img resourse
Rimin Apr 4, 2023
6f27340
docs: update docs
Rimin Apr 4, 2023
6b02127
docs: update read me
Rimin Apr 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = {
},
},
{
files: ['example/**'],
files: ['example/**', '**/_example/**'],
rules: {
'no-console': 0,
},
Expand Down
20 changes: 4 additions & 16 deletions .github/ISSUE_TEMPLATE/bug-report.zh-CN.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 反馈 Bug
description: 通过 github 模板进行 Bug 反馈。
title: "[组件名称] 描述问题的标题"
title: '[组件名称] 描述问题的标题'
body:
- type: markdown
attributes:
Expand Down Expand Up @@ -51,25 +51,13 @@ body:
id: frameworkVersion
attributes:
label: 框架版本
placeholder: Vue(3.2.0)

- type: input
id: browsersVersion
attributes:
label: 浏览器版本
placeholder: Chrome(8.213.231.123)
placeholder: miniprogram(3.2.0)

- type: input
id: systemVersion
attributes:
label: 系统版本
placeholder: MacOS(11.2.3)

- type: input
id: nodeVersion
attributes:
label: Node版本
placeholder: 请填写
label: 基础库版本
placeholder: 2.11.3

- type: textarea
id: remarks
Expand Down
13 changes: 12 additions & 1 deletion .github/actions/install-dep/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,24 @@ on:
nodeVersion:
required: false
type: string
default: '12'
default: '14'

runs:
using: "composite"
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ inputs.nodeVersion }}
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
shell: bash
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` 并合并为准
89 changes: 89 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Auto Release

on:
pull_request:
branches: [develop]
types: [opened, synchronize, reopened, closed]
paths:
- 'package.json'
issue_comment:
types: [edited]

jobs:
generator:
runs-on: ubuntu-latest
if: >
github.event_name == 'pull_request' &&
github.event.pull_request.merged == false &&
startsWith(github.head_ref, 'release/')
steps:
- run: echo "The head of this PR starts with 'release/'"
- uses: actions/checkout@v3
- uses: 94dreamer/auto-release@develop
id: changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Add comment
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
${{ steps.changelog.outputs.changelog }}
comment_add_log:
runs-on: ubuntu-latest
if: >
github.event_name == 'issue_comment'
&& github.event.issue.pull_request
&& github.event.sender.login == github.event.issue.user.login
&& startsWith(github.event.comment.body, '## 🌈 ')
steps:
- id: comment
shell: bash
run: |
result=$(curl ${{github.event.issue.pull_request.url}} -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}")
headrefreg='"ref": "(release/[[:digit:]]{1,2}\.[[:digit:]]{1,2}\.[[:digit:]]{1,2})",'
if [[ $result =~ $headrefreg ]]
then
echo "属于 release pr 的 comment ${BASH_REMATCH[1]}"
else
echo "不属于 release pr 的 comment" && exit 1
fi
echo "branch=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT
# zsh $match[1]
- uses: actions/checkout@v3
with:
ref: ${{ steps.comment.outputs.branch }}
- run: echo '${{ github.event.comment.body }}'
- name: Commit and push if needed
run: |
txt=$(cat CHANGELOG.md)
body='${{ github.event.comment.body }}'
echo "${txt%%##*}${body}${txt##*---}" > CHANGELOG.md
git add .
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "chore: changelog's changes"
git push
echo "💾 pushed changelog's changes"
merge_tag:
runs-on: ubuntu-latest
if: >
github.event_name == 'pull_request' &&
github.event.pull_request.merged == true &&
startsWith(github.head_ref, 'release/')
steps:
- uses: actions/checkout@v3
with:
ref: develop
token: ${{ secrets.PERSONAL_TOKEN }}
- name: tag and push if needed
run: |
data=$(cat package.json)
re="\"version\": \"([^\"]*)\""
[[ $data =~ $re ]]
echo "${BASH_REMATCH[1]}"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git tag ${BASH_REMATCH[1]}
git push origin ${BASH_REMATCH[1]}
echo "pushed tag ${BASH_REMATCH[1]}"
4 changes: 2 additions & 2 deletions .github/workflows/issue-assignees.temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Issue Add Assigness

on:
issues:
types: [opened, edited]
types: [opened]

jobs:
mark-duplicate:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
- run: |
contributors=${{ steps.assignees.outputs.contributors }}
contributorstring=${contributors//,/ @}
echo "::set-output name=string::@$contributorstring"
echo "string=@$contributorstring" >> $GITHUB_OUTPUT
id: contributors

- name: 通知贡献者
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/issue-help-wanted.temp.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# force copy from tencent/tdesign
name: Issue Help wanted

on:
issues:
types:
- labeled
types: [labeled]

jobs:
add-comment:
if: github.event.label.name == 'help wanted'
runs-on: ubuntu-latest
permissions:
issues: write
if: github.event.label.name == 'help wanted'
steps:
- name: Add comment
uses: peter-evans/create-or-update-comment@v1
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
任何人都可以处理此问题。
**请务必在您的 `pull request` 中引用此问题。** :sparkles:
感谢你的贡献! :sparkles:
reactions: heart
emoji: 'heart'
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/[email protected]
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'
2 changes: 1 addition & 1 deletion .github/workflows/issue-mark-duplicate.temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: mark-duplicate
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: "mark-duplicate"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-reply.temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Need Reproduce
if: github.event.label.name == 'Need Reproduce'
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/issue-stale-close.temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
stale-pr-message: '这个 PR 已经过时了,因为它已经持续 45 天没有任何活动了。 删除 stale 的标签或评论,否则将在 10 天内关闭。'
close-issue-message: "此 Issue 被自动关闭,因为它自被标记为过时 stale 以来已闲置 7 天。"
close-pr-message: "此 PR 被自动关闭,因为它已经 stable 停滞了 10 天,没有任何活动。"
days-before-stale: 30
days-before-stale: -1
days-before-close: 7
days-before-pr-stale: 45
days-before-pr-stale: -1
days-before-pr-close: 10
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-issue-labels: 'WIP'
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: PREVIEW

on:
issue_comment:
types: [created]

jobs:
request-preview:
runs-on: ubuntu-latest
if: github.event_name == 'issue_comment' && github.event.issue.pull_request && startsWith(github.event.comment.body, '预览')
steps:
- run: |
timestamp=$(date +%s)
echo "timestamp=${timestamp}" >> $GITHUB_OUTPUT
id: time
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
message: |
正在构建预览的二维码,请稍等...
comment_tag: ${{steps.time.outputs.timestamp}}
- uses: LeeJim/pull-request-comment-branch@main
id: comment-branch
- uses: actions/checkout@v3
if: success()
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}
repository: ${{ steps.comment-branch.outputs.head_repo_name_with_owner }}
- uses: ./.github/actions/install-dep
- run: npm run build
shell: bash
- id: get-robot
run: |
comment=${{ env.comment }}
echo "robot=${comment: 2: 1}" >> $GITHUB_OUTPUT
shell: bash
env:
comment: ${{ github.event.comment.body }}
- name: get preview qrcode
id: preview
uses: LeeJim/setup-miniprogram@main
with:
project_type: miniProgram
action_type: preview
project_path: ./_example
es6: true
es7: true
minify: true
robot: ${{ steps.get-robot.outputs.robot }}
env:
MINI_APP_ID: ${{ secrets.TDESIGN_APP_ID }}
MINI_APP_PRIVATE_KEY: ${{ secrets.TDESIGN_MINI_KEY }}
- name: Upload qrcode to Tencent COS
uses: LeeJim/tencent-cos-action@main
id: cos
with:
secretId: ${{ secrets.TENCENT_COS_SECRET_ID }}
secretKey: ${{ secrets.TENCENT_COS_SECRET_KEY }}
bucket: mp-qrcode-1255404841
region: ap-guangzhou
content: ${{ steps.preview.outputs.preview-qrcode }}
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
message: |
<img alt="qrcode" src="${{ steps.cos.outputs.url }}" width="256" />
comment_tag: ${{steps.time.outputs.timestamp}}
Loading