adtec-core-package 3.2.7 → 3.2.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adtec-core-package",
3
- "version": "3.2.7",
3
+ "version": "3.2.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,5 +1,6 @@
1
1
  import { defineComponent, type App, type Component } from 'vue'
2
2
  import TDesign from 'tdesign-vue-next'
3
+ import { ElLoading } from 'element-plus'
3
4
  import { umoGlobalComponents } from '../../../prebuilt/umo-editor/umo-editor.js'
4
5
 
5
6
  const registeredApps = new WeakSet<App>()
@@ -75,9 +76,11 @@ export function installUmoEditorApp(app?: App | null) {
75
76
  } catch {
76
77
  // 宿主或兄弟插件已安装 TDesign
77
78
  }
78
- // 运行时“删除”UMO 内置 loading:空组件 + 空 $loading 服务(不碰 v-loading 指令,避免影响 Element Plus)
79
+ // 运行时“删除”UMO 内置 loading:空组件 + 空 $loading 服务
79
80
  app.component('TLoading', UmoLoadingNoop)
80
81
  app.config.globalProperties.$loading = umoLoadingServiceNoop
82
+ // 主应用先装 Element Plus、后懒装 TDesign 时,TDesign 会覆盖同名 v-loading 指令导致 EP 遮罩无法清除
83
+ app.directive('loading', ElLoading.directive)
81
84
  tdesignApps.add(app)
82
85
  }
83
86
 
@@ -219,7 +219,8 @@ const getStatus = (task: IWfTaskVo) => {
219
219
  return ''
220
220
  }
221
221
  }
222
- const compParam = ref()
222
+ // TaskOperation.handle 对齐:默认传 source=edit,业务页才能展示审核按钮;仅显式 view 保持只读
223
+ const compParam = ref([{ source: props.source === 'view' ? 'view' : 'edit' }])
223
224
  const resolveReviewBatch = async (task: IWfTaskVo) => {
224
225
  if (task.taskId) {
225
226
  const byTask = await workflowcommentApi.getBatchInfoByTaskId(task.taskId)
@@ -54,7 +54,7 @@ export async function showTodoDialog(
54
54
  await WujieVue.bus.$emit('openMenu', menu, propertyList)
55
55
  }
56
56
  } else {
57
- await WujieVue.bus.$emit('openMenu', menu)
57
+ await WujieVue.bus.$emit('openMenu', menu, propertyList)
58
58
  }
59
59
  //给子应用组件发送bus事件
60
60
  setTimeout(() => {