随笔分类 - 感动demo
摘要:##js文件中 url: '/openOrganization/openOrgList', 对应的是接口文档那边的链接 method: 'post', 请求方式 data 数据 ##vue文件中 import { xxxxx } from '@/api/video-devices.js' 因为js文
阅读全文
摘要:获取对象长度 var length = Object.keys(obj).length; 遍历对象的方法 https://blog.csdn.net/MISS_zhang_0110/article/details/123369222 数组循环 https://blog.csdn.net/lifang
阅读全文
摘要:参考 https://www.cnblogs.com/goudongmei/p/15141352.html 小案例 const hours = new Array(24).fill('').map((_, index) => +index + 1) return hours.slice(startH
阅读全文
摘要:不错的博客 https://blog.csdn.net/qq_43895215/article/details/124626692
阅读全文
摘要:<ma-time-picker format="hh:mm A" style="flex: 3" :showNow="false" :allowClear="false" v-model:value="listTime.startTime" > </ma-time-picker> 组件在上面 imp
阅读全文
摘要:在table中设置 :scroll="{ y: 550 }"加这条属性,纵轴方向,如果横轴也需要加x即可,参考 网址:https://www.antdv.com/components/table-cn#scroll
阅读全文
摘要:需要在js中写需要引入的函数,前面要多加一个export 在vue中script开头对这个函数进行引入 import { 函数名} from '@/xxx/xxx' 如果是同级,可以用./ 最后在这个vue文件中直接使用就可以了
阅读全文
摘要:{ title: '我是标题', dataIndex: 'cameraNum', customRender: ({ record }) => record.cameraNum || 0 }, 当列表取值为空,没有效果的时候,可以用customRender 生成复杂数据的渲染函数,参数分别为当前行的值
阅读全文
摘要:用day.js这个东西 dayjs().add(7, 'day') 给当前时间增加7天 各个传入的单位对大小写不敏感,支持缩写和复数。 请注意,缩写是区分大小写的。 更多组件了解https://dayjs.gitee.io/docs/zh-CN/manipulate/add dayjs()格式化时间
阅读全文
摘要:图中 success绑定了fetchList这个事件 子文件内的一些内容靠emit传进去 'update:visible', false相当于favoriteModalVisible的值是false
阅读全文
摘要:export default defineComponent({ props: { data: { type: Object }, visible: { type: Boolean }, modalType: { type: String, default: 'add' } }, 子文件接收父文件传
阅读全文
摘要:格式 <input type="text" placeholder="what needs to be done?" @keyup.enter="addValue(inputValue)" v-model="inputValue" /> setup() { // 声明变量 变量都需要声明 ref里面
阅读全文