(allowedOverridesSet: Set<string>, indent = '')
| 1069 | } |
| 1070 | |
| 1071 | toJS(allowedOverridesSet: Set<string>, indent = ''): string { |
| 1072 | conditionStack.push(this.condition); |
| 1073 | let res = `${indent}if (props.${this.condition}) {\n${super.toJS(allowedOverridesSet, indent + ' ')}\n${indent}}`; |
| 1074 | conditionStack.pop(); |
| 1075 | return res; |
| 1076 | } |
| 1077 | } |
| 1078 | |
| 1079 | /** |