浏览代码

2.0.4 查询窗口表格增加悬浮显示

liuyanpeng 6 月之前
父节点
当前提交
8b014651d4
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 1 1
      package.json
  2. 7 1
      packages/info/src/QueryPageTable.vue

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pc-component-v3",
-  "version": "2.0.3",
+  "version": "2.0.4",
   "description": "",
   "main": "dist/pc-component-v3.js",
   "scripts": {

+ 7 - 1
packages/info/src/QueryPageTable.vue

@@ -76,7 +76,13 @@
                       打开
                     </a-button>
                   </a-space>
-                  <span v-else>{{ item1.data[item2.fieldName].displayValue[0] }}</span>
+                  <span v-else>
+                    <a-tooltip placement="topLeft">
+                      <template #title>{{ item1.data[item2.fieldName].displayValue[0] }}</template>
+                      {{ item1.data[item2.fieldName].displayValue[0] }}
+                    </a-tooltip>
+                    <!-- {{ item1.data[item2.fieldName].displayValue[0] }} -->
+                  </span>
                 </span>
                 <span v-else />
               </span>