(prop)
| 1160 | } |
| 1161 | |
| 1162 | getPropertyCommonPitfalls(prop) { |
| 1163 | const pitfalls = []; |
| 1164 | |
| 1165 | if (prop.includes('animation')) { |
| 1166 | pitfalls.push('过度使用可能导致性能问题'); |
| 1167 | pitfalls.push('没有提供回退方案'); |
| 1168 | } |
| 1169 | if (prop.includes('flex')) { |
| 1170 | pitfalls.push('嵌套使用可能导致性能问题'); |
| 1171 | pitfalls.push('未考虑浏览器前缀'); |
| 1172 | } |
| 1173 | |
| 1174 | return pitfalls; |
| 1175 | } |
| 1176 | |
| 1177 | getPropertyBrowserNotes(prop) { |
| 1178 | const notes = []; |
no outgoing calls
no test coverage detected