File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -403,13 +403,15 @@ const validateTime = function (v) {
403
403
const themeColors = [
404
404
'uxCardColorBackground' ,
405
405
'uxCardColorAccent' ,
406
+ 'uxCardColorTheme' ,
406
407
'uxCardColorContainer' ,
407
- 'uxCardColorHue' ,
408
- 'uxCardColorHueSecondary' ,
409
408
'uxCardColorPrimary' ,
410
409
'uxCardColorQuaternary' ,
410
+ 'uxCardColorSecondary' ,
411
411
'uxCardColorSecondaryVariant' ,
412
- 'uxCardColorTertiary'
412
+ 'uxCardColorTertiary' ,
413
+ 'uxCardColorHue' ,
414
+ 'uxCardColorHueSecondary'
413
415
]
414
416
const validator = {
415
417
/**
@@ -2702,12 +2704,12 @@ const validatorMap = {
2702
2704
// font
2703
2705
fontSrc : validator . fontSrc ,
2704
2706
fontFamily : validator . fontFamily ,
2705
- themeColor : makeEnumValidator ( themeColors ) ,
2707
+ /* themeColor: makeEnumValidator(themeColors),
2706
2708
themeBackgroundColor: makeEnumValidator(themeColors),
2707
2709
themeLayerColor: makeEnumValidator(themeColors),
2708
2710
themeTrackColor: makeEnumValidator(themeColors),
2709
2711
themeSelectedColor: makeEnumValidator(themeColors),
2710
- themeBlockColor : makeEnumValidator ( themeColors ) ,
2712
+ themeBlockColor: makeEnumValidator(themeColors), */
2711
2713
letterSpacing : validator . letterSpacing
2712
2714
}
2713
2715
Original file line number Diff line number Diff line change @@ -234,9 +234,10 @@ function populateWidgetFields(widgetsObj) {
234
234
conf . minPlatformVersion = conf . minCardPlatformVersion
235
235
} else if ( ! conf . minPlatformVersion ) {
236
236
// 没写 minCardPlatformVersion 和 minPlatformVersion 字段
237
- colorconsole . throw (
237
+ // 不填minCardPlatformVersion也能编译
238
+ /* colorconsole.throw(
238
239
`manifest.json 文件 widgets 字段下,${routePath} 缺少 minCardPlatformVersion 字段`
239
- )
240
+ ) */
240
241
}
241
242
}
242
243
if ( conf . type === 'lite' && ! conf . minCardPlatformVersion ) {
You can’t perform that action at this time.
0 commit comments