* 获取主题数据 * @param {*} fileContent 文件内容 * @param {*} fileType json | string
(fileContent, fileType)
| 82 | * @param {*} fileType json | string |
| 83 | */ |
| 84 | function getThemeDefinition(fileContent, fileType) { |
| 85 | if (fileType === 'string') { |
| 86 | return JSON.parse(fileContent); |
| 87 | } else { |
| 88 | return fileContent; |
| 89 | } |
| 90 | } |
| 91 | /** |
| 92 | * |
| 93 | * @param {*} css css文本内容 |