@yugu-ui/flow-ui 0.1.28 → 0.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.
@@ -5,7 +5,7 @@ type __VLS_Props = {
5
5
  data?: FlowApprovalData;
6
6
  /** 是否审批处理模式(默认 true):false=纯查看,不渲染操作按钮与审批弹窗 */
7
7
  approval?: boolean;
8
- /** 是否展示撤回按钮(默认 true):撤回接口待接入期间可传 false 隐藏 */
8
+ /** 是否展示撤回按钮(默认 true):撤回接口已接入 /wflow/undo/recall,仅在宿主需要隐藏撤回入口时传 false */
9
9
  showWithdraw?: boolean;
10
10
  };
11
11
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
@@ -74,6 +74,8 @@ declare const __VLS_export: import('vue').DefineComponent<{
74
74
  selectedKey?: string | null;
75
75
  /** 人员折叠阈值:超出该人数时默认折叠展示,尾部显示展开/收起按钮 */
76
76
  collapseCount?: number;
77
+ /** 自选审批人校验未通过:仅 form 模式生效,选人组件显示错误态(红框) */
78
+ selfSelectInvalid?: boolean;
77
79
  } & {
78
80
  /** 表单模式自选审批人:已选人员(v-model:selectedUsers 双向绑定供父组件获取,未绑定时组件内自持) */
79
81
  selectedUsers?: SelectedItem[];
@@ -90,6 +92,8 @@ declare const __VLS_export: import('vue').DefineComponent<{
90
92
  selectedKey?: string | null;
91
93
  /** 人员折叠阈值:超出该人数时默认折叠展示,尾部显示展开/收起按钮 */
92
94
  collapseCount?: number;
95
+ /** 自选审批人校验未通过:仅 form 模式生效,选人组件显示错误态(红框) */
96
+ selfSelectInvalid?: boolean;
93
97
  } & {
94
98
  /** 表单模式自选审批人:已选人员(v-model:selectedUsers 双向绑定供父组件获取,未绑定时组件内自持) */
95
99
  selectedUsers?: SelectedItem[];
@@ -100,4 +104,5 @@ declare const __VLS_export: import('vue').DefineComponent<{
100
104
  mode: "display" | "select" | "form";
101
105
  selectedKey: string | null;
102
106
  collapseCount: number;
107
+ selfSelectInvalid: boolean;
103
108
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -14,6 +14,8 @@ type __VLS_Props = {
14
14
  title?: string;
15
15
  /** 标题状态标签:data 模式自动推导无需传;nodes 模式需外部传入 */
16
16
  statusTag?: FlowStatusTag;
17
+ /** 校验未通过的自选审批人节点名(与 selectedUsersMap 的 key 一致):form 模式下对应节点选人组件显示错误态 */
18
+ invalidNodeNames?: string[];
17
19
  };
18
20
  type __VLS_ModelProps = {
19
21
  /** 自选审批人节点已选人员(key=节点名) */
@@ -27,6 +29,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
27
29
  }>, {
28
30
  title: string;
29
31
  loading: boolean;
32
+ invalidNodeNames: string[];
30
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
34
  declare const _default: typeof __VLS_export;
32
35
  export default _default;
@@ -3,7 +3,7 @@ import { WflowTodoDetail, WflowTodoRecord } from '../adapter/wflow';
3
3
  /** display 模式原始详情数据:节点快照自带任务状态与每人处理结果 + status/finished 实例状态 */
4
4
  export type FlowTimelineData = Pick<WflowTodoDetail, 'nodes' | 'finished' | 'status'>;
5
5
  /** FlowActions 审批操作数据:FlowTimelineData 基础上补充 undo_id(同意/驳回接口入参)与 undo_finished(操作按钮显隐)——待办详情接口整份数据可直接传入 */
6
- export type FlowApprovalData = FlowTimelineData & Pick<WflowTodoDetail, 'undo_id' | 'undo_finished' | 'can_handle' | 'can_recall'>;
6
+ export type FlowApprovalData = FlowTimelineData & Pick<WflowTodoDetail, 'instance_id' | 'undo_id' | 'undo_finished' | 'can_handle' | 'can_recall'>;
7
7
  /** 流程状态枚举(接口 status:-1 已驳回 / 0 已撤销 / 1 审批中 / 2 已通过) */
8
8
  export declare enum FlowStatus {
9
9
  Rejected = -1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yugu-ui/flow-ui",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "description": "堉古商城流程组件库:流程设计器(config)/ 审批时间线(timeline)/ 流程列表(FlowList)",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -20,10 +20,6 @@
20
20
  },
21
21
  "./style.css": "./dist/style.css"
22
22
  },
23
- "scripts": {
24
- "build": "vite build --config vite.lib.config.ts",
25
- "typecheck": "vue-tsc --noEmit --skipLibCheck"
26
- },
27
23
  "peerDependencies": {
28
24
  "naive-ui": ">=2.40.0",
29
25
  "vue": ">=3.3.0"
@@ -54,5 +50,9 @@
54
50
  "publishConfig": {
55
51
  "access": "public",
56
52
  "registry": "https://registry.npmjs.org/"
53
+ },
54
+ "scripts": {
55
+ "build": "vite build --config vite.lib.config.ts",
56
+ "typecheck": "vue-tsc --noEmit --skipLibCheck"
57
57
  }
58
- }
58
+ }