提交 42168591 编写于 作者: fxy060608's avatar fxy060608

chore: bump vite from 3.1.8 to 3.2.2

上级 a3140f47
......@@ -21,6 +21,6 @@
"compression": "^1.7.4",
"cypress": "^10.7.0",
"serve-static": "^1.15.0",
"vite": "3.1.8"
"vite": "3.2.2"
}
}
{"version":3,"sources":["/Users/guoshengqiang/Documents/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/static/logo.png","/Users/guoshengqiang/Documents/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/app-android/index.uts","/Users/guoshengqiang/Documents/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/app-android/interface.uts","/Users/guoshengqiang/Documents/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/app-android/utils.uts","/Users/guoshengqiang/Documents/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/app-android/login.uts"],"sourcesContent":["import { getResourcePath } from 'io.dcloud.uts.android'\nexport default getResourcePath('uni_modules/test-uniplugin/static/logo.png')\n ","import Log from 'android.util.Log'\nimport FrameLayout from 'android.widget.FrameLayout'\nimport View from 'android.view.View'\nimport { IUser } from './interface.uts'\nimport { login } from './login.uts'\nimport logo from '../static/logo.png'\n\nconst test = arrayOf(1, 2, 3)\n\ntype GetBatteryInfoOptions = {\n success?: (res: UTSJSONObject) => void\n fail?: (res: UTSJSONObject) => void\n complete?: (res: UTSJSONObject) => void\n}\nexport class User implements IUser {\n async login(name: string, pwd: string) {\n setTimeout(() => {\n console.log('timeout')\n }, 1000)\n login(name, pwd)\n Log.info(logo)\n\n console.log('def android')\n\n\n\n\n\n\n\n\n console.log('ndef ios')\n\n\n console.log('def android || def ios')\n\n\n\n\n\n new XToast<XToast<unknown>>(getUniActivity())\n .setContentView(R.layout.toast_hint)\n .setDuration(1000)\n .setImageDrawable(android.R.id.icon, R.mipmap.ic_dialog_tip_finish)\n .setText(android.R.id.message, \"点我消失\")\n .show()\n }\n register(name: string, callback: () => void) {\n Log.info(logo as FrameLayout)\n }\n test(view: View) { }\n}\nfunction login(name: string, callback: () => void) { }\nexport function register(name: string, callback: () => void) { }\n","export interface IUser {\n register(name: string): void\n}\n","export function test(){\n console.log('test')\n}\n","import { test } from \"./utils.uts\"\nexport function login(name: string, pwd: string) {\n console.log('login')\n test()\n return { name, pwd }\n}\n"],"names":[],"mappings":";;;AAAA;ACAA,OAAgB,gBAAkB,CAAA;AAClC,OAAwB,0BAA4B,CAAA;AACpD,OAAiB,iBAAmB,CAAA;UCFnB;QACf,SAAS,MAAM,MAAM,GAAG,IAAI;;ACDvB,IAAS,OAAM;IAClB,QAAQ,GAAG,CAAC;AAChB;ACDO,IAAS,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,iBAAE;IAC/C,QAAQ,GAAG,CAAC;IACZ;IACA,OAAO;QAAE,IAAA,OAAA;QAAM,IAAA,MAAA;KAAK;AACtB;cJJe,gBAAgB;ACM/B,IAAM,QAAO,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;AAEC,WAAxB;IACH,SAAA,SAAQ,oBAA8B;IACtC,SAAA,MAAK,oBAA8B;IACnC,SAAA,UAAS,oBAA8B;AACzC;AACO,WAAM,OAAgB;IAC3B,iBAAM,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,8CAAE;QACrC,WAAW,KAAM;YACf,QAAQ,GAAG,CAAC;QACd;UAAG,IAAI;QACP,MAAM,MAAM;QACZ,IAAI,IAAI;QAER,QAAQ,GAAG,CAAC;QASZ,QAAQ,GAAG,CAAC;QAGZ,QAAQ,GAAG,CAAC;QAMR,OAAO,OAAO,CAAO,GAAG,kBACzB,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,EAClC,WAAW,CAAC,IAAI,EAChB,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,oBAAoB,EACjE,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,QAC9B,IAAI;IACT;IACA,aAAA,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE;QAC3C,IAAI,IAAI,YAAS;IACnB;IACA,SAAA,KAAK,MAAM,IAAI,EAAE,CAAE;AACrB;AACA,UAAe,MAAM,MAAM,EAAE,gBAAgB,IAAI,EAAE,CAAE;AAC9C,IAAS,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE,CAAE"}
\ No newline at end of file
{"version":3,"sources":["/Users/fxy/Projects/GitHub/uni-app/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/static/logo.png","/Users/fxy/Projects/GitHub/uni-app/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/app-android/index.uts","/Users/fxy/Projects/GitHub/uni-app/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/app-android/interface.uts","/Users/fxy/Projects/GitHub/uni-app/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/app-android/utils.uts","/Users/fxy/Projects/GitHub/uni-app/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/app-android/login.uts"],"sourcesContent":["import { getResourcePath } from 'io.dcloud.uts.android'\nexport default getResourcePath('uni_modules/test-uniplugin/static/logo.png')\n ","import Log from 'android.util.Log'\nimport FrameLayout from 'android.widget.FrameLayout'\nimport View from 'android.view.View'\nimport { IUser } from './interface.uts'\nimport { login } from './login.uts'\nimport logo from '../static/logo.png'\n\nconst test = arrayOf(1, 2, 3)\n\ntype GetBatteryInfoOptions = {\n success?: (res: UTSJSONObject) => void\n fail?: (res: UTSJSONObject) => void\n complete?: (res: UTSJSONObject) => void\n}\nexport class User implements IUser {\n async login(name: string, pwd: string) {\n setTimeout(() => {\n console.log('timeout')\n }, 1000)\n login(name, pwd)\n Log.info(logo)\n\n console.log('def android')\n\n\n\n\n\n\n\n\n console.log('ndef ios')\n\n\n console.log('def android || def ios')\n\n\n\n\n\n new XToast<XToast<unknown>>(getUniActivity())\n .setContentView(R.layout.toast_hint)\n .setDuration(1000)\n .setImageDrawable(android.R.id.icon, R.mipmap.ic_dialog_tip_finish)\n .setText(android.R.id.message, \"点我消失\")\n .show()\n }\n register(name: string, callback: () => void) {\n Log.info(logo as FrameLayout)\n }\n test(view: View) { }\n}\nfunction login(name: string, callback: () => void) { }\nexport function register(name: string, callback: () => void) { }\n","export interface IUser {\n register(name: string): void\n}\n","export function test(){\n console.log('test')\n}\n","import { test } from \"./utils.uts\"\nexport function login(name: string, pwd: string) {\n console.log('login')\n test()\n return { name, pwd }\n}\n"],"names":[],"mappings":";;;AAAA;ACAA,OAAgB,gBAAkB,CAAA;AAClC,OAAwB,0BAA4B,CAAA;AACpD,OAAiB,iBAAmB,CAAA;UCFnB;QACf,SAAS,MAAM,MAAM,GAAG,IAAI;;ACDvB,IAAS,OAAM;IAClB,QAAQ,GAAG,CAAC;AAChB;ACDO,IAAS,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,iBAAE;IAC/C,QAAQ,GAAG,CAAC;IACZ;IACA,OAAO;QAAE,IAAA,OAAA;QAAM,IAAA,MAAA;KAAK;AACtB;cJJe,gBAAgB;ACM/B,IAAM,QAAO,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;AAEC,WAAxB;IACH,SAAA,SAAQ,oBAA8B;IACtC,SAAA,MAAK,oBAA8B;IACnC,SAAA,UAAS,oBAA8B;AACzC;AACO,WAAM,OAAgB;IAC3B,iBAAM,MAAM,MAAM,MAAM,EAAE,KAAK,MAAM,8CAAE;QACrC,WAAW,KAAM;YACf,QAAQ,GAAG,CAAC;QACd;UAAG,IAAI;QACP,MAAM,MAAM;QACZ,IAAI,IAAI;QAER,QAAQ,GAAG,CAAC;QASZ,QAAQ,GAAG,CAAC;QAGZ,QAAQ,GAAG,CAAC;QAMR,OAAO,OAAO,CAAO,GAAG,kBACzB,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,EAClC,WAAW,CAAC,IAAI,EAChB,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,oBAAoB,EACjE,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,QAC9B,IAAI;IACT;IACA,aAAA,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE;QAC3C,IAAI,IAAI,YAAS;IACnB;IACA,SAAA,KAAK,MAAM,IAAI,EAAE,CAAE;AACrB;AACA,UAAe,MAAM,MAAM,EAAE,gBAAgB,IAAI,EAAE,CAAE;AAC9C,IAAS,SAAS,MAAM,MAAM,EAAE,qBAAoB,EAAE,CAAE"}
\ No newline at end of file
{"version":3,"sources":["/Users/guoshengqiang/Documents/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/app-ios/index.uts"],"sourcesContent":["import { UIDevice } from 'UIKit'\nimport { CLLocationManager, CLAuthorizationStatus } from 'CoreLocation'\n\ntype GetBatteryInfoOptions = {\n name: string\n pwd: number\n success?: (res: UTSJSONObject) => void\n fail?: (res: UTSJSONObject) => void\n complete?: (res: UTSJSONObject) => void\n}\n\nexport default function getBatteryInfo(options: GetBatteryInfoOptions) {\n const res = {\n errMsg: 'getBatteryInfo:ok',\n level: UIDevice.current.batteryLevel * 100,\n isCharging: UIDevice.current.batteryState == UIDevice.BatteryState.charging,\n }\n if (options.success != null) {\n options.success!(res)\n }\n if (options.complete != null) {\n options.complete!(res)\n }\n}\n\nexport function test1(callback: () => void): string {\n console.log('test1')\n\n\n\n\n console.log('def ios')\n\n\n console.log('ndef android')\n\n\n\n\n\n console.log('def android || def ios')\n\n\n\n\n console.log(CLLocationManager, CLAuthorizationStatus)\n return 'test1'\n}\n\nclass Test1 {}\nexport class Test {\n constructor() {\n new Test1()\n }\n test(): string | null {\n return null\n }\n}\n\nexport async function testAsync() {\n return { a: 1 }\n}\n"],"names":[],"mappings":";AAAA;AACA;AAE6B;;MAAxB;IACH,WAAA,MAAM,MAAM,EAAA;IACZ,WAAA,KAAK,QAAM,EAAA;IACX,WAAA,SAAQ,aAA8B;IACtC,WAAA,MAAK,aAA8B;IACnC,WAAA,UAAS,aAA8B;AACzC;AAEe,KAAS,eAAe,EAAA,SAAS,qBAAqB,EAAE;IACrE,IAAM,MAAM;QACV,CAAA,SAAQ;QACR,CAAA,QAAO,SAAS,OAAO,CAAC,YAAY,GAAG,GAAG;QAC1C,CAAA,aAAY,SAAS,OAAO,CAAC,YAAY,IAAI,SAAS,YAAY,CAAC,QAAQ;MAC5E;IACD,IAAI,QAAQ,OAAO,IAAI,GAAI;QACzB,QAAQ,OAAO,EAAE;;IAEnB,IAAI,QAAQ,QAAQ,IAAI,GAAI;QAC1B,QAAQ,QAAQ,EAAE;;AAEtB;AAEO,KAAS,MAAM,EAAA,qBAAoB,KAAG,MAAM,CAAC;IAClD,QAAQ,GAAG,CAAC;IAKZ,QAAQ,GAAG,CAAC;IAGZ,QAAQ,GAAG,CAAC;IAMZ,QAAQ,GAAG,CAAC;IAKZ,QAAQ,GAAG,CAAC,mBAAmB;IAC/B,OAAO;AACT;AAEA,MAAM;AAAO;AACN;;MAAM;IACX,aAAc;QACR;IACN;IACA,YAAA,UAAQ,MAAM,EAAQ;QACpB,OAAO,GAAI;IACb;AACF;AAEO;KAAe,oCAAY;IAChC,OAAO;QAAE,CAAA,IAAG,CAAC;MAAE;AACjB;;;;wCAlDuC,EAAA,SAAS,qBAAqB;eAA7C,eAAe;;+BAcjB,EAAA,qBAAoB,KAAG,MAAM;eAAnC,MAAM;;;;qBAkCA"}
\ No newline at end of file
{"version":3,"sources":["/Users/fxy/Projects/GitHub/uni-app/uni-app-next/packages/playground/uts/uni_modules/test-uniplugin/app-ios/index.uts"],"sourcesContent":["import { UIDevice } from 'UIKit'\nimport { CLLocationManager, CLAuthorizationStatus } from 'CoreLocation'\n\ntype GetBatteryInfoOptions = {\n name: string\n pwd: number\n success?: (res: UTSJSONObject) => void\n fail?: (res: UTSJSONObject) => void\n complete?: (res: UTSJSONObject) => void\n}\n\nexport default function getBatteryInfo(options: GetBatteryInfoOptions) {\n const res = {\n errMsg: 'getBatteryInfo:ok',\n level: UIDevice.current.batteryLevel * 100,\n isCharging: UIDevice.current.batteryState == UIDevice.BatteryState.charging,\n }\n if (options.success != null) {\n options.success!(res)\n }\n if (options.complete != null) {\n options.complete!(res)\n }\n}\n\nexport function test1(callback: () => void): string {\n console.log('test1')\n\n\n\n\n console.log('def ios')\n\n\n console.log('ndef android')\n\n\n\n\n\n console.log('def android || def ios')\n\n\n\n\n console.log(CLLocationManager, CLAuthorizationStatus)\n return 'test1'\n}\n\nclass Test1 {}\nexport class Test {\n constructor() {\n new Test1()\n }\n test(): string | null {\n return null\n }\n}\n\nexport async function testAsync() {\n return { a: 1 }\n}\n"],"names":[],"mappings":";AAAA;AACA;AAE6B;;MAAxB;IACH,WAAA,MAAM,MAAM,EAAA;IACZ,WAAA,KAAK,QAAM,EAAA;IACX,WAAA,SAAQ,aAA8B;IACtC,WAAA,MAAK,aAA8B;IACnC,WAAA,UAAS,aAA8B;AACzC;AAEe,KAAS,eAAe,EAAA,SAAS,qBAAqB,EAAE;IACrE,IAAM,MAAM;QACV,CAAA,SAAQ;QACR,CAAA,QAAO,SAAS,OAAO,CAAC,YAAY,GAAG,GAAG;QAC1C,CAAA,aAAY,SAAS,OAAO,CAAC,YAAY,IAAI,SAAS,YAAY,CAAC,QAAQ;MAC5E;IACD,IAAI,QAAQ,OAAO,IAAI,GAAI;QACzB,QAAQ,OAAO,EAAE;;IAEnB,IAAI,QAAQ,QAAQ,IAAI,GAAI;QAC1B,QAAQ,QAAQ,EAAE;;AAEtB;AAEO,KAAS,MAAM,EAAA,qBAAoB,KAAG,MAAM,CAAC;IAClD,QAAQ,GAAG,CAAC;IAKZ,QAAQ,GAAG,CAAC;IAGZ,QAAQ,GAAG,CAAC;IAMZ,QAAQ,GAAG,CAAC;IAKZ,QAAQ,GAAG,CAAC,mBAAmB;IAC/B,OAAO;AACT;AAEA,MAAM;AAAO;AACN;;MAAM;IACX,aAAc;QACR;IACN;IACA,YAAA,UAAQ,MAAM,EAAQ;QACpB,OAAO,GAAI;IACb;AACF;AAEO;KAAe,oCAAY;IAChC,OAAO;QAAE,CAAA,IAAG,CAAC;MAAE;AACjB;;;;wCAlDuC,EAAA,SAAS,qBAAqB;eAA7C,eAAe;;+BAcjB,EAAA,qBAAoB,KAAG,MAAM;eAAnC,MAAM;;;;qBAkCA"}
\ No newline at end of file
......@@ -4,6 +4,7 @@
"version": "3.0.0-alpha-3060820221027001",
"description": "@dcloudio/uni-api",
"sideEffects": false,
"module": "src/index.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/dcloudio/uni-app.git",
......@@ -19,4 +20,4 @@
"devDependencies": {
"@dcloudio/uni-shared": "3.0.0-alpha-3060820221027001"
}
}
}
\ No newline at end of file
......@@ -35,7 +35,7 @@
"@dcloudio/uni-shared": "3.0.0-alpha-3060820221027001",
"@types/pako": "1.0.2",
"@vue/compiler-sfc": "3.2.41",
"autoprefixer": "^10.4.12",
"autoprefixer": "^10.4.13",
"pako": "^1.0.11",
"postcss": "^8.4.16",
"vue": "3.2.41"
......
......@@ -25,13 +25,13 @@
"@dcloudio/uni-i18n": "3.0.0-alpha-3060820221027001",
"@dcloudio/uni-shared": "3.0.0-alpha-3060820221027001",
"@rollup/pluginutils": "^4.2.0",
"@vitejs/plugin-vue": "^3.1.2",
"@vitejs/plugin-vue": "^3.2.0",
"@vue/compiler-dom": "3.2.41",
"@vue/compiler-sfc": "3.2.41",
"debug": "^4.3.3",
"fs-extra": "^10.0.0",
"picocolors": "^1.0.0",
"rollup": "~2.78.0"
"rollup": "^2.79.1"
},
"devDependencies": {
"@types/debug": "^4.1.7",
......@@ -39,7 +39,7 @@
"@vue/compiler-core": "3.2.41",
"esbuild": "^0.15.9",
"postcss": "^8.4.16",
"vite": "3.1.8",
"vite": "3.2.2",
"vue": "3.2.41"
}
}
......@@ -22,9 +22,9 @@
},
"dependencies": {
"@ampproject/remapping": "^2.1.2",
"@babel/core": "^7.18.13",
"@babel/parser": "^7.18.13",
"@babel/types": "^7.17.0",
"@babel/core": "^7.19.6",
"@babel/parser": "^7.19.6",
"@babel/types": "^7.20.0",
"@dcloudio/uni-i18n": "3.0.0-alpha-3060820221027001",
"@dcloudio/uni-shared": "3.0.0-alpha-3060820221027001",
"@intlify/core-base": "9.1.9",
......@@ -36,7 +36,7 @@
"@vue/compiler-sfc": "3.2.41",
"@vue/server-renderer": "3.2.41",
"@vue/shared": "3.2.41",
"autoprefixer": "^10.4.12",
"autoprefixer": "^10.4.13",
"base64url": "^3.0.1",
"chokidar": "^3.5.3",
"compare-versions": "^3.6.0",
......@@ -48,7 +48,7 @@
"fs-extra": "^10.0.0",
"hash-sum": "^2.0.0",
"jsonc-parser": "^3.0.0",
"magic-string": "^0.26.3",
"magic-string": "^0.26.7",
"merge": "^2.1.1",
"mime": "^3.0.0",
"module-alias": "^2.2.2",
......
......@@ -1100,7 +1100,7 @@ function validateProp(name, value, prop, isAbsent) {
if (!shared.isPlainObject(prop)) {
prop = { type: prop };
}
const { type, required, validator: validator2 } = prop;
const { type, required, validator } = prop;
if (required && isAbsent) {
return 'Missing required args: "' + name + '"';
}
......@@ -1120,8 +1120,8 @@ function validateProp(name, value, prop, isAbsent) {
return getInvalidTypeMessage(name, value, expectedTypes);
}
}
if (validator2) {
return validator2(value);
if (validator) {
return validator(value);
}
}
const isSimpleType = /* @__PURE__ */ shared.makeMap(
......@@ -1495,18 +1495,6 @@ function defineAsyncApi(name, fn, protocol, options) {
wrapperAsyncApi(name, fn, process.env.NODE_ENV !== "production" ? protocol : void 0, options)
);
}
new uniShared.Emitter();
const validator = [
{
name: "id",
type: String,
required: true
}
];
validator.concat({
name: "componentInstance",
type: Object
});
const API_ON_TAB_BAR_MID_BUTTON_TAP = "onTabBarMidButtonTap";
const API_GET_LOCALE = "getLocale";
const getLocale = /* @__PURE__ */ defineSyncApi(
......@@ -1519,6 +1507,14 @@ const getLocale = /* @__PURE__ */ defineSyncApi(
return useI18n().getLocale();
}
);
const API_CAN_I_USE = "canIUse";
const CanIUseProtocol = [
{
name: "schema",
type: String,
required: true
}
];
const API_GET_STORAGE = "getStorage";
const GetStorageProtocol = {
key: {
......@@ -1641,7 +1637,37 @@ const RequestOptions = {
}
}
};
const FRONT_COLORS = ["#ffffff", "#000000"];
const API_SET_NAVIGATION_BAR_COLOR = "setNavigationBarColor";
const SetNavigationBarColorOptions = {
formatArgs: {
animation(animation2, params) {
if (!animation2) {
animation2 = { duration: 0, timingFunc: "linear" };
}
params.animation = {
duration: animation2.duration || 0,
timingFunc: animation2.timingFunc || "linear"
};
}
}
};
const SetNavigationBarColorProtocol = {
frontColor: {
type: String,
required: true,
validator(frontColor) {
if (FRONT_COLORS.indexOf(frontColor) === -1) {
return `invalid frontColor "${frontColor}"`;
}
}
},
backgroundColor: {
type: String,
required: true
},
animation: Object
};
const API_SET_NAVIGATION_BAR_TITLE = "setNavigationBarTitle";
const SetNavigationBarTitleProtocol = {
title: {
......@@ -7427,7 +7453,6 @@ function getStateId() {
return 1;
}
}
PolySymbol(process.env.NODE_ENV !== "production" ? "layout" : "l");
let tabBar;
function useTabBar() {
if (!tabBar) {
......@@ -7435,9 +7460,29 @@ function useTabBar() {
}
return tabBar;
}
const cssVar = true;
const cssEnv = true;
const cssConstant = true;
const cssBackdropFilter = true;
const SCHEMA_CSS = {
"css.var": cssVar,
"css.env": cssEnv,
"css.constant": cssConstant,
"css.backdrop-filter": cssBackdropFilter
};
/* @__PURE__ */ defineSyncApi(
API_CAN_I_USE,
(schema) => {
if (shared.hasOwn(SCHEMA_CSS, schema)) {
return SCHEMA_CSS[schema];
}
return true;
},
CanIUseProtocol
);
const envMethod = /* @__PURE__ */ (() => "env")();
function normalizeWindowBottom(windowBottom) {
return `calc(${windowBottom}px + ${envMethod}(safe-area-inset-bottom))`;
return envMethod ? `calc(${windowBottom}px + ${envMethod}(safe-area-inset-bottom))` : `${windowBottom}px`;
}
const SEP = "$$";
const currentPagesMap = /* @__PURE__ */ new Map();
......@@ -10941,6 +10986,44 @@ function setNavigationBar(pageMeta, type, args, resolve, reject) {
}
resolve();
}
/* @__PURE__ */ defineAsyncApi(
API_SET_NAVIGATION_BAR_COLOR,
(args, { resolve, reject }) => {
setNavigationBar(
getCurrentPageMeta(),
API_SET_NAVIGATION_BAR_COLOR,
args,
resolve,
reject
);
},
SetNavigationBarColorProtocol,
SetNavigationBarColorOptions
);
/* @__PURE__ */ defineAsyncApi(
API_SHOW_NAVIGATION_BAR_LOADING,
(args, { resolve, reject }) => {
setNavigationBar(
getCurrentPageMeta(),
API_SHOW_NAVIGATION_BAR_LOADING,
args || {},
resolve,
reject
);
}
);
/* @__PURE__ */ defineAsyncApi(
API_HIDE_NAVIGATION_BAR_LOADING,
(args, { resolve, reject }) => {
setNavigationBar(
getCurrentPageMeta(),
API_HIDE_NAVIGATION_BAR_LOADING,
args || {},
resolve,
reject
);
}
);
const setNavigationBarTitle = /* @__PURE__ */ defineAsyncApi(
API_SET_NAVIGATION_BAR_TITLE,
(args, { resolve, reject }) => {
......@@ -11088,7 +11171,7 @@ function useTabBarStyle(tabBar2) {
let backgroundColor = tabBar2.backgroundColor;
const blurEffect = tabBar2.blurEffect;
if (!backgroundColor) {
if (blurEffect && blurEffect !== "none") {
if (cssBackdropFilter && blurEffect && blurEffect !== "none") {
backgroundColor = BLUR_EFFECT_COLORS[blurEffect];
}
}
......@@ -11442,19 +11525,13 @@ function createRouterViewVNode({
return vue.createVNode(vueRouter.RouterView, null, {
default: vue.withCtx(({
Component
}) => [(vue.openBlock(), vue.createBlock(
vue.KeepAlive,
{
matchBy: "key",
cache: routeCache2
},
[(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(Component), {
type: isTabBar.value ? "tabBar" : "",
key: routeKey.value
}))],
1032,
["cache"]
))]),
}) => [(vue.openBlock(), vue.createBlock(vue.KeepAlive, {
matchBy: "key",
cache: routeCache2
}, [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(Component), {
type: isTabBar.value ? "tabBar" : "",
key: routeKey.value
}))], 1032, ["cache"]))]),
_: 1
});
}
......
......@@ -15040,7 +15040,6 @@ function checkMinWidth(minWidth) {
function getStateId() {
return history.state && history.state.__id__ || 1;
}
PolySymbol(process.env.NODE_ENV !== "production" ? "layout" : "l");
let tabBar;
function useTabBar() {
if (!tabBar) {
......@@ -18597,6 +18596,7 @@ const MIMEType = {
wvx: "x-ms-wvx"
}
};
const MIMEType$1 = MIMEType;
const ALL = "all";
addInteractListener();
function isWXEnv() {
......@@ -18624,7 +18624,7 @@ function _createInput({
inputEl.accept = extension.map((item) => {
if (type !== ALL) {
const MIMEKey = item.replace(".", "");
return `${type}/${MIMEType[type][MIMEKey] || MIMEKey}`;
return `${type}/${MIMEType$1[type][MIMEKey] || MIMEKey}`;
} else {
if (isWXEnv()) {
return ".";
......@@ -21939,19 +21939,13 @@ function createRouterViewVNode({
return createVNode(RouterView, null, {
default: withCtx(({
Component
}) => [(openBlock(), createBlock(
KeepAlive,
{
matchBy: "key",
cache: routeCache2
},
[(openBlock(), createBlock(resolveDynamicComponent(Component), {
type: isTabBar.value ? "tabBar" : "",
key: routeKey.value
}))],
1032,
["cache"]
))]),
}) => [(openBlock(), createBlock(KeepAlive, {
matchBy: "key",
cache: routeCache2
}, [(openBlock(), createBlock(resolveDynamicComponent(Component), {
type: isTabBar.value ? "tabBar" : "",
key: routeKey.value
}))], 1032, ["cache"]))]),
_: 1
});
}
......
......@@ -1087,7 +1087,9 @@ function initUni(api, protocols) {
my.$emit = $emit;
}
// 处理 api mp 打包后为不同js,getEventChannel 无法共享问题
my.getEventChannel = getEventChannel;
{
my.getEventChannel = getEventChannel;
}
return new Proxy({}, UniProxyHandlers);
}
......
......@@ -96,8 +96,8 @@ function callHook(name, args) {
this.$.isMounted = true;
name = 'm';
}
else if (name === 'onLoad' && args && args.__id__) {
{
{
if (name === 'onLoad' && args && args.__id__) {
this.__eventChannel__ = my.getEventChannel(args.__id__);
delete args.__id__;
}
......
......@@ -1120,7 +1120,9 @@ function initUni(api, protocols) {
},
};
// 处理 api mp 打包后为不同js,getEventChannel 无法共享问题
swan.getEventChannel = getEventChannel;
{
swan.getEventChannel = getEventChannel;
}
return new Proxy({}, UniProxyHandlers);
}
......
......@@ -91,8 +91,8 @@ function callHook(name, args) {
this.$.isMounted = true;
name = 'm';
}
else if (name === 'onLoad' && args && args.__id__) {
{
{
if (name === 'onLoad' && args && args.__id__) {
this.__eventChannel__ = swan.getEventChannel(args.__id__);
delete args.__id__;
}
......
......@@ -19,9 +19,9 @@
"license": "Apache-2.0",
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
"dependencies": {
"@babel/generator": "^7.18.13",
"@babel/parser": "^7.18.13",
"@babel/types": "^7.17.0",
"@babel/generator": "^7.19.6",
"@babel/parser": "^7.19.6",
"@babel/types": "^7.20.0",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-3060820221027001",
"@dcloudio/uni-shared": "3.0.0-alpha-3060820221027001",
"@vue/compiler-core": "3.2.41",
......
......@@ -5,7 +5,6 @@ import {
} from '@dcloudio/uni-shared'
import { capitalize, hasOwn, isArray } from '@vue/shared'
import { ComponentPublicInstance, ComponentInternalInstance } from 'vue'
import { getEventChannel } from '../api/protocols/navigateTo'
import { MPComponentInstance } from './component'
const MP_METHODS = [
......
......@@ -1126,7 +1126,9 @@ function initUni(api, protocols) {
},
};
// 处理 api mp 打包后为不同js,getEventChannel 无法共享问题
ks.getEventChannel = getEventChannel;
{
ks.getEventChannel = getEventChannel;
}
return new Proxy({}, UniProxyHandlers);
}
......
......@@ -91,8 +91,8 @@ function callHook(name, args) {
this.$.isMounted = true;
name = 'm';
}
else if (name === 'onLoad' && args && args.__id__) {
{
{
if (name === 'onLoad' && args && args.__id__) {
this.__eventChannel__ = ks.getEventChannel(args.__id__);
delete args.__id__;
}
......
......@@ -1126,7 +1126,9 @@ function initUni(api, protocols) {
},
};
// 处理 api mp 打包后为不同js,getEventChannel 无法共享问题
tt.getEventChannel = getEventChannel;
{
tt.getEventChannel = getEventChannel;
}
return new Proxy({}, UniProxyHandlers);
}
......
......@@ -87,8 +87,8 @@ function callHook(name, args) {
this.$.isMounted = true;
name = 'm';
}
else if (name === 'onLoad' && args && args.__id__) {
{
{
if (name === 'onLoad' && args && args.__id__) {
this.__eventChannel__ = tt.getEventChannel(args.__id__);
delete args.__id__;
}
......
......@@ -1124,7 +1124,9 @@ function initUni(api, protocols) {
},
};
// 处理 api mp 打包后为不同js,getEventChannel 无法共享问题
qq.getEventChannel = getEventChannel;
{
qq.getEventChannel = getEventChannel;
}
return new Proxy({}, UniProxyHandlers);
}
......
......@@ -87,8 +87,8 @@ function callHook(name, args) {
this.$.isMounted = true;
name = 'm';
}
else if (name === 'onLoad' && args && args.__id__) {
{
{
if (name === 'onLoad' && args && args.__id__) {
this.__eventChannel__ = qq.getEventChannel(args.__id__);
delete args.__id__;
}
......
......@@ -1126,7 +1126,9 @@ function initUni(api, protocols) {
},
};
// 处理 api mp 打包后为不同js,getEventChannel 无法共享问题
tt.getEventChannel = getEventChannel;
{
tt.getEventChannel = getEventChannel;
}
return new Proxy({}, UniProxyHandlers);
}
......
......@@ -87,8 +87,8 @@ function callHook(name, args) {
this.$.isMounted = true;
name = 'm';
}
else if (name === 'onLoad' && args && args.__id__) {
{
{
if (name === 'onLoad' && args && args.__id__) {
this.__eventChannel__ = tt.getEventChannel(args.__id__);
delete args.__id__;
}
......
......@@ -24,8 +24,7 @@
"@dcloudio/uni-shared": "3.0.0-alpha-3060820221027001",
"@vue/compiler-sfc": "3.2.41",
"@vue/shared": "3.2.41",
"debug": "^4.3.3",
"magic-string": "^0.26.3"
"debug": "^4.3.3"
},
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
"devDependencies": {
......
......@@ -19,6 +19,6 @@
"dependencies": {
"@vue/shared": "3.2.41",
"parse-css-font": "^4.0.0",
"postcss": "^8.4.16"
"postcss": "^8.4.18"
}
}
......@@ -1123,7 +1123,9 @@ function initUni(api, protocols) {
},
};
// 处理 api mp 打包后为不同js,getEventChannel 无法共享问题
qa.getEventChannel = getEventChannel;
{
qa.getEventChannel = getEventChannel;
}
return new Proxy({}, UniProxyHandlers);
}
......
......@@ -87,8 +87,8 @@ function callHook(name, args) {
this.$.isMounted = true;
name = 'm';
}
else if (name === 'onLoad' && args && args.__id__) {
{
{
if (name === 'onLoad' && args && args.__id__) {
this.__eventChannel__ = qa.getEventChannel(args.__id__);
delete args.__id__;
}
......
......@@ -25,15 +25,15 @@
},
"license": "Apache-2.0",
"dependencies": {
"@babel/core": "^7.18.13",
"@babel/core": "^7.19.6",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-transform-typescript": "^7.18.12",
"@babel/plugin-transform-typescript": "^7.19.3",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-3060820221027001",
"@dcloudio/uni-shared": "3.0.0-alpha-3060820221027001",
"@rollup/pluginutils": "^4.2.0",
"@vitejs/plugin-legacy": "^2.2.0",
"@vitejs/plugin-vue": "^3.1.2",
"@vitejs/plugin-vue-jsx": "^2.0.1",
"@vitejs/plugin-legacy": "^2.3.0",
"@vitejs/plugin-vue": "^3.2.0",
"@vitejs/plugin-vue-jsx": "^2.1.0",
"@vue/compiler-core": "3.2.41",
"@vue/compiler-dom": "3.2.41",
"@vue/compiler-sfc": "3.2.41",
......@@ -57,11 +57,11 @@
"@types/sass": "^1.16.0",
"@vue/babel-plugin-jsx": "^1.1.1",
"chokidar": "^3.5.3",
"vite": "3.1.8",
"vite": "3.2.2",
"vue": "3.2.41"
},
"peerDependencies": {
"vite": "3.1.8"
"vite": "3.2.2"
},
"uni-app": {
"compilerVersion": "3.6.8"
......
此差异已折叠。
......@@ -25,22 +25,22 @@ const pkgs = {
next: '9.1.9',
},
vite: {
latest: '3.1.8',
latest: '3.2.2',
},
'@vitejs/plugin-vue': {
latest: '3.1.2',
latest: '3.2.0',
},
'@vitejs/plugin-vue-jsx': {
latest: '2.0.1',
latest: '2.1.0',
},
'@vitejs/plugin-legacy': {
latest: '2.2.0',
latest: '2.3.0',
},
'@dcloudio/types': {
next: '3.0.16',
next: '3.0.17',
},
autoprefixer: {
latest: '10.4.12',
latest: '10.4.13',
},
'rollup-plugin-copy': {
latest: '3.4.0',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册