摘要: 在nuxt.config.js中作如下配置 modules: [ // Doc: https://github.com/nuxt-community/axios-module#usage '@nuxtjs/axios' ], /* ** Axios module configuration */ a 阅读全文
posted @ 2020-07-08 23:07 小山药 阅读(4887) 评论(0) 推荐(0) 编辑
摘要: Vue.component('my-component', { props: { // 基础的类型检查 (`null` 匹配任何类型) propA: Number, // 多个可能的类型 propB: [String, Number], // 必填的字符串 propC: { type: String 阅读全文
posted @ 2020-07-08 23:03 小山药 阅读(4974) 评论(0) 推荐(0) 编辑
摘要: NUXT全局组件,VUE全局组件 阅读全文
posted @ 2020-07-08 23:00 小山药 阅读(3724) 评论(0) 推荐(0) 编辑
摘要: 模态框的是否显示通过VUE来控制,而不是利用bootstrap的js,只保留bootstrap的css效果 HTML <transition name="fade"><!-- transition不需要的话可以删掉 --> <div v-if="sample_modal"> <div class=" 阅读全文
posted @ 2020-07-08 22:52 小山药 阅读(5739) 评论(0) 推荐(0) 编辑