fix: 部分在文档中发现的问题

This commit is contained in:
AncTe committed 2026-11-24 22:05:40 +08:00
1 parent 51d6ee5c39
commit 65b6b24b1f
3 files changed
+6 -2

No files matched your search

@@ -131,6 +131,7 @@ export const TextContent = defineComponent<
(value, old) => {
old?.excitation.remove(typer.value);
value?.excitation.add(typer.value);
retype();
},
{ immediate: true }
);
@@ -141,6 +142,7 @@ export const TextContent = defineComponent<
needUpdate = true;
renderable.value = [];
typer.value.setConfig({ width: width.value });
typer.value.setText(props.text ?? '');
typer.value.type();
needUpdate = false;
@@ -223,6 +225,7 @@ export const TextContent = defineComponent<
root.value?.excitation.add(value);
value.addHook(hook);
value.setRender(renderFunc);
retype();
},
{ immediate: true }
);
+1
View File
@@ -137,6 +137,7 @@ export class Transition implements ITransition {
this.controller?.revoke();
this.unbindExcitation();
this.animatableStatus = null;
this.unbindExcitation();
}
//#endregion
+2 -2
View File
@@ -620,7 +620,7 @@ class RenderColorTransition implements ITransitionedController<string> {
Number(`0x${color.slice(1, 2).repeat(2)}`),
Number(`0x${color.slice(2, 3).repeat(2)}`),
Number(`0x${color.slice(3, 4).repeat(2)}`),
Number(`0x${color.slice(4, 5).repeat(2)}`)
Number(`0x${color.slice(4, 5).repeat(2)}`) / 255
];
case 7:
return [
@@ -634,7 +634,7 @@ class RenderColorTransition implements ITransitionedController<string> {
Number(`0x${color.slice(1, 3)}`),
Number(`0x${color.slice(3, 5)}`),
Number(`0x${color.slice(5, 7)}`),
Number(`0x${color.slice(7, 9)}`)
Number(`0x${color.slice(7, 9)}`) / 255
];
}
return [0, 0, 0, 0];