Use of $Bus in Vue

Separate the Bus into one file Bus.js import Vue from 'vue'; let Bus = new Vue(); export default Bus; Create two brothers C2.vue <template> <view> <h1>c2</h1> </view> </template> <script> // Introducing Bus import Bus from '@/util/Bus'; export default { // In the life cycle after loadi ...

Posted on Wed, 19 Feb 2020 09:40:49 -0500 by yasir_memon

MintUI components and Mui

MintUI components Github storage addressOfficial document of mint UI Install the Mint UI npm install --save mint-ui Import all MintUI components: import MintUI from 'mint-ui' Import style sheet: you can omit the node ﹣ modules layer directory import 'mint-ui/lib/style.css' Use MintUI in vue: r ...

Posted on Mon, 17 Feb 2020 00:09:20 -0500 by fireMind

Interpretation of Vue cli scaffold: behind npm run build

Interpretation of Vue cli scaffold (2): behind npm run build Next: Interpretation of Vue cli scaffold (1): behind npm run dev If you haven't read my last article, please take a look at it first! After more than a year, I feel like the article I wrote before, and I always say I want to update the next ...

Posted on Sun, 16 Feb 2020 01:41:05 -0500 by Funbruk

Project practice I. basic component installation

1. Install 4.2.2 version of react router DOM cnpm install react-router-dom@^4.2.2 --save 2. Install axios yarn add axios 3. Install the 4.1.0 version of less loader cnpm install less-loader@^4.1.0 --save 4. After installation, the package.json file is as follows 5. Use yarn eject to expose ...

Posted on Fri, 14 Feb 2020 10:05:49 -0500 by ankur0101

Fast drawing with Echarts - rendering histogram and line graph in real time based on data

Echarts ECharts, an open-source visualization library implemented by JavaScript, can run smoothly on PC and mobile devices, compatible with most of the current browsers (IE8/9/10/11, Chrome, Firefox, Safari, etc.), the bottom layer relies on the lightweight vector graphics library ZRender, providing intuitive, interactive and ...

Posted on Fri, 31 Jan 2020 09:22:28 -0500 by kaupp

Using vue3 to write tampermonkey plug-in

You're not mistaken.... it's really using vue3.0 to write the oil monkey plug-in.... stimulation~ Modified from vue-next-webpack-preview Almost no change, mainly less   Development background First of all, it's good to try the oil monkey's support for large scripts (the scripts are 50-100kb), so sprout uses Vue to implement a small tool. A ...

Posted on Fri, 31 Jan 2020 02:49:47 -0500 by nbaxley

Angular--.angular-cli.json page instructions

Preface content summary end Preface                               Angular–ERROR in multi script-loader! , so I'll explain the. Angular cli JSON page in detail here content ...

Posted on Sat, 18 Jan 2020 12:50:45 -0500 by fishfin

Understand webpack packaging principles after reading

What is a webpack? Essentially, webpack is a static module bundler for modern JavaScript applications.When a webpack processes an application, it recursively builds a dependency graph that contains each module the application needs, then packages all of them into one or more bundles. A webpack is like a production line, and it takes a ser ...

Posted on Thu, 16 Jan 2020 21:03:24 -0500 by Michael Lasky

Details of programmable CSS less

Less Less is a CS preprocessing language, which adds variables, mixins, functions, structures and other features, makes CSS easier to maintain, and extends CSS functions. Less can be used by webpack, cdn mapping into js, vscade plug-in, koala, etc. the prepared less will eventually be parsed into CSS r ...

Posted on Mon, 13 Jan 2020 05:48:30 -0500 by F1Fan

28. px to rem in CSS Style

Vue3: scaffold configuration https://blog.csdn.net/weixin_41424247/article/details/80867351 Different from the original version of vue-cli 2.x, if you use the latest version of @ vue/cli to initialize a Vue project, you usually don't see the configuration file of webpack. In the original 2.x version, we can easily configure px2rem related confi ...

Posted on Sat, 04 Jan 2020 21:10:41 -0500 by yeehawjared