This is a learning project and a comment component. Please do not use it in the production environment because it is not perfect. I will update and modify it iteratively.
Since I am still learning, you may find errors in the code. If you find problems or have better suggestions, you are welcome to point out 😉
npm install
import WitComment from "./components/WitComment.vue";
<wit-Comment
placeholder="请输入评论内容"
comment-smile="false"
comment-hot="true"
comment-style="default"
comment-placement="bottom"
comment-loading="nprogress"
comment-class="yigeclass"
></wit-Comment>
export default {
...
...
...
components: {
witComment: WitComment,
},
created() {
NProgress.configure({ parent: ".nprogress" });
},
mounted() {
const wcSetting = window.wcSetting;
NProgress.start();
},
};