|
4 سال پیش | |
---|---|---|
public | 4 سال پیش | |
src | 4 سال پیش | |
.gitignore | 4 سال پیش | |
.npmignore | 4 سال پیش | |
README.md | 4 سال پیش | |
babel.config.js | 4 سال پیش | |
cspell.json | 4 سال پیش | |
package-lock.json | 4 سال پیش | |
package.json | 4 سال پیش | |
yarn.lock | 4 سال پیش |
npm install @wujing/danmaku --save
| 参数 | Type类型 | 必选 required | 描述 | 默认值| | :-: | :-: | :-: | :-: | :-: | :-: | | quotes | Array | 是 | 预选选择列表 | [] | | showIcon | String/Object | 是 | 显示ICON | None | | closeIcon | String/Object | 是 | 隐藏ICON | None | | limit | Number | 否 | 预选限制条数 | 5000 |
// 引入组件
import Danmaku from "@wujing/danmaku";
import "@wujing/danmaku/dist/danmaku.css";
// 预选选择列表
const quotesData =["中国人民好样!","中国最强大!!"];
<template>
<Danmaku
:quotes="quotesData"
:showIcon="require('./assets/list-enable-btn.png')"
:closeIcon="require('./assets/list-disable-btn.png')"
/>
</template>
export default {
components: {
Danmaku,
},
};