提交 08e9e5e2 编写于 作者: I im-robot

chore: sync css.json

......@@ -1383,6 +1383,8 @@ function normalizeStyle(value) {
styleObject[key] = value;
});
return normalizeStyle$1(styleObject);
} else if (isString(value)) {
return parseStringStyle(value);
} else if (isArray(value)) {
var res = {};
for (var i = 0; i < value.length; i++) {
......@@ -1699,23 +1701,30 @@ var flushIndex = 0;
var pendingPostFlushCbs = [];
var activePostFlushCbs = null;
var postFlushIndex = 0;
var resolvedPromise = /* @__PURE__ */Promise.resolve();
var iOSPromise = {
then(callback) {
setTimeout(() => callback(), 0);
}
};
var resolvedPromise = iOSPromise;
var currentFlushPromise = null;
var RECURSION_LIMIT = 100;
function nextTick(fn) {
var instance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstance();
var promise = currentFlushPromise || resolvedPromise;
var current = currentFlushPromise === null || instance === null ? promise : promise.then(() => {
return new Promise(resolve => {
if (instance === null) {
resolve();
} else {
instance.$waitNativeRender(() => {
var current = currentFlushPromise === null || instance === null ? promise : {
then(resolve) {
promise.then(() => {
if (instance === null) {
resolve();
});
}
});
});
} else {
instance.$waitNativeRender(() => {
resolve();
});
}
});
}
};
return fn ? current.then(this ? fn.bind(this) : fn) : current;
}
function findInsertionIndex(id) {
......
......@@ -1274,6 +1274,8 @@ function normalizeStyle(value) {
styleObject[key] = value;
});
return normalizeStyle$1(styleObject);
} else if (isString(value)) {
return parseStringStyle(value);
} else if (isArray(value)) {
var res = {};
for (var i = 0; i < value.length; i++) {
......@@ -1566,22 +1568,29 @@ var flushIndex = 0;
var pendingPostFlushCbs = [];
var activePostFlushCbs = null;
var postFlushIndex = 0;
var resolvedPromise = /* @__PURE__ */Promise.resolve();
var iOSPromise = {
then(callback) {
setTimeout(() => callback(), 0);
}
};
var resolvedPromise = iOSPromise;
var currentFlushPromise = null;
function nextTick(fn) {
var instance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstance();
var promise = currentFlushPromise || resolvedPromise;
var current = currentFlushPromise === null || instance === null ? promise : promise.then(() => {
return new Promise(resolve => {
if (instance === null) {
resolve();
} else {
instance.$waitNativeRender(() => {
var current = currentFlushPromise === null || instance === null ? promise : {
then(resolve) {
promise.then(() => {
if (instance === null) {
resolve();
});
}
});
});
} else {
instance.$waitNativeRender(() => {
resolve();
});
}
});
}
};
return fn ? current.then(this ? fn.bind(this) : fn) : current;
}
function findInsertionIndex(id) {
......
......@@ -277,22 +277,29 @@ let flushIndex = 0;
const pendingPostFlushCbs = [];
let activePostFlushCbs = null;
let postFlushIndex = 0;
const resolvedPromise = /* @__PURE__ */ Promise.resolve();
const iOSPromise = {
then(callback) {
setTimeout(() => callback(), 0);
}
};
const resolvedPromise = iOSPromise;
let currentFlushPromise = null;
const RECURSION_LIMIT = 100;
function nextTick(fn, instance = getCurrentInstance()) {
const promise = currentFlushPromise || resolvedPromise;
const current = currentFlushPromise === null || instance === null ? promise : promise.then(() => {
return new Promise((resolve) => {
if (instance === null) {
resolve();
} else {
instance.$waitNativeRender(() => {
const current = currentFlushPromise === null || instance === null ? promise : {
then(resolve) {
promise.then(() => {
if (instance === null) {
resolve();
});
}
});
});
} else {
instance.$waitNativeRender(() => {
resolve();
});
}
});
}
};
return fn ? current.then(this ? fn.bind(this) : fn) : current;
}
function findInsertionIndex(id) {
......
......@@ -77,7 +77,8 @@ export const request = defineTaskApi<API_TYPE_REQUEST>(
if (responseType === 'text' && dataType === 'json') {
try {
//#if _X_
res = new UTSJSONObject(JSON.parse(res))
// @ts-expect-error
res = UTS.JSON.parse(res)
//#else
res = JSON.parse(res)
//#endif
......
......@@ -396,6 +396,9 @@ function normalizeStyle(value) {
});
return shared.normalizeStyle(styleObject);
}
else if (shared.isString(value)) {
return shared.parseStringStyle(value);
}
else if (shared.isArray(value)) {
const res = {};
for (let i = 0; i < value.length; i++) {
......
import { isHTMLTag, isSVGTag, hyphenate, camelize, normalizeStyle as normalizeStyle$1, isArray, isString, parseStringStyle, normalizeClass as normalizeClass$1, isFunction, isPlainObject, extend, capitalize } from '@vue/shared';
import { isHTMLTag, isSVGTag, hyphenate, camelize, normalizeStyle as normalizeStyle$1, isString, parseStringStyle, isArray, normalizeClass as normalizeClass$1, isFunction, isPlainObject, extend, capitalize } from '@vue/shared';
const BUILT_IN_TAG_NAMES = [
'ad',
......@@ -394,6 +394,9 @@ function normalizeStyle(value) {
});
return normalizeStyle$1(styleObject);
}
else if (isString(value)) {
return parseStringStyle(value);
}
else if (isArray(value)) {
const res = {};
for (let i = 0; i < value.length; i++) {
......
......@@ -99,6 +99,8 @@ export function normalizeStyle(
styleObject[key] = value
})
return vueNormalizeStyle(styleObject)
} else if (isString(value)) {
return parseStringStyle(value as string)
} else if (isArray(value)) {
const res: NormalizedStyle = {}
for (let i = 0; i < value.length; i++) {
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册