File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
packages/language-core/src/codegen/globalTypes Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ interface NativeComponentAttrs {
34
34
swiper : MpxSwiper
35
35
'swiper-item' : MpxSwiperItem
36
36
view : MpxView
37
+
38
+ //基础内容
39
+ icon : MpxIcon
40
+ progress : MpxProgress
41
+ 'rich-text' : MpxRichText
42
+ selection : MpxSelection
43
+ text : MpxText
37
44
}
38
45
39
46
interface MpxImg {
@@ -166,3 +173,40 @@ interface MpxView {
166
173
'hover-start-time' ?: number
167
174
'hover-stay-time' ?: number
168
175
}
176
+
177
+ interface MpxIcon {
178
+ type : string
179
+ size ?: number | string
180
+ color ?: string
181
+ }
182
+
183
+ interface MpxProgress {
184
+ percent ?: number
185
+ 'show-info' ?: boolean
186
+ 'border-radius' ?: number | string
187
+ 'font-size' ?: number | string
188
+ 'stroke-width' ?: number | string
189
+ color ?: string
190
+ activeColor ?: string
191
+ backgroundColor ?: string
192
+ active ?: boolean
193
+ 'active-mode' ?: string
194
+ duration ?: number
195
+ bindactiveend ?: Function
196
+ }
197
+
198
+ interface MpxRichText {
199
+ nodes ?: Array < string > | string
200
+ space ?: string
201
+ 'user-select' ?: boolean
202
+ }
203
+
204
+ interface MpxSelection {
205
+ 'disabled-context-menu' ?: boolean
206
+ bindselectionchange ?: Function
207
+ }
208
+
209
+ interface MpxText {
210
+ selectable ?: boolean
211
+ 'user-select' ?: boolean
212
+ }
You can’t perform that action at this time.
0 commit comments