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

Alibaba Cloud ESC Server Docker Deployment of Single Node Mysql

1. Download the accelerated version of msyql dock...

Analysis of Linux Zabbix custom monitoring and alarm implementation process

Target Display one of the data in the iostat comm...

MySQL 8.0.15 installation graphic tutorial and database basics

MySQL software installation and database basics a...

HTML scroll bar textarea attribute setting

1. Overflow content overflow settings (set whether...

MySQL common statements for viewing transactions and locks

Some common statements for viewing transactions a...

Implementation of formatting partitions and mounting in Centos7

Linux often encounters situations such as adding ...

Use viewport in meta tag to define screen css

<meta name="viewport" content="w...

Two methods to implement MySQL group counting and range aggregation

The first one: normal operation SELECT SUM(ddd) A...

Vue implements a small weather forecast application

This is a website I imitated when I was self-stud...

Manually implement js SMS verification code input box

Preface This article records a common SMS verific...