Procházet zdrojové kódy

超过字数限制显示省略号

jbb před 2 roky
rodič
revize
36f7531d4f
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      src/views/system/CertificateManagement.vue

+ 5 - 1
src/views/system/CertificateManagement.vue

@@ -100,6 +100,7 @@
 <script>
   
   import {JeecgListMixin} from '@/mixins/JeecgListMixin'
+  import JEllipsis from '@/components/jeecg/JEllipsis'
   import AddCertificateManagement from './modules/AddCertificateManagement'
   import moment from 'moment'
   import {
@@ -113,9 +114,11 @@
     mixins: [JeecgListMixin],
     components: {
     AddCertificateManagement,
-    moment
+    moment,
+    JEllipsis
     },
     data() {
+      let ellipsis = (v, l = 10) => <j-ellipsis value={v} length={l} />
       return {
           queryParam:{   //查询条件
               beginDate:'',
@@ -169,6 +172,7 @@
             title: '备注',
             align: "center",
             dataIndex: 'remarks',
+            customRender: (t) => ellipsis(t),
             width: 120
           },
           {