Skip to content

Commit 256430b

Browse files
authored
feat: remove error msg for some lite widget components (#111)
Signed-off-by: lilei946 <[email protected]>
1 parent 31f5648 commit 256430b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/hap-compiler/src/template/validator.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ const tagNatives = {
181181
}
182182
},
183183
slider: {
184+
supportCard: true,
184185
selfClosing: true,
185186
atomic: true,
186187
attrs: {
@@ -223,6 +224,7 @@ const tagNatives = {
223224
}
224225
},
225226
list: {
227+
supportCard: true,
226228
children: ['list-item'],
227229
attrs: {
228230
scrollpage: {
@@ -235,6 +237,7 @@ const tagNatives = {
235237
events: ['scroll', 'scrollbottom', 'scrolltop', 'scrollend', 'scrolltouchup', 'selected']
236238
},
237239
'list-item': {
240+
supportCard: true,
238241
excludeRoot: true,
239242
parents: ['list'],
240243
attrs: {
@@ -493,6 +496,7 @@ const tagNatives = {
493496
events: ['load', 'error', 'show', 'click', 'close']
494497
},
495498
swiper: {
499+
supportCard: true,
496500
attrs: {
497501
index: {
498502
def: 0
@@ -838,6 +842,7 @@ const tagNatives = {
838842
events: ['change', 'scroll']
839843
},
840844
lottie: {
845+
supportCard: true,
841846
empty: true,
842847
attrs: {
843848
source: {

0 commit comments

Comments
 (0)