@dcloudio/uni-cli-shared 3.0.0-alpha-4010320240423001 → 3.0.0-alpha-4010420240426002
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vite/features.js +4 -2
- package/package.json +4 -4
package/dist/vite/features.js
CHANGED
|
@@ -145,6 +145,8 @@ function initManifestFeature({ manifestJson, command, platform, }) {
|
|
|
145
145
|
}
|
|
146
146
|
function initFeatures(options) {
|
|
147
147
|
const { wx, wxs, rpx, nvue, uniCloud, i18nEn, i18nEs, i18nFr, i18nZhHans, i18nZhHant, i18nLocale, vueOptionsApi, vueProdDevTools, vueProdHydrationMismatchDetails, pages, tabBar, tabBarMidButton, promise, longpress, routerMode, topWindow, leftWindow, rightWindow, navigationBar, pullDownRefresh, navigationBarButtons, navigationBarSearchInput, navigationBarTransparent, } = (0, shared_1.extend)(initManifestFeature(options), initPagesFeature(options), initProjectFeature(options));
|
|
148
|
+
// uni-app-x运行时可调用$setPageStyle,需启用相关特性方可支持
|
|
149
|
+
const isUniX = process.env.UNI_APP_X === 'true';
|
|
148
150
|
const features = {
|
|
149
151
|
// vue
|
|
150
152
|
__VUE_OPTIONS_API__: vueOptionsApi, // enable/disable Options API support, default: true
|
|
@@ -173,8 +175,8 @@ function initFeatures(options) {
|
|
|
173
175
|
__UNI_FEATURE_LEFTWINDOW__: leftWindow, // 是否包含leftWindow
|
|
174
176
|
__UNI_FEATURE_RIGHTWINDOW__: rightWindow, // 是否包含rightWindow
|
|
175
177
|
__UNI_FEATURE_RESPONSIVE__: topWindow || leftWindow || rightWindow, // 是否启用响应式
|
|
176
|
-
__UNI_FEATURE_NAVIGATIONBAR__: navigationBar, // 是否启用标题栏
|
|
177
|
-
__UNI_FEATURE_PULL_DOWN_REFRESH__: pullDownRefresh, // 是否启用下拉刷新
|
|
178
|
+
__UNI_FEATURE_NAVIGATIONBAR__: isUniX || navigationBar, // 是否启用标题栏
|
|
179
|
+
__UNI_FEATURE_PULL_DOWN_REFRESH__: isUniX || pullDownRefresh, // 是否启用下拉刷新
|
|
178
180
|
__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__: navigationBarButtons, // 是否启用标题栏按钮
|
|
179
181
|
__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__: navigationBarSearchInput, // 是否启用标题栏搜索框
|
|
180
182
|
__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__: navigationBarTransparent, // 是否启用透明标题栏
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-4010420240426002",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@babel/core": "^7.23.3",
|
|
27
27
|
"@babel/parser": "^7.23.9",
|
|
28
28
|
"@babel/types": "^7.20.7",
|
|
29
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
30
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
29
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-4010420240426002",
|
|
30
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-4010420240426002",
|
|
31
31
|
"@intlify/core-base": "9.1.9",
|
|
32
32
|
"@intlify/shared": "9.1.9",
|
|
33
33
|
"@intlify/vue-devtools": "9.1.9",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@dcloudio/uni-uts-v1": "3.0.0-alpha-
|
|
72
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-4010420240426002",
|
|
73
73
|
"@types/babel__code-frame": "^7.0.6",
|
|
74
74
|
"@types/babel__core": "^7.1.19",
|
|
75
75
|
"@types/debug": "^4.1.7",
|