Skip to content

Commit 3ca3ffa

Browse files
committed
fix(harmony): 兼容uni-verify在非uni-app-x上的逻辑
1 parent 3476e05 commit 3ca3ffa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/uni-uts-v1/src/arkts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,14 @@ export function getArkTSAutoImports(isX = false): AutoImportOptions {
9595
['UTSHarmony'],
9696
['resolveInOperator'],
9797
['IJSONStringify'],
98+
['UniElement'], // 注意非uni-app-x也有导出此类型,目前仅为了兼容uni-verify
9899
]
99100
if (isX) {
100101
runtimeExports.push(
101102
// uni-app-x-runtime ets
102103
['customElements'],
103104
['UniCustomElement'],
104-
['UniElement'],
105+
// ['UniElement'],
105106
['UniElementImpl'],
106107
['document'],
107108
['UniPage'],

0 commit comments

Comments
 (0)