1234567891011121314151617181920212223 |
- function isActive(current, index, disabled) {
- if (disabled) {
- return false;
- }
- return (current || []).indexOf(index) >= 0;
- }
- function getStyleHeight(index, contentHeight, disabled) {
- if (disabled) {
- return 'height: 0px';
- }
- const height = contentHeight[index];
- if (height === '') {
- return '';
- }
- if (height) {
- return `height: ${height}`;
- }
- return 'height: 0px';
- }
- export default { isActive, getStyleHeight };
|