mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-20 19:47:44 -04:00
变量名修改 Signed-off-by: bojiang <jiangbo91@huawei.com> Change-Id: I4039a0daf7dce338d71426f829a834e93f86d51d
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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])]
|
||||
|
||||
Reference in New Issue
Block a user