Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Feb 14, 2025
1 parent 0e7ec96 commit 1604e0f
Show file tree
Hide file tree
Showing 38 changed files with 1,480 additions and 777 deletions.
5 changes: 3 additions & 2 deletions packages/uni-app-plus/dist/uni.x.runtime.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -6580,12 +6580,13 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
class: normalizeClass(["uni-action-sheet_dialog__action__text", {
"uni-action-sheet_dark__mode": $data.theme == "dark"
}])
}, toDisplayString($options.cancelText), 7)], 6), createElementVNode("view", {
}, toDisplayString($options.cancelText), 7)], 6), !$data.isLandscape ? (openBlock(), createElementBlock("view", {
key: 0,
style: normalizeStyle({
height: "".concat($data.bottomNavigationHeight, "px"),
backgroundColor: $options.computedBackgroundColor
})
}, null, 4)], 2)]);
}, null, 4)) : createCommentVNode("", true)], 2)]);
}
const UniActionSheetPage = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["styles", [_style_0$4]]]);
var defaultPoi = {
Expand Down
73 changes: 54 additions & 19 deletions packages/uni-app-vue/dist/uvue.runtime.esm.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -1855,11 +1855,18 @@ function createTransformBackground(options) {
}
};
}
var borderTop = 'borderTop';
var borderRight = 'borderRight';
var borderBottom = 'borderBottom';
var borderLeft = 'borderLeft';
// const position = ['top', 'right', 'bottom', 'left']
function borderTop() {
return 'borderTop';
}
function borderRight() {
return 'borderRight';
}
function borderBottom() {
return 'borderBottom';
}
function borderLeft() {
return 'borderLeft';
}
var transformBorderColor = decl => {
var {
prop,
Expand All @@ -1879,25 +1886,30 @@ var transformBorderColor = decl => {
if (_property_split.length === 3) {
// border-top-width
return [decl];
} else {
// border-width
splitResult.push(splitResult[0], splitResult[0], splitResult[0]);
break;
}
// border-width
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)];
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';
var borderWidth = () => {
return 'Width';
};
var borderStyle = () => {
return 'Style';
};
var borderColor = () => {
return 'Color';
};
function createTransformBorder(options) {
return decl => {
var {
Expand All @@ -1912,9 +1924,9 @@ function createTransformBorder(options) {
var index = splitResult.findIndex(str => item.test(str));
return index < 0 ? null : splitResult.splice(index, 1)[0];
});
var isUvuePlatform = options.type === 'uvue';
var isUvuePlatform = options.type == 'uvue';
if (isUvuePlatform) {
if (splitResult.length > 0 && value !== '') {
if (splitResult.length > 0 && value != '') {
return [decl];
}
} else {
Expand All @@ -1923,12 +1935,35 @@ function createTransformBorder(options) {
return [decl];
}
}
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 {
var defaultWidth = str => {
if (str != null) {
return str.trim();
}
if (options.type == 'uvue') {
return 'medium';
}
return '0';
};
var defaultStyle = str => {
if (str != null) {
return str.trim();
}
if (options.type == 'uvue') {
return 'none';
}
return 'solid';
};
var defaultColor = str => {
if (str != null) {
return str.trim();
}
return '#000000';
};
if (!isUvuePlatform) {
// 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)];
return [createDecl(prop + borderWidth(), defaultWidth(result[0]), important, raws, source), createDecl(prop + borderStyle(), defaultStyle(result[1]), important, raws, source), createDecl(prop + borderColor(), defaultColor(result[2]), important, raws, source)];
}
return [...transformBorderWidth(createDecl(prop + borderWidth(), defaultWidth(result[0]), important, raws, source)), ...transformBorderStyle(createDecl(prop + borderStyle(), defaultStyle(result[1]), important, raws, source)), ...transformBorderColor(createDecl(prop + borderColor(), defaultColor(result[2]), important, raws, source))];
};
}
var borderTopLeftRadius = 'borderTopLeftRadius';
Expand Down
73 changes: 54 additions & 19 deletions packages/uni-app-vue/dist/uvue.runtime.esm.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -1746,11 +1746,18 @@ function createTransformBackground(options) {
}
};
}
var borderTop = 'borderTop';
var borderRight = 'borderRight';
var borderBottom = 'borderBottom';
var borderLeft = 'borderLeft';
// const position = ['top', 'right', 'bottom', 'left']
function borderTop() {
return 'borderTop';
}
function borderRight() {
return 'borderRight';
}
function borderBottom() {
return 'borderBottom';
}
function borderLeft() {
return 'borderLeft';
}
var transformBorderColor = decl => {
var {
prop,
Expand All @@ -1770,25 +1777,30 @@ var transformBorderColor = decl => {
if (_property_split.length === 3) {
// border-top-width
return [decl];
} else {
// border-width
splitResult.push(splitResult[0], splitResult[0], splitResult[0]);
break;
}
// border-width
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)];
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';
var borderWidth = () => {
return 'Width';
};
var borderStyle = () => {
return 'Style';
};
var borderColor = () => {
return 'Color';
};
function createTransformBorder(options) {
return decl => {
var {
Expand All @@ -1803,9 +1815,9 @@ function createTransformBorder(options) {
var index = splitResult.findIndex(str => item.test(str));
return index < 0 ? null : splitResult.splice(index, 1)[0];
});
var isUvuePlatform = options.type === 'uvue';
var isUvuePlatform = options.type == 'uvue';
if (isUvuePlatform) {
if (splitResult.length > 0 && value !== '') {
if (splitResult.length > 0 && value != '') {
return [decl];
}
} else {
Expand All @@ -1814,12 +1826,35 @@ function createTransformBorder(options) {
return [decl];
}
}
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 {
var defaultWidth = str => {
if (str != null) {
return str.trim();
}
if (options.type == 'uvue') {
return 'medium';
}
return '0';
};
var defaultStyle = str => {
if (str != null) {
return str.trim();
}
if (options.type == 'uvue') {
return 'none';
}
return 'solid';
};
var defaultColor = str => {
if (str != null) {
return str.trim();
}
return '#000000';
};
if (!isUvuePlatform) {
// 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)];
return [createDecl(prop + borderWidth(), defaultWidth(result[0]), important, raws, source), createDecl(prop + borderStyle(), defaultStyle(result[1]), important, raws, source), createDecl(prop + borderColor(), defaultColor(result[2]), important, raws, source)];
}
return [...transformBorderWidth(createDecl(prop + borderWidth(), defaultWidth(result[0]), important, raws, source)), ...transformBorderStyle(createDecl(prop + borderStyle(), defaultStyle(result[1]), important, raws, source)), ...transformBorderColor(createDecl(prop + borderColor(), defaultColor(result[2]), important, raws, source))];
};
}
var borderTopLeftRadius = 'borderTopLeftRadius';
Expand Down
73 changes: 54 additions & 19 deletions packages/uni-app-vue/dist/uvue.runtime.harmony.esm.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -1856,11 +1856,18 @@ function createTransformBackground(options) {
}
};
}
var borderTop = 'borderTop';
var borderRight = 'borderRight';
var borderBottom = 'borderBottom';
var borderLeft = 'borderLeft';
// const position = ['top', 'right', 'bottom', 'left']
function borderTop() {
return 'borderTop';
}
function borderRight() {
return 'borderRight';
}
function borderBottom() {
return 'borderBottom';
}
function borderLeft() {
return 'borderLeft';
}
var transformBorderColor = decl => {
var {
prop,
Expand All @@ -1880,25 +1887,30 @@ var transformBorderColor = decl => {
if (_property_split.length === 3) {
// border-top-width
return [decl];
} else {
// border-width
splitResult.push(splitResult[0], splitResult[0], splitResult[0]);
break;
}
// border-width
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)];
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';
var borderWidth = () => {
return 'Width';
};
var borderStyle = () => {
return 'Style';
};
var borderColor = () => {
return 'Color';
};
function createTransformBorder(options) {
return decl => {
var {
Expand All @@ -1913,9 +1925,9 @@ function createTransformBorder(options) {
var index = splitResult.findIndex(str => item.test(str));
return index < 0 ? null : splitResult.splice(index, 1)[0];
});
var isUvuePlatform = options.type === 'uvue';
var isUvuePlatform = options.type == 'uvue';
if (isUvuePlatform) {
if (splitResult.length > 0 && value !== '') {
if (splitResult.length > 0 && value != '') {
return [decl];
}
} else {
Expand All @@ -1924,12 +1936,35 @@ function createTransformBorder(options) {
return [decl];
}
}
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 {
var defaultWidth = str => {
if (str != null) {
return str.trim();
}
if (options.type == 'uvue') {
return 'medium';
}
return '0';
};
var defaultStyle = str => {
if (str != null) {
return str.trim();
}
if (options.type == 'uvue') {
return 'none';
}
return 'solid';
};
var defaultColor = str => {
if (str != null) {
return str.trim();
}
return '#000000';
};
if (!isUvuePlatform) {
// 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)];
return [createDecl(prop + borderWidth(), defaultWidth(result[0]), important, raws, source), createDecl(prop + borderStyle(), defaultStyle(result[1]), important, raws, source), createDecl(prop + borderColor(), defaultColor(result[2]), important, raws, source)];
}
return [...transformBorderWidth(createDecl(prop + borderWidth(), defaultWidth(result[0]), important, raws, source)), ...transformBorderStyle(createDecl(prop + borderStyle(), defaultStyle(result[1]), important, raws, source)), ...transformBorderColor(createDecl(prop + borderColor(), defaultColor(result[2]), important, raws, source))];
};
}
var borderTopLeftRadius = 'borderTopLeftRadius';
Expand Down
Loading

0 comments on commit 1604e0f

Please sign in to comment.