A QQ chat room based on vue.js

A QQ chat room based on vue.js

Introduction

This is a chat room component library developed based on vue.js, which provides basic encapsulation while maximizing scalability.

The following is a demonstration of the effect:

insert image description here

insert image description here

insert image description here

insert image description here

insert image description here

MChat component renderings:

insert image description here

insert image description here

IChat component effect diagram:

insert image description here

insert image description here

insert image description here

insert image description here

How to install

Install using npm

npm install vue-mchat

use

Import in main.js

# npm download method // enter css
import 'MChat/lib/MChat.css'
//Import component import MChat from 'MChat'
//Use vue to load components Vue.use(MChat)
#

How to carry out secondary development

Option 1:

Simply copy the pacages folder to the project you need, and introduce vue-mchat in main.js:

import App from './App.vue'
import MChat from '../packages/index'

Vue.use(MChat)

Option 2:

Developed on the basis of vue-mchat, it is packaged into a js library and introduced:

Execute in the vue-mchat directory:

npm run lib

You can get the lib file which contains the compiled file library of MChat. Copy the entire lib file into the project and introduce it in main.js:

import '../lib/MChat.css'
import MChat from '../lib/MChat.umd'

Vue.use(MChat)

Summarize

This article ends here. I hope it can be helpful to you. I also hope you can pay more attention to more content on 123WORDPRESS.COM!

You may also be interested in:
  • Implementation of QQ WeChat chat room function in Java
  • js code to realize multi-person chat room
  • Node.js+express+socket realizes online real-time multi-person chat room
  • js to write a simple chat room function
  • Node.js websocket uses socket.io library to implement real-time chat room
  • Node.js makes a simple chat room
  • Playing with NODE.JS (IV) - Code for building a simple chat room

<<:  Use of marker tags in CSS list model

>>:  HTML blockquote tag usage and beautification

Recommend

Solution to Nginx SSL certificate configuration error

1. Introduction When a web project is published o...

Angular environment construction and simple experience summary

Introduction to Angular Angular is an open source...

How to create a Docker repository using Nexus

The warehouse created using the official Docker R...

jQuery implements the bouncing ball game

This article shares the specific code of jQuery t...

JavaScript data visualization: ECharts map making

Table of contents Overview Precautions 1. Usage 2...

Issues with using Azure Container Registry to store images

Azure Container Registry is a managed, dedicated ...

js basic syntax and maven project configuration tutorial case

Table of contents 1. js statement Second, js arra...

What are the image file formats and how to choose

1. Which three formats? They are: gif, jpg, and pn...

CSS tips for implementing Chrome tab bar

This time let’s look at a navigation bar layout w...

Detailed explanation of important cascading concepts in CSS

Recently, I encountered a problem in the process ...

Example code for implementing simple ListViews effect in html

HTML to achieve simple ListViews effect Result: c...

mysql5.7.19 zip detailed installation process and configuration

MySQL v5.7.19 official version (32/64 bit install...

How to set the memory size of Docker tomcat

When installing Tomcat in Docker, Tomcat may over...

Detailed explanation of CSS3 flex box automatic filling writing

This article mainly introduces the detailed expla...

JS+CSS to realize dynamic clock

This article example shares the specific code of ...