提交
This commit is contained in:
20
甲情_甲意/miniprogram/node_modules/antd-mini/less/Popup/index.sjs
generated
vendored
Normal file
20
甲情_甲意/miniprogram/node_modules/antd-mini/less/Popup/index.sjs
generated
vendored
Normal 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
|
||||
};
|
Reference in New Issue
Block a user