Skip to content

Commit ecedfe1

Browse files
committed
feat(core): WIP add base components
1 parent 0bf93f7 commit ecedfe1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

packages/language-core/src/codegen/globalTypes/nativeComponentsTypes_refer.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ interface NativeComponentAttrs {
3434
swiper: MpxSwiper
3535
'swiper-item': MpxSwiperItem
3636
view: MpxView
37+
38+
//基础内容
39+
icon: MpxIcon
40+
progress: MpxProgress
41+
'rich-text': MpxRichText
42+
selection: MpxSelection
43+
text: MpxText
3744
}
3845

3946
interface MpxImg {
@@ -166,3 +173,40 @@ interface MpxView {
166173
'hover-start-time'?: number
167174
'hover-stay-time'?: number
168175
}
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+
}

0 commit comments

Comments
 (0)