Found a total of 10000 related content
How to use vue3 dynamic components
Article Introduction:Question: Why does vue3 need to use markRow for introduced components? vue2importAfrom'./A';exportdefault{name:'Home',data(){return{}},components:{A},}vue3{{item.name}}importAfrom'../components/A.vue' importBfrom'../components/B.vue&#
2023-05-12
comment 0
935
How to use svg in vue3+vue-cli4
Article Introduction:1. Install svg-sprite-loadernpminstallsvg-sprite-loader--save-dev 2. Create a new component under src/components/svgIcon index.vueimport{computed}from"@vue/reactivity";exportdefault{name:"baseSvgIcon", props:{iconClass:{type:String},className:{type:String},},setup
2023-05-11
comment 0
1227
What are the points to note in Vue3 setup and what are the watch monitoring attributes?
Article Introduction:1. Setup instructions 1.1 Setup execution time 1. Setup execution time is earlier than beforeCreate execution exportdefault{name: "Demo", beforeCreate(){console.log('beforeCreate has been executed');}, setup(){ console.log('setup has been executed');letperson=reactive({name:"Xiao Ming",age:20,});r
2023-05-14
comment 0
1101
How to use computed, watch, watchEffect in Vue3
Article Introduction:1. computed Last name: First name: Full name: {{person.fullname}} Full name: import{reactive,computed}from'vue'exportdefault{name:'HelloWorld',setup(){letperson=reactive({firstName:" Zhang",lastName:"三"})//computed abbreviation, did not consider modifying /*person.fullname
2023-05-12
comment 0
1484