04 2020 档案

javascript : 找到一个树型数据的一个节点及其所有父节点
摘要:如题。 (function () { let tree = { "id": 0, "label": "all", "children": [ { "children": [ { "children": [ { "id": 210, "label": "dashboard_panel" }, { "c 阅读全文

posted @ 2020-04-28 20:49 fox_charon 阅读(1020) 评论(0) 推荐(0)

IE11 CSS hack
摘要:IE11 怎么做 CSS hack ? 很简单。 @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .ant-form-item-control .ant-input { line-height: 0 阅读全文

posted @ 2020-04-21 17:19 fox_charon 阅读(972) 评论(0) 推荐(0)

antd实战:表单上传,文件列表的过滤与限制。
摘要:用表单上传组件最痛苦的地方是: 他的诸多行为与纯上传组件不一样,而表单的文档关于这一块基本上没有提,只能自己试。 比如我想做一个上传前的拦截。 beforeUpload: (file, fileList) => { const isJpgOrPng = file.type 'image/jpeg' 阅读全文

posted @ 2020-04-14 11:20 fox_charon 阅读(1183) 评论(0) 推荐(0)

antd踩坑:日期选择器的可选日期控制的问题
摘要:有一个需求是日期选择需要加一个日期限制。 于是我兴高采烈的加上去了。 // 日期可选判断方法 disabledDateFunc = current => { const { disabledDateArray } = this.state; if (disabledDateArray) { retu 阅读全文

posted @ 2020-04-14 11:12 fox_charon 阅读(3180) 评论(0) 推荐(0)

导航