In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you vue combined with vant how to achieve linkage effect, the content is easy to understand, clear, hope to help you solve doubts, the following let the editor to take you to study and learn "vue combined with vant how to achieve linkage effect" this article.
The details are as follows
1. Components used: Picker, Popup
2. Introduction: the correct introduction in main.js or the overall situation in the page; here, it is introduced on demand in main.js
Main.js
Import {Picker,Popup} from 'vant';Vue.use (Picker) .use (Popup)
Test.vue
Const citys = {'Zhejiang': [Hangzhou, Ningbo, Wenzhou, Jiaxing, Huzhou], Fujian: [Fuzhou, Xiamen, Putian, Sanming, Quanzhou]} Export default {name: 'login', data () {return {value:'', showPicker:false, columns: [{values: Object.keys (citys), className:' column1'} {values: citys ['Zhejiang'], className: 'column2', defaultIndex: 2}]} }, / / method collection methods: {onConfirm (value) {this.value = value [0] +'-'+ value [1]; this.showPicker = false;}, onChange (picker, values) {picker.setColumnValues (1, citys [values [0]]) }},}
Before using antd, after starting to use vant, I found a bad place. Antd introduces a component that will write all the components it involves, while vant only introduces the components to be introduced in this directory, which is not very convenient.
The above is about "how to achieve linkage effect between vue and vant". If this article is helpful to you and think it is well written, please share it with your friends to learn new knowledge. if you want to know more about it, please pay more attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.