Skip to content

Commit eb8bb4a

Browse files
authored
Merge branch 'feat_v3.x' into fix3/popover-0327
2 parents 1384e4b + 2bdf207 commit eb8bb4a

39 files changed

+428
-510
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@
110110
"@nutui/icons-react-taro": "^3.0.1",
111111
"@nutui/jdesign-icons-react-taro": "1.0.6-beta.2",
112112
"@nutui/touch-emulator": "^1.0.0",
113+
"@nutui/lottie-miniprogram": "^1.0.1",
113114
"@react-spring/web": "~9.6.1",
114115
"@swc/helpers": "^0.5.7",
115116
"@use-gesture/react": "10.2.20",
116117
"async-validator": "^4.2.5",
117118
"classnames": "^2.5.1",
118119
"codesandbox": "^2.2.3",
119120
"lodash.kebabcase": "^4.1.1",
120-
"lottie-miniprogram": "^1.0.12",
121121
"lottie-react": "^2.4.0",
122122
"react-fast-compare": "^3.2.2",
123123
"react-transition-group": "^4.4.5",

packages/nutui-taro-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"@jdtaro/plugin-platform-jdharmony-cpp": "0.1.29-beta.0",
6464
"@nutui/replace-icons": "^1.0.0",
6565
"@nutui/touch-emulator": "^1.0.0",
66+
"@nutui/lottie-miniprogram": "^1.0.1",
6667
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
6768
"@tarojs/components": "4.0.8-beta.1",
6869
"@tarojs/helper": "4.0.8-beta.1",
@@ -84,7 +85,6 @@
8485
"babel-plugin-import": "^1.13.8",
8586
"lodash.isequal": "^4.5.0",
8687
"lodash.kebabcase": "^4.1.1",
87-
"lottie-miniprogram": "^1.0.12",
8888
"lottie-react": "^2.4.0",
8989
"react": "^18.2.0",
9090
"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);

pnpm-lock.yaml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/harmony/update-taro-entry.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
const fse = require('fs-extra')
55
const config = require('../../src/config.json')
66
const param = process.env.C
7-
// G=nav pnpm dev:jdtaro:jdharmonycpp
8-
// base | layout | nav | dentry | dataentry | feedback | exhibition | business
7+
// G=nav pnpm dev:jdtaro:jdharmonycpp
8+
// base | layout | nav | dentry | dataentry | feedback | exhibition | business
99
const paramG = process.env.G
10-
10+
1111
// C=radio pnpm dev:jdtaro:jdharmonycpp or C=radio,button,cell pnpm dev:jdtaro:jdharmonycpp
1212
const specialComponent = (name) => {
1313
if (!param) return true
@@ -36,7 +36,7 @@ const createConfig = async () => {
3636
co.pages.push(`pages/${it.name.toLowerCase()}/index`)
3737
}
3838
})
39-
}
39+
}
4040
} else {
4141
item.packages.map((it) => {
4242
if (isShow(it)) {
@@ -68,6 +68,7 @@ export default defineAppConfig({
6868
navigationBarTitleText: 'NutUI-React',
6969
navigationBarTextStyle: 'black'
7070
},
71+
renderingMode: 'mixed',
7172
components: ['pages/index/index', ...(subPackages.map(subPackage => {
7273
return subPackage.pages.map(page => \`\${subPackage.root}/\${page}\`)
7374
}).flat())]

scripts/taro/generate-taro-route.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default defineAppConfig ({
4242
navigationBarTitleText: 'NutUI-React',
4343
navigationBarTextStyle: 'black'
4444
},
45+
renderingMode: 'mixed',
4546
components: ['pages/index/index', ...(subPackages.map(subPackage => {
4647
return subPackage.pages.map(page => \`\${subPackage.root}/\${page}\`)
4748
}).flat())]

src/packages/configprovider/types.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -363,15 +363,14 @@ export type NutCSSVariables =
363363
| 'nutuiPopupTitleHeight'
364364
| 'nutuiPopupTitleBorderBottom'
365365
| 'nutuiPopupAnimationDuration'
366-
| 'nutuiNotifyTextColor'
366+
| 'nutuiNotifyHeight'
367367
| 'nutuiNotifyPadding'
368+
| 'nutuiNotifyBorderRadius'
369+
| 'nutuiNotifyBoxShadow'
370+
| 'nutuiNotifyZIndex'
371+
| 'nutuiNotifyTextColor'
368372
| 'nutuiNotifyFontSize'
369-
| 'nutuiNotifyHeight'
370-
| 'nutuiNotifyBaseBackgroundColor'
371-
| 'nutuiNotifyPrimaryBackgroundColor'
372-
| 'nutuiNotifySuccessBackgroundColor'
373-
| 'nutuiNotifyDangerBackgroundColor'
374-
| 'nutuiNotifyWarningBackgroundColor'
373+
| 'nutuiNotifyBackgroundColor'
375374
| 'nutuiRateItemMargin'
376375
| 'nutuiRateIconColor'
377376
| 'nutuiRateIconInactiveColor'

src/packages/drag/demo.taro.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ const DragDemo = () => {
3636
return (
3737
<>
3838
<Header />
39-
<ScrollView className={`demo ${isTaroWeb ? 'web' : 'drag-full'}`}>
39+
<ScrollView
40+
className={`demo ${isTaroWeb ? 'web' : 'drag-full demo-bg-full'}`}
41+
>
4042
<View className="h2">{translated.basic}</View>
4143
<Demo1 />
4244
<View className="h2" style={{ paddingTop: '30px' }}>

src/packages/lottie/doc.taro.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ import { Lottie } from '@nutui/nutui-react-taro'
3434

3535
:::
3636

37+
> 提示:京东小程序开发工作无法展示,可使用真机预览
38+
3739
## Lottie
3840

3941
### Props

src/packages/lottie/index.taro.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ComponentType } from 'react'
2-
import { Lottie as LottieWeb } from './web.taro'
3-
import { Lottie as LottieMp } from './mp.taro'
2+
import { Lottie as LottieWeb } from './lottieweb.taro'
3+
import { Lottie as LottieMp } from './lottiemp.taro'
44
import { TaroLottieProps } from '@/types'
55

66
export type { TaroLottieProps as LottieProps } from '@/types'
@@ -9,7 +9,7 @@ let implementation
99
if (process.env.TARO_ENV === 'h5') {
1010
// @ts-ignore
1111
implementation = LottieWeb
12-
} else if (process.env.TARO_ENV === 'weapp') {
12+
} else if (process.env.TARO_ENV === 'weapp' || process.env.TARO_ENV === 'jd') {
1313
// @ts-ignore
1414
implementation = LottieMp
1515
} else {

0 commit comments

Comments
 (0)