@vnejs/plugins.views.scenario.interface 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export const useTokensHook = (isShow, tokens, tokensVisible, uid) => {
|
|
|
12
12
|
if (isShow) setTokensWrong(tokens);
|
|
13
13
|
}, [isShow]);
|
|
14
14
|
useEffect(() => {
|
|
15
|
-
|
|
15
|
+
setTimeout(() => {
|
|
16
16
|
if (savedUid === uid) {
|
|
17
17
|
if (!isShow) setTokensWrong(tokens);
|
|
18
18
|
setTokensSync(tokens);
|
|
@@ -23,7 +23,7 @@ export const useTokensHook = (isShow, tokens, tokensVisible, uid) => {
|
|
|
23
23
|
if (!isShow) setTokensWrong(tokens);
|
|
24
24
|
setTokensSync(tokens);
|
|
25
25
|
});
|
|
26
|
-
});
|
|
26
|
+
}, 0);
|
|
27
27
|
}, [tokens]);
|
|
28
28
|
|
|
29
29
|
const isShowTokens = useMemo(() => tokensSync !== tokensWrong, [tokensSync, tokensWrong]);
|
package/view/index.jsx
CHANGED
|
@@ -24,6 +24,9 @@ const Interface = ({ store, onMount, ...props } = {}) => {
|
|
|
24
24
|
const speakerText = speakerName ? `${`${locs[`prefix.${prefix}`] ?? ""} `}${speakerName}${` ${locs[`postfix.${postfix}`] ?? ""}`}` : ".";
|
|
25
25
|
const transition = isRealForce ? 0 : props.PARAMS.INTERFACE.TRANSITION;
|
|
26
26
|
const speakerInfo = props.PARAMS.TEXT.SPEAKERS_INFO[speaker] || props.PARAMS.TEXT.SPEAKERS_INFO[props.PARAMS.TEXT.DEFAULT_SPEAKER_NAME];
|
|
27
|
+
|
|
28
|
+
console.log(99999999, speaker, speakerInfo, props.PARAMS.TEXT.DEFAULT_SPEAKER_NAME, props.PARAMS.TEXT.SPEAKERS_INFO);
|
|
29
|
+
|
|
27
30
|
const { color, opacity = 1, speakerColor = "white" } = speakerInfo;
|
|
28
31
|
|
|
29
32
|
const propsCommon = useMemo(
|