Skip to content

Commit f9f1651

Browse files
author
zhuqingan.3
committed
fix: 补全小程序ScrollView属性模板
1 parent 3317bb2 commit f9f1651

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

packages/taro-platform-jd/src/components.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,31 @@ export const components = {
8080
space: _empty,
8181
'user-select': _false
8282
},
83+
// 仅声明京东小程序文档中出现的 ScrollView 属性
84+
// 默认值和类型参考京东小程序官方文档
85+
ScrollView: {
86+
'scroll-x': _false,
87+
'scroll-y': _false,
88+
'upper-threshold': '50',
89+
'lower-threshold': '50',
90+
'scroll-top': _empty,
91+
'scroll-left': _empty,
92+
'scroll-into-view': _empty,
93+
'scroll-with-animation': _false,
94+
'enable-back-to-top': _false,
95+
bindscrolltoupper: _empty,
96+
bindscrolltolower: _empty,
97+
bindscroll: _empty,
98+
'enable-flex': _false,
99+
'enable-passive': _false,
100+
'refresher-enabled': _false,
101+
'refresher-threshold': '45',
102+
'refresher-default-style': singleQuote('black'),
103+
'refresher-background': singleQuote('#FFF'),
104+
'refresher-triggered': _false,
105+
bindrefresherpulling: _empty,
106+
bindrefresherrefresh: _empty,
107+
bindrefresherrestore: _empty,
108+
bindrefresherabort: _empty
109+
},
83110
}

0 commit comments

Comments
 (0)