上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页

2020年12月29日

批量导入子组件

摘要: index.js // 实现自动化导入子组件 const modules = require.context('./', false, /\w+.vue$/) const res = {} modules.keys().forEach(filePath => { const key = filePa 阅读全文

posted @ 2020-12-29 10:03 章画 阅读(101) 评论(0) 推荐(0) 编辑

2020年12月22日

vuex

摘要: modules 分模块管理 import Vue from 'vue' import Vuex from 'vuex' import modules from './autoImport' console.log('modules', modules) Vue.use(Vuex) export de 阅读全文

posted @ 2020-12-22 12:26 章画 阅读(86) 评论(0) 推荐(0) 编辑

2020年12月21日

vuecli3

摘要: publicPath Type: string Default: '/' 相对路径,是相对于index.html的相对路径。终于弄清楚了 outputDir Type: string Default: 'dist' assetsDir Type: string Default: '' 放置生成的静态 阅读全文

posted @ 2020-12-21 14:31 章画 阅读(61) 评论(0) 推荐(0) 编辑

2020年12月18日

00 vue源码里面常见方法

摘要: toRawType 获取数据的原始类型 function toRawType(value) { return Object.prototype.toString.call(value).slice(8, -1) } toRawType(1) //Number toRawType(true) //Bo 阅读全文

posted @ 2020-12-18 14:41 章画 阅读(152) 评论(0) 推荐(0) 编辑

2020年12月16日

vue 组件

摘要: https://segmentfault.com/q/1010000012918351vue官网原话:所有的 Vue 组件同时也都是 Vue 的实例,所以可接受相同的选项对象 (除了一些根级特有的选项) 并提供相同的生命周期钩子。 一个单页应用就是一个vue的实例 每个自定义组件就是一个vueCom 阅读全文

posted @ 2020-12-16 11:24 章画 阅读(101) 评论(0) 推荐(0) 编辑

2020年12月15日

vue 样式

摘要: 习惯数组绑定class vue对象绑定内联样式 阅读全文

posted @ 2020-12-15 17:58 章画 阅读(125) 评论(0) 推荐(0) 编辑

vue 表单

摘要: 表单实现全选和非全选功能 watch实现 computed实现 checkedList 和checked这两个值相互联系 checkedList 和checked一个放在data里面一个放在computed里面 最好把基本数据类型设置comuted里面(个人感觉)这里就把checked布尔值放在co 阅读全文

posted @ 2020-12-15 17:10 章画 阅读(119) 评论(0) 推荐(0) 编辑

2020年12月9日

vue 导出word

摘要: https://www.cnblogs.com/wuqilang/p/14085382.html https://blog.csdn.net/weixin_43880497/article/details/106275823 yarn add docxtemplater@3.19.7 docxtem 阅读全文

posted @ 2020-12-09 10:26 章画 阅读(1557) 评论(0) 推荐(0) 编辑

2020年12月8日

computed and watch

摘要: computed 设计初衷: {{}}里面对于任何复杂逻辑,你都应当使用计算属性 computed里面定义的变量不要和data里面重复 computed有缓存 计算属性是基于它们的响应式依赖进行缓存的。只在相关响应式依赖发生改变时它们才会重新求值。大白话:computed会使用缓存取值 comput 阅读全文

posted @ 2020-12-08 14:46 章画 阅读(49) 评论(0) 推荐(0) 编辑

01数据驱动

摘要: 阅读全文

posted @ 2020-12-08 10:49 章画 阅读(35) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页

导航