小编K P*_*Pal的帖子

如何更改列的CSS - ReactTable

我在我的应用程序中使用react-table.

我被困在做一两件事,即改变CSScolumns同时,一列正在调整.

目前,当您resize的列只cursor更改时.我想要的是添加borderselected column.

我搜索了这对SOgoogle也.但找不到任何有用的东西.在文档中也没有提到关于这个主题的内容.

更新

现在,我可以在调整大小时拖动列时添加边框.我可以通过添加和删除类来实现.

我这样做了:

为className创建了一个var的状态:

  this.state = {
         addBorder: null
   }
Run Code Online (Sandbox Code Playgroud)

在我的专栏中传递了这个类名:

     const columns = [{
    Header: 'Name',
    accessor: 'name', // String-based value accessors!,
    headerClassName: this.state.addBorder,
    className: this.state.addBorder
}, {
    Header: 'Age',
    accessor: 'age',
    Cell: props => <span className='number'>{2}</span> // Custom cell components!
}, {
    id: 'friendName', // Required because our accessor is not a string
    Header: 'Friend …
Run Code Online (Sandbox Code Playgroud)

css resize reactjs react-table

10
推荐指数
1
解决办法
2万
查看次数

Nginx 不会重启。. . nginx.service 的作业失败,因为控制进程退出并显示错误代码

我正在关注有关设置 Nginx 的 youtube 视频我正在重新启动,当我获得需要编辑服务器块文件(启用站点/默认)的部分时,我完全按照他们在视频中所做的操作,但是当保存并尝试重新启动:

sudo service nginx restart

我收到此错误: nginx.service 的作业失败,因为控制进程以错误代码退出。有关详细信息,请参阅“systemctl status nginx.service”和“journalctl -xe”。

所以我跑了

systemctl status nginx.service

这给出了输出:

Active: failed (Result: exit-code) since Fri 2018-03-02 01:36:33 EST; 10min ago

我在 Ubuntu 16.04 Linux VPS 上运行所有这些

下面是 /etc/nginx/sites-enabled/default 文件的内容:

  ##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you …
Run Code Online (Sandbox Code Playgroud)

nginx

3
推荐指数
2
解决办法
1万
查看次数

标签 统计

css ×1

nginx ×1

react-table ×1

reactjs ×1

resize ×1