@lambo-design/workflow-approve 1.0.0-beta.31 → 1.0.0-beta.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/portrait.vue +32 -30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/workflow-approve",
3
- "version": "1.0.0-beta.31",
3
+ "version": "1.0.0-beta.32",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -12,8 +12,8 @@
12
12
  "devDependencies": {
13
13
  "axios": "^0.24.0",
14
14
  "axios-cache-plugin": "^0.1.0",
15
- "@lambo-design/core": "^4.7.1-beta.146",
16
- "@lambo-design/shared": "^1.0.0-beta.223"
15
+ "@lambo-design/core": "^4.7.1-beta.147",
16
+ "@lambo-design/shared": "^1.0.0-beta.224"
17
17
  },
18
18
  "dependencies": {
19
19
  "bpmn-js": "^7.3.1",
package/src/portrait.vue CHANGED
@@ -706,37 +706,39 @@ export default {
706
706
  }, label)
707
707
  }
708
708
  })
709
- column.push({
710
- title: `附件`, key: 'fileList', minWidth: 200,
711
- render: (h, { row }) => {
712
- if (!row.fileList || row.fileList.length === 0) {
713
- return h('span', '无'); // 如果没有附件,显示“无”
714
- }
709
+ if (this.handleButtons.includes('attachmentFile')){
710
+ column.push({
711
+ title: `附件`, key: 'fileList', minWidth: 200,
712
+ render: (h, { row }) => {
713
+ if (!row.fileList || row.fileList.length === 0) {
714
+ return h('span', '无'); // 如果没有附件,显示“无”
715
+ }
715
716
 
716
- //显示所有附件
717
- return h('div', row.fileList.map(file => {
718
- return h('a', {
719
- style: {
720
- display: 'block',
721
- marginTop: '5px',
722
- marginRight:'5px',
723
- whiteSpace: 'nowrap',
724
- overflow: 'hidden',
725
- textOverflow: 'ellipsis',
726
- maxWidth: '100px',
727
- },
728
- attrs: {
729
- title: file.attachName // 鼠标悬停时显示完整名称
730
- },
731
- on: {
732
- click: () => {
733
- this.getAttach(file);
734
- }
735
- },
736
- }, file.attachName);
737
- }));
738
- }
739
- })
717
+ //显示所有附件
718
+ return h('div', row.fileList.map(file => {
719
+ return h('a', {
720
+ style: {
721
+ display: 'block',
722
+ marginTop: '5px',
723
+ marginRight:'5px',
724
+ whiteSpace: 'nowrap',
725
+ overflow: 'hidden',
726
+ textOverflow: 'ellipsis',
727
+ maxWidth: '100px',
728
+ },
729
+ attrs: {
730
+ title: file.attachName // 鼠标悬停时显示完整名称
731
+ },
732
+ on: {
733
+ click: () => {
734
+ this.getAttach(file);
735
+ }
736
+ },
737
+ }, file.attachName);
738
+ }));
739
+ }
740
+ })
741
+ }
740
742
 
741
743
  return column
742
744
  },