会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
吴小明
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
63
下一页
2021年12月31日
封装echarts折线图
摘要:
1、下载插件 npm i echarts 2、components/ColorLine.vue <template> <div class="color-line" :id="id"></div> </template> <script> const echarts = require('echar
阅读全文
posted @ 2021-12-31 10:17 吴小明-
阅读(204)
评论(0)
推荐(0)
2021年12月30日
vue项目引入其他字体
摘要: 1、将下载好的字体引入到assets中 2、src/styles/common.less @font-face { font-family: 'digital'; src: url('~@assets/fonts/DS-Digital Bold.ttf'); } 3、main.js中引入样式文件 i
阅读全文
posted @ 2021-12-30 21:32 吴小明-
阅读(576)
评论(0)
推荐(0)
数字动画效果:countup.js和vue-countupjs的使用
摘要: 一、countup.js 1、下载 npm i countup.js@1.9.3 (最新版本的有问题) 2、DOM <div class="num-wrapper"> <span ref="countupRef" v-for="item in numList" :key="item">{{item}
阅读全文
posted @ 2021-12-30 21:25 吴小明-
阅读(1691)
评论(0)
推荐(0)
更多操作 ---> 评论组件的封装
摘要: 评论: 1、评论列表默认加载10条,下拉加载下一页。使用的是vant的list组件load事件 2、回复默认只展示3条,超出隐藏,点击【展开全部评论】加载剩下的回复,点击【收起】回到默认状态 3、点击评论者可以回复当前评论,input中显示回复的谁,并聚焦 this.$refs.inputRef.f
阅读全文
posted @ 2021-12-30 20:03 吴小明-
阅读(617)
评论(0)
推荐(0)
2021年12月29日
git基于历史commit ID检出代码并创建新的分支
摘要: 命令:git checkout -b new_branch_name history_commit_id 例如:git checkout -b release_rollback20211229 c7215d...f8ef74
阅读全文
posted @ 2021-12-29 14:08 吴小明-
阅读(172)
评论(0)
推荐(0)
2021年12月20日
vue基于vant封装上拉加载/下拉刷新组件ListScroller
摘要: components/ListScroller.vue <template> <van-pull-refresh ref="vanPullRefreshRef" v-model="refreshing" @refresh="onRefresh" :style="{height: listHeight
阅读全文
posted @ 2021-12-20 14:42 吴小明-
阅读(1154)
评论(0)
推荐(0)
2021年12月14日
XLSX库导入(将excel转为json)和导出
摘要: import * as XLSX from 'xlsx'; export function getXlsxData(file: any) { return new Promise((resolve, reject) => { const fileReader = new FileReader();
阅读全文
posted @ 2021-12-14 16:18 吴小明-
阅读(921)
评论(0)
推荐(0)
2021年12月7日
兼容elementUI低版本:文本域字数限制
摘要: 公司维护的项目使用的是elementUI最早的1.x版本的,文本域不支持show-word-limit属性 解决: <el-form-item label="申请理由"> <el-input v-model="formData.applycontent" type="textarea" :autos
阅读全文
posted @ 2021-12-07 16:10 吴小明-
阅读(451)
评论(0)
推荐(0)
elementUI日期组件限制日期范围
摘要: 限制区间30天: pickerMinDate: '', pickerOptions: { onPick: ({ maxDate, minDate }) => { this.pickerMinDate = minDate.getTime() if (maxDate) this.pickerMinDat
阅读全文
posted @ 2021-12-07 10:57 吴小明-
阅读(755)
评论(0)
推荐(0)
2021年12月6日
v-model和sync封装【更多操作】弹层
摘要: 需求:点击【更多操作】,显示【编辑】【删除】,点击灰色区域关闭弹层 DOM结构: <div class="more-operations"> <transition name="popup"> <div class="popup" v-show="isShow" @click="handleClos
阅读全文
posted @ 2021-12-06 10:23 吴小明-
阅读(195)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
63
下一页
公告