Browse Source

跳转地址添加省略号

HW 4 years ago
parent
commit
068acf3cf2
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

@@ -237,9 +237,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>
               )
             }
           },