提交 d3941156 编写于 作者: Q qiang

chore: build

上级 d8d77c79
...@@ -238,11 +238,13 @@ export default function vueFactory(exports) { ...@@ -238,11 +238,13 @@ export default function vueFactory(exports) {
return [hyphenate$1(name.slice(2)), options]; return [hyphenate$1(name.slice(2)), options];
} }
var EventModifierFlags = { var EventModifierFlags = /*#__PURE__*/(() => {
stop: 1, return {
prevent: 1 << 1, stop: 1,
self: 1 << 2 prevent: 1 << 1,
}; self: 1 << 2
};
})();
function encodeModifier(modifiers) { function encodeModifier(modifiers) {
var flag = 0; var flag = 0;
......
...@@ -219,11 +219,13 @@ export default function vueFactory(exports) { ...@@ -219,11 +219,13 @@ export default function vueFactory(exports) {
return [hyphenate$1(name.slice(2)), options]; return [hyphenate$1(name.slice(2)), options];
} }
var EventModifierFlags = { var EventModifierFlags = /*#__PURE__*/(() => {
stop: 1, return {
prevent: 1 << 1, stop: 1,
self: 1 << 2 prevent: 1 << 1,
}; self: 1 << 2
};
})();
function encodeModifier(modifiers) { function encodeModifier(modifiers) {
var flag = 0; var flag = 0;
......
...@@ -2561,8 +2561,8 @@ const props$o = { ...@@ -2561,8 +2561,8 @@ const props$o = {
} }
}; };
const FIX_MODES = { const FIX_MODES = {
widthFix: ["offsetWidth", "height"], widthFix: ["offsetWidth", "height", (value, ratio) => value / ratio],
heightFix: ["offsetHeight", "width"] heightFix: ["offsetHeight", "width", (value, ratio) => value * ratio]
}; };
const IMAGE_MODES = { const IMAGE_MODES = {
aspectFit: ["center center", "contain"], aspectFit: ["center center", "contain"],
...@@ -2715,7 +2715,7 @@ function useImageSize(rootRef, props2, state) { ...@@ -2715,7 +2715,7 @@ function useImageSize(rootRef, props2, state) {
const rootEl = rootRef.value; const rootEl = rootRef.value;
const value = rootEl[names[0]]; const value = rootEl[names[0]];
if (value) { if (value) {
rootEl.style[names[1]] = fixNumber(value / ratio) + "px"; rootEl.style[names[1]] = fixNumber(names[2](value, ratio)) + "px";
} }
}; };
const resetSize = () => { const resetSize = () => {
......
...@@ -7972,8 +7972,8 @@ const props$v = { ...@@ -7972,8 +7972,8 @@ const props$v = {
} }
}; };
const FIX_MODES = { const FIX_MODES = {
widthFix: ["offsetWidth", "height"], widthFix: ["offsetWidth", "height", (value, ratio) => value / ratio],
heightFix: ["offsetHeight", "width"] heightFix: ["offsetHeight", "width", (value, ratio) => value * ratio]
}; };
const IMAGE_MODES = { const IMAGE_MODES = {
aspectFit: ["center center", "contain"], aspectFit: ["center center", "contain"],
...@@ -8138,7 +8138,7 @@ function useImageSize(rootRef, props2, state2) { ...@@ -8138,7 +8138,7 @@ function useImageSize(rootRef, props2, state2) {
const rootEl = rootRef.value; const rootEl = rootRef.value;
const value = rootEl[names[0]]; const value = rootEl[names[0]];
if (value) { if (value) {
rootEl.style[names[1]] = fixNumber(value / ratio) + "px"; rootEl.style[names[1]] = fixNumber(names[2](value, ratio)) + "px";
} }
}; };
const resetSize = () => { const resetSize = () => {
......
...@@ -127,11 +127,13 @@ class EventChannel { ...@@ -127,11 +127,13 @@ class EventChannel {
} }
} }
const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = { const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /*#__PURE__*/ (() => {
onPageScroll: 1, return {
onShareAppMessage: 1 << 1, onPageScroll: 1,
onShareTimeline: 1 << 2, onShareAppMessage: 1 << 1,
}; onShareTimeline: 1 << 2,
};
})();
const eventChannels = {}; const eventChannels = {};
const eventChannelStack = []; const eventChannelStack = [];
......
...@@ -195,11 +195,13 @@ class EventChannel { ...@@ -195,11 +195,13 @@ class EventChannel {
} }
} }
const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = { const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /*#__PURE__*/ (() => {
onPageScroll: 1, return {
onShareAppMessage: 1 << 1, onPageScroll: 1,
onShareTimeline: 1 << 2, onShareAppMessage: 1 << 1,
}; onShareTimeline: 1 << 2,
};
})();
const eventChannels = {}; const eventChannels = {};
const eventChannelStack = []; const eventChannelStack = [];
......
...@@ -190,11 +190,13 @@ class EventChannel { ...@@ -190,11 +190,13 @@ class EventChannel {
} }
} }
const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = { const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /*#__PURE__*/ (() => {
onPageScroll: 1, return {
onShareAppMessage: 1 << 1, onPageScroll: 1,
onShareTimeline: 1 << 2, onShareAppMessage: 1 << 1,
}; onShareTimeline: 1 << 2,
};
})();
const eventChannels = {}; const eventChannels = {};
const eventChannelStack = []; const eventChannelStack = [];
......
...@@ -190,11 +190,13 @@ class EventChannel { ...@@ -190,11 +190,13 @@ class EventChannel {
} }
} }
const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = { const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /*#__PURE__*/ (() => {
onPageScroll: 1, return {
onShareAppMessage: 1 << 1, onPageScroll: 1,
onShareTimeline: 1 << 2, onShareAppMessage: 1 << 1,
}; onShareTimeline: 1 << 2,
};
})();
const eventChannels = {}; const eventChannels = {};
const eventChannelStack = []; const eventChannelStack = [];
......
...@@ -190,11 +190,13 @@ class EventChannel { ...@@ -190,11 +190,13 @@ class EventChannel {
} }
} }
const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = { const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /*#__PURE__*/ (() => {
onPageScroll: 1, return {
onShareAppMessage: 1 << 1, onPageScroll: 1,
onShareTimeline: 1 << 2, onShareAppMessage: 1 << 1,
}; onShareTimeline: 1 << 2,
};
})();
const eventChannels = {}; const eventChannels = {};
const eventChannelStack = []; const eventChannelStack = [];
......
...@@ -190,11 +190,13 @@ class EventChannel { ...@@ -190,11 +190,13 @@ class EventChannel {
} }
} }
const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = { const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /*#__PURE__*/ (() => {
onPageScroll: 1, return {
onShareAppMessage: 1 << 1, onPageScroll: 1,
onShareTimeline: 1 << 2, onShareAppMessage: 1 << 1,
}; onShareTimeline: 1 << 2,
};
})();
const eventChannels = {}; const eventChannels = {};
const eventChannelStack = []; const eventChannelStack = [];
......
...@@ -62,11 +62,13 @@ const invokeArrayFns = (fns, arg) => { ...@@ -62,11 +62,13 @@ const invokeArrayFns = (fns, arg) => {
return ret; return ret;
}; };
const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = { const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /*#__PURE__*/ (() => {
onPageScroll: 1, return {
onShareAppMessage: 1 << 1, onPageScroll: 1,
onShareTimeline: 1 << 2, onShareAppMessage: 1 << 1,
}; onShareTimeline: 1 << 2,
};
})();
const eventChannels = {}; const eventChannels = {};
const eventChannelStack = []; const eventChannelStack = [];
......
...@@ -190,11 +190,13 @@ class EventChannel { ...@@ -190,11 +190,13 @@ class EventChannel {
} }
} }
const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = { const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /*#__PURE__*/ (() => {
onPageScroll: 1, return {
onShareAppMessage: 1 << 1, onPageScroll: 1,
onShareTimeline: 1 << 2, onShareAppMessage: 1 << 1,
}; onShareTimeline: 1 << 2,
};
})();
const eventChannels = {}; const eventChannels = {};
const eventChannelStack = []; const eventChannelStack = [];
......
...@@ -701,11 +701,13 @@ function parseEventName(name) { ...@@ -701,11 +701,13 @@ function parseEventName(name) {
return [shared.hyphenate(name.slice(2)), options]; return [shared.hyphenate(name.slice(2)), options];
} }
const EventModifierFlags = { const EventModifierFlags = /*#__PURE__*/ (() => {
stop: 1, return {
prevent: 1 << 1, stop: 1,
self: 1 << 2, prevent: 1 << 1,
}; self: 1 << 2,
};
})();
function encodeModifier(modifiers) { function encodeModifier(modifiers) {
let flag = 0; let flag = 0;
if (modifiers.includes('stop')) { if (modifiers.includes('stop')) {
...@@ -1280,11 +1282,13 @@ const UniLifecycleHooks = [ ...@@ -1280,11 +1282,13 @@ const UniLifecycleHooks = [
ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED,
ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED,
]; ];
const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = { const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /*#__PURE__*/ (() => {
onPageScroll: 1, return {
onShareAppMessage: 1 << 1, onPageScroll: 1,
onShareTimeline: 1 << 2, onShareAppMessage: 1 << 1,
}; onShareTimeline: 1 << 2,
};
})();
const E = function () { const E = function () {
// Keep this empty so it's easier to inherit from // Keep this empty so it's easier to inherit from
......
...@@ -697,11 +697,13 @@ function parseEventName(name) { ...@@ -697,11 +697,13 @@ function parseEventName(name) {
return [hyphenate(name.slice(2)), options]; return [hyphenate(name.slice(2)), options];
} }
const EventModifierFlags = { const EventModifierFlags = /*#__PURE__*/ (() => {
stop: 1, return {
prevent: 1 << 1, stop: 1,
self: 1 << 2, prevent: 1 << 1,
}; self: 1 << 2,
};
})();
function encodeModifier(modifiers) { function encodeModifier(modifiers) {
let flag = 0; let flag = 0;
if (modifiers.includes('stop')) { if (modifiers.includes('stop')) {
...@@ -1276,11 +1278,13 @@ const UniLifecycleHooks = [ ...@@ -1276,11 +1278,13 @@ const UniLifecycleHooks = [
ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED, ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED,
ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED, ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED,
]; ];
const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = { const MINI_PROGRAM_PAGE_RUNTIME_HOOKS = /*#__PURE__*/ (() => {
onPageScroll: 1, return {
onShareAppMessage: 1 << 1, onPageScroll: 1,
onShareTimeline: 1 << 2, onShareAppMessage: 1 << 1,
}; onShareTimeline: 1 << 2,
};
})();
const E = function () { const E = function () {
// Keep this empty so it's easier to inherit from // Keep this empty so it's easier to inherit from
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册