@yugu-ui/flow-ui 0.1.7 → 0.1.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/dist/adapter/wflow.d.ts +1 -3
- package/dist/index.js +53 -77
- package/dist/style.css +125 -88
- package/dist/timeline/ApprovalModal.d.ts +2 -10
- package/dist/timeline/FlowNode.d.ts +2 -2
- package/package.json +1 -1
- package/dist/timeline/flowUserKey.d.ts +0 -18
package/dist/adapter/wflow.d.ts
CHANGED
|
@@ -232,14 +232,12 @@ export interface WflowUndoApproveParams {
|
|
|
232
232
|
/** 审批意见+附件组列表(CDN 文件),可为空,组内字段原样透传 */
|
|
233
233
|
attachments?: Array<Record<string, unknown>>;
|
|
234
234
|
}
|
|
235
|
-
/**
|
|
235
|
+
/** 审批驳回请求参数(意见与目标节点 ID 必填,整节点重置:目标节点起重置重审) */
|
|
236
236
|
export interface WflowUndoRejectParams {
|
|
237
237
|
/** 待办审批记录 ID(todo/list 或 todo/{instance_id} 返回的 undo_id) */
|
|
238
238
|
undo_id: number;
|
|
239
239
|
/** 驳回目标节点 ID(发起人 start 节点或历史审批人节点;驳回到发起人=终止流程,驳回到历史节点=该节点起重置重审) */
|
|
240
240
|
reject_node_id: string;
|
|
241
|
-
/** 驳回目标审批人 ID(可选,须为 reject_node_id 节点下的审批人;指定时仅该用户重新审批,同节点其他人保留结果) */
|
|
242
|
-
reject_user_id?: string | null;
|
|
243
241
|
/** 审批意见(驳回时必填,最长 255 字符) */
|
|
244
242
|
suggest: string;
|
|
245
243
|
/** 审批意见+附件组列表(CDN 文件),可为空,组内字段原样透传 */
|
package/dist/index.js
CHANGED
|
@@ -5411,19 +5411,9 @@ var FlowAvatar_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
5411
5411
|
}
|
|
5412
5412
|
}), [["__scopeId", "data-v-197c08a1"]]);
|
|
5413
5413
|
//#endregion
|
|
5414
|
-
//#region src/timeline/flowUserKey.ts
|
|
5415
|
-
/** 拼接人员选项 key:节点ID::人员ID(缺省回落名称) */
|
|
5416
|
-
function getUserKey(node, user) {
|
|
5417
|
-
return `${node.id ?? node.name}::${user.id ?? user.name}`;
|
|
5418
|
-
}
|
|
5419
|
-
/** 解析人员选项 key:返回 [节点 key, 人员 key] */
|
|
5420
|
-
function parseUserKey(key) {
|
|
5421
|
-
return key.split("::");
|
|
5422
|
-
}
|
|
5423
|
-
//#endregion
|
|
5424
5414
|
//#region src/timeline/FlowNode.vue?vue&type=script&setup=true&lang.ts
|
|
5425
5415
|
var _hoisted_1$7 = {
|
|
5426
|
-
key:
|
|
5416
|
+
key: 1,
|
|
5427
5417
|
class: "flow-node__time"
|
|
5428
5418
|
};
|
|
5429
5419
|
var _hoisted_2$5 = {
|
|
@@ -5454,8 +5444,17 @@ var _hoisted_11 = {
|
|
|
5454
5444
|
key: 2,
|
|
5455
5445
|
class: "flow-node__users"
|
|
5456
5446
|
};
|
|
5457
|
-
var _hoisted_12 =
|
|
5458
|
-
var _hoisted_13 = {
|
|
5447
|
+
var _hoisted_12 = { class: "flow-node__user-name" };
|
|
5448
|
+
var _hoisted_13 = {
|
|
5449
|
+
key: 0,
|
|
5450
|
+
class: "flow-node__user-check",
|
|
5451
|
+
viewBox: "0 0 24 24",
|
|
5452
|
+
fill: "none",
|
|
5453
|
+
stroke: "currentColor",
|
|
5454
|
+
"stroke-width": "3",
|
|
5455
|
+
"stroke-linecap": "round",
|
|
5456
|
+
"stroke-linejoin": "round"
|
|
5457
|
+
};
|
|
5459
5458
|
var _hoisted_14 = {
|
|
5460
5459
|
key: 1,
|
|
5461
5460
|
class: "flow-node__user-check flow-node__user-check--reject",
|
|
@@ -5498,7 +5497,7 @@ var _hoisted_24 = {
|
|
|
5498
5497
|
};
|
|
5499
5498
|
var _hoisted_25 = ["href", "onClick"];
|
|
5500
5499
|
var _hoisted_26 = {
|
|
5501
|
-
key:
|
|
5500
|
+
key: 2,
|
|
5502
5501
|
class: "flow-node__time"
|
|
5503
5502
|
};
|
|
5504
5503
|
/** 节点类型 → 标题固定文案(不展示具体节点名称) */
|
|
@@ -5553,9 +5552,9 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5553
5552
|
}),
|
|
5554
5553
|
emits: /* @__PURE__ */ mergeModels(["select"], ["update:selectedUsers"]),
|
|
5555
5554
|
setup(__props, { emit: __emit }) {
|
|
5556
|
-
/** 节点数据;mode:display=展示 / select
|
|
5555
|
+
/** 节点数据;mode:display=展示 / select=可选择(驳回目标,整节点点选)/ form=表单(发起流程,节点人员无状态、无审批弹层);selectedKey=当前选中节点(节点ID,缺省回落名称,仅 select 模式) */
|
|
5557
5556
|
const props = __props;
|
|
5558
|
-
/** select
|
|
5557
|
+
/** select 模式点击节点任意位置时上抛该节点选项 key(节点ID,缺省回落名称) */
|
|
5559
5558
|
const emit = __emit;
|
|
5560
5559
|
const themeVars = useThemeVars();
|
|
5561
5560
|
/** 流程配色 CSS 变量(同时注入节点与意见弹层,弹层 teleport 后颜色仍可用) */
|
|
@@ -5588,35 +5587,25 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5588
5587
|
if (record.rejectBy) return `被 ${record.rejectBy} 驳回`;
|
|
5589
5588
|
return "驳回";
|
|
5590
5589
|
}
|
|
5591
|
-
/**
|
|
5592
|
-
const
|
|
5593
|
-
/** select
|
|
5594
|
-
function
|
|
5595
|
-
if (props.mode
|
|
5596
|
-
if (props.node.type === "start") return true;
|
|
5597
|
-
return user.status === "done" && !user.pendingTask;
|
|
5598
|
-
}
|
|
5599
|
-
/** select 模式下人员是否为当前选中项 */
|
|
5600
|
-
function isUserSelected(user) {
|
|
5601
|
-
return props.selectedKey === getUserKey$1(user);
|
|
5602
|
-
}
|
|
5603
|
-
/** 点击人员:仅 select 模式且可作为驳回目标时上抛选项 key */
|
|
5604
|
-
function handleUserClick(user) {
|
|
5605
|
-
if (isUserSelectable(user)) emit("select", getUserKey$1(user));
|
|
5590
|
+
/** 节点选项 key(节点ID,缺省回落名称) */
|
|
5591
|
+
const getNodeKey = () => props.node.id ?? props.node.name;
|
|
5592
|
+
/** 点击节点:仅 select 模式上抛节点 key(父级弹窗再次点击同一节点取消选中) */
|
|
5593
|
+
function handleNodeClick() {
|
|
5594
|
+
if (props.mode === "select") emit("select", getNodeKey());
|
|
5606
5595
|
}
|
|
5596
|
+
/** select 模式下节点是否为当前选中项 */
|
|
5597
|
+
const isNodeSelected = computed(() => props.mode === "select" && props.selectedKey === getNodeKey());
|
|
5607
5598
|
/** 表单模式自选审批人:已选人员(v-model:selectedUsers 双向绑定供父组件获取,未绑定时组件内自持) */
|
|
5608
5599
|
const selfSelected = useModel(__props, "selectedUsers");
|
|
5609
5600
|
/** 发生时间按空格拆分为日期/时刻两行(无时间为空数组) */
|
|
5610
5601
|
const timeParts = computed(() => props.node.time ? props.node.time.split(" ") : []);
|
|
5611
5602
|
/** 人员折叠展开状态 */
|
|
5612
5603
|
const expanded = ref(false);
|
|
5613
|
-
/**
|
|
5614
|
-
const
|
|
5615
|
-
/** 人员总数(select 模式按可选人员统计,用于判断是否显示展开按钮) */
|
|
5616
|
-
const totalUsers = computed(() => baseUsers.value.length);
|
|
5604
|
+
/** 人员总数(用于判断是否显示展开按钮) */
|
|
5605
|
+
const totalUsers = computed(() => props.node.users.length);
|
|
5617
5606
|
/** 展示的人员列表:超出折叠人数时默认截取前 N 个,展开后全部展示 */
|
|
5618
5607
|
const visibleUsers = computed(() => {
|
|
5619
|
-
const users =
|
|
5608
|
+
const users = props.node.users;
|
|
5620
5609
|
if (!expanded.value && users.length > props.collapseCount) return users.slice(0, props.collapseCount);
|
|
5621
5610
|
return users;
|
|
5622
5611
|
});
|
|
@@ -5629,13 +5618,22 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5629
5618
|
return (_ctx, _cache) => {
|
|
5630
5619
|
const _component_NPopover = NPopover;
|
|
5631
5620
|
return openBlock(), createElementBlock("div", {
|
|
5632
|
-
class: normalizeClass(["flow-node__item", [
|
|
5633
|
-
|
|
5621
|
+
class: normalizeClass(["flow-node__item", [
|
|
5622
|
+
__props.mode === "display" ? `flow-node__item--${__props.node.status}` : __props.mode === "form" ? "flow-node__item--form" : void 0,
|
|
5623
|
+
__props.mode === "select" ? "flow-node__item--select" : void 0,
|
|
5624
|
+
isNodeSelected.value ? "flow-node__item--selected" : void 0
|
|
5625
|
+
]]),
|
|
5626
|
+
style: normalizeStyle(flowVars.value),
|
|
5627
|
+
onClick: handleNodeClick
|
|
5634
5628
|
}, [
|
|
5629
|
+
__props.mode === "select" ? (openBlock(), createElementBlock("span", {
|
|
5630
|
+
key: 0,
|
|
5631
|
+
class: normalizeClass(["flow-node__radio", { "flow-node__radio--checked": isNodeSelected.value }])
|
|
5632
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
5635
5633
|
__props.mode === "display" ? (openBlock(), createElementBlock("div", _hoisted_1$7, [(openBlock(true), createElementBlock(Fragment, null, renderList(timeParts.value, (part, i) => {
|
|
5636
5634
|
return openBlock(), createElementBlock("span", { key: i }, toDisplayString(part), 1);
|
|
5637
5635
|
}), 128))])) : createCommentVNode("", true),
|
|
5638
|
-
createElementVNode("div", { class: normalizeClass(["flow-node__badge", __props.mode === "
|
|
5636
|
+
createElementVNode("div", { class: normalizeClass(["flow-node__badge", __props.mode === "display" ? `flow-node__badge--${__props.node.status}` : `flow-node__badge--form-${__props.node.type}`]) }, [__props.node.type === "end" ? (openBlock(), createElementBlock("div", _hoisted_2$5)) : __props.mode === "display" && __props.node.status === "done" && __props.node.users.length ? (openBlock(), createBlock(FlowAvatar_default, {
|
|
5639
5637
|
key: 1,
|
|
5640
5638
|
class: "flow-node__badge-media",
|
|
5641
5639
|
name: __props.node.users[0].name,
|
|
@@ -5653,14 +5651,14 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5653
5651
|
key: i,
|
|
5654
5652
|
d
|
|
5655
5653
|
}, null, 8, _hoisted_5$2);
|
|
5656
|
-
}), 128))], 8, _hoisted_4$3))])), __props.mode
|
|
5654
|
+
}), 128))], 8, _hoisted_4$3))])), __props.mode === "display" && __props.node.status === "done" && __props.node.type !== "end" ? (openBlock(), createElementBlock("div", _hoisted_6, [createElementVNode("svg", {
|
|
5657
5655
|
viewBox: "0 0 24 24",
|
|
5658
5656
|
fill: "none",
|
|
5659
5657
|
stroke: "currentColor",
|
|
5660
5658
|
"stroke-width": "3.5",
|
|
5661
5659
|
"stroke-linecap": "round",
|
|
5662
5660
|
"stroke-linejoin": "round"
|
|
5663
|
-
}, [createElementVNode("path", { d: CHECK_PATH })])])) : __props.mode
|
|
5661
|
+
}, [createElementVNode("path", { d: CHECK_PATH })])])) : __props.mode === "display" && __props.node.status === "doing" ? (openBlock(), createElementBlock("div", _hoisted_7, [..._cache[3] || (_cache[3] = [createElementVNode("svg", {
|
|
5664
5662
|
viewBox: "0 0 24 24",
|
|
5665
5663
|
fill: "none",
|
|
5666
5664
|
stroke: "currentColor",
|
|
@@ -5692,33 +5690,16 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5692
5690
|
disabled: !isUserRecordVisible(user),
|
|
5693
5691
|
style: normalizeStyle(popoverStyle.value)
|
|
5694
5692
|
}, {
|
|
5695
|
-
trigger: withCtx(() => [createElementVNode("div", {
|
|
5696
|
-
class: normalizeClass(["flow-node__user", [
|
|
5697
|
-
__props.mode === "display" && user.status ? `flow-node__user--${user.status}` : void 0,
|
|
5698
|
-
isUserRecordVisible(user) ? "flow-node__user--has-record" : void 0,
|
|
5699
|
-
isUserSelectable(user) ? "flow-node__user--selectable" : void 0,
|
|
5700
|
-
isUserSelected(user) ? "flow-node__user--selected" : void 0
|
|
5701
|
-
]]),
|
|
5702
|
-
onClick: ($event) => handleUserClick(user)
|
|
5703
|
-
}, [
|
|
5693
|
+
trigger: withCtx(() => [createElementVNode("div", { class: normalizeClass(["flow-node__user", [__props.mode === "display" && user.status ? `flow-node__user--${user.status}` : void 0, isUserRecordVisible(user) ? "flow-node__user--has-record" : void 0]]) }, [
|
|
5704
5694
|
createVNode(FlowAvatar_default, {
|
|
5705
5695
|
class: "flow-node__user-avatar",
|
|
5706
5696
|
name: user.name,
|
|
5707
5697
|
avatar: user.avatar
|
|
5708
5698
|
}, null, 8, ["name", "avatar"]),
|
|
5709
|
-
createElementVNode("span",
|
|
5710
|
-
__props.mode === "display" && user.status === "done"
|
|
5711
|
-
key: 0,
|
|
5712
|
-
class: normalizeClass(["flow-node__user-check", { "flow-node__user-check--selected": isUserSelected(user) }]),
|
|
5713
|
-
viewBox: "0 0 24 24",
|
|
5714
|
-
fill: "none",
|
|
5715
|
-
stroke: "currentColor",
|
|
5716
|
-
"stroke-width": "3",
|
|
5717
|
-
"stroke-linecap": "round",
|
|
5718
|
-
"stroke-linejoin": "round"
|
|
5719
|
-
}, [createElementVNode("path", { d: CHECK_PATH })], 2)) : __props.mode === "display" && user.status === "rejected" ? (openBlock(), createElementBlock("svg", _hoisted_14, [..._cache[4] || (_cache[4] = [createElementVNode("path", { d: "M6 6l12 12M18 6 6 18" }, null, -1)])])) : createCommentVNode("", true),
|
|
5699
|
+
createElementVNode("span", _hoisted_12, toDisplayString(user.name), 1),
|
|
5700
|
+
__props.mode === "display" && user.status === "done" ? (openBlock(), createElementBlock("svg", _hoisted_13, [createElementVNode("path", { d: CHECK_PATH })])) : __props.mode === "display" && user.status === "rejected" ? (openBlock(), createElementBlock("svg", _hoisted_14, [..._cache[4] || (_cache[4] = [createElementVNode("path", { d: "M6 6l12 12M18 6 6 18" }, null, -1)])])) : createCommentVNode("", true),
|
|
5720
5701
|
isUserRecordVisible(user) ? (openBlock(), createElementBlock("svg", _hoisted_15, [createElementVNode("path", { d: CHEVRON_DOWN_PATH })])) : createCommentVNode("", true)
|
|
5721
|
-
],
|
|
5702
|
+
], 2)]),
|
|
5722
5703
|
default: withCtx(() => [createElementVNode("div", _hoisted_16, [createElementVNode("div", _hoisted_17, [createVNode(FlowAvatar_default, {
|
|
5723
5704
|
class: "flow-node__record-avatar",
|
|
5724
5705
|
name: user.name,
|
|
@@ -5781,7 +5762,7 @@ var FlowNode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__P
|
|
|
5781
5762
|
], 6);
|
|
5782
5763
|
};
|
|
5783
5764
|
}
|
|
5784
|
-
}), [["__scopeId", "data-v-
|
|
5765
|
+
}), [["__scopeId", "data-v-01c5b0f9"]]);
|
|
5785
5766
|
//#endregion
|
|
5786
5767
|
//#region src/timeline/ApprovalModal.vue?vue&type=script&setup=true&lang.ts
|
|
5787
5768
|
var _hoisted_1$6 = { class: "reject-node-list" };
|
|
@@ -5832,11 +5813,10 @@ var ApprovalModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
5832
5813
|
return base;
|
|
5833
5814
|
});
|
|
5834
5815
|
/**
|
|
5835
|
-
*
|
|
5816
|
+
* 驳回可选节点(仅驳回时计算,整节点重置只选节点):
|
|
5836
5817
|
* - 发起节点始终保留(驳回到发起人=拒绝整个申请)
|
|
5837
5818
|
* - 过滤未开始的节点
|
|
5838
|
-
* -
|
|
5839
|
-
* 人员级过滤由 FlowNode 选择模式处理:仅「已审批且无未处理任务行」人员可点选,或签未轮到、被驳回重置后待处理的人员隐藏
|
|
5819
|
+
* - 过滤进行中且无「已完成本轮审批」人员的节点(节点下无历史审批记录则不可作驳回目标)
|
|
5840
5820
|
*/
|
|
5841
5821
|
const filterNodes = computed(() => {
|
|
5842
5822
|
if (props.type !== "reject") return [];
|
|
@@ -5866,13 +5846,9 @@ var ApprovalModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
5866
5846
|
attachments: [...model.attachments]
|
|
5867
5847
|
};
|
|
5868
5848
|
if (props.type === "reject" && model.rejectTarget) {
|
|
5869
|
-
const
|
|
5870
|
-
const targetNode = props.nodes.find((item) => (item.id ?? item.name) === nodeKey);
|
|
5871
|
-
const targetUser = targetNode?.users.find((user) => String(user.id ?? user.name) === userKey);
|
|
5849
|
+
const targetNode = props.nodes.find((item) => (item.id ?? item.name) === model.rejectTarget);
|
|
5872
5850
|
payload.rejectNode = targetNode?.name;
|
|
5873
|
-
payload.rejectUser = targetUser?.name;
|
|
5874
5851
|
payload.rejectNodeId = targetNode?.id;
|
|
5875
|
-
if (targetNode?.type === "approver" && targetUser?.id != null) payload.rejectUserId = String(targetUser.id);
|
|
5876
5852
|
}
|
|
5877
5853
|
emit("submitted", payload, close);
|
|
5878
5854
|
}
|
|
@@ -5958,7 +5934,7 @@ var ApprovalModal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
5958
5934
|
}, 8, ["show", "title"]);
|
|
5959
5935
|
};
|
|
5960
5936
|
}
|
|
5961
|
-
}), [["__scopeId", "data-v-
|
|
5937
|
+
}), [["__scopeId", "data-v-4d9540ab"]]);
|
|
5962
5938
|
//#endregion
|
|
5963
5939
|
//#region src/base-ui/base-card-item.vue?vue&type=script&setup=true&lang.ts
|
|
5964
5940
|
var _hoisted_1$5 = { class: "header" };
|
|
@@ -6069,13 +6045,14 @@ function mapTimelineNodes(data) {
|
|
|
6069
6045
|
const users = node.users.map((user) => {
|
|
6070
6046
|
const records = toUserRecords(user, instanceRejected);
|
|
6071
6047
|
const rawRows = Array.isArray(user.records) ? user.records : [];
|
|
6048
|
+
const hasPendingRow = rawRows.some((record) => record.result === 0 && record.finished === 0);
|
|
6072
6049
|
const processedRows = rawRows.filter((record) => record.result === 2 || record.result === 3 || record.is_reject === 1);
|
|
6073
|
-
const status = processedRows.length ? isLatestRowsReject(processedRows) ? "rejected" : "done" : nodeStatus === "doing" ? "doing" : nodeStatus === "done" && node.mode === "orsign" ? "pending" : nodeStatus;
|
|
6050
|
+
const status = hasPendingRow ? nodeStatus === "doing" ? "doing" : "pending" : processedRows.length ? isLatestRowsReject(processedRows) ? "rejected" : "done" : nodeStatus === "doing" ? "doing" : nodeStatus === "done" && node.mode === "orsign" ? "pending" : nodeStatus;
|
|
6074
6051
|
return {
|
|
6075
6052
|
id: user.id,
|
|
6076
6053
|
name: user.name,
|
|
6077
6054
|
status,
|
|
6078
|
-
pendingTask:
|
|
6055
|
+
pendingTask: hasPendingRow,
|
|
6079
6056
|
...records.length ? { records } : {}
|
|
6080
6057
|
};
|
|
6081
6058
|
});
|
|
@@ -6604,7 +6581,7 @@ var FlowLayout_default = /* @__PURE__ */ defineComponent({
|
|
|
6604
6581
|
function handleReject() {
|
|
6605
6582
|
openApproval("reject");
|
|
6606
6583
|
}
|
|
6607
|
-
/** 审批弹窗提交:approve 调 /wflow/undo/approve(意见附件可空)、reject 调 /wflow/undo/reject(意见与目标节点 ID
|
|
6584
|
+
/** 审批弹窗提交:approve 调 /wflow/undo/approve(意见附件可空)、reject 调 /wflow/undo/reject(意见与目标节点 ID 必传,整节点重置);成功 done() 关闭弹窗并 emit success 通知页面刷新详情,失败 done(false) 保持弹窗打开并结束确认按钮 loading */
|
|
6608
6585
|
async function handleApprovalSubmit(value, done) {
|
|
6609
6586
|
const undoId = props.timelineData?.undo_id;
|
|
6610
6587
|
if (!undoId) {
|
|
@@ -6631,13 +6608,12 @@ var FlowLayout_default = /* @__PURE__ */ defineComponent({
|
|
|
6631
6608
|
const { error } = await fetchWflowUndoReject({
|
|
6632
6609
|
undo_id: undoId,
|
|
6633
6610
|
reject_node_id: value.rejectNodeId,
|
|
6634
|
-
reject_user_id: value.rejectUserId ?? null,
|
|
6635
6611
|
suggest: value.opinion,
|
|
6636
6612
|
attachments
|
|
6637
6613
|
});
|
|
6638
6614
|
done(!error);
|
|
6639
6615
|
if (error) return;
|
|
6640
|
-
window.$message?.success(
|
|
6616
|
+
window.$message?.success(`已驳回至 ${value.rejectNode}`);
|
|
6641
6617
|
}
|
|
6642
6618
|
emit("success");
|
|
6643
6619
|
}
|
package/dist/style.css
CHANGED
|
@@ -1660,7 +1660,7 @@ to {
|
|
|
1660
1660
|
|
|
1661
1661
|
/* Developed collaboratively with vscode - 改动代码行数: 1行 */
|
|
1662
1662
|
/* 单个节点:展示模式时间列 72 + 间距 12 + 图标 36,选择模式时间在最右端 */
|
|
1663
|
-
.flow-node__item[data-v-
|
|
1663
|
+
.flow-node__item[data-v-01c5b0f9] {
|
|
1664
1664
|
position: relative;
|
|
1665
1665
|
display: flex;
|
|
1666
1666
|
align-items: flex-start;
|
|
@@ -1668,13 +1668,13 @@ to {
|
|
|
1668
1668
|
/* 底部间距同时作为连接线的延伸区,使线段接到下一个节点图标顶部 */
|
|
1669
1669
|
padding-bottom: 28px;
|
|
1670
1670
|
}
|
|
1671
|
-
.flow-node__item[data-v-
|
|
1671
|
+
.flow-node__item[data-v-01c5b0f9]:last-child {
|
|
1672
1672
|
padding-bottom: 0;
|
|
1673
1673
|
}
|
|
1674
|
-
.flow-node__item[data-v-
|
|
1674
|
+
.flow-node__item[data-v-01c5b0f9] {
|
|
1675
1675
|
/* 节点连接线:从图标下方延伸到项底部,与下一项首尾相接 */
|
|
1676
1676
|
}
|
|
1677
|
-
.flow-node__item[data-v-
|
|
1677
|
+
.flow-node__item[data-v-01c5b0f9]::before {
|
|
1678
1678
|
content: "";
|
|
1679
1679
|
position: absolute;
|
|
1680
1680
|
top: 40px; /* 图标 36 + 间距 4 */
|
|
@@ -1683,31 +1683,55 @@ to {
|
|
|
1683
1683
|
width: 2px;
|
|
1684
1684
|
background: var(--flow-border-color);
|
|
1685
1685
|
}
|
|
1686
|
-
.flow-node__item[data-v-
|
|
1686
|
+
.flow-node__item[data-v-01c5b0f9]:last-child::before {
|
|
1687
1687
|
content: none;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
/* Developed collaboratively with vscode - 改动代码行数: 8行 */
|
|
1691
1691
|
/* 选择/表单模式:无左侧时间列,连接线随之对齐图标中心 */
|
|
1692
|
-
.flow-node__item--select
|
|
1693
|
-
|
|
1692
|
+
/* Developed collaboratively with vscode - 改动代码行数: 删除4行(select 连接线 left:45px 独立规则删除,随内边距化合并进下方 .flow-node__item--select 块统一调整偏移) */
|
|
1693
|
+
/* Developed collaboratively with vscode - 改动代码行数: 3行改动(select 模式节点左侧新增单选框列后图标整体右移 16+12=28px:select 连接线改 45px 对齐图标中心,form 保持 17px 不变) */
|
|
1694
|
+
.flow-node__item--form[data-v-01c5b0f9]::before {
|
|
1694
1695
|
left: 17px; /* 图标半径 18 - 线宽一半 1 */
|
|
1695
1696
|
}
|
|
1696
|
-
|
|
1697
|
+
|
|
1698
|
+
/* Developed collaboratively with vscode - 改动代码行数: 18行新增(select 模式节点左侧单选框:未选中灰描边圆圈,选中主色描边+内圆点;margin-top 10px 与 36px 图标垂直居中) */
|
|
1699
|
+
/* select 模式:节点左侧单选框 */
|
|
1700
|
+
.flow-node__radio[data-v-01c5b0f9] {
|
|
1701
|
+
flex-shrink: 0;
|
|
1702
|
+
width: 16px;
|
|
1703
|
+
height: 16px;
|
|
1704
|
+
margin-top: 10px;
|
|
1705
|
+
border: 1px solid var(--flow-border-color);
|
|
1706
|
+
border-radius: 50%;
|
|
1707
|
+
transition: border-color 0.2s;
|
|
1708
|
+
}
|
|
1709
|
+
.flow-node__radio--checked[data-v-01c5b0f9] {
|
|
1710
|
+
position: relative;
|
|
1711
|
+
border-color: var(--flow-primary-color);
|
|
1712
|
+
}
|
|
1713
|
+
.flow-node__radio--checked[data-v-01c5b0f9]::after {
|
|
1714
|
+
content: "";
|
|
1715
|
+
position: absolute;
|
|
1716
|
+
inset: 3px;
|
|
1717
|
+
border-radius: 50%;
|
|
1718
|
+
background: var(--flow-primary-color);
|
|
1719
|
+
}
|
|
1720
|
+
.flow-node__item--select .flow-node__time[data-v-01c5b0f9] {
|
|
1697
1721
|
align-items: flex-end;
|
|
1698
1722
|
}
|
|
1699
1723
|
|
|
1700
1724
|
/* 状态 → 节点名称配色:已完成-主文字 / 进行中-橙黄 / 未开始-弱文字 */
|
|
1701
|
-
.flow-node__item--doing .flow-node__name[data-v-
|
|
1725
|
+
.flow-node__item--doing .flow-node__name[data-v-01c5b0f9] {
|
|
1702
1726
|
color: #e6a23c;
|
|
1703
1727
|
}
|
|
1704
|
-
.flow-node__item--pending .flow-node__name[data-v-
|
|
1728
|
+
.flow-node__item--pending .flow-node__name[data-v-01c5b0f9] {
|
|
1705
1729
|
color: var(--flow-text-color-3);
|
|
1706
1730
|
}
|
|
1707
1731
|
|
|
1708
1732
|
/* Developed collaboratively with vscode - 改动代码行数: 1行 */
|
|
1709
1733
|
/* 发生时间:日期、时刻两行(选择模式下移至最右侧并右对齐) */
|
|
1710
|
-
.flow-node__time[data-v-
|
|
1734
|
+
.flow-node__time[data-v-01c5b0f9] {
|
|
1711
1735
|
display: flex;
|
|
1712
1736
|
flex-direction: column;
|
|
1713
1737
|
flex-shrink: 0;
|
|
@@ -1719,7 +1743,7 @@ to {
|
|
|
1719
1743
|
}
|
|
1720
1744
|
|
|
1721
1745
|
/* 节点图标:36 圆形头像或类型图标 */
|
|
1722
|
-
.flow-node__badge[data-v-
|
|
1746
|
+
.flow-node__badge[data-v-01c5b0f9] {
|
|
1723
1747
|
position: relative;
|
|
1724
1748
|
flex-shrink: 0;
|
|
1725
1749
|
width: 36px;
|
|
@@ -1727,7 +1751,7 @@ to {
|
|
|
1727
1751
|
}
|
|
1728
1752
|
|
|
1729
1753
|
/* 结束节点:与连接线同色的灰色实心圆点 */
|
|
1730
|
-
.flow-node__badge-dot[data-v-
|
|
1754
|
+
.flow-node__badge-dot[data-v-01c5b0f9] {
|
|
1731
1755
|
position: absolute;
|
|
1732
1756
|
top: 50%;
|
|
1733
1757
|
left: 50%;
|
|
@@ -1740,14 +1764,14 @@ to {
|
|
|
1740
1764
|
|
|
1741
1765
|
/* Developed collaboratively with vscode - 改动代码行数: 4行 */
|
|
1742
1766
|
/* 流程全部完成时结束节点圆点变绿(结束节点不放对勾徽标,圆点颜色即完成标识) */
|
|
1743
|
-
.flow-node__badge--done .flow-node__badge-dot[data-v-
|
|
1767
|
+
.flow-node__badge--done .flow-node__badge-dot[data-v-01c5b0f9] {
|
|
1744
1768
|
background: var(--flow-success-color);
|
|
1745
1769
|
}
|
|
1746
1770
|
|
|
1747
1771
|
/* Developed collaboratively with vscode - 改动代码行数: 8行 */
|
|
1748
1772
|
/* 基础视觉(圆形/居中/白字)由 FlowAvatar 提供,此处控制尺寸与字号;
|
|
1749
1773
|
类型图标容器为原生 div(非 FlowAvatar),需在此补齐居中与圆形 */
|
|
1750
|
-
.flow-node__badge-media[data-v-
|
|
1774
|
+
.flow-node__badge-media[data-v-01c5b0f9] {
|
|
1751
1775
|
display: flex;
|
|
1752
1776
|
align-items: center;
|
|
1753
1777
|
justify-content: center;
|
|
@@ -1758,47 +1782,47 @@ to {
|
|
|
1758
1782
|
}
|
|
1759
1783
|
|
|
1760
1784
|
/* Developed collaboratively with vscode - 改动代码行数: 3行改动(doing 图标橙统一为主题变量并补 color-mix 底色:原 #e6a23c/rgba 单写与 doing 胶囊的主题橙 #D25F00 分裂为两种橙,改后同语义同色且跟随主题) */
|
|
1761
|
-
.flow-node__badge--doing .flow-node__badge-media--type[data-v-
|
|
1785
|
+
.flow-node__badge--doing .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1762
1786
|
color: var(--flow-warning-color);
|
|
1763
1787
|
background: color-mix(in srgb, var(--flow-warning-color) 15%, transparent);
|
|
1764
1788
|
}
|
|
1765
1789
|
|
|
1766
1790
|
/* Developed collaboratively with vscode - 改动代码行数: 1行改动(删除 rgba 兜底行仅保留 color-mix:当前主题下渲染不变) */
|
|
1767
|
-
.flow-node__badge--pending .flow-node__badge-media--type[data-v-
|
|
1768
|
-
.flow-node__badge--done .flow-node__badge-media--type[data-v-
|
|
1791
|
+
.flow-node__badge--pending .flow-node__badge-media--type[data-v-01c5b0f9],
|
|
1792
|
+
.flow-node__badge--done .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1769
1793
|
color: var(--flow-text-color-3);
|
|
1770
1794
|
background: color-mix(in srgb, var(--flow-text-color-3) 14%, transparent);
|
|
1771
1795
|
}
|
|
1772
1796
|
|
|
1773
1797
|
/* Developed collaboratively with vscode - 改动代码行数: 5行新增(驳回节点图标底色:与 doing/pending 同构的圆形淡红底,补齐 rejected 状态缺失的背景规则——此前驳回到发起人时发起人类型图标透明无圆形背景) */
|
|
1774
|
-
.flow-node__badge--rejected .flow-node__badge-media--type[data-v-
|
|
1798
|
+
.flow-node__badge--rejected .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1775
1799
|
color: var(--flow-error-color);
|
|
1776
1800
|
background: color-mix(in srgb, var(--flow-error-color) 15%, transparent);
|
|
1777
1801
|
}
|
|
1778
1802
|
|
|
1779
1803
|
/* Developed collaboratively with vscode - 改动代码行数: 15行 */
|
|
1780
1804
|
/* 表单模式(发起流程):图标背景色跟随节点类型,与流程配置画布节点配色一致(发起=success 绿 / 审批=primary 蓝 / 抄送=warning 橙;结束节点仍为灰点) */
|
|
1781
|
-
.flow-node__badge--form-start .flow-node__badge-media--type[data-v-
|
|
1805
|
+
.flow-node__badge--form-start .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1782
1806
|
color: #fff;
|
|
1783
1807
|
background: var(--flow-success-color);
|
|
1784
1808
|
}
|
|
1785
|
-
.flow-node__badge--form-approver .flow-node__badge-media--type[data-v-
|
|
1809
|
+
.flow-node__badge--form-approver .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1786
1810
|
color: #fff;
|
|
1787
1811
|
background: var(--flow-primary-color);
|
|
1788
1812
|
}
|
|
1789
|
-
.flow-node__badge--form-cc .flow-node__badge-media--type[data-v-
|
|
1813
|
+
.flow-node__badge--form-cc .flow-node__badge-media--type[data-v-01c5b0f9] {
|
|
1790
1814
|
color: #fff;
|
|
1791
1815
|
background: var(--flow-warning-color);
|
|
1792
1816
|
}
|
|
1793
|
-
.flow-node__badge-icon[data-v-
|
|
1817
|
+
.flow-node__badge-icon[data-v-01c5b0f9] {
|
|
1794
1818
|
width: 18px;
|
|
1795
1819
|
height: 18px;
|
|
1796
1820
|
}
|
|
1797
1821
|
|
|
1798
1822
|
/* Developed collaboratively with vscode - 改动代码行数: 8行改动(完成/时钟角标共享定位与外观:position/偏移/尺寸/圆角/白字/白描边 11 条声明合并为共享选择器,差异仅各自底色与图标尺寸,计算结果不变) */
|
|
1799
1823
|
/* 已完成/进行中角标:图标右下角的圆形徽标,白色描边与头像分离(差异仅底色与图标尺寸) */
|
|
1800
|
-
.flow-node__badge-check[data-v-
|
|
1801
|
-
.flow-node__badge-clock[data-v-
|
|
1824
|
+
.flow-node__badge-check[data-v-01c5b0f9],
|
|
1825
|
+
.flow-node__badge-clock[data-v-01c5b0f9] {
|
|
1802
1826
|
position: absolute;
|
|
1803
1827
|
right: -3px;
|
|
1804
1828
|
bottom: -3px;
|
|
@@ -1814,30 +1838,30 @@ to {
|
|
|
1814
1838
|
|
|
1815
1839
|
/* Developed collaboratively with vscode - 改动代码行数: 1行改动(删除永不生效的变量兜底 #009a29:flowVars 在组件根与弹层均注入,变量必存在) */
|
|
1816
1840
|
/* 已完成角标:绿色圆形对勾 */
|
|
1817
|
-
.flow-node__badge-check[data-v-
|
|
1841
|
+
.flow-node__badge-check[data-v-01c5b0f9] {
|
|
1818
1842
|
background: var(--flow-success-color);
|
|
1819
1843
|
}
|
|
1820
|
-
.flow-node__badge-check svg[data-v-
|
|
1844
|
+
.flow-node__badge-check svg[data-v-01c5b0f9] {
|
|
1821
1845
|
width: 8px;
|
|
1822
1846
|
height: 8px;
|
|
1823
1847
|
}
|
|
1824
1848
|
|
|
1825
1849
|
/* Developed collaboratively with vscode - 改动代码行数: 1行改动(时钟角标橙统一为主题 warning 变量,与 doing 胶囊/图标同色且跟随主题) */
|
|
1826
1850
|
/* 进行中角标:橙色圆形时钟,与完成角标同位呼应 */
|
|
1827
|
-
.flow-node__badge-clock[data-v-
|
|
1851
|
+
.flow-node__badge-clock[data-v-01c5b0f9] {
|
|
1828
1852
|
background: var(--flow-warning-color);
|
|
1829
1853
|
}
|
|
1830
|
-
.flow-node__badge-clock svg[data-v-
|
|
1854
|
+
.flow-node__badge-clock svg[data-v-01c5b0f9] {
|
|
1831
1855
|
width: 9px;
|
|
1832
1856
|
height: 9px;
|
|
1833
1857
|
}
|
|
1834
1858
|
|
|
1835
1859
|
/* 节点内容 */
|
|
1836
|
-
.flow-node__main[data-v-
|
|
1860
|
+
.flow-node__main[data-v-01c5b0f9] {
|
|
1837
1861
|
flex: 1;
|
|
1838
1862
|
min-width: 0;
|
|
1839
1863
|
}
|
|
1840
|
-
.flow-node__name[data-v-
|
|
1864
|
+
.flow-node__name[data-v-01c5b0f9] {
|
|
1841
1865
|
font-size: 14px;
|
|
1842
1866
|
font-weight: 600;
|
|
1843
1867
|
line-height: 1.5;
|
|
@@ -1845,7 +1869,7 @@ to {
|
|
|
1845
1869
|
}
|
|
1846
1870
|
|
|
1847
1871
|
/* 人员列表:胶囊形式,淡背景 + 边框,与正文区分 */
|
|
1848
|
-
.flow-node__users[data-v-
|
|
1872
|
+
.flow-node__users[data-v-01c5b0f9] {
|
|
1849
1873
|
display: flex;
|
|
1850
1874
|
flex-wrap: wrap;
|
|
1851
1875
|
gap: 8px;
|
|
@@ -1854,13 +1878,13 @@ to {
|
|
|
1854
1878
|
|
|
1855
1879
|
/* Developed collaboratively with vscode - 改动代码行数: 5行 */
|
|
1856
1880
|
/* 表单模式自选审批人:选择器占满内容行,与人员列表同间距 */
|
|
1857
|
-
.flow-node__self-select[data-v-
|
|
1881
|
+
.flow-node__self-select[data-v-01c5b0f9] {
|
|
1858
1882
|
width: 100%;
|
|
1859
1883
|
margin-top: 8px;
|
|
1860
1884
|
}
|
|
1861
1885
|
|
|
1862
1886
|
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(删除 rgba 兜底行仅保留 color-mix:当前主题下渲染不变) */
|
|
1863
|
-
.flow-node__user[data-v-
|
|
1887
|
+
.flow-node__user[data-v-01c5b0f9] {
|
|
1864
1888
|
display: flex;
|
|
1865
1889
|
align-items: center;
|
|
1866
1890
|
gap: 6px;
|
|
@@ -1873,19 +1897,19 @@ to {
|
|
|
1873
1897
|
|
|
1874
1898
|
/* Developed collaboratively with vscode - 改动代码行数: 4行 */
|
|
1875
1899
|
/* 基础视觉由 FlowAvatar 提供,此处仅控制尺寸与字号 */
|
|
1876
|
-
.flow-node__user-avatar[data-v-
|
|
1900
|
+
.flow-node__user-avatar[data-v-01c5b0f9] {
|
|
1877
1901
|
width: 20px;
|
|
1878
1902
|
height: 20px;
|
|
1879
1903
|
font-size: 11px;
|
|
1880
1904
|
}
|
|
1881
|
-
.flow-node__user-name[data-v-
|
|
1905
|
+
.flow-node__user-name[data-v-01c5b0f9] {
|
|
1882
1906
|
font-size: 12px;
|
|
1883
1907
|
color: var(--flow-text-color-2);
|
|
1884
1908
|
}
|
|
1885
1909
|
|
|
1886
1910
|
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(删除 rgba 兜底行仅保留 color-mix:项目主题 success 即 #009A29,当前渲染不变) */
|
|
1887
1911
|
/* 已审批人员:淡绿胶囊 */
|
|
1888
|
-
.flow-node__user--done[data-v-
|
|
1912
|
+
.flow-node__user--done[data-v-01c5b0f9] {
|
|
1889
1913
|
border-color: color-mix(in srgb, var(--flow-success-color) 30%, transparent);
|
|
1890
1914
|
background: color-mix(in srgb, var(--flow-success-color) 6%, transparent);
|
|
1891
1915
|
}
|
|
@@ -1893,46 +1917,37 @@ to {
|
|
|
1893
1917
|
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(审批中人员胶囊背景与边框同色系:此前仅换边框色、背景仍是基础灰底,补淡橙背景保持一致) */
|
|
1894
1918
|
/* Developed collaboratively with vscode - 改动代码行数: 4行改动(删除 rgba 兜底行仅保留 color-mix,并删除永不生效的 #e6a23c 兜底——新旧浏览器此前 rgba 亮橙与 color-mix 主题橙 #D25F00 两色分裂,删后统一为主题橙) */
|
|
1895
1919
|
/* 审批中人员:柔和橙黄边框 + 同色淡背景 */
|
|
1896
|
-
.flow-node__user--doing[data-v-
|
|
1920
|
+
.flow-node__user--doing[data-v-01c5b0f9] {
|
|
1897
1921
|
border-color: color-mix(in srgb, var(--flow-warning-color) 40%, transparent);
|
|
1898
1922
|
background: color-mix(in srgb, var(--flow-warning-color) 8%, transparent);
|
|
1899
1923
|
}
|
|
1900
1924
|
|
|
1901
1925
|
/* Developed collaboratively with vscode - 改动代码行数: 7行 */
|
|
1902
1926
|
/* 驳回人员:淡红色边框 + 淡红背景(节点内该人员最后一条操作记录为驳回) */
|
|
1903
|
-
.flow-node__user--rejected[data-v-
|
|
1927
|
+
.flow-node__user--rejected[data-v-01c5b0f9] {
|
|
1904
1928
|
border-color: color-mix(in srgb, var(--flow-error-color) 40%, transparent);
|
|
1905
1929
|
background: color-mix(in srgb, var(--flow-error-color) 8%, transparent);
|
|
1906
1930
|
}
|
|
1907
1931
|
|
|
1908
1932
|
/* Developed collaboratively with vscode - 改动代码行数: 1行改动(删除永不生效的变量兜底 #009a29) */
|
|
1909
|
-
.flow-node__user-check[data-v-
|
|
1933
|
+
.flow-node__user-check[data-v-01c5b0f9] {
|
|
1910
1934
|
width: 11px;
|
|
1911
1935
|
height: 11px;
|
|
1912
1936
|
flex-shrink: 0;
|
|
1913
1937
|
color: var(--flow-success-color);
|
|
1914
1938
|
}
|
|
1915
1939
|
|
|
1916
|
-
/* Developed collaboratively with vscode - 改动代码行数:
|
|
1917
|
-
/*
|
|
1918
|
-
|
|
1919
|
-
.flow-node__user--
|
|
1940
|
+
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(流程变更驳回只选节点不到人:人员级可选样式 --selectable 取消,共享可点选择器仅保留展示模式 --has-record) */
|
|
1941
|
+
/* Developed collaboratively with vscode - 改动代码行数: 删除8行(删除 --selectable 差异块及其历史注记:人员级驳回目标选择已移除) */
|
|
1942
|
+
/* 可点击人员(展示模式有记录可查看):hover 主色提示 */
|
|
1943
|
+
.flow-node__user--has-record[data-v-01c5b0f9] {
|
|
1920
1944
|
cursor: pointer;
|
|
1921
1945
|
transition: border-color 0.2s;
|
|
1922
1946
|
}
|
|
1923
|
-
.flow-node__user--has-record[data-v-
|
|
1924
|
-
.flow-node__user--selectable[data-v-bc5f6c3a]:hover {
|
|
1947
|
+
.flow-node__user--has-record[data-v-01c5b0f9]:hover {
|
|
1925
1948
|
border-color: var(--flow-primary-color);
|
|
1926
1949
|
}
|
|
1927
|
-
|
|
1928
|
-
/* Developed collaboratively with vscode - 改动代码行数: 8行移动(--selectable 差异块上移紧邻共享可点样式块:纯位置调整,声明覆盖顺序不变,输出一致) */
|
|
1929
|
-
/* Developed collaboratively with vscode - 改动代码行数: 22行 */
|
|
1930
|
-
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(cursor 与 hover 边框已并入上方共享选择器,此处仅保留 select 模式差异:背景色同步过渡——同特异性靠后声明生效,与原合并结果一致) */
|
|
1931
|
-
/* select 模式:可作为驳回目标的人员,背景色同步过渡 */
|
|
1932
|
-
.flow-node__user--selectable[data-v-bc5f6c3a] {
|
|
1933
|
-
transition: border-color 0.2s, background-color 0.2s;
|
|
1934
|
-
}
|
|
1935
|
-
.flow-node__user-arrow[data-v-bc5f6c3a] {
|
|
1950
|
+
.flow-node__user-arrow[data-v-01c5b0f9] {
|
|
1936
1951
|
flex-shrink: 0;
|
|
1937
1952
|
width: 10px;
|
|
1938
1953
|
height: 10px;
|
|
@@ -1941,7 +1956,7 @@ to {
|
|
|
1941
1956
|
|
|
1942
1957
|
/* Developed collaboratively with vscode - 改动代码行数: 23行 */
|
|
1943
1958
|
/* 人员折叠:展开/收起按钮(跟随人员列表末尾的浅主色胶囊,hover 加深) */
|
|
1944
|
-
.flow-node__more[data-v-
|
|
1959
|
+
.flow-node__more[data-v-01c5b0f9] {
|
|
1945
1960
|
display: inline-flex;
|
|
1946
1961
|
align-items: center;
|
|
1947
1962
|
gap: 4px;
|
|
@@ -1955,40 +1970,62 @@ to {
|
|
|
1955
1970
|
user-select: none;
|
|
1956
1971
|
transition: background-color 0.2s;
|
|
1957
1972
|
}
|
|
1958
|
-
.flow-node__more[data-v-
|
|
1973
|
+
.flow-node__more[data-v-01c5b0f9]:hover {
|
|
1959
1974
|
background: color-mix(in srgb, var(--flow-primary-color) 16%, transparent);
|
|
1960
1975
|
}
|
|
1961
1976
|
|
|
1962
1977
|
/* 箭头图标:展开时旋转朝上 */
|
|
1963
|
-
.flow-node__more-icon[data-v-
|
|
1978
|
+
.flow-node__more-icon[data-v-01c5b0f9] {
|
|
1964
1979
|
width: 12px;
|
|
1965
1980
|
height: 12px;
|
|
1966
1981
|
transition: transform 0.2s;
|
|
1967
1982
|
}
|
|
1968
|
-
.flow-node__more-icon--expanded[data-v-
|
|
1983
|
+
.flow-node__more-icon--expanded[data-v-01c5b0f9] {
|
|
1969
1984
|
transform: rotate(180deg);
|
|
1970
1985
|
}
|
|
1971
1986
|
|
|
1972
1987
|
/* Developed collaboratively with vscode - 改动代码行数: 删除6行(移除 .flow-node__user--selectable 的重复样式块:与上方上移后的正主块逐字相同,系移动后未删的残留,编译产物不变) */
|
|
1973
1988
|
/* Developed collaboratively with vscode - 改动代码行数: 4行(移至 .flow-node__user-check 基础规则之后:同特异性靠后者覆盖,修复驳回 X 被基础绿色 color 覆盖的问题) */
|
|
1974
1989
|
/* 驳回人员的 X 图标:红色 */
|
|
1975
|
-
.flow-node__user-check--reject[data-v-
|
|
1990
|
+
.flow-node__user-check--reject[data-v-01c5b0f9] {
|
|
1976
1991
|
color: var(--flow-error-color);
|
|
1977
1992
|
}
|
|
1978
1993
|
|
|
1979
|
-
/*
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1994
|
+
/* Developed collaboratively with vscode - 改动代码行数: 删除12行(流程变更驳回只选节点不到人:删除人员级选中样式 --user--selected 与 --user-check--selected,选中高亮上移至节点级) */
|
|
1995
|
+
/* Developed collaboratively with vscode - 改动代码行数: 19行新增(select 模式整节点点选:节点容器 hover 淡主色底提示可点;选中态主色淡底+节点名主色常显——置文件后部以覆盖 --doing 的节点名橙色,并用 :hover 同规则避免悬停被 --select:hover 抢色) */
|
|
1996
|
+
/* Developed collaboratively with vscode - 改动代码行数: 14行改动(选中/hover 背景不再贴边:容器加 8px 12px 内边距留白;连接线延伸区从 padding-bottom 改由 margin-bottom 28px 承载使背景盒不覆盖线段——::before 相应改 top 48(顶内边距 8+图标 36+间距 4)/bottom -36(跨 28 外边距+下节点 8 顶内边距接到下一图标顶)/left 57(左内边距 12+单选框 16+间距 12+图标半径 18-线宽一半 1),45px 独立规则随之删除;末项无线段延伸区故 margin 清零、padding-bottom 恢复 8px 背景内边距) */
|
|
1997
|
+
/* select 模式:整节点可点选 */
|
|
1998
|
+
.flow-node__item--select[data-v-01c5b0f9] {
|
|
1999
|
+
cursor: pointer;
|
|
2000
|
+
padding: 8px 12px;
|
|
2001
|
+
margin-bottom: 28px; /* 连接线延伸区改由外边距承载,背景盒不覆盖线段 */
|
|
2002
|
+
border-radius: 8px;
|
|
2003
|
+
transition: background-color 0.2s;
|
|
2004
|
+
/* 连接线随内边距与单选框列整体偏移,并跨过外边距延伸到下一节点图标顶 */
|
|
1983
2005
|
}
|
|
1984
|
-
.flow-
|
|
1985
|
-
|
|
1986
|
-
|
|
2006
|
+
.flow-node__item--select[data-v-01c5b0f9]::before {
|
|
2007
|
+
top: 48px; /* 顶内边距 8 + 图标 36 + 间距 4 */
|
|
2008
|
+
bottom: -36px; /* 跨 28 外边距 + 下节点顶内边距 8 */
|
|
2009
|
+
left: 57px; /* 左内边距 12 + 单选框 16 + 间距 12 + 图标半径 18 - 线宽一半 1 */
|
|
2010
|
+
}
|
|
2011
|
+
.flow-node__item--select[data-v-01c5b0f9]:last-child {
|
|
2012
|
+
margin-bottom: 0;
|
|
2013
|
+
padding-bottom: 8px; /* 覆盖 base :last-child 的 padding-bottom:0,保留背景内边距 */
|
|
2014
|
+
}
|
|
2015
|
+
.flow-node__item--select[data-v-01c5b0f9]:hover {
|
|
2016
|
+
background: color-mix(in srgb, var(--flow-primary-color) 6%, transparent);
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
/* select 模式:当前选中的驳回节点,主色淡底 + 节点名主色 */
|
|
2020
|
+
.flow-node__item--selected[data-v-01c5b0f9],
|
|
2021
|
+
.flow-node__item--selected[data-v-01c5b0f9]:hover {
|
|
2022
|
+
background: color-mix(in srgb, var(--flow-primary-color) 10%, transparent);
|
|
1987
2023
|
}
|
|
1988
|
-
.flow-
|
|
2024
|
+
.flow-node__item--selected .flow-node__name[data-v-01c5b0f9],
|
|
2025
|
+
.flow-node__item--selected:hover .flow-node__name[data-v-01c5b0f9] {
|
|
1989
2026
|
color: var(--flow-primary-color);
|
|
1990
2027
|
}
|
|
1991
|
-
.flow-node__desc[data-v-
|
|
2028
|
+
.flow-node__desc[data-v-01c5b0f9] {
|
|
1992
2029
|
margin: 4px 0 0;
|
|
1993
2030
|
font-size: 12px;
|
|
1994
2031
|
line-height: 1.5;
|
|
@@ -1997,7 +2034,7 @@ to {
|
|
|
1997
2034
|
|
|
1998
2035
|
/* Developed collaboratively with vscode - 改动代码行数: 2行改动(删除 rgba 兜底行仅保留 color-mix;删除永不生效的 --flow-card-color 兜底 #fff——弹层 style 上同样注入 flowVars) */
|
|
1999
2036
|
/* 审批意见卡片:渲染在 teleport 弹层内,需置于节点结构之外才能命中 scoped 样式 */
|
|
2000
|
-
.flow-node__record[data-v-
|
|
2037
|
+
.flow-node__record[data-v-01c5b0f9] {
|
|
2001
2038
|
width: 320px;
|
|
2002
2039
|
padding: 10px 12px;
|
|
2003
2040
|
border: 1px solid color-mix(in srgb, var(--flow-text-color-3) 18%, transparent);
|
|
@@ -2010,7 +2047,7 @@ to {
|
|
|
2010
2047
|
|
|
2011
2048
|
/* Developed collaboratively with vscode - 改动代码行数: 31行+删除6行(删除按人员 status 染色的卡片级 --done/--doing 左边框;新增记录项样式:左边框按记录类型染色——同意=绿/驳回=红,头部类型文案与时间两端对齐) */
|
|
2012
2049
|
/* 记录项:按记录类型左侧染色(同意=绿 / 驳回=红),多条纵向排列 */
|
|
2013
|
-
.flow-node__record-item[data-v-
|
|
2050
|
+
.flow-node__record-item[data-v-01c5b0f9] {
|
|
2014
2051
|
margin-top: 8px;
|
|
2015
2052
|
padding: 6px 8px;
|
|
2016
2053
|
border: 1px solid color-mix(in srgb, var(--flow-text-color-3) 12%, transparent);
|
|
@@ -2018,30 +2055,30 @@ to {
|
|
|
2018
2055
|
border-left-color: var(--flow-success-color);
|
|
2019
2056
|
border-radius: 6px;
|
|
2020
2057
|
}
|
|
2021
|
-
.flow-node__record-item--reject[data-v-
|
|
2058
|
+
.flow-node__record-item--reject[data-v-01c5b0f9] {
|
|
2022
2059
|
border-left-color: var(--flow-error-color);
|
|
2023
2060
|
}
|
|
2024
|
-
.flow-node__record-item-head[data-v-
|
|
2061
|
+
.flow-node__record-item-head[data-v-01c5b0f9] {
|
|
2025
2062
|
display: flex;
|
|
2026
2063
|
align-items: center;
|
|
2027
2064
|
justify-content: space-between;
|
|
2028
2065
|
gap: 6px;
|
|
2029
2066
|
}
|
|
2030
|
-
.flow-node__record-item-type[data-v-
|
|
2067
|
+
.flow-node__record-item-type[data-v-01c5b0f9] {
|
|
2031
2068
|
font-size: 12px;
|
|
2032
2069
|
font-weight: 600;
|
|
2033
2070
|
color: var(--flow-success-color);
|
|
2034
2071
|
}
|
|
2035
|
-
.flow-node__record-item--reject .flow-node__record-item-type[data-v-
|
|
2072
|
+
.flow-node__record-item--reject .flow-node__record-item-type[data-v-01c5b0f9] {
|
|
2036
2073
|
color: var(--flow-error-color);
|
|
2037
2074
|
}
|
|
2038
|
-
.flow-node__record-item-time[data-v-
|
|
2075
|
+
.flow-node__record-item-time[data-v-01c5b0f9] {
|
|
2039
2076
|
flex-shrink: 0;
|
|
2040
2077
|
font-size: 11px;
|
|
2041
2078
|
font-variant-numeric: tabular-nums;
|
|
2042
2079
|
color: var(--flow-text-color-3);
|
|
2043
2080
|
}
|
|
2044
|
-
.flow-node__record-head[data-v-
|
|
2081
|
+
.flow-node__record-head[data-v-01c5b0f9] {
|
|
2045
2082
|
display: flex;
|
|
2046
2083
|
align-items: center;
|
|
2047
2084
|
gap: 6px;
|
|
@@ -2049,13 +2086,13 @@ to {
|
|
|
2049
2086
|
|
|
2050
2087
|
/* Developed collaboratively with vscode - 改动代码行数: 5行 */
|
|
2051
2088
|
/* 基础视觉由 FlowAvatar 提供,此处仅控制尺寸与字号 */
|
|
2052
|
-
.flow-node__record-avatar[data-v-
|
|
2089
|
+
.flow-node__record-avatar[data-v-01c5b0f9] {
|
|
2053
2090
|
flex-shrink: 0;
|
|
2054
2091
|
width: 18px;
|
|
2055
2092
|
height: 18px;
|
|
2056
2093
|
font-size: 10px;
|
|
2057
2094
|
}
|
|
2058
|
-
.flow-node__record-name[data-v-
|
|
2095
|
+
.flow-node__record-name[data-v-01c5b0f9] {
|
|
2059
2096
|
flex: 1;
|
|
2060
2097
|
min-width: 0;
|
|
2061
2098
|
overflow: hidden;
|
|
@@ -2067,8 +2104,8 @@ to {
|
|
|
2067
2104
|
/* Developed collaboratively with vscode - 改动代码行数: 0行+删除5行(删除卡片头部旧操作时间样式:时间移入每条记录项头部展示) */
|
|
2068
2105
|
/* Developed collaboratively with vscode - 改动代码行数: 9行改动(意见正文与空占位共享基础排版:边距/字号/行高/pre-wrap/word-break 合并为共享选择器,差异仅文字颜色;空占位并入 pre-wrap 对固定短文案「未填写审批意见」无视觉影响) */
|
|
2069
2106
|
/* 记录意见正文与无意见占位:共享基础排版,正文弱二级色、占位弱三级色 */
|
|
2070
|
-
.flow-node__record-opinion[data-v-
|
|
2071
|
-
.flow-node__record-empty[data-v-
|
|
2107
|
+
.flow-node__record-opinion[data-v-01c5b0f9],
|
|
2108
|
+
.flow-node__record-empty[data-v-01c5b0f9] {
|
|
2072
2109
|
margin: 2px 0 0;
|
|
2073
2110
|
font-size: 12px;
|
|
2074
2111
|
line-height: 1.6;
|
|
@@ -2078,19 +2115,19 @@ to {
|
|
|
2078
2115
|
}
|
|
2079
2116
|
|
|
2080
2117
|
/* 无审批意见占位文案:三级弱色 */
|
|
2081
|
-
.flow-node__record-empty[data-v-
|
|
2118
|
+
.flow-node__record-empty[data-v-01c5b0f9] {
|
|
2082
2119
|
color: var(--flow-text-color-3);
|
|
2083
2120
|
}
|
|
2084
2121
|
|
|
2085
2122
|
/* Developed collaboratively with vscode - 改动代码行数: 1行改动(删除 rgba 兜底行仅保留 color-mix:当前主题下渲染不变) */
|
|
2086
2123
|
/* 附件:回形针 + 文件名的小卡片,可点击下载 */
|
|
2087
|
-
.flow-node__record-files[data-v-
|
|
2124
|
+
.flow-node__record-files[data-v-01c5b0f9] {
|
|
2088
2125
|
display: flex;
|
|
2089
2126
|
flex-wrap: wrap;
|
|
2090
2127
|
gap: 6px;
|
|
2091
2128
|
margin-top: 6px;
|
|
2092
2129
|
}
|
|
2093
|
-
.flow-node__record-file[data-v-
|
|
2130
|
+
.flow-node__record-file[data-v-01c5b0f9] {
|
|
2094
2131
|
display: flex;
|
|
2095
2132
|
align-items: center;
|
|
2096
2133
|
gap: 4px;
|
|
@@ -2102,21 +2139,21 @@ to {
|
|
|
2102
2139
|
background: color-mix(in srgb, var(--flow-text-color-3) 8%, transparent);
|
|
2103
2140
|
transition: color 0.2s;
|
|
2104
2141
|
}
|
|
2105
|
-
.flow-node__record-file svg[data-v-
|
|
2142
|
+
.flow-node__record-file svg[data-v-01c5b0f9] {
|
|
2106
2143
|
width: 12px;
|
|
2107
2144
|
height: 12px;
|
|
2108
2145
|
flex-shrink: 0;
|
|
2109
2146
|
}
|
|
2110
|
-
.flow-node__record-file span[data-v-
|
|
2147
|
+
.flow-node__record-file span[data-v-01c5b0f9] {
|
|
2111
2148
|
overflow: hidden;
|
|
2112
2149
|
text-overflow: ellipsis;
|
|
2113
2150
|
white-space: nowrap;
|
|
2114
2151
|
}
|
|
2115
|
-
.flow-node__record-file[data-v-
|
|
2152
|
+
.flow-node__record-file[data-v-01c5b0f9]:hover {
|
|
2116
2153
|
color: var(--flow-primary-color);
|
|
2117
2154
|
}
|
|
2118
2155
|
/* Developed collaboratively with vscode - 改动代码行数: 3行 */
|
|
2119
|
-
.reject-node-list[data-v-
|
|
2156
|
+
.reject-node-list[data-v-4d9540ab] {
|
|
2120
2157
|
width: 100%;
|
|
2121
2158
|
}
|
|
2122
2159
|
|
|
@@ -18,12 +18,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
18
18
|
attachments: UploadResource[];
|
|
19
19
|
/** 驳回目标节点名称(仅驳回时存在) */
|
|
20
20
|
rejectNode?: string;
|
|
21
|
-
/**
|
|
22
|
-
rejectUser?: string;
|
|
23
|
-
/** 驳回目标节点 ID(驳回接口 reject_node_id) */
|
|
21
|
+
/** 驳回目标节点 ID(驳回接口 reject_node_id,整节点重置) */
|
|
24
22
|
rejectNodeId?: string;
|
|
25
|
-
/** 驳回目标人员 ID(驳回接口 reject_user_id,仅审批人节点携带) */
|
|
26
|
-
rejectUserId?: string;
|
|
27
23
|
}, done: (shouldClose?: boolean) => void) => any;
|
|
28
24
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
25
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
@@ -32,12 +28,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
32
28
|
attachments: UploadResource[];
|
|
33
29
|
/** 驳回目标节点名称(仅驳回时存在) */
|
|
34
30
|
rejectNode?: string;
|
|
35
|
-
/**
|
|
36
|
-
rejectUser?: string;
|
|
37
|
-
/** 驳回目标节点 ID(驳回接口 reject_node_id) */
|
|
31
|
+
/** 驳回目标节点 ID(驳回接口 reject_node_id,整节点重置) */
|
|
38
32
|
rejectNodeId?: string;
|
|
39
|
-
/** 驳回目标人员 ID(驳回接口 reject_user_id,仅审批人节点携带) */
|
|
40
|
-
rejectUserId?: string;
|
|
41
33
|
}, done: (shouldClose?: boolean) => void) => any) | undefined;
|
|
42
34
|
}>, {
|
|
43
35
|
type: "approve" | "reject";
|
|
@@ -70,7 +70,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
70
70
|
node: FlowNodeItem;
|
|
71
71
|
/** 模式:display=展示 / select=可选择 / form=表单 */
|
|
72
72
|
mode?: "display" | "select" | "form";
|
|
73
|
-
/**
|
|
73
|
+
/** 当前选中节点(节点ID,缺省回落名称),仅 select 模式 */
|
|
74
74
|
selectedKey?: string | null;
|
|
75
75
|
/** 人员折叠阈值:超出该人数时默认折叠展示,尾部显示展开/收起按钮 */
|
|
76
76
|
collapseCount?: number;
|
|
@@ -86,7 +86,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
86
86
|
node: FlowNodeItem;
|
|
87
87
|
/** 模式:display=展示 / select=可选择 / form=表单 */
|
|
88
88
|
mode?: "display" | "select" | "form";
|
|
89
|
-
/**
|
|
89
|
+
/** 当前选中节点(节点ID,缺省回落名称),仅 select 模式 */
|
|
90
90
|
selectedKey?: string | null;
|
|
91
91
|
/** 人员折叠阈值:超出该人数时默认折叠展示,尾部显示展开/收起按钮 */
|
|
92
92
|
collapseCount?: number;
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 时间线人员选项唯一 key 共享模块
|
|
3
|
-
*
|
|
4
|
-
* 契约:`${节点ID ?? 节点名称}::${人员ID ?? 人员名称}`
|
|
5
|
-
* 拼接侧(FlowNode select 模式上抛选中项)与解析侧(ApprovalModal 驳回目标反查)共用。
|
|
6
|
-
*/
|
|
7
|
-
/** 节点/人员的最小结构(仅 id 与 name,FlowNodeItem / FlowNodeUser 天然兼容) */
|
|
8
|
-
interface KeySource {
|
|
9
|
-
/** 主键(缺省回落名称) */
|
|
10
|
-
id?: number | string;
|
|
11
|
-
/** 名称 */
|
|
12
|
-
name: string;
|
|
13
|
-
}
|
|
14
|
-
/** 拼接人员选项 key:节点ID::人员ID(缺省回落名称) */
|
|
15
|
-
export declare function getUserKey(node: KeySource, user: KeySource): string;
|
|
16
|
-
/** 解析人员选项 key:返回 [节点 key, 人员 key] */
|
|
17
|
-
export declare function parseUserKey(key: string): [string, string];
|
|
18
|
-
export {};
|