feat:Environment add scale
This commit is contained in:
1
doric-js/lib/src/runtime/global.d.ts
vendored
1
doric-js/lib/src/runtime/global.d.ts
vendored
@@ -36,6 +36,7 @@ declare global {
|
||||
libVersion: string;
|
||||
screenWidth: number;
|
||||
screenHeight: number;
|
||||
screenScale: number;
|
||||
statusBarHeight: number;
|
||||
hasNotch: boolean;
|
||||
/**
|
||||
|
@@ -48,8 +48,7 @@ export class List extends Superview {
|
||||
}
|
||||
}
|
||||
scrollToItem(context, index, config) {
|
||||
var _a;
|
||||
const animated = (_a = config) === null || _a === void 0 ? void 0 : _a.animated;
|
||||
const animated = config === null || config === void 0 ? void 0 : config.animated;
|
||||
return this.nativeChannel(context, 'scrollToItem')({ index, animated, });
|
||||
}
|
||||
reset() {
|
||||
|
Reference in New Issue
Block a user