框架使用
Proshin_Pan
这个作者很懒,什么都没留下…
展开
-
moment.js的使用
背景 实际开发中对table中的数据往往要进行一些处理再渲染到页面上,当对一些时间数据处理时,则需要使用moment.js库 业务场景 产品需将table中的下单时期改为下单时间,并精确到时分秒 { title: '下单时间', dataIndex: 'createdTime', customRender: (text) => text && text.substring(0, 10) width: 15原创 2020-07-18 10:40:01 · 195 阅读 · 0 评论 -
单页签与多页签的数据加载(antd pro)
业务场景 antd pro集成后台管理平台项目中使用单页签与多页签的数据加载的配置不同 单页签 mounted () { this.$nextTick(res => { if (this.$route.params.id) { this.getItemDetail() } }) }, // 可以直接在mounted中调用异步加载数据 多页签 该情况下由于会打开多个页面,多个页面可能公用生命周期(待验证)或其他原因,导致单纯在mounte原创 2020-07-09 09:19:46 · 1023 阅读 · 0 评论