2020年7月16日

vue mixin混入

摘要: 基本结构 export default { data() { return {} }, computed: { }, methods: { }, filters: { }, created() { }, mounted() { }, } 阅读全文

posted @ 2020-07-16 22:20 章画 阅读(137) 评论(0) 推荐(0)

express

摘要: 1.开放静态资源 url访问 2express-art-template https://aui.github.io/art-template/express/ 1. response.render()方法只有配置了模板引擎,才会生效 const express = require('express 阅读全文

posted @ 2020-07-16 15:20 章画 阅读(191) 评论(0) 推荐(0)

:before :after

摘要: .li { padding-left: 10px; // border: 1px solid #000; font-size: 14px; margin-bottom: 0.2rem; overflow: hidden; white-space: nowrap; text-overflow: ell 阅读全文

posted @ 2020-07-16 11:29 章画 阅读(111) 评论(0) 推荐(0)

vue <compent> 结合is实现动态切换子组件

摘要: 这里就很自然的产生一个新问题:如何给相应的子组件传props? 解答:直接通过$attrs $listeners实现祖孙通信。 <!-- 传值通过$attrs $listeners 实现祖孙传值通信 --> <component :is="currentForm" @closeDialog="clo 阅读全文

posted @ 2020-07-16 10:13 章画 阅读(428) 评论(0) 推荐(0)

导航