Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyuWang committed Jan 3, 2025
1 parent a8b4619 commit bcde6e1
Show file tree
Hide file tree
Showing 18 changed files with 339 additions and 267 deletions.
6 changes: 3 additions & 3 deletions packages/uni-app-harmony/dist/uni.runtime.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -12634,7 +12634,7 @@ const $navigateTo = (args, { resolve, reject }) => {
const [aniType, aniDuration] = initAnimation(path, animationType, animationDuration);
navigate(path, () => {
_navigateTo({
url,
url: url,
path,
query,
events,
Expand Down Expand Up @@ -12775,7 +12775,7 @@ const redirectTo = defineAsyncApi(API_REDIRECT_TO, ({ url }, { resolve, reject }
const { path, query } = parseUrl(url);
navigate(path, () => {
_redirectTo({
url,
url: url,
path,
query,
})
Expand Down Expand Up @@ -12860,7 +12860,7 @@ const $switchTab = (args, { resolve, reject }) => {
const { path, query } = parseUrl(url);
navigate(path, () => {
_switchTab({
url,
url: url,
path,
query,
})
Expand Down
66 changes: 60 additions & 6 deletions packages/uni-app-plus/dist/uni.x.runtime.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7099,14 +7099,32 @@ const _style_0$1 = {
"bottom": 0,
"right": 10,
"width": "auto",
"borderTopWidth": 1,
"borderRightWidth": 1,
"borderBottomWidth": 1,
"borderLeftWidth": 1,
"borderTopStyle": "solid",
"borderRightStyle": "solid",
"borderBottomStyle": "solid",
"borderBottomColor": "#f8f8f8"
"borderLeftStyle": "solid",
"borderTopColor": "#f8f8f8",
"borderRightColor": "#f8f8f8",
"borderBottomColor": "#f8f8f8",
"borderLeftColor": "#f8f8f8"
},
".uni-choose-location-dark ": {
"borderTopWidth": 1,
"borderRightWidth": 1,
"borderBottomWidth": 1,
"borderLeftWidth": 1,
"borderTopStyle": "solid",
"borderRightStyle": "solid",
"borderBottomStyle": "solid",
"borderBottomColor": "#1e1e1e"
"borderLeftStyle": "solid",
"borderTopColor": "#1e1e1e",
"borderRightColor": "#1e1e1e",
"borderBottomColor": "#1e1e1e",
"borderLeftColor": "#1e1e1e"
}
},
"uni-choose-location-search-icon": {
Expand Down Expand Up @@ -7550,14 +7568,32 @@ const _style_0 = {
"paddingRight": 16,
"paddingBottom": 16,
"paddingLeft": 16,
"borderTopWidth": 1,
"borderRightWidth": 1,
"borderBottomWidth": 1,
"borderLeftWidth": 1,
"borderTopStyle": "solid",
"borderRightStyle": "solid",
"borderBottomStyle": "solid",
"borderBottomColor": "#e5e5e5"
"borderLeftStyle": "solid",
"borderTopColor": "#e5e5e5",
"borderRightColor": "#e5e5e5",
"borderBottomColor": "#e5e5e5",
"borderLeftColor": "#e5e5e5"
},
".uni-action-sheet_dark__mode": {
"borderTopWidth": 1,
"borderRightWidth": 1,
"borderBottomWidth": 1,
"borderLeftWidth": 1,
"borderTopStyle": "solid",
"borderRightStyle": "solid",
"borderBottomStyle": "solid",
"borderBottomColor": "#2F3131"
"borderLeftStyle": "solid",
"borderTopColor": "#2F3131",
"borderRightColor": "#2F3131",
"borderBottomColor": "#2F3131",
"borderLeftColor": "#2F3131"
},
".uni-action-sheet_landscape__mode": {
"paddingTop": 10,
Expand All @@ -7573,13 +7609,31 @@ const _style_0 = {
"paddingBottom": 16,
"paddingLeft": 16,
"borderTopWidth": 1,
"borderRightWidth": 1,
"borderBottomWidth": 1,
"borderLeftWidth": 1,
"borderTopStyle": "solid",
"borderTopColor": "#e5e5e5"
"borderRightStyle": "solid",
"borderBottomStyle": "solid",
"borderLeftStyle": "solid",
"borderTopColor": "#e5e5e5",
"borderRightColor": "#e5e5e5",
"borderBottomColor": "#e5e5e5",
"borderLeftColor": "#e5e5e5"
},
".uni-action-sheet_dark__mode": {
"borderTopWidth": 1,
"borderRightWidth": 1,
"borderBottomWidth": 1,
"borderLeftWidth": 1,
"borderTopStyle": "solid",
"borderTopColor": "#2F3131"
"borderRightStyle": "solid",
"borderBottomStyle": "solid",
"borderLeftStyle": "solid",
"borderTopColor": "#2F3131",
"borderRightColor": "#2F3131",
"borderBottomColor": "#2F3131",
"borderLeftColor": "#2F3131"
},
".uni-action-sheet_landscape__mode": {
"paddingTop": 10,
Expand Down
71 changes: 39 additions & 32 deletions packages/uni-app-vue/dist/uvue.runtime.esm.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -1855,6 +1855,39 @@ function createTransformBackground(options) {
}
};
}
var borderTop = 'borderTop';
var borderRight = 'borderRight';
var borderBottom = 'borderBottom';
var borderLeft = 'borderLeft';
var transformBorderColor = decl => {
var {
prop,
value,
important,
raws,
source
} = decl;
var _splitResult = hyphenate(prop).split('-');
var property = _splitResult[_splitResult.length - 1];
{
property = capitalize(property);
}
var splitResult = value.replace(/\s*,\s*/g, ',').split(/\s+/);
switch (splitResult.length) {
case 1:
splitResult.push(splitResult[0], splitResult[0], splitResult[0]);
break;
case 2:
splitResult.push(splitResult[0], splitResult[1]);
break;
case 3:
splitResult.push(splitResult[1]);
break;
}
return [createDecl(borderTop + property, splitResult[0], important, raws, source), createDecl(borderRight + property, splitResult[1], important, raws, source), createDecl(borderBottom + property, splitResult[2], important, raws, source), createDecl(borderLeft + property, splitResult[3], important, raws, source)];
};
var transformBorderStyle = transformBorderColor;
var transformBorderWidth = transformBorderColor;
var borderWidth = 'Width';
var borderStyle = 'Style';
var borderColor = 'Color';
Expand Down Expand Up @@ -1883,38 +1916,14 @@ function createTransformBorder(options) {
return [decl];
}
}
return [createDecl(prop + borderWidth, (result[0] || (options.type === 'uvue' ? 'medium' : '0')).trim(), important, raws, source), createDecl(prop + borderStyle, (result[1] || (options.type === 'uvue' ? 'none' : 'solid')).trim(), important, raws, source), createDecl(prop + borderColor, (result[2] || '#000000').trim(), important, raws, source)];
if (isUvuePlatform) {
return [...transformBorderWidth(createDecl(prop + borderWidth, (result[0] || (options.type === 'uvue' ? 'medium' : '0')).trim(), important, raws, source)), ...transformBorderStyle(createDecl(prop + borderStyle, (result[1] || (options.type === 'uvue' ? 'none' : 'solid')).trim(), important, raws, source)), ...transformBorderColor(createDecl(prop + borderColor, (result[2] || '#000000').trim(), important, raws, source))];
} else {
// nvue 维持不变
return [createDecl(prop + borderWidth, (result[0] || (options.type === 'uvue' ? 'medium' : '0')).trim(), important, raws, source), createDecl(prop + borderStyle, (result[1] || (options.type === 'uvue' ? 'none' : 'solid')).trim(), important, raws, source), createDecl(prop + borderColor, (result[2] || '#000000').trim(), important, raws, source)];
}
};
}
var borderTop = 'borderTop';
var borderRight = 'borderRight';
var borderBottom = 'borderBottom';
var borderLeft = 'borderLeft';
var transformBorderColor = decl => {
var {
prop,
value,
important,
raws,
source
} = decl;
var property = hyphenate(prop).split('-')[1];
{
property = capitalize(property);
}
var splitResult = value.replace(/\s*,\s*/g, ',').split(/\s+/);
switch (splitResult.length) {
case 1:
return [decl];
case 2:
splitResult.push(splitResult[0], splitResult[1]);
break;
case 3:
splitResult.push(splitResult[1]);
break;
}
return [createDecl(borderTop + property, splitResult[0], important, raws, source), createDecl(borderRight + property, splitResult[1], important, raws, source), createDecl(borderBottom + property, splitResult[2], important, raws, source), createDecl(borderLeft + property, splitResult[3], important, raws, source)];
};
var borderTopLeftRadius = 'borderTopLeftRadius';
var borderTopRightRadius = 'borderTopRightRadius';
var borderBottomRightRadius = 'borderBottomRightRadius';
Expand Down Expand Up @@ -1942,8 +1951,6 @@ var transformBorderRadius = decl => {
}
return [createDecl(borderTopLeftRadius, splitResult[0], important, raws, source), createDecl(borderTopRightRadius, splitResult[1], important, raws, source), createDecl(borderBottomRightRadius, splitResult[2], important, raws, source), createDecl(borderBottomLeftRadius, splitResult[3], important, raws, source)];
};
var transformBorderStyle = transformBorderColor;
var transformBorderWidth = transformBorderColor;
var flexDirection = 'flexDirection';
var flexWrap = 'flexWrap';
var transformFlexFlow = decl => {
Expand Down
71 changes: 39 additions & 32 deletions packages/uni-app-vue/dist/uvue.runtime.esm.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -1746,6 +1746,39 @@ function createTransformBackground(options) {
}
};
}
var borderTop = 'borderTop';
var borderRight = 'borderRight';
var borderBottom = 'borderBottom';
var borderLeft = 'borderLeft';
var transformBorderColor = decl => {
var {
prop,
value,
important,
raws,
source
} = decl;
var _splitResult = hyphenate(prop).split('-');
var property = _splitResult[_splitResult.length - 1];
{
property = capitalize(property);
}
var splitResult = value.replace(/\s*,\s*/g, ',').split(/\s+/);
switch (splitResult.length) {
case 1:
splitResult.push(splitResult[0], splitResult[0], splitResult[0]);
break;
case 2:
splitResult.push(splitResult[0], splitResult[1]);
break;
case 3:
splitResult.push(splitResult[1]);
break;
}
return [createDecl(borderTop + property, splitResult[0], important, raws, source), createDecl(borderRight + property, splitResult[1], important, raws, source), createDecl(borderBottom + property, splitResult[2], important, raws, source), createDecl(borderLeft + property, splitResult[3], important, raws, source)];
};
var transformBorderStyle = transformBorderColor;
var transformBorderWidth = transformBorderColor;
var borderWidth = 'Width';
var borderStyle = 'Style';
var borderColor = 'Color';
Expand Down Expand Up @@ -1774,38 +1807,14 @@ function createTransformBorder(options) {
return [decl];
}
}
return [createDecl(prop + borderWidth, (result[0] || (options.type === 'uvue' ? 'medium' : '0')).trim(), important, raws, source), createDecl(prop + borderStyle, (result[1] || (options.type === 'uvue' ? 'none' : 'solid')).trim(), important, raws, source), createDecl(prop + borderColor, (result[2] || '#000000').trim(), important, raws, source)];
if (isUvuePlatform) {
return [...transformBorderWidth(createDecl(prop + borderWidth, (result[0] || (options.type === 'uvue' ? 'medium' : '0')).trim(), important, raws, source)), ...transformBorderStyle(createDecl(prop + borderStyle, (result[1] || (options.type === 'uvue' ? 'none' : 'solid')).trim(), important, raws, source)), ...transformBorderColor(createDecl(prop + borderColor, (result[2] || '#000000').trim(), important, raws, source))];
} else {
// nvue 维持不变
return [createDecl(prop + borderWidth, (result[0] || (options.type === 'uvue' ? 'medium' : '0')).trim(), important, raws, source), createDecl(prop + borderStyle, (result[1] || (options.type === 'uvue' ? 'none' : 'solid')).trim(), important, raws, source), createDecl(prop + borderColor, (result[2] || '#000000').trim(), important, raws, source)];
}
};
}
var borderTop = 'borderTop';
var borderRight = 'borderRight';
var borderBottom = 'borderBottom';
var borderLeft = 'borderLeft';
var transformBorderColor = decl => {
var {
prop,
value,
important,
raws,
source
} = decl;
var property = hyphenate(prop).split('-')[1];
{
property = capitalize(property);
}
var splitResult = value.replace(/\s*,\s*/g, ',').split(/\s+/);
switch (splitResult.length) {
case 1:
return [decl];
case 2:
splitResult.push(splitResult[0], splitResult[1]);
break;
case 3:
splitResult.push(splitResult[1]);
break;
}
return [createDecl(borderTop + property, splitResult[0], important, raws, source), createDecl(borderRight + property, splitResult[1], important, raws, source), createDecl(borderBottom + property, splitResult[2], important, raws, source), createDecl(borderLeft + property, splitResult[3], important, raws, source)];
};
var borderTopLeftRadius = 'borderTopLeftRadius';
var borderTopRightRadius = 'borderTopRightRadius';
var borderBottomRightRadius = 'borderBottomRightRadius';
Expand Down Expand Up @@ -1833,8 +1842,6 @@ var transformBorderRadius = decl => {
}
return [createDecl(borderTopLeftRadius, splitResult[0], important, raws, source), createDecl(borderTopRightRadius, splitResult[1], important, raws, source), createDecl(borderBottomRightRadius, splitResult[2], important, raws, source), createDecl(borderBottomLeftRadius, splitResult[3], important, raws, source)];
};
var transformBorderStyle = transformBorderColor;
var transformBorderWidth = transformBorderColor;
var flexDirection = 'flexDirection';
var flexWrap = 'flexWrap';
var transformFlexFlow = decl => {
Expand Down
32 changes: 16 additions & 16 deletions packages/uni-mp-alipay/dist/uni.api.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -848,27 +848,27 @@ function initWrapper(protocols) {
return processArgs(methodName, res, returnValue, {}, realKeepReturnValue);
}
return function wrapper(methodName, method) {
if ((isContextApi(methodName) || isTaskApi(methodName)) && method) {
const oldMethod = method;
method = function (...args) {
const contextOrTask = oldMethod.apply(this, args);
if (contextOrTask) {
contextOrTask.__v_skip = true;
}
return contextOrTask;
};
}
if ((!hasOwn(protocols, methodName) && !isFunction(protocols.returnValue)) ||
!isFunction(method)) {
return method;
}
const protocol = protocols[methodName];
if (!protocol && !isFunction(protocols.returnValue)) {
/**
* 注意:
* - 此处method为原始全局对象上的uni方法名对应的属性值,比如method值可能为my.login,即undefined
* - uni.env并非方法,但是也会被传入wrapper
*/
const hasProtocol = hasOwn(protocols, methodName);
const needWrapper = hasProtocol ||
isFunction(protocols.returnValue) ||
isContextApi(methodName) ||
isTaskApi(methodName);
const hasMethod = hasProtocol || isFunction(method);
if (!hasProtocol && !method) {
// 暂不支持的 api
return function () {
console.error(`支付宝小程序 暂不支持${methodName}`);
};
}
if (!needWrapper || !hasMethod) {
return method;
}
const protocol = protocols[methodName];
return function (arg1, arg2) {
// 目前 api 最多两个参数
let options = protocol || {};
Expand Down
Loading

0 comments on commit bcde6e1

Please sign in to comment.