浏览代码

跳转地址增加省略号

HW 3 年之前
父节点
当前提交
85c0088415
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      js/component/administration/business/advertisementList.jsx

+ 8 - 1
js/component/administration/business/advertisementList.jsx

@@ -233,9 +233,16 @@ const AdvertisementList = Form.create()(
             title: "跳转地址",
             dataIndex: "jumpUrl",
             key: "jumpUrl",
+            width: 200,
             render: r => {
               return (
-                  <span>{r === 'javascript:;' ? '' : r}</span>
+                    <span style={{
+                      width:200,
+                      overflow: 'hidden',
+                      whiteSpace: 'nowrap',
+                      display: 'block',
+                      textOverflow: 'ellipsis',
+                    }}>{r === 'javascript:;' ? '' : r}</span>
               )
             }
           },