agilebuilder-ui 1.1.29-dingtalkphoto2 → 1.1.30

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 (56) hide show
  1. package/lib/{401-0311919c.js → 401-c25327a2.js} +1 -1
  2. package/lib/{404-d3325636.js → 404-6c224b6d.js} +1 -1
  3. package/lib/{iframe-page-9bc89f23.js → iframe-page-32230fe7.js} +1 -1
  4. package/lib/{index-3a58d4bf.js → index-31358045.js} +19588 -19609
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +96 -93
  8. package/lib/{tab-content-iframe-index-b9af19c7.js → tab-content-iframe-index-444f2a7e.js} +1 -1
  9. package/lib/{tab-content-index-c4821c60.js → tab-content-index-ad83cdad.js} +25 -24
  10. package/lib/{tache-subprocess-history-35f638e5.js → tache-subprocess-history-1313269e.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/dynamic-source-select/src/dynamic-source-select.vue +5 -1
  13. package/packages/fs-preview/src/fs-preview.vue +75 -53
  14. package/packages/fs-upload-list/src/fs-upload-list.vue +12 -10
  15. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +74 -93
  16. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-input.vue +62 -74
  17. package/packages/multipart-upload/src/multipart-upload-form.vue +12 -7
  18. package/packages/organization-input/src/organization-input.vue +1 -1
  19. package/packages/row-form/operation.vue +1 -0
  20. package/packages/super-grid/src/components/mobile-table-card.jsx +12 -2
  21. package/packages/super-grid/src/custom-formatter.js +10 -7
  22. package/packages/super-grid/src/dynamic-input.vue +8 -7
  23. package/packages/super-grid/src/index-column.vue +24 -15
  24. package/packages/super-grid/src/normal-column-content.vue +19 -2
  25. package/packages/super-grid/src/normal-column.vue +14 -13
  26. package/packages/super-grid/src/row-operation.vue +49 -27
  27. package/packages/super-grid/src/selection-column.vue +2 -12
  28. package/packages/super-grid/src/super-grid.vue +27 -7
  29. package/packages/workflow-history-list/src/workflow-history-list.vue +101 -160
  30. package/src/components/Affix/index.vue +19 -12
  31. package/src/i18n/langs/cn.js +292 -294
  32. package/src/i18n/langs/en.js +291 -304
  33. package/src/permission.js +1 -1
  34. package/src/store/modules/table.js +1 -0
  35. package/src/styles/_layout-custom-properties.scss +2 -2
  36. package/src/styles/display-layout.scss +16 -4
  37. package/src/styles/index.scss +2 -9
  38. package/src/styles/theme/black/index.scss +6 -0
  39. package/src/styles/theme/dark-blue/button.scss +6 -6
  40. package/src/styles/theme/dark-blue/card.scss +11 -15
  41. package/src/styles/theme/dark-blue/index.scss +1 -4
  42. package/src/styles/theme/dark-blue/sidebar.scss +0 -5
  43. package/src/styles/theme/default.scss +1 -1
  44. package/src/styles/theme/green/button.scss +2 -2
  45. package/src/styles/theme/green/index.scss +1 -4
  46. package/src/styles/theme/green/sidebar.scss +0 -5
  47. package/src/styles/theme/ocean-blue/button.scss +2 -2
  48. package/src/styles/theme/ocean-blue/index.scss +1 -4
  49. package/src/styles/theme/ocean-blue/sidebar.scss +0 -5
  50. package/src/styles/theme/tiffany-blue-mobile/button.scss +2 -2
  51. package/src/styles/theme/tiffany-blue-mobile/index.scss +1 -5
  52. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -5
  53. package/src/utils/iframe-communicator.js +222 -222
  54. package/src/utils/jump-page-utils.js +1 -1
  55. package/vite.config.js +2 -1
  56. package/src/utils/dingtalk-util.ts +0 -37
@@ -1,177 +1,112 @@
1
1
  <template>
2
2
  <el-table
3
- v-if="loaded"
4
- ref="historyList"
5
- :data="histories"
6
- :height="tableHeight"
7
- :load="getChildren"
8
- :max-height="tableMaxHeight"
9
- :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
10
- border
11
- element-loading-text="Loading"
12
- fit
13
- highlight-current-row
14
- lazy
15
- row-key="uuid"
16
- style="width: 100%"
3
+ v-if="loaded"
4
+ ref="historyList"
5
+ :data="histories"
6
+ :height="tableHeight"
7
+ :load="getChildren"
8
+ :max-height="tableMaxHeight"
9
+ :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
10
+ border
11
+ element-loading-text="Loading"
12
+ fit
13
+ highlight-current-row
14
+ lazy
15
+ row-key="uuid"
16
+ style="width: 100%"
17
17
  >
18
- <el-table-column
19
- :label="$t('workflowHistoryList.index')"
20
- align="left"
21
- width="80px"
22
- >
23
- <template v-slot="scope">
24
- {{ scope.$index + 1 }}
25
- </template>
26
- </el-table-column>
27
- <el-table-column
28
- :label="$t('workflowHistoryList.taskName')"
29
- align="left"
30
- width="250"
31
- >
32
- <template v-slot="scope">
33
- <span
34
- v-if="
35
- scope.row.historyType && scope.row.historyType === 'PROCESS_START'
36
- "
37
- >{{ $t('workflowHistoryList.processStart') }}</span
38
- >
39
- <span
40
- v-else-if="
41
- scope.row.historyType && scope.row.historyType === 'PROCESS_END'
42
- "
43
- >{{ $t('workflowHistoryList.processEnd') }}</span
44
- >
45
- <span v-else-if="scope.row.current" style="color: #e6a23c">{{
46
- i18nTaskName(scope.row)
18
+ <el-table-column :label="$t('workflowHistoryList.index')" align="left" width="80px">
19
+ <template v-slot="scope">
20
+ {{ scope.$index + 1 }}
21
+ </template>
22
+ </el-table-column>
23
+ <el-table-column :label="$t('workflowHistoryList.taskName')" align="left" width="250">
24
+ <template v-slot="scope">
25
+ <span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_START'">{{
26
+ $t('workflowHistoryList.processStart')
47
27
  }}</span>
48
- <span v-else-if="!scope.row.special">{{
49
- i18nTaskName(scope.row)
28
+ <span v-else-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'">{{
29
+ $t('workflowHistoryList.processEnd')
50
30
  }}</span>
31
+ <span v-else-if="scope.row.current" style="color: #e6a23c">{{ i18nTaskName(scope.row) }}</span>
32
+ <span v-else-if="!scope.row.special">{{ i18nTaskName(scope.row) }}</span>
51
33
  <span v-else-if="scope.row.special === true" style="color: red">{{
52
- i18nTaskName(scope.row) +
53
- '[' +
54
- $t('workflowHistoryList.specailText') +
55
- ']'
34
+ i18nTaskName(scope.row) + '[' + $t('workflowHistoryList.specailText') + ']'
56
35
  }}</span>
57
36
  </template>
58
37
  </el-table-column>
59
- <el-table-column
60
- :label="$t('workflowHistoryList.operator')"
61
- align="left"
62
- width="250"
63
- >
38
+ <el-table-column :label="$t('workflowHistoryList.operator')" align="left" width="250">
64
39
  <template v-slot="scope">
65
- <span
66
- v-if="
67
- scope.row.historyType && scope.row.historyType === 'PROCESS_END'
68
- "
69
- />
40
+ <span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
70
41
  <span v-else>{{ scope.row.creatorName }}</span>
71
42
  </template>
72
43
  </el-table-column>
73
- <el-table-column
74
- :label="$t('workflowHistoryList.operatorLg')"
75
- align="left"
76
- width="250"
77
- >
44
+ <el-table-column :label="$t('workflowHistoryList.operatorLg')" align="left" width="250">
78
45
  <template v-slot="scope">
79
- <span
80
- v-if="
81
- scope.row.historyType && scope.row.historyType === 'PROCESS_END'
82
- "
83
- />
46
+ <span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
84
47
  <span v-else>{{ scope.row.creator }}</span>
85
48
  </template>
86
49
  </el-table-column>
87
- <el-table-column
88
- :label="$t('workflowHistoryList.operatorDept')"
89
- align="left"
90
- width="150"
91
- >
50
+ <el-table-column :label="$t('workflowHistoryList.operatorDept')" align="left" width="150">
92
51
  <template v-slot="scope">
93
- <span
94
- v-if="
95
- scope.row.historyType && scope.row.historyType === 'PROCESS_END'
96
- "
97
- />
52
+ <span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
98
53
  <span v-else>{{ scope.row.departmentName }}</span>
99
54
  </template>
100
55
  </el-table-column>
101
- <el-table-column
102
- :label="$t('workflowHistoryList.operationTime')"
103
- align="left"
104
- width="200"
105
- >
56
+ <el-table-column :label="$t('workflowHistoryList.operationTime')" align="left" width="200">
106
57
  <template v-slot="scope">
107
- <span
108
- v-if="
109
- scope.row.historyType && scope.row.historyType === 'PROCESS_END'
110
- "
111
- />
58
+ <span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
112
59
  <span v-else>{{ scope.row.formatCreatedTime }}</span>
113
60
  </template>
114
61
  </el-table-column>
115
- <el-table-column
116
- :label="$t('workflowHistoryList.operation')"
117
- align="left"
118
- width="400"
119
- >
62
+ <el-table-column :label="$t('workflowHistoryList.operation')" align="left" width="400">
120
63
  <template v-slot="scope">
121
- <span
122
- v-if="
123
- scope.row.historyType && scope.row.historyType === 'PROCESS_END'
124
- "
125
- />
64
+ <span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
126
65
  <span v-else-if="scope.row.current" style="color: #e6a23c"
127
- >{{ scope.row.transactionResult }}
128
- {{ $t('workflowHistoryList.toDoText') }}</span
66
+ >{{ scope.row.transactionResult }} {{ $t('workflowHistoryList.toDoText') }}</span
129
67
  >
130
68
  <span v-else>{{ i18nOperation(scope.row) }}</span>
131
69
  </template>
132
70
  </el-table-column>
133
- <el-table-column
134
- :label="$t('workflowHistoryList.opinion')"
135
- align="left"
136
- width="400"
137
- >
71
+ <el-table-column :label="$t('workflowHistoryList.opinion')" align="left" width="400">
138
72
  <template v-slot="scope">
139
- <span
140
- v-if="
141
- scope.row.historyType && scope.row.historyType === 'PROCESS_END'
142
- "
143
- />
73
+ <span v-if="scope.row.historyType && scope.row.historyType === 'PROCESS_END'" />
144
74
  <span v-else>{{ scope.row.opinion }}</span>
145
75
  </template>
146
76
  </el-table-column>
77
+ <el-table-column :label="$t('workflowHistoryList.remark')" align="left" width="400">
78
+ <template v-slot="scope">
79
+ <span>{{ scope.row.remark }}</span>
80
+ </template>
81
+ </el-table-column>
147
82
  </el-table>
148
83
  </template>
149
84
 
150
85
  <script>
151
- import {i18nOperation} from '../../../src/utils/workflow-util'
152
- import {getLanguageWithLocale} from '../../../src/utils/util'
86
+ import { i18nOperation } from '../../../src/utils/workflow-util'
87
+ import { getLanguageWithLocale } from '../../../src/utils/util'
153
88
  import ApiJs from './api'
154
89
 
155
90
  export default {
156
- name: 'WorkflowHistoryList',
157
- props: {
158
- workflowId: {
159
- type: Number,
160
- default: null,
161
- },
162
- // 流转历史列表,在图形流转历史中查看子流程流转历史需要使用
163
- historyList: {
164
- type: Array,
165
- default: null,
166
- },
167
- // 主子流程的国际化配置
168
- allProcessI18n: {
169
- type: Object,
170
- default: null,
171
- },
172
- maxHeight: {
91
+ name: 'WorkflowHistoryList',
92
+ props: {
93
+ workflowId: {
94
+ type: Number,
95
+ default: null
96
+ },
97
+ // 流转历史列表,在图形流转历史中查看子流程流转历史需要使用
98
+ historyList: {
99
+ type: Array,
100
+ default: null
101
+ },
102
+ // 主子流程的国际化配置
103
+ allProcessI18n: {
104
+ type: Object,
105
+ default: null
106
+ },
107
+ maxHeight: {
173
108
  type: [String, Number],
174
- default: null,
109
+ default: null
175
110
  },
176
111
  beanName: {
177
112
  type: String,
@@ -193,16 +128,16 @@ export default {
193
128
  processI18n: null,
194
129
  processNameI18n: null,
195
130
  tableMaxHeight: null,
196
- tableHeight: null
131
+ tableHeight: null
197
132
  }
198
133
  },
199
134
  computed: {},
200
135
  provide() {
201
136
  return {}
202
137
  },
203
- created() {
138
+ created() {
204
139
  console.log('historyList---workflowId==', this.workflowId)
205
- if(this.workflowId !== undefined && this.workflowId !== null){
140
+ if (this.workflowId !== undefined && this.workflowId !== null) {
206
141
  this.getI18nSet().then((processI18n) => {
207
142
  this.processI18n = processI18n
208
143
  if (!this.histories || this.histories === null) {
@@ -212,37 +147,43 @@ export default {
212
147
  }
213
148
  })
214
149
  } else {
215
- // 页面设计器预览页面时会用该方法
216
- this.initTableData()
150
+ // 页面设计器预览页面时会用该方法
151
+ this.initTableData()
217
152
  }
218
- },
219
- mounted() {
220
- this.$nextTick(() => {
221
- this.tableHeight = window.innerHeight - 120
222
- })
223
- },
224
- methods: {
225
- ...ApiJs,
226
- getData() {
153
+ },
154
+ mounted() {
155
+ this.$nextTick(() => {
156
+ this.tableHeight = window.innerHeight - 120
157
+ })
158
+ },
159
+ methods: {
160
+ ...ApiJs,
161
+ getData() {
227
162
  if (this.beanName || this.entityName) {
228
163
  const params = {
229
164
  beanName: this.beanName,
230
165
  entityName: this.entityName,
231
166
  workflowId: this.workflowId
232
167
  }
233
- this.$http.post(window.$vueApp.config.globalProperties.baseURL + '/dsc/workflow-commons/instance-histories', params).then(data => {
234
- this.handleHistory(data)
235
- }).catch(error => {
236
- console.log(error)
237
- this.loaded = true
238
- })
168
+ this.$http
169
+ .post(window.$vueApp.config.globalProperties.baseURL + '/dsc/workflow-commons/instance-histories', params)
170
+ .then((data) => {
171
+ this.handleHistory(data)
172
+ })
173
+ .catch((error) => {
174
+ console.log(error)
175
+ this.loaded = true
176
+ })
239
177
  } else {
240
- this.$http.get(window.$vueApp.config.globalProperties.baseAPI + '/wf-editor/instance-histories/' + this.workflowId).then(data => {
241
- this.handleHistory(data)
242
- }).catch(error => {
243
- console.log(error)
244
- this.loaded = true
245
- })
178
+ this.$http
179
+ .get(window.$vueApp.config.globalProperties.baseAPI + '/wf-editor/instance-histories/' + this.workflowId)
180
+ .then((data) => {
181
+ this.handleHistory(data)
182
+ })
183
+ .catch((error) => {
184
+ console.log(error)
185
+ this.loaded = true
186
+ })
246
187
  }
247
188
  },
248
189
  handleHistory(data) {
@@ -263,7 +204,7 @@ export default {
263
204
  }
264
205
  },
265
206
  initTableData(data) {
266
- if(data) {
207
+ if (data) {
267
208
  this.histories = data.histories
268
209
  if (data && data.currentTasks) {
269
210
  this.histories = this.histories.concat(data.currentTasks)
@@ -341,7 +282,7 @@ export default {
341
282
  },
342
283
  getChildren(row, treeNode, resolve) {
343
284
  resolve(row.children)
344
- },
345
- },
285
+ }
286
+ }
346
287
  }
347
288
  </script>
@@ -1,15 +1,15 @@
1
1
  <template>
2
- <div ref="affixMainRef" class="yx-affix">
3
- <div v-if="isFixed" :style="placeholderStyle" class="yx-affix-placeholder" />
2
+ <div ref="affixMainRef" class="yx-affix" :style="{ height: isFixed ? placeholderStyle.height : undefined }">
4
3
  <div
5
4
  ref="affixRef"
5
+ v-resize="onResize"
6
6
  :style="affixStyle"
7
7
  :class="{
8
- 'yx-affix-content': true,
9
8
  'is-fixed': isFixed,
10
9
  'is-top': props.position === 'top',
11
10
  'is-bottom': props.position === 'bottom'
12
11
  }"
12
+ class="yx-affix-content"
13
13
  >
14
14
  <slot />
15
15
  </div>
@@ -75,6 +75,12 @@
75
75
  const scrollContainer = ref<HTMLElement | Window>(window);
76
76
  const adjustedOffset = ref<number>(0);
77
77
  const intervalId = ref<number | null>(null);
78
+
79
+ const onResize = (entry: { contentRect: { height: string | undefined; }; }) => {
80
+ if (entry.contentRect.height) {
81
+ placeholderStyle.value.height = entry.contentRect.height
82
+ }
83
+ }
78
84
 
79
85
  // 用于获取 距离顶部 底部 距离
80
86
  const getAffixOffset = (containerRect: DOMRect) => {
@@ -157,6 +163,7 @@
157
163
 
158
164
  // 更新固定状态
159
165
  const updateFixedState = (shouldFix: boolean, rect: DOMRect) => {
166
+ if (!rect.height) return
160
167
  if (shouldFix !== isFixed.value || placeholderStyle.value?.height !== `${rect.height}px`) {
161
168
  isFixed.value = shouldFix;
162
169
  emits('change', shouldFix);
@@ -228,7 +235,7 @@
228
235
 
229
236
  // 计算样式
230
237
  const affixStyle = computed(() => {
231
- if (isFixed.value) {
238
+ if (isFixed.value && affixRef.value?.offsetWidth) {
232
239
  return {
233
240
  position: 'fixed',
234
241
  width: `${affixRef.value?.offsetWidth}px`,
@@ -244,20 +251,20 @@
244
251
 
245
252
  <style lang="scss" scoped>
246
253
  .yx-affix {
247
- &:has(.yx-affix-content:empty) {
248
- display: none;
254
+ &:empty {
255
+ display: none;
249
256
  }
257
+
250
258
  .yx-affix-content {
259
+ &:empty {
260
+ display: none;
261
+ }
251
262
  &.is-fixed {
252
263
  &.is-top {
253
- & > .yx-fixed-box-container {
254
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
255
- }
264
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
256
265
  }
257
266
  &.is-bottom {
258
- & > .yx-fixed-box-container {
259
- box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
260
- }
267
+ box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
261
268
  }
262
269
  }
263
270
  }