Simple vue filtering and vue Filtering
The examples in this article share the specific code of the vue classification filter method for your reference. The specific content is as follows:
This article has been compiled into "Vue. js front-end component learning tutorial". You are welcome to learn and read it.
For a tu
How to Use ztree in vue and ztree in vue
The following describes how to use vue ztree. Let's take a look!
Configure package. json
Package and download jquery and ztree
"dependencies": { "element-ui": "^2.1.0", "vue": "^2.5.2", "axios": "^0.16.1", "jquery":"3.3.1", "vue
Vue parent component click to trigger sub-component event instance description, vue instance description
I recently learned about the communication between Vue parent and child components. I just encountered an event dispatching and receiving between parent and child. Here I will record it. Here I am using ref
Register the reference information for the sub-compon
Vue-based calendar supports weekly switching and vue-based calendar
The Vue-based calendar function allows you to switch between the Vue and the Vue based on the actual development status every year, month, or week. The details are as follows:
Js part: Currently, one week
Vue. js select drop-down box Binding and value method, vue. js drop-down box
I recently worked on the mui + vue. js mobile project and encountered this solution, so record it as follows:
1. The code for binding the select drop-down box is simple. sendlist is the set of drop-down boxes. You can refer to the vue. js do
Summary of vue registration components and summary of vue Components
1. Global Registration (this method must be declared before vue instantiation)
Vue. component ('tag-name ',{})
2. Partial Registration
Var Child = {template: '
3. Extended instances
// Define a mixed object var myMixin = {created: function () {t
Vue-star component development instance, vue-star instance
Create a star. vue and related image information in the Star folder. Easy nearby maintenance of components
Star. vue:
Header. vue:
Mixin. styl:
bg-image($url) background-image: url($url + '@2x.png') @media (-webki
Vue. js beginner-DIY mobile terminal Input Keyboard, vue. js beginner diy keyboard
In the process of project development, we need users to input something, but we are not willing to allow users to enter anything at will. Therefore, we may choose to use a custom input method, to restrict user input, let's take a simple example to see how to set input methods on mobile Web pages. Here we still use our old fr
Vue. js forms control binding required every day, vue. js Form Control
Basic usage
You can use the v-model command to create two-way data binding on the Form Control Element. It automatically selects the correct method to update elements based on the control type. Despite the magic, v-model is just a syntactic sugar. It updates data in user input events and handles some extreme examples in particular.
Text
Vue implements two-way data binding and vue binding
Vue implements two-way data binding. The details are as follows:
How does Vue implement bidirectional data binding? The answer is front-end data hijacking. Through the Object. defineProperty () method, this method can be used to set the getter and setter functions. In
How to add mp3 audio files to vue, and how to add mp3 audio to vue
Sometimes we need to add an audio file to the vue, but when we directly place the audio file under the assets Directory, we will find that it cannot be played normally. Below are two common configuration methods:
Method 1: place the audio file in the static directory and call the file as follows:
Vue. directive () usage and instance details, vue. directive details
Official Website instance:
Https://cn.vuejs.org/v2/api/#Vue-directive
Https://cn.vuejs.org/v2/guide/custom-directive.html
The instruction definition function provides several hook functions (optional ):
Bind: it is called only once. It is called when the command is bound to an element for the fi
Use the echarts method in Vue, and use echarts for vue
The previous article introduces how to use ECharts in webpack. You can click here to view details.
1. Use NPM for installation (Global Introduction)
Run the following command:
npm install echarts--save
Introduce the echarts Module
Introduce the echarts module in main. js of the Vue project, that is, write the
Vue uses Enumeration type to implement detailed steps in HTML drop-down box, vue drop-down box
The drop-down box contains the Value in option and the option to be displayed. Generally, the Value is used in the background, rather than the option displayed on the foreground.
Step 1: Compile the enumerated types required by the drop-down box
StatusEnum. java
public enum StatusEnum { RED, YELLOW, GREEN}
Step 2:
To solve the problem that the routing page cannot be displayed normally when vue-router is built, vue-routerbuild
Use vue cli to create a webpack Project
Add vue-router and then use the route to introduce a new component. The route and link are written in this way.
const router = new VueRouter({ mode: 'history', base:
Detailed description of project-related configuration files extracted during vue-cli packaging, vue-cli configuration file
When using vue-cli for development, you often need to dynamically configure some settings, such as the request address of the interface (axios. defaults. baseURL), these settings may need to be set after the project compilation, so in
Vue. js nested loop, if judgment, dynamically deleted instance, vue. js nested
Vue. js is currently a popular JavaScript MVVM library, which is built based on data-driven and componentized ideas. Compared with Angular. js, Vue. js provides APIs that are simpler and easier to understand.
App.html
Differences between v
Solve the problem that the DOM operation on the vue page does not take effect. The dom operation on the vue page takes effect.
Symptom:
The Element UI is used to render a tree structure. The operation button is displayed when you move the mouse over each node. The effect is as follows:
The error section is as follows:
After adding a node, move it to the vicinity of the new node (in the figure, move it
Solve the problem of failure after vue. js routing, vue. js Routing
A simple routing example (From vue-router 2), But after clicking, only the address bar changes, and the content remains unchanged. some of the effects previously written with jquery are also invalid. the final reason is that the same id was started twice (the first was started when the
I. Lazy Loading
It is also called delayed loading or on-demand loading, that is, loading as needed,
Ii. Why should I use lazy loading?
For single-page applications such as Vue, if there is no application, the files packaged with webpack will be abnormally large, resulting in too much content to be loaded when you enter the home page, which takes a long time, A long white screen is displayed. Even if loading is performed, It is not conducive to the us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.