会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Denvue
博客园
首页
新随笔
联系
管理
订阅
2019年5月24日
ts ref的使用
摘要: ref的作用在于父组件取到子组件的所有state内容。 在父组件中 编写如下: 1. public child: any; 类中定义child,用于存放子组件的作用域 2. 绑定子组件作用域 public onRef(ref: any) { this.child = ref } 3. 子组件中绑定r
阅读全文
posted @ 2019-05-24 10:40 Denvue
阅读(5389)
评论(0)
推荐(0)
2019年5月21日
antd typescript 可编辑单元格
摘要: import { Row, Col, Select, Table, Input, Popconfirm, Button, Form } from 'antd'; import * as React from 'react' const FormItem = Form.Item; const EditableContext = React.createContext({}); const Edi...
阅读全文
posted @ 2019-05-21 16:59 Denvue
阅读(3254)
评论(1)
推荐(0)
2019年4月16日
IE下png格式图片失真问题
摘要: 页面上的png格式的图片像素很大,通过css将宽高限制,缩小显示图片后,在chrome中会显示正常, 但是在IE 浏览器下图片会出现锯齿,导致失真。 解决方法就是按照显示的大小将图片修改成对应或相近的大小,这样看起来 图片就不会失真 。
阅读全文
posted @ 2019-04-16 17:28 Denvue
阅读(977)
评论(0)
推荐(0)
2019年3月19日
react JSX中循环遍历并输出对象
摘要: {Object.keys(this.props.appearanceNode).map(key => ( <Form.Item {...formItemLayout} key={key}> <div key={key}>{this.props.appearanceNode[key]} </div>
阅读全文
posted @ 2019-03-19 14:11 Denvue
阅读(6841)
评论(0)
推荐(0)
公告