摘要: 1 // 子组件 childComponent 2 <template> 3 <div>{{ icon }}</div> 4 <div @click="chooseIcon(item)"></div> 5 </template> 6 <script> 7 import {defineComponen 阅读全文
posted @ 2021-09-25 11:45 tcanhe 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 转载: https://www.cnblogs.com/summit7ca/p/6944215.html E 代表HTML标签。 E#id 代表id属性。 E.class 代表class属性。 E[attr=foo] 代表某一个特定属性。 E{foo} 代表标签包含的内容是foo。 E>N 代表N是 阅读全文
posted @ 2021-07-06 16:53 tcanhe 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 问题代码,查看根目录main.js中引入axios的代码,是否如下所示: Vue.use(axios) 正确写法: Vue.prototype.axios = axios转载:https://www.cnblogs.com/tudou1179006580/p/11224552.html 阅读全文
posted @ 2020-12-03 09:48 tcanhe 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 最近项目遇到了 百度富文本内容显示在微信小程序上的情景 用到了 wxPrase组件 在此记录一下使用方法及遇到的问题和解决办法 使用方法: 1.下载文件 https://github.com/icindy/wxParse 下载wxParse文件到小程序目录中 2.引入文件 /*js*/1 //在使用 阅读全文
posted @ 2020-12-02 09:31 tcanhe 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: https://blog.mazey.net/1716.html header{ height:10px; display:sticky; } content{ min-height: calc(100vh - 10px ); display:flex; flex-direction:column; 阅读全文
posted @ 2020-11-17 14:20 tcanhe 阅读(164) 评论(0) 推荐(0) 编辑
摘要: windows git安装后,配置全局账户: git config --global user.name "name" git config --global user.email "email@example.com" 查看当前目录: pwd 创建仓库: git init 查看隐藏目录.git文件 阅读全文
posted @ 2020-11-15 17:34 tcanhe 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 花了三个小时解决类名控制的问题 (越来越菜) 描述问题: 目前发现的问题是用一个类名控制显示 是不合理的 (下图红框中为原来的一个类名控制) 修改页面设置默认值时,无法控制样式动态变化,button 默认display:inline-block; 所以有了如下改动: 阅读全文
posted @ 2020-11-12 15:30 tcanhe 阅读(192) 评论(0) 推荐(0) 编辑
摘要: ant design vue组件中没有关于滚动条的设置 这篇文章介绍了怎么设置滚动条https://www.cnblogs.com/home-/p/12195761.html 插件官网:https://vuescrolljs.yvescoding.org/zh/demo/ 内容如下 安装模块: np 阅读全文
posted @ 2020-11-10 15:11 tcanhe 阅读(14206) 评论(0) 推荐(1) 编辑
摘要: <template> <a-config-provider :locale="locale"> </a-config-provider> </template> <script> import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN' 阅读全文
posted @ 2020-11-10 09:49 tcanhe 阅读(2808) 评论(0) 推荐(0) 编辑
摘要: 预设vue: 1 { 2 // Place your snippets for vue here. Each snippet is defined under a snippet name and has a prefix, body and 3 // description. The prefix 阅读全文
posted @ 2020-11-02 17:14 tcanhe 阅读(536) 评论(0) 推荐(0) 编辑