diff --git a/content/input/pincode/index.md b/content/input/pincode/index.md
index c46bf00edd..004b7e8b0c 100644
--- a/content/input/pincode/index.md
+++ b/content/input/pincode/index.md
@@ -3,7 +3,7 @@ localeCode: zh-CN
order: 31
category: 输入类
title: PinCode 验证码输入
-icon: doc-input
+icon: doc-pincode
width: 60%
brief: 用于便捷直观地输入验证码
---
diff --git a/content/plus/codehighlight/index.md b/content/plus/codehighlight/index.md
index c587723032..a015599f41 100644
--- a/content/plus/codehighlight/index.md
+++ b/content/plus/codehighlight/index.md
@@ -3,7 +3,7 @@ localeCode: zh-CN
order: 0
category: Plus
title: CodeHighlight 代码高亮
-icon: doc-configprovider
+icon: doc-codehighlight
dir: column
brief: 根据语法高亮页面中的代码块
---
diff --git a/content/plus/lottie/index-en-US.md b/content/plus/lottie/index-en-US.md
index d9b368471b..d4ae2cb554 100644
--- a/content/plus/lottie/index-en-US.md
+++ b/content/plus/lottie/index-en-US.md
@@ -18,9 +18,9 @@ The Lottie component can render Lottie animations conveniently and simply, and p
Compared to using `lottie-web` directly, use the Semi Lottie component
-- No need to worry about the creation and destruction of animation containers
-- No need to worry about the life cycle of the animation itself
-- Easier to use with React projects
+- No need to worry about the creation and destruction of animation containers
+- No need to worry about the life cycle of the animation itself
+- Easier to use with React projects
## Demos
@@ -29,58 +29,56 @@ Compared to using `lottie-web` directly, use the Semi Lottie component
Lottie component supported from v2.62.0
```jsx
-import { Lottie } from "@douyinfe/semi-ui";
+import { Lottie } from '@douyinfe/semi-ui';
```
-
-
### Basic Usage
**When the Lottie animation resource JSON is on CDN**
Pass path=your lottie json URL to the `params` props
-
-
```jsx live=true
-import { Lottie } from "@douyinfe/semi-ui";
-import React from "react";
+import { Lottie } from '@douyinfe/semi-ui';
+import React from 'react';
() => {
- const jsonURL = "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/lottie_demo.json";
-
- return
+ );
};
-
```
-
**When Lottie animation resource JSON needs to be packaged into the website code**
Pass animationData=your lottie json object into the `params` props (the Demo request JSON below is only for demonstration. In actual projects, json should be manually imported instead of obtained through network requests, so that JSON animation resources can be packaged into the website code)
```jsx live=true
-import { Lottie } from "@douyinfe/semi-ui";
-import React from "react";
+import { Lottie } from '@douyinfe/semi-ui';
+import React from 'react';
() => {
- const jsonURL = "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/lottie_demo.json";
- const [data, setData] = useState("");
+ const jsonURL =
+ 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/lottie_demo.json';
+ const [data, setData] = useState('');
useEffect(() => {
fetch(jsonURL)
- .then(resp=>resp.json())
+ .then(resp => resp.json())
.then(setData);
-
}, []);
- return
-
-
;
+ return (
+
+
+
+ );
};
-
```
### Params Other common parameters
@@ -102,7 +100,6 @@ Common parameters
}
```
-
### Get the current animation instance
Use `getAnimationInstance` to get the animation instance of the currently playing animation. The instance contains many methods for adjusting various parameters of the animation, such as playing and pausing, getting the current frame number, adjusting the playback speed, etc.
@@ -110,15 +107,26 @@ Use `getAnimationInstance` to get the animation instance of the currently playin
For more information about the methods contained in the animation instance, please refer to the `lottie-web` [documentation](https://github.com/airbnb/lottie-web?tab=readme-ov-file#usage)
```jsx live=true
-import { Lottie } from "@douyinfe/semi-ui";
-import React from "react";
+import { Lottie } from '@douyinfe/semi-ui';
+import React from 'react';
() => {
- const jsonURL = "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/lottie_demo.json";
-
- return
+ );
};
```
@@ -129,27 +137,33 @@ Use `getLottie` Props to get global lottie, or use the static method `Lottie.get
For more information about the methods on the global lottie, please refer to the `lottie-web` [documentation](https://github.com/airbnb/lottie-web?tab=readme-ov-file#usage)
```jsx live=true
-import { Lottie } from "@douyinfe/semi-ui";
-import React from "react";
+import { Lottie } from '@douyinfe/semi-ui';
+import React from 'react';
-()=>{
- const jsonURL = "https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/lottie_demo.json";
-
- console.log("lottie", Lottie.getLottie());
-
- return