Skip to content

Commit 41f19c8

Browse files
committed
fix: resolve conflicts
2 parents e188a52 + 4602b2f commit 41f19c8

File tree

483 files changed

+8106
-5996
lines changed

Some content is hidden

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

483 files changed

+8106
-5996
lines changed

CHANGELOG.md

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,78 @@
1-
# v3.0.3
1+
# v3.0.8
2+
3+
`2025-04-11`
4+
5+
- :sparkles: feat(v15): swipe 增加 v15 的 demo (#3160)
6+
- :sparkles: feat(dialog): 添加变量处理 (#3172)
7+
- :bug: fix(sidebar): scroll animation not working with sidebarDuration prop (#3169)
8+
- :bug: fix(switch): 异步操作中抛错可中断 loading 态 (#3143)
9+
- :bug: fix: jmapp demo build (#3146)
10+
- :bug: fix(image): 组件内部的style处理覆盖传入的className (#3165)
11+
- :bug: fix(cascader): 选中后 tab 应展示 text 字段的值 (#3167)
12+
- :bug: fix: codesandbox displays abnormal (#3159)
13+
- :bug: fix(docs): 修复 markdown 无法正确编译注释 (#3158)
14+
- :bug: fix(skeleton): 废弃inline 导致的警告问题修复 (#3154)
15+
- 🏡 chore: 增加 useHtmlComponents 模式 (#3156)
16+
- 📖 docs: 补充快速上手和主题中的配置项的解释 (#3163)
17+
18+
# v3.0.7
19+
20+
`2025-04-03`
21+
22+
- :sparkles: feat(jdesign): 修订变量名 (#3127)
23+
- :sparkles: feat(collapse): 适配鸿蒙 (#3139)
24+
- :bug: fix(tabs): 兼容16的处理 (#3150)
25+
- :bug: fix(dialog):修复函数式调用时 hidecancel 不生效问题 (#3145)
26+
- :bug: fix(button): 样式变量无法生效问题修复 (#3142)
27+
- :bug: fix(Popup): 调整最小高度设定为 26% (#3144)
28+
- :bug: fix: popover 无法关闭的问题,删除无用代码和无用的样式变量 (#3129)
29+
- :bug: fix: contribution img failed to display (#3141)
30+
- :bug: fix(switch): 简化props使用 (#3132)
31+
- :bug: fix: tabbar config json (#3134)
32+
- 🪵 refactor(dialog): 抽离types到标准spec下,去掉web h5 wrap层 (#3147)
33+
- 🏡 chore: 修复正式环境的 publicPath (#3137)
34+
35+
# v3.0.6
36+
37+
`2025-03-28`
38+
39+
- :sparkles: feat(skeleton): v15 (#3086)
40+
- :sparkles: feat(Tabbar): v15 样式适配;增加 icon/value/title 的function类型,支持根据active状态渲染不同数据;增加 onDoubleClick 事件 (#3110)
41+
- :sparkles: feat(indicator): 增加 UI 变体的类型 (#3114)
42+
- :sparkles: feat(switch): 异步切换支持受控loading态 (#3122)
43+
- :sparkles: feat(notify): v15 (#3082)
44+
- :sparkles: feat(lottie): 支持京东小程序 (#3080)
45+
- :sparkles: feat(demoblock): code block scrolling behavior, CodesandBox function and copyCode styles (#3106)
46+
- :bug: fix(searchbar): 支付宝小程序设置 enableInPageRenderInput 后无法触发 onChange (#3130)
47+
- :bug: fix: doc css (#3126)
48+
- :bug: fix(overlay): 扩大点击范围 (#3117)
49+
- :bug: fix(pickerview): 解决小程序获取高度计算错误 (#3120)
50+
- :bug: fix(badge): 修正css变量定义 (#3123)
51+
- :bug: fix: update pkgjson title (#3119)
52+
- 🪵 refactor(badge): 支持禁用模式 (#3118)
53+
- 🏡 chore: support ui review (#3121)
54+
55+
# v3.0.5
56+
57+
`2025-03-21`
58+
59+
- feat(pickerview): 小程序支持自定义列表行高 (#3102)
60+
- feat: 优化了一下文档样式,更紧凑清晰 (#3105)
61+
- fix(ImagePreview): 优化代码,fix 因为popup最大宽度导致的问题 (#2939)
62+
- fix(badge): 解决中文偏上问题 (#3111)
63+
- fix(swipe): 调整 demo 中字体为 12 (#3093)
64+
- fix: correct import paths (#3089)
65+
- fix: 开发环境中导出 types 下的类型 (#3090)
66+
- fix(inputnumber): value 大于 max 图标应处于禁用态 (#3107)
67+
- fix(resultpage): 引入button样式 (#3103)
68+
- fix(SearchBar): demo 样式变量修订 (#3101)
69+
- fix: adjust site style (#3096)
70+
- refactor(fixednav): support harmony (#3095)
71+
- docs: 补充web 设置 px 转 rem时的文档 (#3098)
72+
- feat(pickerview): 选中值增加class类名用于自定义样式 (#3097)
73+
- test(uploader): optimize async test cases stability (#3104)
74+
75+
# v3.0.4
276

377
`2025-03-07`
478

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nutui/nutui-react-taro",
3-
"version": "3.0.4",
3+
"version": "3.0.9-beta.1",
44
"style": "dist/style.css",
55
"main": "dist/nutui.react.umd.js",
66
"module": "dist/es/packages/nutui.react.build.js",
@@ -54,12 +54,14 @@
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",
6061
"predev:taro": "pnpm run update:taro:entry",
6162
"dev:taro": "pnpm --dir ./packages/nutui-taro-demo dev",
6263
"dev:taro:h5": "pnpm dev:taro h5",
64+
"dev:taro:h5:html": "USE_HTML=1 pnpm dev:taro h5",
6365
"predev:jdtaro": "pnpm run update:taro:entry",
6466
"dev:jdtaro": "JD=1 pnpm --dir ./packages/nutui-taro-demo dev",
6567
"dev:jdtaro:jdharmonycpp": "pnpm run clone:jdharmony cpp && pnpm run update:taro:entry && JD=1 pnpm --dir ./packages/nutui-taro-demo dev:jdharmonycpp",
@@ -69,14 +71,14 @@
6971
"build:taro": "node ./scripts/replace-css-var.js && npm run checked:taro && node scripts/build-taro.mjs",
7072
"build:taro:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp node scripts/build-taro.mjs",
7173
"build:demo": "npm run checked && vite build --config vite.config.demo.ts",
72-
"build:demo:jmapp": "npm run checked && VITE_APP_PROJECT_ID=jmapp vite build",
74+
"build:demo:jmapp": "npm run checked && VITE_APP_PROJECT_ID=jmapp vite build --config vite.config.demo.ts",
7375
"prebuild:taro:demo": "SKIPDD=1 pnpm run update:taro:entry",
7476
"build:taro:demo": "npm run checked:taro && npm run generate:file:taro:pages && pnpm --dir ./packages/nutui-taro-demo build:h5",
7577
"build:site": "vite build --config vite.config.site.mts",
7678
"build:taro:site": "vite build --config vite.config.site.taro.mts && node ./scripts/rename.js",
7779
"build:jdtaro:demo": "npm run checked:taro && npm run generate:file:taro:pages && JD=1 pnpm --dir ./packages/nutui-taro-demo build:h5",
78-
"build:taro:demo:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp npm run generate:file:taro:pages && pnpm --dir ./packages/nutui-taro-demo build:h5",
79-
"build:jdtaro:demo:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp npm run generate:file:taro:pages && JD=1 pnpm --dir ./packages/nutui-taro-demo build:h5",
80+
"build:taro:demo:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp npm run generate:file:taro:pages && pnpm --dir ./packages/nutui-taro-demo build:jmapp h5",
81+
"build:jdtaro:demo:jmapp": "npm run checked:taro && VITE_APP_PROJECT_ID=jmapp npm run generate:file:taro:pages && JD=1 pnpm --dir ./packages/nutui-taro-demo build:jmapp h5",
8082
"generate:file": "node scripts/generate-nutui.js",
8183
"generate:themes": "node scripts/generate-themes.js",
8284
"generate:themes-dev": "node scripts/generate-themes-dev.js",
@@ -110,13 +112,14 @@
110112
"@nutui/icons-react-taro": "^3.0.1",
111113
"@nutui/jdesign-icons-react-taro": "1.0.6-beta.2",
112114
"@nutui/touch-emulator": "^1.0.0",
115+
"@nutui/lottie-miniprogram": "^1.0.2",
113116
"@react-spring/web": "~9.6.1",
114117
"@swc/helpers": "^0.5.7",
115118
"@use-gesture/react": "10.2.20",
116119
"async-validator": "^4.2.5",
117120
"classnames": "^2.5.1",
121+
"codesandbox": "^2.2.3",
118122
"lodash.kebabcase": "^4.1.1",
119-
"lottie-miniprogram": "^1.0.12",
120123
"lottie-react": "^2.4.0",
121124
"react-fast-compare": "^3.2.2",
122125
"react-transition-group": "^4.4.5",

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ let themeStr = `src/styles/theme-default.scss`
55
const projectID = process.env.VITE_APP_PROJECT_ID
66
const JD = process.env.JD
77
console.log('JDJDJDJDJDJD', JD)
8+
const useHtml = process.env.USE_HTML
9+
console.log('useHtml', useHtml)
10+
811
if (projectID) {
912
fileStr = `src/styles/variables-${projectID}.scss`
1013
themeStr = `src/styles/theme-${projectID}.scss`
@@ -210,6 +213,7 @@ const config = {
210213
},
211214
publicPath: '/',
212215
staticDirectory: 'static',
216+
useHtmlComponents: useHtml === '1',
213217
postcss: {
214218
pxtransform: {
215219
enable: true,

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1+
const { execSync } = require('child_process')
2+
3+
const UI = process.env.UI
4+
console.log('UI Review', UI)
5+
6+
let hash = ''
7+
try {
8+
hash = execSync('git rev-parse HEAD').toString().trim().substring(0, 7)
9+
console.log(`当前 Git hash: ${hash}`)
10+
} catch (error) {
11+
/* empty */
12+
}
13+
14+
console.log(hash && UI ? `-${hash}` : '')
15+
116
module.exports = {
217
env: {
318
NODE_ENV: '"production"',
419
},
20+
outputRoot: `dist/${process.env.TARO_ENV === 'h5' ? `demo${hash && UI ? `-${hash}` : ''}` : process.env.TARO_ENV}`,
521
defineConstants: {},
622
mini: {},
723
h5: {
8-
publicPath: '/taro/react/3x/demo',
24+
publicPath: `/taro/react/${process.env.VITE_APP_PROJECT_ID === 'jmapp' ? 'jdesign-3x' : '3x'}/demo${hash && UI ? `-${hash}` : ''}`,
925
/**
1026
* WebpackChain 插件配置
1127
* @docs https://github.com/neutrinojs/webpack-chain

packages/nutui-taro-demo/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"dev": "taro build --watch --type",
1313
"dev:jmapp": "VITE_APP_PROJECT_ID=jmapp taro build --watch --type",
1414
"build": "taro build --type",
15-
"build:jmapp": "taro build --type",
16-
15+
"build:jmapp": "VITE_APP_PROJECT_ID=jmapp taro build --type",
1716
"build:weapp": "taro build --type weapp",
1817
"build:swan": "taro build --type swan",
1918
"build:alipay": "taro build --type alipay",
@@ -63,6 +62,7 @@
6362
"@jdtaro/plugin-platform-jdharmony-cpp": "0.1.29-beta.0",
6463
"@nutui/replace-icons": "^1.0.0",
6564
"@nutui/touch-emulator": "^1.0.0",
65+
"@nutui/lottie-miniprogram": "^1.0.1",
6666
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
6767
"@tarojs/components": "4.0.8-beta.1",
6868
"@tarojs/helper": "4.0.8-beta.1",
@@ -84,7 +84,6 @@
8484
"babel-plugin-import": "^1.13.8",
8585
"lodash.isequal": "^4.5.0",
8686
"lodash.kebabcase": "^4.1.1",
87-
"lottie-miniprogram": "^1.0.12",
8887
"lottie-react": "^2.4.0",
8988
"react": "^18.2.0",
9089
"react-dom": "^18.2.0",

packages/nutui-taro-demo/src/app.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ body {
3333

3434
&.drag-full {
3535
padding: 57px 0 0 0;
36+
}
37+
38+
&-bg-full {
3639
min-height: 100vh;
3740
.jd-scroll-view {
3841
min-height: calc(100vh - 57px);

packages/nutui-taro-demo/src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Component } from 'react'
2-
import './app.scss'
3-
42
import('@/sites/assets/styles/reset.scss')
53
import('@/packages/nutui.react.scss.taro')
64
import('@nutui/touch-emulator')
75

6+
import './app.scss'
7+
88
// console.log(NutUI)
99
class App extends Component {
1010
render() {

packages/nutui-taro-demo/src/pages/index/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { SearchBar } from '@/packages/searchbar/searchbar.taro'
1616
import pkg from '@/packages/../config.json'
1717
import packageJson from '@/packages/../../package.json'
1818
import './index.scss'
19-
import { harmony } from '../../../../../src/utils/platform-taro'
19+
import { harmony } from '../../../../../src/utils/taro/platform'
2020

2121
const navs = pkg.nav
2222

0 commit comments

Comments
 (0)