@skit/wepy-com-richtext

1.0.0 • Public • Published

wepy-com-richtext

为官方提供的 <rich-text></rich-text> 组件提供渐进式支持,并支持官方本身不支持的下划线 HTML 标签(即 <u></u>)和符合 ISO 8859 的实体符号。

此组件依赖 wepy 1.7.0+。


用法

安装:

npm install @skit/wepy-com-richtext --save

引入组件:

<template>
    <ui-richtext :content.sync="html" :decode.sync="true" />
</template>
<script>
    import wepy from 'wepy';
    import UIRichText from '@skit/wepy-com-richtext';

    export default class DemoPage extends wepy.page {
        components = {
            'ui-richtext': UIRichText
        };
    }
</script>

可配置项

属性

参数项 说明 类型 是否必填 默认值
content HTML 源代码片段 String
decode 是否按照富文本方式显示 Boolean false

方法

Readme

Keywords

none

Package Sidebar

Install

npm i @skit/wepy-com-richtext

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

15.9 kB

Total Files

4

Last publish

Collaborators

  • fudiwei