agilebuilder-ui 1.1.13-tmp6 → 1.1.13-tmp7

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.
@@ -1,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
2
- import { _ as s } from "./index-c03eac61.js";
2
+ import { _ as s } from "./index-42d5d61b.js";
3
3
  const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
4
4
  this.src = this.$route.query.src;
5
5
  } }, mounted() {
@@ -1,4 +1,4 @@
1
- import { _ as v, c as $, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-c03eac61.js";
1
+ import { _ as v, c as $, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-42d5d61b.js";
2
2
  import { resolveComponent as m, openBlock as l, createBlock as b, withCtx as g, createVNode as w, TransitionGroup as L, createElementBlock as p, Fragment as T, renderList as C, createElementVNode as u, toDisplayString as y, createCommentVNode as f, normalizeClass as S } from "vue";
3
3
  const A = { class: "no-redirect" }, k = v({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
4
4
  return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
2
- import { _ as I } from "./index-c03eac61.js";
2
+ import { _ as I } from "./index-42d5d61b.js";
3
3
  const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
4
4
  const o = this.$route.query.workflowId;
5
5
  o && (this.workflowId = parseInt(o));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.13-tmp6",
3
+ "version": "1.1.13-tmp7",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -5,28 +5,9 @@
5
5
  {{ label }}
6
6
  <el-icon class="annex-cell"><el-icon-view /></el-icon>
7
7
  </div>
8
-
9
- <el-dialog
10
- :append-to-body="true"
11
- :show-close="true"
12
- :title="$t('imatrixUIPublicModel.previewImage')"
13
- v-model="showPreviewSingleImage"
14
- @close="$emit('close')"
15
- >
16
- <template v-slot:title>
17
- <span
18
- >{{ $t('imatrixUIPublicModel.previewImage') }}
19
- <!-- <i v-if="downloadable" class="el-icon-download" style="padding-left:5px;cursor:pointer;color:#409EFF" @click="downloadFile()" /> -->
20
- <!-- <i v-if="deleteable" class="el-icon-delete" style="padding-left:5px;cursor:pointer;color:#F56C6C" @click="deleteFile()" /> -->
21
- </span>
22
- </template>
23
- <el-image
24
- v-if="previewImageInfo && previewImageInfo.isImg"
25
- :preview-src-list="[previewImageInfo.src]"
26
- :src="previewImageInfo.src"
27
- />
28
- </el-dialog>
8
+ <el-image-viewer v-if="showPreviewSingleImage" teleported :url-list="[previewImageInfo.src]" @close="showPreviewSingleImage = false" />
29
9
  <el-dialog
10
+ layout-mobile="bottom"
30
11
  :append-to-body="true"
31
12
  :show-close="true"
32
13
  :title="$t('imatrixUIPublicModel.preview')"
@@ -41,22 +22,24 @@
41
22
  <!-- <i v-if="deleteable" class="el-icon-delete" style="padding-left:5px;cursor:pointer;color:#F56C6C" @click="deleteFile()" /> -->
42
23
  </span>
43
24
  </template>
44
- <el-table :show-header="false" :data="fileList">
45
- <el-table-column prop="showName" width="200" />
46
- <el-table-column align="right">
25
+ <el-table :show-header="false" :data="fileList" max-height="60vh">
26
+ <el-table-column prop="showName" show-overflow-tooltip />
27
+ <el-table-column width="80" align="center">
47
28
  <template v-slot="scope">
48
- <el-tooltip :content="$t('imatrixUIPublicModel.preview')" class="item" effect="dark" placement="top">
49
- <el-icon @click="previewSingle(scope.row)" style="cursor: pointer"><el-icon-view /></el-icon>
50
- </el-tooltip>
51
- </template>
52
- </el-table-column>
53
- <el-table-column>
54
- <template v-slot="scope">
55
- <el-tooltip :content="$t('imatrixUIPublicModel.download')" class="item" effect="dark" placement="top">
56
- <el-icon v-if="downloadable" @click="donwloadFile(scope.$index, fileList)" style="cursor: pointer"
57
- ><el-icon-download
58
- /></el-icon>
59
- </el-tooltip>
29
+ <div style="margin: -10px 0;">
30
+ <el-tooltip :content="$t('imatrixUIPublicModel.preview')" class="item" effect="dark" placement="top">
31
+ <el-button type="text" @click="previewSingle(scope.row)">
32
+ <el-icon style="cursor: pointer"><el-icon-view /></el-icon>
33
+ </el-button>
34
+ </el-tooltip>
35
+ <el-tooltip :content="$t('imatrixUIPublicModel.download')" class="item" effect="dark" placement="top">
36
+ <el-button type="text" @click="donwloadFile(scope.$index, fileList)">
37
+ <el-icon v-if="downloadable" style="cursor: pointer">
38
+ <el-icon-download />
39
+ </el-icon>
40
+ </el-button>
41
+ </el-tooltip>
42
+ </div>
60
43
  </template>
61
44
  </el-table-column>
62
45
  </el-table>
@@ -65,6 +48,7 @@
65
48
  </template>
66
49
 
67
50
  <script>
51
+ // import { Image } from 'antd';
68
52
  import { Paperclip as ElIconPaperclip, View as ElIconView, Download as ElIconDownload } from '@element-plus/icons-vue'
69
53
  import * as Vue from 'vue'
70
54
  import { isPlateSys, getSystemFrontendUrl } from '../../../src/utils/common-util'
@@ -148,6 +132,7 @@ export default {
148
132
  },
149
133
  previewSingle(fileInfo) {
150
134
  fileInfo = packageFile(fileInfo.showName, fileInfo.serverPath)
135
+ debugger
151
136
  if (isImage(fileInfo.showName)) {
152
137
  this.previewImageInfo = fileInfo
153
138
  this.showPreviewSingleImage = true
@@ -281,3 +266,6 @@ export default {
281
266
  emits: ['close']
282
267
  }
283
268
  </script>
269
+
270
+ <style lang="scss" scoped>
271
+ </style>