@dcloudio/uni-cli-shared 3.0.0-alpha-3060120220907003 → 3.0.0-alpha-3060220220914002

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.
@@ -2,15 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initTabBar = void 0;
4
4
  const uni_shared_1 = require("@dcloudio/uni-shared");
5
- const TABBAR_WHITE = 'rgba(255,255,255,0.4)';
6
- const TABBAR_BLACK = 'rgba(0,0,0,0.4)';
5
+ const borderStyles = {
6
+ black: 'rgba(0,0,0,0.4)',
7
+ white: 'rgba(255,255,255,0.4)',
8
+ };
7
9
  function initTabBar(entryPagePath, manifestJson, pagesJson) {
8
10
  var _a, _b;
9
11
  if (!((_b = (_a = pagesJson.tabBar) === null || _a === void 0 ? void 0 : _a.list) === null || _b === void 0 ? void 0 : _b.length)) {
10
12
  return;
11
13
  }
12
14
  const tabBar = JSON.parse(JSON.stringify(pagesJson.tabBar));
13
- tabBar.borderStyle = (tabBar.borderStyle === 'white' ? TABBAR_WHITE : TABBAR_BLACK);
15
+ if (tabBar.borderStyle in borderStyles) {
16
+ tabBar.borderStyle = borderStyles[tabBar.borderStyle];
17
+ }
14
18
  if (!tabBar.selectedColor) {
15
19
  tabBar.selectedColor = uni_shared_1.SELECTED_COLOR;
16
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3060120220907003",
3
+ "version": "3.0.0-alpha-3060220220914002",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "@babel/core": "^7.17.9",
23
23
  "@babel/parser": "^7.17.9",
24
24
  "@babel/types": "^7.17.0",
25
- "@dcloudio/uni-i18n": "3.0.0-alpha-3060120220907003",
26
- "@dcloudio/uni-shared": "3.0.0-alpha-3060120220907003",
25
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3060220220914002",
26
+ "@dcloudio/uni-shared": "3.0.0-alpha-3060220220914002",
27
27
  "@intlify/core-base": "9.1.9",
28
28
  "@intlify/shared": "9.1.9",
29
29
  "@intlify/vue-devtools": "9.1.9",
@@ -33,7 +33,7 @@
33
33
  "@vue/compiler-sfc": "3.2.39",
34
34
  "@vue/server-renderer": "3.2.39",
35
35
  "@vue/shared": "3.2.39",
36
- "autoprefixer": "^10.4.8",
36
+ "autoprefixer": "^10.4.9",
37
37
  "base64url": "^3.0.1",
38
38
  "chokidar": "^3.5.3",
39
39
  "compare-versions": "^3.6.0",