Browse Source

跳转地址增加省略号

HW 3 years ago
parent
commit
85c0088415
1 changed files with 8 additions and 1 deletions
  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>
               )
             }
           },