Skip to content

Commit a7cdf6b

Browse files
committed
fix: merge
2 parents 285da6e + a5eded7 commit a7cdf6b

File tree

105 files changed

+1795
-1122
lines changed

Some content is hidden

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

105 files changed

+1795
-1122
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# v3.0.6
2+
3+
`2025-03-28`
4+
5+
- :sparkles: feat(skeleton): v15 (#3086)
6+
- :sparkles: feat(Tabbar): v15 样式适配;增加 icon/value/title 的function类型,支持根据active状态渲染不同数据;增加 onDoubleClick 事件 (#3110)
7+
- :sparkles: feat(indicator): 增加 UI 变体的类型 (#3114)
8+
- :sparkles: feat(switch): 异步切换支持受控loading态 (#3122)
9+
- :sparkles: feat(notify): v15 (#3082)
10+
- :sparkles: feat(lottie): 支持京东小程序 (#3080)
11+
- :sparkles: feat(demoblock): code block scrolling behavior, CodesandBox function and copyCode styles (#3106)
12+
- :bug: fix(searchbar): 支付宝小程序设置 enableInPageRenderInput 后无法触发 onChange (#3130)
13+
- :bug: fix: doc css (#3126)
14+
- :bug: fix(overlay): 扩大点击范围 (#3117)
15+
- :bug: fix(pickerview): 解决小程序获取高度计算错误 (#3120)
16+
- :bug: fix(badge): 修正css变量定义 (#3123)
17+
- :bug: fix: update pkgjson title (#3119)
18+
- 🪵 refactor(badge): 支持禁用模式 (#3118)
19+
- 🏡 chore: support ui review (#3121)
20+
121
# v3.0.5
222

323
`2025-03-21`

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nutui/nutui-react-taro",
3-
"version": "3.0.5",
3+
"version": "3.0.6",
44
"style": "dist/style.css",
55
"main": "dist/nutui.react.umd.js",
66
"module": "dist/es/packages/nutui.react.build.js",
@@ -54,6 +54,7 @@
5454
"changelog": "node ./scripts/generate-changelog.js",
5555
"clone:jdharmony": "node ./scripts/harmony/clone-jdharmony.js",
5656
"dev": "vite --open --force",
57+
"dev:jmapp": "VITE_APP_PROJECT_ID=jmapp vite --open --force",
5758
"dev:rtl": "VITE_RTL=rtl vite --open --force",
5859
"dev:jrkf": "VITE_APP_PROJECT_ID=jrkf vite --open --force",
5960
"dev:taro:rn:dark": "THEME=dark pnpm dev:taro:rn",

packages/nutui-taro-demo/config/prod.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ try {
1111
/* empty */
1212
}
1313

14+
console.log(hash && UI ? `-${hash}` : '')
15+
1416
module.exports = {
1517
env: {
1618
NODE_ENV: '"production"',
@@ -19,7 +21,7 @@ module.exports = {
1921
defineConstants: {},
2022
mini: {},
2123
h5: {
22-
publicPath: `/taro/react/3x/demo-${hash}`,
24+
publicPath: `/taro/react/3x/demo${hash && UI ? `-${hash}` : ''}`,
2325
/**
2426
* WebpackChain 插件配置
2527
* @docs https://github.com/neutrinojs/webpack-chain

scripts/generate-local-changelog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ shell.exec(
1010
{ silent: true },
1111
(code, stdout, stderr) => {
1212
shell.exec(
13-
`git log --since="${stdout.replace('\n', '')}" --pretty=format:"%s" next`,
13+
`git log --since="${stdout.replace('\n', '')}" --pretty=format:"%s" feat_v3.x`,
1414
{ silent: true },
1515
(code, stdout, stderr) => {
1616
const logs = stdout.split('\n')

src/config.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406
"sort": 2,
407407
"show": true,
408408
"taro": true,
409-
"v15": 2,
409+
"v15": 1,
410410
"author": "dsj",
411411
"dd": true
412412
},
@@ -989,7 +989,7 @@
989989
"taro": true,
990990
"v15": 10,
991991
"author": "oasis",
992-
"dd": false
992+
"dd": true
993993
},
994994
{
995995
"version": "3.0.0",
@@ -1013,7 +1013,7 @@
10131013
"sort": 15,
10141014
"show": true,
10151015
"taro": true,
1016-
"v15": 2,
1016+
"v15": 1,
10171017
"author": "swag~jun",
10181018
"dd": true
10191019
},
@@ -1127,29 +1127,29 @@
11271127
"dd": false
11281128
},
11291129
{
1130-
"version": "2.0.0",
1130+
"version": "3.0.0",
11311131
"name": "Collapse",
11321132
"type": "component",
11331133
"cName": "折叠面板",
11341134
"desc": "折叠面板,可进行内容折叠展开操作,可以多面板配合使用。",
11351135
"sort": 2,
11361136
"show": true,
11371137
"taro": true,
1138-
"v15": -1,
1139-
"author": "zhenyulei",
1140-
"dd": false
1138+
"v15": 1,
1139+
"author": "oasis",
1140+
"dd": true
11411141
},
11421142
{
1143-
"version": "2.0.0",
1143+
"version": "3.0.0",
11441144
"name": "CollapseItem",
11451145
"type": "component",
11461146
"cName": "折叠面板子组件",
11471147
"desc": "折叠面板的子组件",
11481148
"sort": 13,
11491149
"show": false,
11501150
"exportEmpty": true,
1151-
"author": "zhenyulei",
1152-
"dd": false
1151+
"author": "oasis",
1152+
"dd": true
11531153
},
11541154
{
11551155
"version": "3.0.0",

src/packages/collapse/__test__/__snapshots__/collapse.spec.tsx.snap

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,16 @@ exports[`should match snapshot 1`] = `
4242
</div>
4343
</div>
4444
<div
45-
class="nut-collapse-item-content"
45+
class="nut-collapse-item-content-wrapper nut-collapse-item-content-wrapper-tran"
4646
>
4747
<div
48-
class="nut-collapse-item-content-text"
48+
class="nut-collapse-item-content"
4949
>
50-
京东“厂直优品计划”首推“政府优品馆” 3年覆盖80%镇级政府
50+
<div
51+
class="nut-collapse-item-content-text"
52+
>
53+
京东“厂直优品计划”首推“政府优品馆” 3年覆盖80%镇级政府
54+
</div>
5155
</div>
5256
</div>
5357
</div>
@@ -88,20 +92,24 @@ exports[`should match snapshot 1`] = `
8892
</div>
8993
</div>
9094
<div
91-
class="nut-collapse-item-content"
95+
class="nut-collapse-item-content-wrapper nut-collapse-item-content-wrapper-tran"
9296
>
9397
<div
94-
class="nut-collapse-item-content-text"
98+
class="nut-collapse-item-content"
9599
>
96-
京东“厂直优品计划”首推“政府优品馆” 3年覆盖80%镇级政府
100+
<div
101+
class="nut-collapse-item-content-text"
102+
>
103+
京东“厂直优品计划”首推“政府优品馆” 3年覆盖80%镇级政府
104+
</div>
97105
</div>
98106
</div>
99107
</div>
100108
<div
101109
class="nut-collapse-item"
102110
>
103111
<div
104-
class="nut-collapse-item-header disabled"
112+
class="nut-collapse-item-header nut-collapse-item-header-disabled"
105113
>
106114
<div
107115
class="nut-collapse-item-title"
@@ -134,13 +142,16 @@ exports[`should match snapshot 1`] = `
134142
</div>
135143
</div>
136144
<div
137-
class="nut-collapse-item-content"
138-
style="height: 0px;"
145+
class="nut-collapse-item-content-wrapper nut-collapse-item-content-wrapper-tran"
139146
>
140147
<div
141-
class="nut-collapse-item-content-text"
148+
class="nut-collapse-item-content"
142149
>
143-
京东“厂直优品计划”首推“政府优品馆”
150+
<div
151+
class="nut-collapse-item-content-text"
152+
>
153+
京东“厂直优品计划”首推“政府优品馆”
154+
</div>
144155
</div>
145156
</div>
146157
</div>

src/packages/collapse/__test__/collapse.spec.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ test('prop activeName', async () => {
6363
</Collapse>
6464
</>
6565
)
66-
67-
expect(
68-
container.querySelectorAll('.nut-collapse-item-content')[2]
69-
).toHaveStyle('height:0px')
66+
waitFor(() => {
67+
expect(
68+
container.querySelectorAll('.nut-collapse-item-content-wrapper')[2]
69+
).toHaveStyle({
70+
height: '0',
71+
})
72+
})
7073
})
7174

7275
test('prop rotate', async () => {

src/packages/collapseitem/collapseitem.scss

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@
3838
left: 16px;
3939
bottom: 0;
4040
border-bottom: $collapse-item-header-border-bottom;
41-
-webkit-transform: scaleY(0.5);
42-
transform: scaleY(0.5);
41+
/* #ifdef harmony */
42+
transform: scale(1, 1);
43+
/* #endif */
44+
/* #ifndef harmony */
45+
transform: scale(1, 0.5);
46+
/* #endif */
4347
}
4448
}
4549

@@ -78,7 +82,7 @@
7882
transition: transform 0.3s;
7983
}
8084

81-
&-header.disabled {
85+
&-header-disabled {
8286
color: $collapse-item-disabled-color;
8387

8488
.nut-collapse-item-title {
@@ -90,21 +94,34 @@
9094
}
9195
}
9296

93-
&-content {
97+
&-content-wrapper {
98+
width: 100%;
99+
position: relative;
100+
box-sizing: border-box;
94101
overflow: hidden;
102+
&-tran {
103+
transition: all 0.3s linear;
104+
}
105+
}
106+
107+
&-content {
95108
display: block;
109+
position: absolute;
110+
height: auto;
111+
width: 100%;
112+
box-sizing: border-box;
96113
color: $collapse-wrapper-content-color;
97114
font-size: $collapse-wrapper-content-font-size;
98115
line-height: $collapse-wrapper-content-line-height;
99116
background-color: $collapse-wrapper-content-background-color;
100-
transition: all 0.3s linear;
101117

102118
&-text {
103119
color: $collapse-wrapper-content-color;
104120
padding: $collapse-wrapper-content-padding;
105121
}
106122
}
107123
}
124+
108125
[dir='rtl'] .nut-collapse-item,
109126
.nut-rtl .nut-collapse-item {
110127
&-icon {

0 commit comments

Comments
 (0)