摘要: 父组件: <category-component ref="jobCategory" :title="title" :path="pathUrl" @get-datalist="getDataList"></category-component> 子组件: this.$emit('get-datal 阅读全文
posted @ 2023-09-28 13:47 虚无——缥缈 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: 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 15:00 虚无——缥缈 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 【微前端】single-spa 到底是个什么鬼 - 写代码的海怪的文章 - 知乎 https://zhuanlan.zhihu.com/p/378346507 阅读全文
posted @ 2023-07-06 08:58 虚无——缥缈 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 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:20 虚无——缥缈 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 设置 oninput = "value=value.replace(/[^\d]/g,'')" 搞定 1 <el-input oninput = "value=value.replace(/[^\d]/g,'')" /> 阅读全文
posted @ 2023-05-12 10:55 虚无——缥缈 阅读(38) 评论(0) 推荐(0) 编辑
摘要: some和every是数组中迭代的方法相同点:some和every都有三个参数,即item→当前项,index→当前的索引值,array→数组本身;都可以遍历数组 不同点: some相当于逻辑关系中的或,只要有一个参数满足条件,则中断遍历,返回true,如果遍历完所有参数,没有找到符合的项,即返回f 阅读全文
posted @ 2023-05-10 14:40 虚无——缥缈 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 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 虚无——缥缈 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1.在el-form标签中 必须要绑定一个model,而且必须是:model,不能是v-model ,这个是element-ui那边规定2.prop属性需要和上述model绑定的对象里的字段完全一致3.调用方法是this.$refs["refName"].resetFields(),this.$re 阅读全文
posted @ 2023-05-05 17:31 虚无——缥缈 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 添加如下js文件resizable.js: 1 // 支持上下左右四边拖动。若内部元素太贴边,不易触发拖动事件,最好在拖动一边加边框,使鼠标容易选中。 2 // 使用方式: 3 // <div v-resizable="'right, bottom'"> 4 export default { 5 i 阅读全文
posted @ 2023-04-12 18:05 虚无——缥缈 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 说明:设置固定宽度。文字超出宽度,用...显示。鼠标悬停到文字上,用el-tooltip显示全部文字内容如果文字未超出宽度,el-tooltip、el-popover隐藏。 html: 1 <el-tooltip :content="node.label" placement="bottom" ef 阅读全文
posted @ 2023-04-04 10:57 虚无——缥缈 阅读(1253) 评论(0) 推荐(0) 编辑