摘要: 内容转载公众号 前端印象 1. JSOP 跨域解决 使用<Srcipt></Srcipt> 标签 <script> var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 阅读全文
posted @ 2022-01-04 17:35 紫夜殇 阅读(155) 评论(0) 推荐(0)
摘要: /// 自定义封装, 存在children的情况下 renderTreeNodes = (data) => { return ( data && data.map((item) => { if (item.children) { return ( <TreeNode title={item.offi 阅读全文
posted @ 2021-12-22 11:20 紫夜殇 阅读(865) 评论(0) 推荐(0)
摘要: form 表单填写内容时校验是否改字段内容已经存在,展示提示信息 // form 表单字段 { key: 'infoMc', label: '机构名称', tooltip: '请填写代理机构名称', required: true, // 请求的方法 rules: [{ validator: chec 阅读全文
posted @ 2021-12-20 15:25 紫夜殇 阅读(604) 评论(0) 推荐(0)
摘要: React antd Table 组件上 { title: '是否为小微企业', dataIndex: 'isXw', align: 'center', width: 150, onCell: (record, index) => ({ index, record, dataIndex: 'isXw 阅读全文
posted @ 2021-08-13 09:41 紫夜殇 阅读(853) 评论(0) 推荐(0)
摘要: React 组件中 判断多条件 button 多个条件判断渲染 {data.judgeVoteList && data.judgeNum data.judgeVoteList.length ? ( <Button disabled={isDisable || vote.code 1 || vote. 阅读全文
posted @ 2021-08-11 16:36 紫夜殇 阅读(153) 评论(0) 推荐(0)
摘要: Radio渲染数据 <Radio.Group className={styles.content} value={vote.msg}> {data.judgeVoteList && data.judgeVoteList.map((item) => { return ( <Col span={5} o 阅读全文
posted @ 2021-07-29 16:55 紫夜殇 阅读(963) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-06-23 14:56 紫夜殇 阅读(378) 评论(0) 推荐(0)