Skip to content

Commit d2fdf50

Browse files
feat: add cardesktop for media query scene (#129)
1 parent 6139aa3 commit d2fdf50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/hap-compiler/src/style/mediaquery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const featureValidator = {
114114
},
115115
scene(value) {
116116
const reg =
117-
/^(assistantscreen|launcher|globalsearch|calendar|lockscreen|suggestion|voiceassistant|sms|servicecenter)$/
117+
/^(assistantscreen|launcher|globalsearch|calendar|lockscreen|suggestion|voiceassistant|sms|servicecenter|cardesktop)$/
118118
if (reg.test(value)) {
119119
return { value }
120120
}
@@ -125,7 +125,7 @@ const featureValidator = {
125125
feature +
126126
'` 的值 `' +
127127
value +
128-
'` 不正确, 必须为 `assistantscreen | launcher | globalsearch | calendar | lockscreen | suggestion | voiceassistant | sms | servicecenter`'
128+
'` 不正确, 必须为 `assistantscreen | launcher | globalsearch | calendar | lockscreen | suggestion | voiceassistant | sms | servicecenter | cardesktop`'
129129
)
130130
}
131131
}

0 commit comments

Comments
 (0)