Skip to content

Commit af9d9c6

Browse files
committed
chore: 合并主分支
2 parents 006a927 + 99fac51 commit af9d9c6

Some content is hidden

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

80 files changed

+4556
-3031
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,13 +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",
119+
"codesandbox": "^2.2.3",
118120
"lodash.kebabcase": "^4.1.1",
119-
"lottie-miniprogram": "^1.0.12",
120121
"lottie-react": "^2.4.0",
121122
"react-fast-compare": "^3.2.2",
122123
"react-transition-group": "^4.4.5",

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
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+
114
module.exports = {
215
env: {
316
NODE_ENV: '"production"',
417
},
18+
outputRoot: `dist/${process.env.TARO_ENV === 'h5' ? `demo${hash && UI ? `-${hash}` : ''}` : process.env.TARO_ENV}`,
519
defineConstants: {},
620
mini: {},
721
h5: {
8-
publicPath: '/taro/react/3x/demo',
22+
publicPath: `/taro/react/3x/demo-${hash}`,
923
/**
1024
* WebpackChain 插件配置
1125
* @docs https://github.com/neutrinojs/webpack-chain

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: 3834 additions & 2448 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/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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",

src/packages/badge/badge.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
z-index: 1;
5454
}
5555

56+
&-disabled {
57+
background: $badge-background-disabled-color;
58+
}
59+
5660
&-number {
5761
font-family: 'JD';
5862
}

src/packages/badge/badge.taro.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const defaultProps = {
2222
right: 0,
2323
fill: 'solid',
2424
size: 'large',
25+
disabled: false,
2526
} as TaroBadgeProps
2627
export const Badge: FunctionComponent<Partial<TaroBadgeProps>> = (props) => {
2728
const rtl = useRtl()
@@ -36,6 +37,7 @@ export const Badge: FunctionComponent<Partial<TaroBadgeProps>> = (props) => {
3637
right,
3738
fill,
3839
size,
40+
disabled,
3941
} = { ...defaultProps, ...props }
4042

4143
const classPrefix = 'nut-badge'
@@ -73,6 +75,7 @@ export const Badge: FunctionComponent<Partial<TaroBadgeProps>> = (props) => {
7375
[`${classPrefix}-dot-${size}`]: dot,
7476
[`${classPrefix}-${fill}`]: fill === 'outline',
7577
[`${classPrefix}-content`]: children,
78+
[`${classPrefix}-disabled`]: disabled,
7679
})
7780

7881
useEffect(() => {

0 commit comments

Comments
 (0)