0.0.9 • Published 5 years ago
cy-component v0.0.9
使用stencil框架创建
cy-fast-click 移动端模拟点击组件
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
clickFuc | -- | Function | undefined |
cy-lazy-img 图片懒加载组件
需要图片写高度才会生效
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
alt | alt | string | undefined | |
defaultImg | default-img | string | undefined | |
isLazy | is-lazy | boolean | true | |
src | src | string | undefined |
cy-rich-editor 富文本编辑器组件
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
MaxLength | max-length | number | undefined | |
placeholder | placeholder | string | undefined |
Events
Event | Description | Type |
---|---|---|
editBlur | CustomEvent<void> | |
editFocus | CustomEvent<void> | |
editInput | CustomEvent<void> |
Methods
getContent() => Promise<string>
Returns
Type: Promise<string>
insertChartIcon(src: string) => Promise<void>
Parameters
Name | Type | Description |
---|---|---|
src | string |
Returns
Type: Promise<void>
isEmpty() => Promise<boolean>
Returns
Type: Promise<boolean>