变量名修改

Signed-off-by: bojiang <jiangbo91@huawei.com>
Change-Id: I4039a0daf7dce338d71426f829a834e93f86d51d
This commit is contained in:
bojiang
2022-07-22 10:36:47 +08:00
parent 7837303c15
commit 7811bca13d
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ import {
STYLE_ADD_DOUBLE_DOLLAR,
$$,
PROPERTIES_ADD_DOUBLE_DOLLAR,
BLOCK_INTERFACE_PROPERTIES_ADD_DOUBLE_DOLLAR
$$_BLOCK_INTERFACE
} from './pre_define';
import { JS_BIND_COMPONENTS } from './component_map';
import { getName } from './process_component_build';
@@ -293,7 +293,7 @@ function traverseBuild(node: ts.Node, index: number): void {
}
node = node.expression;
if (ts.isEtsComponentExpression(node) && node.body && ts.isBlock(node.body) &&
!BLOCK_INTERFACE_PROPERTIES_ADD_DOUBLE_DOLLAR.has(node.expression.escapedText.toString())) {
!$$_BLOCK_INTERFACE.has(node.expression.escapedText.toString())) {
node.body.statements.forEach((item, indexBlock) => {
traverseBuild(item, indexBlock);
});
@@ -319,7 +319,7 @@ function isPropertiesAddDoubleDollar(node: ts.Node): boolean {
return true;
}
if(ts.isEtsComponentExpression(node) && node.body && ts.isBlock(node.body) &&
BLOCK_INTERFACE_PROPERTIES_ADD_DOUBLE_DOLLAR.has(node.expression.escapedText.toString())) {
$$_BLOCK_INTERFACE.has(node.expression.escapedText.toString())) {
return true;
}
}
+1 -1
View File
@@ -224,7 +224,7 @@ export const $$_THIS: string = '$$this';
export const $$_NEW_VALUE: string = 'newValue';
export const $$: string = '$$';
export const $$_VISIBILITY: string = 'visibility';
export const BLOCK_INTERFACE_PROPERTIES_ADD_DOUBLE_DOLLAR: Set<string> = new Set([REFRESH]);
export const $$_BLOCK_INTERFACE: Set<string> = new Set([REFRESH]);
export const STYLE_ADD_DOUBLE_DOLLAR: Set<string> = new Set([BIND_POPUP, $$_VISIBILITY]);
export const PROPERTIES_ADD_DOUBLE_DOLLAR: Map<string, Set<string>> = new Map([
[RADIO, new Set([CHECKED])], [TEXT_TIMER, new Set([FORMAT, COUNT, IS_COUNT_DOWN])], [REFRESH, new Set([REFRESHING])]