feat: 打字速度提升
This commit is contained in:
@@ -540,7 +540,7 @@ const initTypewriterManager = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
typewriterManager = new TypewriterManager({
|
typewriterManager = new TypewriterManager({
|
||||||
typingSpeed: 30,
|
typingSpeed: 10,
|
||||||
cursorText: "",
|
cursorText: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ class TypewriterManager {
|
|||||||
constructor(options = {}) {
|
constructor(options = {}) {
|
||||||
// 配置选项
|
// 配置选项
|
||||||
this.options = {
|
this.options = {
|
||||||
typingSpeed: 50, // 打字速度(毫秒)
|
typingSpeed: 10, // 打字速度(毫秒)- 调整为更快的速度
|
||||||
cursorText: "", // 光标样式
|
cursorText: "", // 光标样式
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user