Explorar o código

跳转地址添加省略号

HW %!s(int64=4) %!d(string=hai) anos
pai
achega
068acf3cf2
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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>
               )
             }
           },