05 2023 档案
摘要: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
阅读全文
摘要:设置 oninput = "value=value.replace(/[^\d]/g,'')" 搞定 1 <el-input oninput = "value=value.replace(/[^\d]/g,'')" />
阅读全文
摘要:some和every是数组中迭代的方法相同点:some和every都有三个参数,即item→当前项,index→当前的索引值,array→数组本身;都可以遍历数组 不同点: some相当于逻辑关系中的或,只要有一个参数满足条件,则中断遍历,返回true,如果遍历完所有参数,没有找到符合的项,即返回f
阅读全文
摘要:defineProps 获取组件传值 1 <template> 2 <h1>{{ msg }}</h1> 3 <div @click="clickThis">1111</div> 4 </template> 5 6 <script setup lang="ts"> 7 defineProps<{ /
阅读全文
摘要:1.在el-form标签中 必须要绑定一个model,而且必须是:model,不能是v-model ,这个是element-ui那边规定2.prop属性需要和上述model绑定的对象里的字段完全一致3.调用方法是this.$refs["refName"].resetFields(),this.$re
阅读全文