baozhengrui

导航

上一页 1 2 3 4 5 6 7 8 ··· 18 下一页

2024年10月31日 #

js获取数组对象中的全部key和value值

摘要: 1.使用Object.keys()方法‌:这是获取对象所有key值的最常用方法。Object.keys(obj)会返回一个包含对象所有可枚举属性的字符串数组,这些字符串即为对象的键。例如: ‌// Object.values()// 获取所以的值 let obj = {name: "John", a 阅读全文

posted @ 2024-10-31 14:57 芮艺 阅读(3336) 评论(0) 推荐(0)

div盒子鼠标以上有阴影

摘要: <div class="hover-shadow">Hover over me!</div> .hover-shadow { width: 200px; height: 100px; background-color: #f0f0f0; margin: 20px; text-align: cente 阅读全文

posted @ 2024-10-31 09:14 芮艺 阅读(33) 评论(0) 推荐(0)

获取数据类型js

摘要: function getFieldType(field) { if (field null) { return 'null'; } switch (typeof field) { case 'undefined': return 'undefined'; case 'string': return 阅读全文

posted @ 2024-10-31 08:44 芮艺 阅读(10) 评论(0) 推荐(0)

2024年10月29日 #

vue3使用props传值

摘要: // 父级 <user1111Info :user="userForm" /> //子级 import { propTypes } from '@/utils/propTypes'; const props = defineProps({ user: propTypes.any.isRequired 阅读全文

posted @ 2024-10-29 16:26 芮艺 阅读(25) 评论(0) 推荐(0)

el-button按钮操作

摘要: <el-row :gutter="10"> <el-col :span="1.5"> <el-button v-has-permi="['system:user:add']" type="primary" plain icon="Plus" @click="handleAdd()">新增</el-b 阅读全文

posted @ 2024-10-29 15:13 芮艺 阅读(252) 评论(0) 推荐(0)

字体渐变色

摘要: font-size: 18px; font-weight: 500; text-align: left; text-shadow: 0 0 0.1875rem 0 #4589f6; background-image: linear-gradient(180deg, #ffffff 15%, #458 阅读全文

posted @ 2024-10-29 14:21 芮艺 阅读(17) 评论(0) 推荐(0)

2024年10月24日 #

el-input输入框的数字不能超过100

摘要: <el-input v-model="form.weight" @input="numValid()" type="number" max="100" placeholder="请输入权重" /> function numValid() { if(form.value.weight >=100){ 阅读全文

posted @ 2024-10-24 11:42 芮艺 阅读(98) 评论(0) 推荐(0)

2024年10月22日 #

小图标可以自由拖动

摘要: <div class="tubiao" @mousedown="startDrag" @touchstart="startDrag"> <div :class="item.active == true ? 'tttACtive' : 'ttt'" v-for="item in tabLayout" 阅读全文

posted @ 2024-10-22 11:44 芮艺 阅读(12) 评论(0) 推荐(0)

2024年10月21日 #

el-table轮播

摘要: <el-table ref="reportTable" :data="tableData" stripe style="width: 98%;margin:0 auto;"> <!-- <el-table-column prop="rank" label="排名" align="center"></ 阅读全文

posted @ 2024-10-21 14:32 芮艺 阅读(90) 评论(0) 推荐(0)

2024年10月17日 #

el-select 下拉搜索框

摘要: // 搜索框下拉 :deep(.el-select__placeholder.is-transparent){ color:#fff !important; font-size:1rem !important; } :deep(.el-select__placeholder){ color:#fff 阅读全文

posted @ 2024-10-17 10:56 芮艺 阅读(124) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 18 下一页