会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
虚无——缥缈
博客园
首页
新随笔
联系
订阅
管理
2023年9月28日
vue2 子组件向父组件传值
摘要: 父组件: <category-component ref="jobCategory" :title="title" :path="pathUrl" @get-datalist="getDataList"></category-component> 子组件: this.$emit('get-datal
阅读全文
posted @ 2023-09-28 13:47 虚无——缥缈
阅读(57)
评论(0)
推荐(0)
2023年9月21日
vue通过 v-for循环出来的数组给元素 加不同的颜色
摘要: 直接上代码: 1 <div v-for="(item,i) in colorList" :key="i"> 2 <div class="cmn-color"> 3 <div :style="{'background':item}"></div><span>开发{{i+1 }}</span> 4 </
阅读全文
posted @ 2023-09-21 14:59 虚无——缥缈
阅读(644)
评论(0)
推荐(0)
2023年7月6日
分享 single-spa
摘要: 【微前端】single-spa 到底是个什么鬼 - 写代码的海怪的文章 - 知乎 https://zhuanlan.zhihu.com/p/378346507
阅读全文
posted @ 2023-07-06 08:57 虚无——缥缈
阅读(10)
评论(0)
推荐(0)
2023年5月23日
echarts 两个标题 主标题 和副标题 分开设置
摘要: 1 title: [ 2 { 3 text: '模型类型', 4 left: 40, 5 top:20, 6 7 textStyle:{ 8 fontSize:16, 9 color: '#7FB6F8' 10 } 11 }, 12 { 13 left:"right", 14 top:15, 15
阅读全文
posted @ 2023-05-23 17:19 虚无——缥缈
阅读(350)
评论(0)
推荐(0)
2023年5月12日
设置input 只能输入数字
摘要: 设置 oninput = "value=value.replace(/[^\d]/g,'')" 搞定 1 <el-input oninput = "value=value.replace(/[^\d]/g,'')" />
阅读全文
posted @ 2023-05-12 10:55 虚无——缥缈
阅读(44)
评论(0)
推荐(0)
2023年5月10日
JS中some和every的区别和用法
摘要: some和every是数组中迭代的方法相同点:some和every都有三个参数,即item→当前项,index→当前的索引值,array→数组本身;都可以遍历数组 不同点: some相当于逻辑关系中的或,只要有一个参数满足条件,则中断遍历,返回true,如果遍历完所有参数,没有找到符合的项,即返回f
阅读全文
posted @ 2023-05-10 14:39 虚无——缥缈
阅读(612)
评论(0)
推荐(0)
vue3 中的defineProps、defineEmits、defineExpose
摘要: defineProps 获取组件传值 1 <template> 2 <h1>{{ msg }}</h1> 3 <div @click="clickThis">1111</div> 4 </template> 5 6 <script setup lang="ts"> 7 defineProps<{ /
阅读全文
posted @ 2023-05-10 14:25 虚无——缥缈
阅读(343)
评论(0)
推荐(0)
2023年5月5日
Vue el-form表单resetFields与clearValidate方法失效的三个坑
摘要: 1.在el-form标签中 必须要绑定一个model,而且必须是:model,不能是v-model ,这个是element-ui那边规定2.prop属性需要和上述model绑定的对象里的字段完全一致3.调用方法是this.$refs["refName"].resetFields(),this.$re
阅读全文
posted @ 2023-05-05 17:30 虚无——缥缈
阅读(238)
评论(0)
推荐(0)
2023年4月12日
Vue3为dom组件增加 自定义可拖拽改变大小的指令(属性)
摘要: 添加如下js文件resizable.js: 1 // 支持上下左右四边拖动。若内部元素太贴边,不易触发拖动事件,最好在拖动一边加边框,使鼠标容易选中。 2 // 使用方式: 3 // <div v-resizable="'right, bottom'"> 4 export default { 5 i
阅读全文
posted @ 2023-04-12 18:05 虚无——缥缈
阅读(1137)
评论(0)
推荐(0)
2023年4月4日
element Plus 中el-tooltip 和 el-popover超出宽度,高度显示文字提示 否则不提示
摘要: 说明:设置固定宽度。文字超出宽度,用...显示。鼠标悬停到文字上,用el-tooltip显示全部文字内容如果文字未超出宽度,el-tooltip、el-popover隐藏。 html: 1 <el-tooltip :content="node.label" placement="bottom" ef
阅读全文
posted @ 2023-04-04 10:57 虚无——缥缈
阅读(2667)
评论(0)
推荐(0)
下一页
公告