摘要: 展示效果 组件内容(在原有element的button组件进行二次封装) <template> <el-button v-if="type" :disabled="disabled" class="s-button" type="text" @click="_click"> <el-tooltip 阅读全文
posted @ 2021-01-25 14:37 爱放屁的菜鸟 阅读(361) 评论(0) 推荐(0)
摘要: myEchartsBar(data, id) { let legendArr = data.series.map((item) => item.name) let option = { color: ['#FF6D6D', '#2282FF','#17C388'], tooltip: { trigg 阅读全文
posted @ 2021-01-22 16:32 爱放屁的菜鸟 阅读(226) 评论(0) 推荐(0)
摘要: 我使用的是 vue3 + typescript + eslint解决方法在.eslintrc.js文件的rules 增加一行 "@typescript-eslint/no-inferrable-types": "off" // 关闭类型推断 rules: { "no-console": proces 阅读全文
posted @ 2021-01-18 18:02 爱放屁的菜鸟 阅读(2485) 评论(0) 推荐(1)
摘要: <el-table v-loading="loading.list" ref="table" :data="tableData" style="width: 100%" max-height="400" border lazy row-key="key" :tree-props="{children 阅读全文
posted @ 2020-11-30 17:29 爱放屁的菜鸟 阅读(4026) 评论(0) 推荐(0)
摘要: 效果如图 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Docu 阅读全文
posted @ 2020-10-15 13:52 爱放屁的菜鸟 阅读(403) 评论(0) 推荐(0)
摘要: 效果如下 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Docu 阅读全文
posted @ 2020-10-15 01:20 爱放屁的菜鸟 阅读(4107) 评论(0) 推荐(0)
摘要: 1 基础类型参数 const a = 1; let b = 1; function add(num){ return num + 1 } add(a) add(b) console.log(a) // a = 1 console.log(b) // a = 1 a 、b 都没有影响 2 引用类型参数 阅读全文
posted @ 2020-09-10 23:14 爱放屁的菜鸟 阅读(267) 评论(0) 推荐(0)
摘要: 首先了解什么是冒泡事件与捕获事件 冒泡事件:是指子元素向父元素传递的过程捕获事件:是指父元素向子元素传递的过程 <style> div { display: flex; align-items: center; justify-content: center; } #box1 { height: 1 阅读全文
posted @ 2020-09-03 14:01 爱放屁的菜鸟 阅读(2422) 评论(0) 推荐(0)
摘要: 总结:箭头函数的this的指向是由定义函数的上下文决定的与执行的位置无关,且一旦定义好后就不会再改变,也就是说fn2的this始终指向window所以值为10 更详细请参考:https://www.liaoxuefeng.com/wiki/1022910821149312/1031549578462 阅读全文
posted @ 2020-09-02 21:34 爱放屁的菜鸟 阅读(175) 评论(0) 推荐(0)
摘要: // 引入pinyin4js import pinyin4js from 'pinyin4js'; pinyin4js.convertToPinyinString('测试环境', pinyin4js.FIRST_LETTER) //cshj pinyin4js.convertToPinyinStri 阅读全文
posted @ 2020-07-29 11:03 爱放屁的菜鸟 阅读(206) 评论(0) 推荐(0)