2022年4月1日

日期组件在企业微信客户端无法使用

摘要: 只需要在main.js里面加上下面代码即可 if (!String.prototype.padStart) { String.prototype.padStart = function padStart(targetLength, padString) { targetLength = target 阅读全文

posted @ 2022-04-01 14:35 ㅤㅤㅤㅤㅤㅤ 阅读(77) 评论(0) 推荐(0) 编辑

2021年5月12日

时间戳转换成时间

摘要: /** * 时间戳转换成时间 * @param {时间戳} stamp */ export const timestampToTime = (stamp) => { var date = new Date(stamp) //时间戳为10位需*1000,时间戳为13位的话不需乘1000 var Y = 阅读全文

posted @ 2021-05-12 14:23 ㅤㅤㅤㅤㅤㅤ 阅读(115) 评论(0) 推荐(0) 编辑

2021年3月15日

在Vue中引入fullcalendar

摘要: // 引入步骤 // 1、安装插件 // yarn引入方式 // yarn add @fullcalendar/vue @fullcalendar/core @fullcalendar/daygrid @fullcalendar/interaction @fullcalendar/list @ful 阅读全文

posted @ 2021-03-15 10:05 ㅤㅤㅤㅤㅤㅤ 阅读(1384) 评论(0) 推荐(0) 编辑

2021年3月11日

insertAdjacentHTML方法详解

摘要: 添加HTML内容与文本内容以前用的是innerHTML与innerText方法, 最近发现还有insertAdjacentHTML和 insertAdjacentText方法, 这两个方法更灵活,可以在指定的地方插入html内容和文本内容。 insertAdjacentText方法与 insertA 阅读全文

posted @ 2021-03-11 15:34 ㅤㅤㅤㅤㅤㅤ 阅读(190) 评论(0) 推荐(0) 编辑

字典码值转换(二)

摘要: curFormat(info) { let a = ""; switch (info.cur) { case "01": a = "人民币"; break; case "02": a = "美元"; break; case "03": a = "日元"; break; } } 阅读全文

posted @ 2021-03-11 13:52 ㅤㅤㅤㅤㅤㅤ 阅读(179) 评论(0) 推荐(0) 编辑

农历计算方法

摘要: /* eslint-disable */ // var calendar={} export default { /** * 农历1900-2100的润大小信息表 * @Array Of Property * @return Hex */ lunarInfo: [ 0x04bd8, 0x04ae0, 阅读全文

posted @ 2021-03-11 11:05 ㅤㅤㅤㅤㅤㅤ 阅读(770) 评论(0) 推荐(0) 编辑

2021年3月6日

基于Vue的前端架构

摘要: 1.分解需求 技术栈 ·考虑到后续招人和现有人员的技术栈,选择 Vue 作为框架。 ·公司主要业务是 GIS 和 BIM,通常开发一些中大型的系统,所以 vue-router 和 vuex 都是必不可少的。 ·放弃了 Element UI 选择了 Ant Design Vue(最近 Element 阅读全文

posted @ 2021-03-06 15:21 ㅤㅤㅤㅤㅤㅤ 阅读(289) 评论(0) 推荐(0) 编辑

美化滚动条

摘要: <style> ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { width: 6px; background: rgba(#101f1c, 0.1); -webkit-border-radius 阅读全文

posted @ 2021-03-06 14:20 ㅤㅤㅤㅤㅤㅤ 阅读(33) 评论(0) 推荐(0) 编辑

2021年2月2日

Ant-tree添加搜索框功能

摘要: <template> <a-col> <a-input-search v-model="searchTree" placeholder="请搜索" @search="searchClick" @change="searchClick" /> <a-tree :treeData="scheduleTr 阅读全文

posted @ 2021-02-02 15:45 ㅤㅤㅤㅤㅤㅤ 阅读(426) 评论(0) 推荐(0) 编辑

Ant-tree 自定义父子节点图标(二)

摘要: // 注意事项: 采用 A-tree icon方法(自定义图标。可接收组件,props 为当前节点props) <template> <div> <a-tree showIcon :treeData="treeData" :icon="getIcon" /> </div> </template> < 阅读全文

posted @ 2021-02-02 14:17 ㅤㅤㅤㅤㅤㅤ 阅读(331) 评论(0) 推荐(0) 编辑

导航