【文件属性】:
文件名称:vue-words-highlight:突出显示的单词
文件大小:221KB
文件格式:ZIP
更新时间:2021-05-06 12:38:24
JavaScript
Vue Words Highlight
用于高亮关键词的vue组件,可以用于类似于搜索的功能。
Installation
npm install --save vue-words-highlight
# or
yarn add vue-words-highlight
Usage
Use Directive
import { highlight } from 'vue-words-highlight';
Vue.use(highlight, {
name: 'highlight',
className: 'red',
style: 'color: #0f0',
caseSensitive: false
});
// new Vue...
Use Component
【文件预览】:
vue-words-highlight-master
----.gitignore(22B)
----README.md(2KB)
----webpack.dev.conf.js(733B)
----webpack.prod.conf.js(708B)
----package.json(2KB)
----src()
--------Component.vue(586B)
--------main.js(116B)
--------util.js(2KB)
--------directive.js(3KB)
----.babelrc(79B)
----postcss.config.js(59B)
----example()
--------main.js(409B)
--------App.vue(2KB)
--------Hello.vue(257B)
--------index.html(238B)
----webpack.common.conf.js(1KB)
----yarn.lock(305KB)
----package-lock.json(384KB)