{translated.svg}
-
-
-
+
|
{translated['84aa6bce']}
-
-
-
+
|
{translated.dab8a74f}
-
+
|
{translated['52c15454']}
-
-
-
+
|
{translated['7aeb5407']}
-
-
-
+
|
{(IconFontConfig as any).data.map((item: any) => {
return (
diff --git a/src/packages/icon/demos/h5/demo1.tsx b/src/packages/icon/demos/h5/demo1.tsx
new file mode 100644
index 0000000000..8ec63a78ef
--- /dev/null
+++ b/src/packages/icon/demos/h5/demo1.tsx
@@ -0,0 +1,13 @@
+import React from 'react'
+import { Add, Dongdong, UserAdd } from '@nutui/icons-react'
+
+const Demo1 = () => {
+ return (
+ <>
+
+
+
+ >
+ )
+}
+export default Demo1
diff --git a/src/packages/icon/demos/h5/demo2.tsx b/src/packages/icon/demos/h5/demo2.tsx
new file mode 100644
index 0000000000..36c23afad1
--- /dev/null
+++ b/src/packages/icon/demos/h5/demo2.tsx
@@ -0,0 +1,13 @@
+import React from 'react'
+import { IconFont } from '@nutui/icons-react'
+
+const Demo2 = () => {
+ return (
+ <>
+
+
+
+ >
+ )
+}
+export default Demo2
diff --git a/src/packages/icon/demos/h5/demo3.tsx b/src/packages/icon/demos/h5/demo3.tsx
new file mode 100644
index 0000000000..8c3865f120
--- /dev/null
+++ b/src/packages/icon/demos/h5/demo3.tsx
@@ -0,0 +1,14 @@
+import React from 'react'
+import { IconFont } from '@nutui/icons-react'
+
+const Demo3 = () => {
+ return (
+ <>
+
+ >
+ )
+}
+export default Demo3
diff --git a/src/packages/icon/demos/h5/demo4.tsx b/src/packages/icon/demos/h5/demo4.tsx
new file mode 100644
index 0000000000..d2a82a1ce6
--- /dev/null
+++ b/src/packages/icon/demos/h5/demo4.tsx
@@ -0,0 +1,14 @@
+import React from 'react'
+import { IconFont } from '@nutui/icons-react'
+
+const Demo4 = () => {
+ return (
+ <>
+
+
+
+ >
+ )
+}
+
+export default Demo4
diff --git a/src/packages/icon/demos/h5/demo5.tsx b/src/packages/icon/demos/h5/demo5.tsx
new file mode 100644
index 0000000000..272e876b8f
--- /dev/null
+++ b/src/packages/icon/demos/h5/demo5.tsx
@@ -0,0 +1,14 @@
+import React from 'react'
+import { IconFont } from '@nutui/icons-react'
+
+const Demo5 = () => {
+ return (
+ <>
+
+
+
+ >
+ )
+}
+
+export default Demo5
diff --git a/src/packages/icon/demos/taro/demo1.tsx b/src/packages/icon/demos/taro/demo1.tsx
new file mode 100644
index 0000000000..923865412c
--- /dev/null
+++ b/src/packages/icon/demos/taro/demo1.tsx
@@ -0,0 +1,13 @@
+import React from 'react'
+import { Add, Dongdong, UserAdd } from '@nutui/icons-react-taro'
+
+const Demo1 = () => {
+ return (
+ <>
+
+
+
+ >
+ )
+}
+export default Demo1
diff --git a/src/packages/icon/demos/taro/demo2.tsx b/src/packages/icon/demos/taro/demo2.tsx
new file mode 100644
index 0000000000..e961801dfd
--- /dev/null
+++ b/src/packages/icon/demos/taro/demo2.tsx
@@ -0,0 +1,13 @@
+import React from 'react'
+import { IconFont } from '@nutui/icons-react-taro'
+
+const Demo2 = () => {
+ return (
+ <>
+
+
+
+ >
+ )
+}
+export default Demo2
diff --git a/src/packages/icon/demos/taro/demo3.tsx b/src/packages/icon/demos/taro/demo3.tsx
new file mode 100644
index 0000000000..d17dbf28c5
--- /dev/null
+++ b/src/packages/icon/demos/taro/demo3.tsx
@@ -0,0 +1,14 @@
+import React from 'react'
+import { IconFont } from '@nutui/icons-react-taro'
+
+const Demo3 = () => {
+ return (
+ <>
+
+ >
+ )
+}
+export default Demo3
diff --git a/src/packages/icon/demos/taro/demo4.tsx b/src/packages/icon/demos/taro/demo4.tsx
new file mode 100644
index 0000000000..4b4cb3ee7e
--- /dev/null
+++ b/src/packages/icon/demos/taro/demo4.tsx
@@ -0,0 +1,14 @@
+import React from 'react'
+import { IconFont } from '@nutui/icons-react-taro'
+
+const Demo4 = () => {
+ return (
+ <>
+
+
+
+ >
+ )
+}
+
+export default Demo4
diff --git a/src/packages/icon/demos/taro/demo5.tsx b/src/packages/icon/demos/taro/demo5.tsx
new file mode 100644
index 0000000000..cc1b7c2f6e
--- /dev/null
+++ b/src/packages/icon/demos/taro/demo5.tsx
@@ -0,0 +1,14 @@
+import React from 'react'
+import { IconFont } from '@nutui/icons-react-taro'
+
+const Demo5 = () => {
+ return (
+ <>
+
+
+
+ >
+ )
+}
+
+export default Demo5
diff --git a/src/packages/icon/doc.en-US.md b/src/packages/icon/doc.en-US.md
index 85971379a9..f19edee41a 100644
--- a/src/packages/icon/doc.en-US.md
+++ b/src/packages/icon/doc.en-US.md
@@ -18,19 +18,7 @@ How to load components on demand, see @nutui/icons-react/dist/types/index.d.ts f
:::demo
-```tsx
-import React from "react";
-import { Add, Dongdong, UserAdd } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-```
+
:::
@@ -58,20 +46,7 @@ The `name` attribute of `Icon` supports passing in the icon name or image link.
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-export default App;
-
-```
+
:::
@@ -81,21 +56,7 @@ The `name` attribute of `Icon` supports passing in the icon name or image link.
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
- >
-}
-export default App;
-
-```
+
:::
@@ -105,20 +66,7 @@ The `color` property of `Icon` is used to set the color of the icon.
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-export default App;
-```
+
:::
@@ -128,20 +76,7 @@ The `size` attribute of `Icon` is used to set the size of the icon, and the defa
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-export default App;
-```
+
:::
diff --git a/src/packages/icon/doc.md b/src/packages/icon/doc.md
index 3579a314be..2e0892fe32 100644
--- a/src/packages/icon/doc.md
+++ b/src/packages/icon/doc.md
@@ -17,19 +17,7 @@ npm i --save @nutui/icons-react
按需加载组件使用方式,可选项见 @nutui/icons-react/dist/types/index.d.ts
:::demo
-```tsx
-import React from "react";
-import { Add, Dongdong, UserAdd } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-```
+
:::
@@ -57,20 +45,7 @@ import { IconFont } from '@nutui/icons-react'
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-export default App;
-
-```
+
:::
@@ -80,21 +55,7 @@ export default App;
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
- >
-}
-export default App;
-
-```
+
:::
@@ -104,20 +65,7 @@ export default App;
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-export default App;
-```
+
:::
@@ -127,20 +75,7 @@ export default App;
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-export default App;
-```
+
:::
diff --git a/src/packages/icon/doc.taro.md b/src/packages/icon/doc.taro.md
index 8057cc5bd3..67c47070df 100644
--- a/src/packages/icon/doc.taro.md
+++ b/src/packages/icon/doc.taro.md
@@ -20,19 +20,7 @@ npm i --save @nutui/icons-react-taro
:::demo
-```tsx
-import React from "react";
-import { Add, Dongdong, UserAdd } from '@nutui/icons-react-taro'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-```
+
:::
@@ -60,20 +48,7 @@ import { IconFont } from '@nutui/icons-react-taro'
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react-taro'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-export default App;
-
-```
+
:::
@@ -83,21 +58,7 @@ export default App;
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react-taro'
-
-const App = () => {
- return <>
-
- >
-}
-export default App;
-
-```
+
:::
@@ -107,20 +68,7 @@ export default App;
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react-taro'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-export default App;
-```
+
:::
@@ -130,20 +78,7 @@ export default App;
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react-taro'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-export default App;
-```
+
:::
diff --git a/src/packages/icon/doc.zh-TW.md b/src/packages/icon/doc.zh-TW.md
index 3c173b0b4d..83a83ddb60 100644
--- a/src/packages/icon/doc.zh-TW.md
+++ b/src/packages/icon/doc.zh-TW.md
@@ -18,19 +18,7 @@ npm i --save @nutui/icons-react
:::demo
-```tsx
-import React from "react";
-import { Add, Dongdong, UserAdd } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-```
+
:::
@@ -58,20 +46,7 @@ import { IconFont } from '@nutui/icons-react'
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-export default App;
-
-```
+
:::
@@ -81,21 +56,7 @@ export default App;
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
- >
-}
-export default App;
-
-```
+
:::
@@ -105,20 +66,7 @@ export default App;
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-export default App;
-```
+
:::
@@ -128,20 +76,7 @@ export default App;
:::demo
-```tsx
-import React from "react";
-import { IconFont } from '@nutui/icons-react'
-
-const App = () => {
- return <>
-
-
-
- >
-}
-
-export default App;
-```
+
:::