Browse Source

优化:后台商品列表页在小屏幕显示超出问题(补充)

萤火科技 3 năm trước cách đây
mục cha
commit
79388b7b56
2 tập tin đã thay đổi với 4 bổ sung và 6 xóa
  1. 4 1
      src/views/goods/Index.vue
  2. 0 5
      yarn.lock

+ 4 - 1
src/views/goods/Index.vue

@@ -114,6 +114,7 @@ const columns = [
   {
   {
     title: '商品名称',
     title: '商品名称',
     dataIndex: 'goods_name',
     dataIndex: 'goods_name',
+    width: '302px',
     scopedSlots: { customRender: 'goods_name' }
     scopedSlots: { customRender: 'goods_name' }
   },
   },
   {
   {
@@ -140,12 +141,14 @@ const columns = [
   },
   },
   {
   {
     title: '添加时间',
     title: '添加时间',
+    width: '180px',
     dataIndex: 'create_time'
     dataIndex: 'create_time'
   },
   },
   {
   {
     title: '操作',
     title: '操作',
     dataIndex: 'action',
     dataIndex: 'action',
-    width: '180px',
+    width: '150px',
+    fixed: 'right',
     scopedSlots: { customRender: 'action' }
     scopedSlots: { customRender: 'action' }
   }
   }
 ]
 ]

+ 0 - 5
yarn.lock

@@ -11674,11 +11674,6 @@ vue-copy-to-clipboard@^1.0.3:
   dependencies:
   dependencies:
     copy-to-clipboard "^3.3.1"
     copy-to-clipboard "^3.3.1"
 
 
-vue-draggable-resizable@^2.3.0:
-  version "2.3.0"
-  resolved "https://registry.yarnpkg.com/vue-draggable-resizable/-/vue-draggable-resizable-2.3.0.tgz#94c433ca748bc1a4d0959ba1c5c0e1c3536cee5b"
-  integrity sha512-77CLRj1TPwB30pwsjOf3pkd1UzYanCdKXbqhILJ0Oo5QQl50lvBfyQCXxMFzwWwTc3sbBbQH3FfWSV+BkoSElA==
-
 vue-eslint-parser@^5.0.0:
 vue-eslint-parser@^5.0.0:
   version "5.0.0"
   version "5.0.0"
   resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-5.0.0.tgz#00f4e4da94ec974b821a26ff0ed0f7a78402b8a1"
   resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-5.0.0.tgz#00f4e4da94ec974b821a26ff0ed0f7a78402b8a1"