摘要: 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 张健华 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: 原理:https://blog.csdn.net/weixin_46995731/article/details/109765940 1、父组件调用 // .async: 对prop进行“双向绑定<Dialog :visible.sync="dialogVisibleDemo" /> 2、子组件 < 阅读全文
posted @ 2022-01-20 11:35 张健华 阅读(355) 评论(0) 推荐(0) 编辑
摘要: <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 张健华 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 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 张健华 阅读(803) 评论(0) 推荐(0) 编辑
摘要: vue.config.js configureWebpack: { output: { filename: `js/[name].[hash].js`, chunkFilename: `js/[name].[hash].js`, }, }, 阅读全文
posted @ 2021-09-23 11:54 张健华 阅读(93) 评论(0) 推荐(0) 编辑
摘要: <!-- 子组件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 张健华 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 一:给定数组没有key // data:排序数组的依据,sortData:需要排序的数组,fieldValue:排序的数组对应依据数组的key function sortArr(data, sortData, fieldValue) { let arr = sortData.sort((a, b) 阅读全文
posted @ 2021-08-17 16:46 张健华 阅读(57) 评论(0) 推荐(0) 编辑
摘要: // 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 张健华 阅读(57) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="default"> <input type="text" v-model="keyword" @input="change"> </div> </template> <script> /** @description:文件描述 **/ export de 阅读全文
posted @ 2021-08-05 15:03 张健华 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 一、在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 张健华 阅读(790) 评论(0) 推荐(0) 编辑