8.28 修改事件详情相关概念模块样式,增加股票详情信息来源展示
This commit is contained in:
50
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
50
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@@ -2671,11 +2671,15 @@ const getPublicInstance = (i) => {
|
||||
return getExposeProxy(i) || i.proxy;
|
||||
return getPublicInstance(i.parent);
|
||||
};
|
||||
function getComponentInternalInstance(i) {
|
||||
return i;
|
||||
}
|
||||
const publicPropertiesMap = (
|
||||
// Move PURE marker to new line to workaround compiler discarding it
|
||||
// due to type annotation
|
||||
/* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), {
|
||||
$: (i) => i,
|
||||
// fixed by xxxxxx
|
||||
$: getComponentInternalInstance,
|
||||
// fixed by xxxxxx vue-i18n 在 dev 模式,访问了 $el,故模拟一个假的
|
||||
// $el: i => i.vnode.el,
|
||||
$el: (i) => i.__$el || (i.__$el = {}),
|
||||
@@ -4546,6 +4550,7 @@ function warnRef(ref2) {
|
||||
const queuePostRenderEffect = queuePostFlushCb;
|
||||
function mountComponent(initialVNode, options) {
|
||||
const instance = initialVNode.component = createComponentInstance(initialVNode, options.parentComponent, null);
|
||||
instance.renderer = options.mpType ? options.mpType : "component";
|
||||
{
|
||||
instance.ctx.$onApplyOptions = onApplyOptions;
|
||||
instance.ctx.$children = [];
|
||||
@@ -4884,7 +4889,8 @@ function injectLifecycleHook(name, hook, publicThis, instance) {
|
||||
}
|
||||
function initHooks$1(options, instance, publicThis) {
|
||||
const mpType = options.mpType || publicThis.$mpType;
|
||||
if (!mpType || mpType === "component") {
|
||||
if (!mpType || mpType === "component" || // instance.renderer 标识页面是否作为组件渲染
|
||||
mpType === "page" && instance.renderer === "component") {
|
||||
return;
|
||||
}
|
||||
Object.keys(options).forEach((name) => {
|
||||
@@ -5540,10 +5546,10 @@ function handlePromise(promise) {
|
||||
function promisify$1(name, fn) {
|
||||
return (args = {}, ...rest) => {
|
||||
if (hasCallback(args)) {
|
||||
return wrapperReturnValue(name, invokeApi(name, fn, args, rest));
|
||||
return wrapperReturnValue(name, invokeApi(name, fn, extend({}, args), rest));
|
||||
}
|
||||
return wrapperReturnValue(name, handlePromise(new Promise((resolve2, reject) => {
|
||||
invokeApi(name, fn, extend(args, { success: resolve2, fail: reject }), rest);
|
||||
invokeApi(name, fn, extend({}, args, { success: resolve2, fail: reject }), rest);
|
||||
})));
|
||||
};
|
||||
}
|
||||
@@ -5940,7 +5946,7 @@ function promisify(name, api) {
|
||||
}
|
||||
return function promiseApi(options = {}, ...rest) {
|
||||
if (isFunction(options.success) || isFunction(options.fail) || isFunction(options.complete)) {
|
||||
return wrapperReturnValue(name, invokeApi(name, api, options, rest));
|
||||
return wrapperReturnValue(name, invokeApi(name, api, extend({}, options), rest));
|
||||
}
|
||||
return wrapperReturnValue(name, handlePromise(new Promise((resolve2, reject) => {
|
||||
invokeApi(name, api, extend({}, options, {
|
||||
@@ -6107,7 +6113,7 @@ function getOSInfo(system, platform) {
|
||||
osName = system.split(" ")[0] || platform;
|
||||
osVersion = system.split(" ")[1] || "";
|
||||
}
|
||||
osName = osName.toLocaleLowerCase();
|
||||
osName = osName.toLowerCase();
|
||||
switch (osName) {
|
||||
case "harmony":
|
||||
case "ohos":
|
||||
@@ -6147,9 +6153,9 @@ function populateParameters(fromRes, toRes) {
|
||||
appVersion: "1.0.0",
|
||||
appVersionCode: "100",
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
uniCompileVersion: "4.66",
|
||||
uniCompilerVersion: "4.66",
|
||||
uniRuntimeVersion: "4.66",
|
||||
uniCompileVersion: "4.76",
|
||||
uniCompilerVersion: "4.76",
|
||||
uniRuntimeVersion: "4.76",
|
||||
uniPlatform: "mp-weixin",
|
||||
deviceBrand,
|
||||
deviceModel: model,
|
||||
@@ -6186,7 +6192,7 @@ function getGetDeviceType(fromRes, model) {
|
||||
mac: "pc"
|
||||
};
|
||||
const deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
|
||||
const _model = model.toLocaleLowerCase();
|
||||
const _model = model.toLowerCase();
|
||||
for (let index2 = 0; index2 < deviceTypeMapsKeys.length; index2++) {
|
||||
const _m = deviceTypeMapsKeys[index2];
|
||||
if (_model.indexOf(_m) !== -1) {
|
||||
@@ -6200,7 +6206,7 @@ function getGetDeviceType(fromRes, model) {
|
||||
function getDeviceBrand(brand) {
|
||||
let deviceBrand = brand;
|
||||
if (deviceBrand) {
|
||||
deviceBrand = deviceBrand.toLocaleLowerCase();
|
||||
deviceBrand = deviceBrand.toLowerCase();
|
||||
}
|
||||
return deviceBrand;
|
||||
}
|
||||
@@ -6298,9 +6304,9 @@ const getAppBaseInfo = {
|
||||
appLanguage: getAppLanguage(hostLanguage),
|
||||
isUniAppX: false,
|
||||
uniPlatform: "mp-weixin",
|
||||
uniCompileVersion: "4.66",
|
||||
uniCompilerVersion: "4.66",
|
||||
uniRuntimeVersion: "4.66"
|
||||
uniCompileVersion: "4.76",
|
||||
uniCompilerVersion: "4.76",
|
||||
uniRuntimeVersion: "4.76"
|
||||
};
|
||||
extend(toRes, parameters);
|
||||
}
|
||||
@@ -6973,14 +6979,14 @@ const atFileRegex = /^\s*at\s+[\w/./-]+:\d+$/;
|
||||
function rewriteConsole() {
|
||||
function wrapConsole(type) {
|
||||
return function(...args) {
|
||||
const originalArgs = [...args];
|
||||
if (originalArgs.length) {
|
||||
const maybeAtFile = originalArgs[originalArgs.length - 1];
|
||||
if (typeof maybeAtFile === "string" && atFileRegex.test(maybeAtFile)) {
|
||||
originalArgs.pop();
|
||||
}
|
||||
}
|
||||
{
|
||||
const originalArgs = [...args];
|
||||
if (originalArgs.length) {
|
||||
const maybeAtFile = originalArgs[originalArgs.length - 1];
|
||||
if (typeof maybeAtFile === "string" && atFileRegex.test(maybeAtFile)) {
|
||||
originalArgs.pop();
|
||||
}
|
||||
}
|
||||
originalConsole[type](...originalArgs);
|
||||
}
|
||||
if (type === "error" && args.length === 1) {
|
||||
@@ -7042,7 +7048,7 @@ function isConsoleWritable() {
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "127.0.0.1,192.168.2.28";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_T2B0U_";
|
||||
const id = "mp-weixin_KeyeE0";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
||||
Reference in New Issue
Block a user