会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
张健华
博客园
首页
新随笔
联系
订阅
管理
2022年2月21日
antd 全局按需引入
摘要: 1、新建plugins/antd.js 文件 import { Avatar, Breadcrumb, Button, Checkbox, Form, Input, Layout, Menu, Pagination, Dropdown } from 'ant-design-vue'; const c
阅读全文
posted @ 2022-02-21 10:08 张健华
阅读(1509)
评论(0)
推荐(0)
2022年1月20日
element dialog 封装到子组件中( .sync修饰符与$emit(update:xxx))
摘要: 原理:https://blog.csdn.net/weixin_46995731/article/details/109765940 1、父组件调用 // .async: 对prop进行“双向绑定<Dialog :visible.sync="dialogVisibleDemo" /> 2、子组件 <
阅读全文
posted @ 2022-01-20 11:35 张健华
阅读(420)
评论(0)
推荐(0)
2021年11月16日
查看更多折叠动画(中间内容高度不确定)
摘要: <template> <div class="catalogue"> <div class="box" ref="box" :style="boxHeight"> <div class="cont" ref="cont"> <li>1</li> <li>1</li> <li>1</li> <li>1
阅读全文
posted @ 2021-11-16 11:29 张健华
阅读(37)
评论(0)
推荐(0)
2021年11月5日
animate.css 实现 网页滚动指定位置添加动画
摘要: 1、安装 npm install animate.css --save 2、main.js 引用 import animate from 'animate.css' Vue.use(animate) 3、使用 (新版本需要“animate_ ” 做连接) <img src="~@/assets/im
阅读全文
posted @ 2021-11-05 14:12 张健华
阅读(972)
评论(0)
推荐(0)
2021年9月23日
解决打包上线缓存问题
摘要: vue.config.js configureWebpack: { output: { filename: `js/[name].[hash].js`, chunkFilename: `js/[name].[hash].js`, }, },
阅读全文
posted @ 2021-09-23 11:54 张健华
阅读(102)
评论(0)
推荐(0)
2021年9月7日
组件之间双向绑定
摘要: <!-- 子组件SelectArea --> <template> <div class="select-area"> <van-checkbox-group v-model="result"> <van-checkbox name="a">复选框 a</van-checkbox> <van-che
阅读全文
posted @ 2021-09-07 11:48 张健华
阅读(224)
评论(0)
推荐(0)
2021年8月17日
按照给定数组排序原数组
摘要: 一:给定数组没有key // data:排序数组的依据,sortData:需要排序的数组,fieldValue:排序的数组对应依据数组的key function sortArr(data, sortData, fieldValue) { let arr = sortData.sort((a, b)
阅读全文
posted @ 2021-08-17 16:46 张健华
阅读(61)
评论(0)
推荐(0)
2021年8月13日
扩展运算符... 的使用
摘要: // 1、合并数组 let arr1 = [1,2,3]; let arr2 = [4,5] let arr3 = [...arr1,...arr2]; console.log(arr3); //[1, 2, 3, 4, 5] console.log([...arr1,...arr2]);//[1,
阅读全文
posted @ 2021-08-13 16:07 张健华
阅读(80)
评论(0)
推荐(0)
2021年8月5日
vue 防抖优化
摘要: <template> <div class="default"> <input type="text" v-model="keyword" @input="change"> </div> </template> <script> /** @description:文件描述 **/ export de
阅读全文
posted @ 2021-08-05 15:03 张健华
阅读(36)
评论(0)
推荐(0)
2021年7月20日
less配置全局公用变量文件,如何以变量的形式在html中 引入
摘要: 一、在vue.config.js文件中 const path = require('path') const vars = path.resolve(__dirname, './src/assets/css/common.less') module.exports = { css: { loader
阅读全文
posted @ 2021-07-20 15:49 张健华
阅读(875)
评论(0)
推荐(0)
下一页
公告