This commit is contained in:
Ling53666
2025-08-18 09:11:51 +08:00
commit 02554225da
2516 changed files with 133155 additions and 0 deletions

View File

@ -0,0 +1,20 @@
function getContentStyle(position, animation, duration, width, height) {
var style = '';
if (animation) {
style += "-webkit-animation-duration:".concat(duration, "ms; animation-duration:").concat(duration, "ms;");
}
if (position === 'top' || position === 'bottom') {
if (typeof height !== 'undefined' && height !== null) {
style += "height:".concat(height, "px");
}
}
if (position === 'left' || position === 'right') {
if (typeof width !== 'undefined' && width !== null) {
style += "width:".concat(width, "px");
}
}
return style;
}
export default {
getContentStyle: getContentStyle
};