0.1.13 • Published 3 years ago

vue-mark-html-text v0.1.13

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

markhtmltext

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

examples

------------ main.js ----------------------------------------

import vuemarkhtmltext from 'vue-mark-html-text'

Vue.use(vuemarkhtmltext)


------------ components ----------------------------------------

<template>
    <div class="markBox">
        html或text关键字标红通用插件.......
        <span v-markHtmlText:[{htmlText,wrapChar,keyWord,color}]></span>
    </div>
</template>

<script>
    export default {
        name: 'MarkHtmlText',
        props: {
        },
        data() {
            return {
                wrapChar: "@@", // 文本中包裹关键字的标识字符
                htmlText: "html或text关键字标红通用插件<div>@@a@@bc<span>efagc</span>@@d@@cd</div>", // html文本或纯文本内容(必传)
                keyWord: [], // [] 数组,指定的关键字
                color: "blue",  // 标记的颜色 #ff4d4f / blue
            }
        },
        methods: {
        }
    }
</script>

Customize configuration

See Configuration Reference.

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago