@yugu-ui/flow-ui 0.1.27 → 0.1.29

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.
@@ -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;
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.29",
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
+ }