提交
This commit is contained in:
23
甲情_甲意/miniprogram/node_modules/antd-mini/es/Collapse/index.sjs
generated
vendored
Normal file
23
甲情_甲意/miniprogram/node_modules/antd-mini/es/Collapse/index.sjs
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
function isActive(current, index, disabled) {
|
||||
if (disabled) {
|
||||
return false;
|
||||
}
|
||||
return (current || []).indexOf(index) >= 0;
|
||||
}
|
||||
function getStyleHeight(index, contentHeight, disabled) {
|
||||
if (disabled) {
|
||||
return 'height: 0px';
|
||||
}
|
||||
var height = contentHeight[index];
|
||||
if (height === '') {
|
||||
return '';
|
||||
}
|
||||
if (height) {
|
||||
return "height: ".concat(height);
|
||||
}
|
||||
return 'height: 0px';
|
||||
}
|
||||
export default {
|
||||
isActive: isActive,
|
||||
getStyleHeight: getStyleHeight
|
||||
};
|
Reference in New Issue
Block a user