VUE
文章平均质量分 64
Vue日志
图灵晚辈
每天进步一点点
展开
-
vue 自定义table格式组件
<template> <div class="detail-form"> <ul> <li v-for="(item, index) in tableData" :key="index" > <span>{{item.name}}</span> <ul v-if="item.children"> <l原创 2021-07-13 16:52:03 · 367 阅读 · 0 评论 -
Vue使用wx-open-launch-weapp跳转小程序
官方文档代码如下<div class="launchbox"> <!-- gh_c7bf41c3c50e mainpages/home/index --> <wx-open-launch-weapp id="launch-btn" username="跳转小程序id" path="跳转地址" //pages/park/home @launch="onLaunch" @er原创 2021-03-10 17:45:41 · 510 阅读 · 0 评论 -
Vue 组件
文章目录组件组件是什么?组件的使用1. 组件的注册2. 组件的调用组件的一些注意事项组件之间的通信方式组件间的关系是如何确定的呢?组件的 data 必须写成函数形式组件的属性props选项props数据校验组件官网组件是什么?在 Vue 里,一个组件本质上是一个拥有预定义选项的一个 Vue 实例。组件的使用定义(注册)组件调用(使用)组件将组件就看成是一个函数1. 组件的...原创 2020-04-11 22:05:34 · 654 阅读 · 0 评论 -
Vue的单文件组件
文章目录单文件组件vue 中后缀名是 .vue 的文件,我们称它为 单文件组件单文件组件的优点一个单文件组件的组成使用sass安装 node-sass 的时候非常慢,如何解决PS: 一些特点单文件组件vue 中后缀名是 .vue 的文件,我们称它为 单文件组件单文件组件的优点在 vscode 中安装 vetur 插件。能够让单文件组件有很好的语法高亮和代码提示可以将样式写在组件内。并且...原创 2020-05-06 20:00:00 · 764 阅读 · 0 评论 -
自定义一个回到顶部Vue指令
CSS样式:<style> * { margin: 0; padding: 0; } html, body, #app { height: 100%; } #app { display: flex; flex-direction: column; overflow: hidden; } section { flex: 1;原创 2020-05-25 14:29:24 · 492 阅读 · 0 评论