add unique id of component tip

Signed-off-by: yfwang6 <wangyongfei6@huawei.com>
Change-Id: Iac1bcc14c1ebab085f66e1113a28397ae513b4b6
This commit is contained in:
yfwang6
2022-07-13 18:29:43 +08:00
parent 990fab6c45
commit efca4a5f15
+1 -1
View File
@@ -1004,7 +1004,7 @@ function addComponentAttr(temp: any, node: ts.Identifier, lastStatement: any,
}
if (propName === 'id') {
const literalString = temp.arguments[0].text;
const literalString: string = temp.arguments[0].text;
const rLine: number = posOfNode.line + line;
const rCol: number = posOfNode.character + col;
const projectPath: string = projectConfig.projectPath;