Skip to content

Commit f16f82a

Browse files
authored
fix: docs (#3268)
1 parent cfafd5d commit f16f82a

File tree

7 files changed

+22
-20
lines changed

7 files changed

+22
-20
lines changed

src/sites/sites-react/doc/docs/react/intro-react.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The NutUI-React component library is suitable for H5 applications of the React t
1212
- 💪 Support for server-side rendering (Next.js)
1313
- 🍭 Support custom themes
1414
- 🌍 Internationalization support
15-
- 🍭 Unit test coverage exceeds 80% to ensure stability
15+
- 🍭 Unit test coverage exceeds 85% to ensure stability
1616
- 📖 Sketch design resources are available
1717

1818
## Examples

src/sites/sites-react/doc/docs/react/intro-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ NutUI-React 组件库,适用于 React 技术栈的 H5 应用,开箱即用,
1212
- 💪 支持服务端渲染(Next.js)
1313
- 🍭 支持定制主题
1414
- 🌍 国际化支持
15-
- 🍭 单元测试覆盖率超过 80%,保障稳定性
15+
- 🍭 单元测试覆盖率超过 85%,保障稳定性
1616
- 📖 提供 Sketch 设计资源
1717

1818
## 扫码体验

src/sites/sites-react/doc/docs/react/start-react.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@ babel 配置:
293293
// 自动加载 css 样式文件
294294
// customStyleName: (name) => `@nutui/nutui-react/dist/es/packages/${name.toLowerCase()}/style-jmapp/css`
295295

296-
// jkrf 端主题
296+
// jrkf 端主题
297297
// 自动加载 scss 样式文件
298-
// customStyleName: (name) => `@nutui/nutui-react/dist/es/packages/${name.toLowerCase()}/style-jkrf`,
298+
// customStyleName: (name) => `@nutui/nutui-react/dist/es/packages/${name.toLowerCase()}/style-jrkf`,
299299
// 自动加载 css 样式文件
300-
// customStyleName: (name) => `@nutui/nutui-react/dist/es/packages/${name.toLowerCase()}/style-jkrf/css`
300+
// customStyleName: (name) => `@nutui/nutui-react/dist/es/packages/${name.toLowerCase()}/style-jrkf/css`
301301
},
302302
'nutui-react',
303303
],

src/sites/sites-react/doc/docs/taro/intro-react.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The NutUI-React component library is suitable for H5 applications of the React t
1212
- 💪 Support for server-side rendering (Next.js)
1313
- 🍭 Support custom themes
1414
- 🌍 Internationalization support
15-
- 🍭 Unit test coverage exceeds 80% to ensure stability
15+
- 🍭 Unit test coverage exceeds 85% to ensure stability
1616
- 📖 Sketch design resources are available
1717

1818
## Examples

src/sites/sites-react/doc/docs/taro/intro-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ NutUI-React 组件库,适用于 React 技术栈的 H5 应用,开箱即用,
1212
- 💪 支持服务端渲染(Next.js)
1313
- 🍭 支持定制主题
1414
- 🌍 国际化支持
15-
- 🍭 单元测试覆盖率超过 80%,保障稳定性
15+
- 🍭 单元测试覆盖率超过 85%,保障稳定性
1616
- 📖 提供 Sketch 设计资源
1717

1818
## 扫码体验

src/sites/sites-react/doc/docs/taro/start-react.en-US.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ You can choose to import style files in full:
109109
// import '@nutui/nutui-react-taro/dist/style.css'
110110
// B
111111
// import '@nutui/nutui-react-taro/dist/style-jmapp.css'
112-
// JKRF
113-
// import '@nutui/nutui-react-taro/dist/style-jkrf.css'
112+
// jrkf
113+
// import '@nutui/nutui-react-taro/dist/style-jrkf.css'
114114
```
115115
116116
You can also implement on-demand import of styles in the following ways:

src/sites/sites-react/doc/docs/taro/start-react.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ import '@nutui/nutui-react-taro/dist/style.css'
116116
// import '@nutui/nutui-react-taro/dist/style.css'
117117
// JMAPP 主题
118118
// import '@nutui/nutui-react-taro/dist/style-jmapp.css'
119-
// JKRF 主题
120-
// import '@nutui/nutui-react-taro/dist/style-jkrf.css'
119+
// JRKF 主题
120+
// import '@nutui/nutui-react-taro/dist/style-jrkf.css'
121121
```
122122
123123
#### 3.1、通过插件实现按需引入
@@ -199,7 +199,7 @@ module.exports = {
199199
[
200200
'import',
201201
{
202-
libraryName: '@nutui/nutui-react',
202+
libraryName: '@nutui/nutui-react-taro',
203203
camel2DashComponentName: false,
204204
customName: (name, file) => {
205205
return `@nutui/nutui-react-taro/dist/es/packages/${name.toLowerCase()}`
@@ -216,11 +216,11 @@ module.exports = {
216216
// 自动加载 css 样式文件
217217
// customStyleName: (name) => `@nutui/nutui-react-taro/dist/es/packages/${name.toLowerCase()}/style-jmapp/css`
218218

219-
// jkrf 端主题
219+
// jrkf 端主题
220220
// 自动加载 scss 样式文件
221-
// customStyleName: (name) => `@nutui/nutui-react-taro/dist/es/packages/${name.toLowerCase()}/style-jkrf`,
221+
// customStyleName: (name) => `@nutui/nutui-react-taro/dist/es/packages/${name.toLowerCase()}/style-jrkf`,
222222
// 自动加载 css 样式文件
223-
// customStyleName: (name) => `@nutui/nutui-react-taro/dist/es/packages/${name.toLowerCase()}/style-jkrf/css`
223+
// customStyleName: (name) => `@nutui/nutui-react-taro/dist/es/packages/${name.toLowerCase()}/style-jrkf/css`
224224
},
225225
'nutui-react',
226226
],
@@ -292,11 +292,13 @@ config = {
292292
```js
293293
// config/index.js
294294
config = {
295-
postcss: {
296-
pxtransform: {
297-
enable: true,
298-
// 包含 `nut-` 的类名选择器中的 px 单位不会被解析
299-
config: { selectorBlackList: ['nut-'] },
295+
h5: {
296+
postcss: {
297+
pxtransform: {
298+
enable: true,
299+
// 包含 `nut-` 的类名选择器中的 px 单位不会被解析
300+
config: { selectorBlackList: ['nut-'] },
301+
},
300302
},
301303
},
302304
}

0 commit comments

Comments
 (0)