Skip to content

Commit 6f9cbed

Browse files
committed
chore: 更新 @dcloudio/uni-app-x 版本
1 parent 3b5700a commit 6f9cbed

File tree

13 files changed

+59
-170
lines changed

13 files changed

+59
-170
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@dcloudio/types": "3.4.14",
5555
"@dcloudio/uni-api": "workspace:*",
5656
"@dcloudio/uni-app": "workspace:*",
57-
"@dcloudio/uni-app-x": "0.7.44",
57+
"@dcloudio/uni-app-x": "0.7.59",
5858
"@dcloudio/uni-nvue-styler": "workspace:*",
5959
"@jest/types": "^29.0.3",
6060
"@microsoft/api-extractor": "^7.34.5",

packages/shims-uni-app.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,10 @@ declare class UniNormalPageImpl implements UniPage {
565565
options: UTSJSONObject
566566
pageBody: UniPageBody
567567
safeAreaInsets: UniSafeAreaInsets
568+
readonly fullscreenElement?: UniElement | null
569+
readonly width: number
570+
readonly height: number
571+
readonly statusBarHeight: number
568572
getParentPage: () => UniPage | null
569573
getParentPageByJS: () => UniPage | null
570574
getDialogPages(): UniDialogPage[]
@@ -578,6 +582,9 @@ declare class UniNormalPageImpl implements UniPage {
578582
getAndroidView(): null
579583
getIOSView(): null
580584
getHTMLElement(): null
585+
getAndroidActivity(): Activity | null
586+
exitFullscreen(options: ExitFullscreenOptions | null): void
587+
createElement(tagName: string): UniElement
581588
}
582589

583590
declare class UniDialogPageImpl implements UniPage {

packages/uni-app-harmony/dist-x/uni-prompt/utssdk/app-harmony/loading-native.ets

-78
This file was deleted.

packages/uni-app-harmony/dist/uni-prompt/utssdk/app-harmony/loading-native.ets

-78
This file was deleted.

packages/uni-app-harmony/dist/uni.runtime.esm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13224,7 +13224,7 @@ const getLocation = defineAsyncApi(API_GET_LOCATION, ({ type = 'wgs84', geocode
1322413224
reject('getLocation:fail ' + e.message);
1322513225
}, {
1322613226
geocode: geocode,
13227-
enableHighAccuracy: isHighAccuracy || altitude,
13227+
enableHighAccuracy: isHighAccuracy,
1322813228
timeout: highAccuracyExpireTime,
1322913229
coordsType: type,
1323013230
});

packages/uni-app-plus/src/x/framework/page/setup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
setCurrentNormalDialogPage,
1616
setCurrentSystemDialogPage,
1717
} from './dialogPage'
18-
import type { UniDialogPage } from '@dcloudio/uni-app-x/types/UniPage'
18+
import type { UniDialogPage } from '@dcloudio/uni-app-x/types/native/UniPage'
1919

2020
export function setupXPage(
2121
instance: ComponentInternalInstance,

packages/uni-h5/dist-x/uni-h5.cjs.js

+13
Original file line numberDiff line numberDiff line change
@@ -3090,6 +3090,19 @@ class UniPageImpl {
30903090
getDialogPages() {
30913091
return [];
30923092
}
3093+
getAndroidActivity() {
3094+
return null;
3095+
}
3096+
exitFullscreen() {
3097+
}
3098+
createElement() {
3099+
return new UniElementImpl({
3100+
id: "",
3101+
name: "",
3102+
attrs: /* @__PURE__ */ new Map(),
3103+
style: /* @__PURE__ */ new Map()
3104+
});
3105+
}
30933106
}
30943107
class UniNormalPageImpl extends UniPageImpl {
30953108
getDialogPages() {

packages/uni-h5/dist-x/uni-h5.es.js

+13
Original file line numberDiff line numberDiff line change
@@ -8292,6 +8292,19 @@ class UniPageImpl {
82928292
getDialogPages() {
82938293
return [];
82948294
}
8295+
getAndroidActivity() {
8296+
return null;
8297+
}
8298+
exitFullscreen() {
8299+
}
8300+
createElement() {
8301+
return new UniElementImpl({
8302+
id: "",
8303+
name: "",
8304+
attrs: /* @__PURE__ */ new Map(),
8305+
style: /* @__PURE__ */ new Map()
8306+
});
8307+
}
82958308
}
82968309
class UniNormalPageImpl extends UniPageImpl {
82978310
getDialogPages() {

packages/uni-h5/src/x/framework/setup/page.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import {
3636
import type { RouteLocationNormalizedLoadedGeneric } from 'vue-router'
3737
import { isDialogPageInstance } from '../helpers/utils'
3838
import type { UniSafeAreaInsets } from '@dcloudio/uni-app-x/types/native/UniSafeAreaInsets'
39-
import type { UniPageBody } from '@dcloudio/uni-app-x/types/UniPage'
39+
import type { UniPageBody } from '@dcloudio/uni-app-x/types/native/UniPage'
4040

4141
let escBackPageNum = 0
4242
type PageStyle = {
@@ -210,6 +210,18 @@ class UniPageImpl implements UniPage {
210210
getDialogPages(): UniPage[] {
211211
return []
212212
}
213+
getAndroidActivity() {
214+
return null
215+
}
216+
exitFullscreen() {}
217+
createElement() {
218+
return new UniElementImpl({
219+
id: '',
220+
name: '',
221+
attrs: new Map(),
222+
style: new Map(),
223+
})
224+
}
213225
constructor({
214226
route,
215227
options,

packages/uni-shared/dist/uni-shared.cjs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ const NVUE_CUSTOM_COMPONENTS = [
223223
'picker-view-column',
224224
];
225225
// 内置的easycom组件
226-
const UVUE_BUILT_IN_EASY_COMPONENTS = ['map', 'camera'];
226+
const UVUE_BUILT_IN_EASY_COMPONENTS = ['map', 'camera', 'live-player'];
227227
function isAppUVueBuiltInEasyComponent(tag) {
228228
return UVUE_BUILT_IN_EASY_COMPONENTS.includes(tag);
229229
}

packages/uni-shared/dist/uni-shared.es.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const NVUE_CUSTOM_COMPONENTS = [
221221
'picker-view-column',
222222
];
223223
// 内置的easycom组件
224-
const UVUE_BUILT_IN_EASY_COMPONENTS = ['map', 'camera'];
224+
const UVUE_BUILT_IN_EASY_COMPONENTS = ['map', 'camera', 'live-player'];
225225
function isAppUVueBuiltInEasyComponent(tag) {
226226
return UVUE_BUILT_IN_EASY_COMPONENTS.includes(tag);
227227
}

packages/uni-uts-v1/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"license": "Apache-2.0",
2020
"dependencies": {
2121
"@babel/code-frame": "^7.23.5",
22-
"@dcloudio/uni-app-x": "^0.7.44",
22+
"@dcloudio/uni-app-x": "^0.7.59",
2323
"@dcloudio/uts": "workspace:*",
2424
"@rollup/pluginutils": "^5.0.5",
2525
"@vue/shared": "3.4.21",

pnpm-lock.yaml

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)