上一页 1 2 3 4 5 6 7 ··· 17 下一页
摘要: 1、封装时间组件(基于 element) commonDate.vue <template> <!-- 年月日 --> <el-date-picker v-model="val" :type="type" :value-format="valueType" :format="valueType" : 阅读全文
posted @ 2021-12-07 14:57 不完美的完美 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1、设置标题 import * as dd from "dingtalk-jsapi"; created() { this.setNavTitle("登录页"); } /** 设置钉钉导航栏标题 */ setNavTitle(str = "") { dd.ready(() => { dd.biz.n 阅读全文
posted @ 2021-04-06 16:11 不完美的完美 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 实现的图 代码 小时的时间轴显示 {{hour + 7}} import { Component, Vue } from "vue property decorator"; @Component export default class TimeLine extends Vue { endTime 阅读全文
posted @ 2019-11-21 11:27 不完美的完美 阅读(447) 评论(0) 推荐(0) 编辑
摘要: `promise.ts` export function showAlert() { console.log("开始调用showAlert"); return new Promise((reslove, reject) = { try { console.log("开始执行showAlert"); 阅读全文
posted @ 2019-10-25 14:36 不完美的完美 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 一、数组的那些事 1、js去除空对象 方法 isEmpty(obj) { let empty = true; for (const key in obj) { if (obj[key]) { empty = false; break; } } return empty; } filter(array 阅读全文
posted @ 2019-10-17 11:50 不完美的完美 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 一、Dialog 对话框 1、取消点击Dialog 对话框黑色背景关闭弹窗 close on click modal 是否可以通过点击 modal 关闭 Dialog 2、Dialog组件弹框 知识点 改变Dialog样式 custom class 这里是首页信息 <! 子组件 import { W 阅读全文
posted @ 2019-10-09 13:21 不完美的完美 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 第一个微信小程序项目有点兴奋哦 一、跳转页面传参问题 1、a页面跳转到b页面 姓名:{{item.name}} 性别:{{item.sex}} 地址:{{item.address}} data address="{{item.id}}" 重要 e.currentTarget.dataset.addr 阅读全文
posted @ 2019-06-24 13:54 不完美的完美 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 一、cli3.0引入Mint UI 1、安装 "官网地址:" npm i mint ui S 2、使用当中遇到的问题 公司要做一个手机端页面当时想到vux,项目中用到cli3.0,当我引入vux的时候报了错 if it exists or add a new declaration (.d.ts) 阅读全文
posted @ 2019-06-24 13:53 不完美的完美 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 一、vue3.0写法 这次项目使用vue3.0来写,写的过程中突然发现差别挺大的,感觉不会写vue了,所以总结总结。。。 This is an "官网地址:" 1、安装vue cli 3.0 npm i @vue/cli g 2、运行 npm run serve 3、TypeScript的支持 遇到 阅读全文
posted @ 2019-05-16 11:36 不完美的完美 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 实现单选时的价格,全选时价格 单选效果图 全选效果图 <! 淘宝结算购物车 {{item.content}} ${{item.money}} {{item.num}} + 全选 合计{{total}} 结算({{num}}) export default { data(){ return { che 阅读全文
posted @ 2019-03-27 13:45 不完美的完美 阅读(884) 评论(2) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 17 下一页