@yugu-ui/flow-ui 0.1.27 → 0.1.28

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/dist/index.js +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6523,8 +6523,12 @@ var FlowActions_default = /* @__PURE__ */ defineComponent({
6523
6523
  const props = __props;
6524
6524
  /** 审批处理成功(同意/驳回接口调用成功) */
6525
6525
  const emit = __emit;
6526
- /** 是否展示同意/驳回:审批模式 + 可处理(can_handle 不为 false)+ 未处理(undo_finished=0) */
6527
- const canApprove = computed(() => props.approval !== false && props.data?.can_handle !== false && props.data?.undo_finished === 0);
6526
+ /** 是否展示同意/驳回:审批模式 + 可处理(can_handle 已由接口按当前用户计算,存在即采信;缺失时回落 undo_finished=0 保持旧接入行为) */
6527
+ const canApprove = computed(() => {
6528
+ if (props.approval === false || !props.data) return false;
6529
+ if (props.data.can_handle !== void 0) return props.data.can_handle === true;
6530
+ return props.data.undo_finished === 0;
6531
+ });
6528
6532
  /** 是否展示撤回:审批模式 + 未关闭撤回开关 + 可撤回(can_recall 不为 false;字段缺失时回落 undo_finished=0 保持旧接入行为) */
6529
6533
  const canRecall = computed(() => {
6530
6534
  if (props.approval === false || props.showWithdraw === false || !props.data) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yugu-ui/flow-ui",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "堉古商城流程组件库:流程设计器(config)/ 审批时间线(timeline)/ 流程列表(FlowList)",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",