@yugu-ui/flow-ui 0.1.24 → 0.1.26

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.
@@ -8,17 +8,22 @@ interface Props {
8
8
  clickable?: boolean;
9
9
  /** 是否显示「编辑」按钮(配置按钮不受影响),默认显示 */
10
10
  showEdit?: boolean;
11
+ /** 是否显示「删除」按钮(默认不显示,仅需要删除入口的页面开启),点击触发 delete 事件 */
12
+ showDelete?: boolean;
11
13
  }
12
14
  declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ delete: (item: FlowItem) => any;
13
16
  itemClick: (item: FlowItem) => any;
14
17
  design: (item: FlowItem) => any;
15
18
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
19
+ onDelete?: ((item: FlowItem) => any) | undefined;
16
20
  onItemClick?: ((item: FlowItem) => any) | undefined;
17
21
  onDesign?: ((item: FlowItem) => any) | undefined;
18
22
  }>, {
19
23
  showActions: boolean;
20
24
  clickable: boolean;
21
25
  showEdit: boolean;
26
+ showDelete: boolean;
22
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
28
  declare const _default: typeof __VLS_export;
24
29
  export default _default;
@@ -8,17 +8,22 @@ type __VLS_Props = {
8
8
  clickable?: boolean;
9
9
  /** 是否显示「编辑」按钮(配置按钮不受影响),默认显示 */
10
10
  showEdit?: boolean;
11
+ /** 是否显示「删除」按钮(默认不显示,仅需要删除入口的页面开启) */
12
+ showDelete?: boolean;
11
13
  };
12
14
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ delete: (item: FlowItem) => any;
13
16
  itemClick: (item: FlowItem) => any;
14
17
  design: (item: FlowItem) => any;
15
18
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onDelete?: ((item: FlowItem) => any) | undefined;
16
20
  onItemClick?: ((item: FlowItem) => any) | undefined;
17
21
  onDesign?: ((item: FlowItem) => any) | undefined;
18
22
  }>, {
19
23
  showActions: boolean;
20
24
  clickable: boolean;
21
25
  showEdit: boolean;
26
+ showDelete: boolean;
22
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
28
  declare const _default: typeof __VLS_export;
24
29
  export default _default;
@@ -8,17 +8,22 @@ type __VLS_Props = {
8
8
  clickable?: boolean;
9
9
  /** 是否显示「编辑」按钮(配置按钮不受影响),默认显示 */
10
10
  showEdit?: boolean;
11
+ /** 是否显示「删除」按钮(默认不显示,仅需要删除入口的页面开启),点击触发 delete 事件 */
12
+ showDelete?: boolean;
11
13
  };
12
14
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ delete: (item: FlowItem) => any;
13
16
  itemClick: (item: FlowItem) => any;
14
17
  design: (item: FlowItem) => any;
15
18
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onDelete?: ((item: FlowItem) => any) | undefined;
16
20
  onItemClick?: ((item: FlowItem) => any) | undefined;
17
21
  onDesign?: ((item: FlowItem) => any) | undefined;
18
22
  }>, {
19
23
  showActions: boolean;
20
24
  clickable: boolean;
21
25
  showEdit: boolean;
26
+ showDelete: boolean;
22
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
28
  declare const _default: typeof __VLS_export;
24
29
  export default _default;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { NAvatar, NButton, NCard, NCheckbox, NCheckboxGroup, NCollapse, NCollapseItem, NDrawer, NDrawerContent, NEllipsis, NEmpty, NForm, NFormItem, NImage, NInput, NInputGroup, NInputGroupLabel, NInputNumber, NModal, NPopover, NRadio, NRadioButton, NRadioGroup, NSelect, NSpace, NSpin, NSwitch, NTab, NTabs, NTag, NTooltip, useThemeVars } from "naive-ui";
1
+ import { NAvatar, NButton, NCard, NCheckbox, NCheckboxGroup, NCollapse, NCollapseItem, NDrawer, NDrawerContent, NDropdown, NEllipsis, NEmpty, NForm, NFormItem, NImage, NInput, NInputGroup, NInputGroupLabel, NInputNumber, NModal, NPopover, NRadio, NRadioButton, NRadioGroup, NSelect, NSpace, NSpin, NSwitch, NTab, NTabs, NTag, NTooltip, useThemeVars } from "naive-ui";
2
2
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, unref, useModel, useSlots, vModelText, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
3
3
  import { Graph } from "@antv/x6";
4
4
  import { VueShapeView, getTeleport, register } from "@antv/x6-vue-shape";
@@ -6660,12 +6660,52 @@ var FlowListItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6660
6660
  showEdit: {
6661
6661
  type: Boolean,
6662
6662
  default: true
6663
+ },
6664
+ showDelete: {
6665
+ type: Boolean,
6666
+ default: false
6663
6667
  }
6664
6668
  },
6665
- emits: ["itemClick", "design"],
6669
+ emits: [
6670
+ "itemClick",
6671
+ "design",
6672
+ "delete"
6673
+ ],
6666
6674
  setup(__props, { emit: __emit }) {
6667
6675
  const props = __props;
6668
6676
  const emit = __emit;
6677
+ /** 卡片操作项 */
6678
+ const cardActions = computed(() => {
6679
+ const actions = [];
6680
+ if (props.showEdit) actions.push({
6681
+ key: "edit",
6682
+ label: "编辑"
6683
+ });
6684
+ if (props.showDelete) actions.push({
6685
+ key: "delete",
6686
+ label: "删除"
6687
+ });
6688
+ actions.push({
6689
+ key: "design",
6690
+ label: "配置"
6691
+ });
6692
+ return actions;
6693
+ });
6694
+ /** 唯一启用的操作(仅 1 个时直接展示按钮,不收下拉) */
6695
+ const soloAction = computed(() => cardActions.value.length === 1 ? cardActions.value[0] : void 0);
6696
+ const themeVars = useThemeVars();
6697
+ /** 「···」下拉选项(删除项用主题 error 色警示) */
6698
+ const dropdownOptions = computed(() => cardActions.value.map((action) => ({
6699
+ key: action.key,
6700
+ label: action.label,
6701
+ props: action.key === "delete" ? { style: { color: themeVars.value.errorColor } } : void 0
6702
+ })));
6703
+ /** 操作分发(编辑=卡片点击同链路,删除/配置各自上报,确认与接口由使用方处理) */
6704
+ function handleActionSelect(key) {
6705
+ if (key === "edit") emit("itemClick", props.item);
6706
+ else if (key === "delete") emit("delete", props.item);
6707
+ else emit("design", props.item);
6708
+ }
6669
6709
  /** 图标加载失败标记 */
6670
6710
  const imgFailed = ref(false);
6671
6711
  watch(() => props.item.icon, () => {
@@ -6678,6 +6718,7 @@ var FlowListItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6678
6718
  return (_ctx, _cache) => {
6679
6719
  const _component_NAvatar = NAvatar;
6680
6720
  const _component_NButton = NButton;
6721
+ const _component_NDropdown = NDropdown;
6681
6722
  return openBlock(), createElementBlock("div", {
6682
6723
  class: normalizeClass(["flow-item", { "flow-item--clickable": __props.clickable }]),
6683
6724
  onClick: _cache[3] || (_cache[3] = ($event) => __props.clickable && emit("itemClick", __props.item))
@@ -6698,30 +6739,65 @@ var FlowListItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6698
6739
  class: "flow-item__label",
6699
6740
  title: __props.item.name
6700
6741
  }, toDisplayString(__props.item.name), 9, _hoisted_3$1),
6701
- __props.showActions ? (openBlock(), createElementBlock("div", _hoisted_4$1, [__props.showEdit ? (openBlock(), createBlock(_component_NButton, {
6742
+ __props.showActions ? (openBlock(), createElementBlock("div", _hoisted_4$1, [soloAction.value ? (openBlock(), createBlock(_component_NButton, {
6702
6743
  key: 0,
6703
6744
  class: "flow-item__btn",
6704
6745
  size: "small",
6705
- quaternary: "",
6706
- type: "primary",
6707
- onClick: _cache[1] || (_cache[1] = ($event) => emit("itemClick", __props.item))
6746
+ type: soloAction.value.key === "delete" ? "error" : "primary",
6747
+ quaternary: soloAction.value.key !== "design",
6748
+ secondary: soloAction.value.key === "design",
6749
+ onClick: _cache[1] || (_cache[1] = ($event) => handleActionSelect(soloAction.value.key))
6708
6750
  }, {
6709
- default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" 编辑 ", -1)])]),
6751
+ default: withCtx(() => [createTextVNode(toDisplayString(soloAction.value.label), 1)]),
6710
6752
  _: 1
6711
- })) : createCommentVNode("", true), createVNode(_component_NButton, {
6712
- class: "flow-item__btn",
6713
- size: "small",
6714
- secondary: "",
6715
- type: "primary",
6716
- onClick: _cache[2] || (_cache[2] = ($event) => emit("design", __props.item))
6753
+ }, 8, [
6754
+ "type",
6755
+ "quaternary",
6756
+ "secondary"
6757
+ ])) : (openBlock(), createBlock(_component_NDropdown, {
6758
+ key: 1,
6759
+ trigger: "click",
6760
+ options: dropdownOptions.value,
6761
+ onSelect: handleActionSelect
6717
6762
  }, {
6718
- default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode("配置", -1)])]),
6763
+ default: withCtx(() => [createVNode(_component_NButton, {
6764
+ class: "flow-item__btn flow-item__more",
6765
+ size: "small",
6766
+ quaternary: "",
6767
+ onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
6768
+ }, {
6769
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [createElementVNode("svg", {
6770
+ "aria-hidden": "true",
6771
+ viewBox: "0 0 16 16",
6772
+ class: "flow-item__more-icon"
6773
+ }, [
6774
+ createElementVNode("circle", {
6775
+ cx: "3",
6776
+ cy: "8",
6777
+ r: "1.6",
6778
+ fill: "currentColor"
6779
+ }),
6780
+ createElementVNode("circle", {
6781
+ cx: "8",
6782
+ cy: "8",
6783
+ r: "1.6",
6784
+ fill: "currentColor"
6785
+ }),
6786
+ createElementVNode("circle", {
6787
+ cx: "13",
6788
+ cy: "8",
6789
+ r: "1.6",
6790
+ fill: "currentColor"
6791
+ })
6792
+ ], -1)])]),
6793
+ _: 1
6794
+ })]),
6719
6795
  _: 1
6720
- })])) : createCommentVNode("", true)
6796
+ }, 8, ["options"]))])) : createCommentVNode("", true)
6721
6797
  ], 2);
6722
6798
  };
6723
6799
  }
6724
- }), [["__scopeId", "data-v-315b70f6"]]);
6800
+ }), [["__scopeId", "data-v-c6d34e6e"]]);
6725
6801
  //#endregion
6726
6802
  //#region src/flow-list/modules/FlowListGroup.vue?vue&type=script&setup=true&lang.ts
6727
6803
  var _hoisted_1 = { class: "flow-group" };
@@ -6753,9 +6829,17 @@ var FlowListGroup_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6753
6829
  showEdit: {
6754
6830
  type: Boolean,
6755
6831
  default: true
6832
+ },
6833
+ showDelete: {
6834
+ type: Boolean,
6835
+ default: false
6756
6836
  }
6757
6837
  },
6758
- emits: ["itemClick", "design"],
6838
+ emits: [
6839
+ "itemClick",
6840
+ "design",
6841
+ "delete"
6842
+ ],
6759
6843
  setup(__props, { emit: __emit }) {
6760
6844
  const emit = __emit;
6761
6845
  return (_ctx, _cache) => {
@@ -6773,7 +6857,7 @@ var FlowListGroup_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6773
6857
  "aria-hidden": "true",
6774
6858
  viewBox: "0 0 512 512",
6775
6859
  class: normalizeClass(["flow-group__chevron", { "flow-group__chevron--collapsed": collapsed }])
6776
- }, [..._cache[2] || (_cache[2] = [createElementVNode("path", {
6860
+ }, [..._cache[3] || (_cache[3] = [createElementVNode("path", {
6777
6861
  fill: "none",
6778
6862
  stroke: "currentColor",
6779
6863
  "stroke-linecap": "square",
@@ -6788,13 +6872,16 @@ var FlowListGroup_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6788
6872
  "show-actions": __props.showActions,
6789
6873
  clickable: __props.clickable,
6790
6874
  "show-edit": __props.showEdit,
6875
+ "show-delete": __props.showDelete,
6791
6876
  onItemClick: _cache[0] || (_cache[0] = ($event) => emit("itemClick", $event)),
6792
- onDesign: _cache[1] || (_cache[1] = ($event) => emit("design", $event))
6877
+ onDesign: _cache[1] || (_cache[1] = ($event) => emit("design", $event)),
6878
+ onDelete: _cache[2] || (_cache[2] = ($event) => emit("delete", $event))
6793
6879
  }, null, 8, [
6794
6880
  "item",
6795
6881
  "show-actions",
6796
6882
  "clickable",
6797
- "show-edit"
6883
+ "show-edit",
6884
+ "show-delete"
6798
6885
  ]);
6799
6886
  }), 128))])) : (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(_component_NEmpty, {
6800
6887
  size: "small",
@@ -6806,7 +6893,7 @@ var FlowListGroup_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6806
6893
  }, 8, ["default-expanded-names"])]);
6807
6894
  };
6808
6895
  }
6809
- }), [["__scopeId", "data-v-4bf10196"]]);
6896
+ }), [["__scopeId", "data-v-0587937e"]]);
6810
6897
  //#endregion
6811
6898
  //#region src/flow-list/index.vue
6812
6899
  var flow_list_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
@@ -6825,9 +6912,17 @@ var flow_list_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__
6825
6912
  showEdit: {
6826
6913
  type: Boolean,
6827
6914
  default: true
6915
+ },
6916
+ showDelete: {
6917
+ type: Boolean,
6918
+ default: false
6828
6919
  }
6829
6920
  },
6830
- emits: ["itemClick", "design"],
6921
+ emits: [
6922
+ "itemClick",
6923
+ "design",
6924
+ "delete"
6925
+ ],
6831
6926
  setup(__props, { emit: __emit }) {
6832
6927
  const emit = __emit;
6833
6928
  const themeVars = useThemeVars();
@@ -6852,17 +6947,20 @@ var flow_list_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__
6852
6947
  "show-actions": __props.showActions,
6853
6948
  clickable: __props.clickable,
6854
6949
  "show-edit": __props.showEdit,
6950
+ "show-delete": __props.showDelete,
6855
6951
  onItemClick: _cache[0] || (_cache[0] = (item) => emit("itemClick", item)),
6856
- onDesign: _cache[1] || (_cache[1] = (item) => emit("design", item))
6952
+ onDesign: _cache[1] || (_cache[1] = (item) => emit("design", item)),
6953
+ onDelete: _cache[2] || (_cache[2] = (item) => emit("delete", item))
6857
6954
  }, null, 8, [
6858
6955
  "group",
6859
6956
  "show-actions",
6860
6957
  "clickable",
6861
- "show-edit"
6958
+ "show-edit",
6959
+ "show-delete"
6862
6960
  ]);
6863
6961
  }), 128))], 4);
6864
6962
  };
6865
6963
  }
6866
- }), [["__scopeId", "data-v-56ed3cd3"]]);
6964
+ }), [["__scopeId", "data-v-f35421fd"]]);
6867
6965
  //#endregion
6868
6966
  export { ApprovalModal_default as ApprovalModal, FLOW_STATUS_LABEL, FLOW_STATUS_OPTIONS, FLOW_UI_KEY, FlowActions_default as FlowActions, FlowAvatar_default as FlowAvatar, FlowConfig_default as FlowConfig, FlowConfigField_default as FlowConfigField, FlowConfigMore_default as FlowConfigMore, flow_list_default as FlowList, FlowNode_default as FlowNode, FlowNodesPanel_default as FlowNodesPanel, FlowStatus, person_selector_default as PersonSelector, createFlowUI, fetchGetWflowConfigDetail, fetchGetWflowFlowNodes, fetchLaunchWflowFlow, fetchWflowUndoApprove, fetchWflowUndoReject, getRemoteOptions, isRemoteField, resolveFlowStatus, useFlowUI };
package/dist/style.css CHANGED
@@ -2302,7 +2302,7 @@ to {
2302
2302
  width: 100%;
2303
2303
  }
2304
2304
 
2305
- .flow-item[data-v-315b70f6] {
2305
+ .flow-item[data-v-c6d34e6e] {
2306
2306
  display: flex;
2307
2307
  align-items: center;
2308
2308
  gap: 12px;
@@ -2316,32 +2316,32 @@ to {
2316
2316
  user-select: none;
2317
2317
  transition: transform 0.2s ease, box-shadow 0.2s ease;
2318
2318
  }
2319
- .flow-item[data-v-315b70f6]:hover {
2319
+ .flow-item[data-v-c6d34e6e]:hover {
2320
2320
  transform: translateY(-2px);
2321
2321
  /* Developed collaboratively with vscode - 改动代码行数: 1行(阴影色改用全局文本色变量) */
2322
2322
  box-shadow: rgb(var(--base-text-color)/0.25) 0 12px 28px;
2323
2323
  }
2324
- .flow-item[data-v-315b70f6]:active {
2324
+ .flow-item[data-v-c6d34e6e]:active {
2325
2325
  transform: translateY(0);
2326
2326
  /* Developed collaboratively with vscode - 改动代码行数: 1行(阴影色改用全局文本色变量) */
2327
2327
  box-shadow: rgb(var(--base-text-color)/0.15) 0 4px 12px;
2328
2328
  transition-duration: 0.08s;
2329
2329
  }
2330
- .flow-item[data-v-315b70f6] {
2330
+ .flow-item[data-v-c6d34e6e] {
2331
2331
  /* Developed collaboratively with vscode - 改动代码行数: 1行(clickable 卡片:pointer 光标明示可点击,hover 上浮动效沿用通用样式) */
2332
2332
  }
2333
- .flow-item--clickable[data-v-315b70f6] {
2333
+ .flow-item--clickable[data-v-c6d34e6e] {
2334
2334
  cursor: pointer;
2335
2335
  }
2336
- .flow-item__avatar[data-v-315b70f6] {
2336
+ .flow-item__avatar[data-v-c6d34e6e] {
2337
2337
  flex-shrink: 0;
2338
2338
  }
2339
- .flow-item__avatar-text[data-v-315b70f6] {
2339
+ .flow-item__avatar-text[data-v-c6d34e6e] {
2340
2340
  font-size: 15px;
2341
2341
  font-weight: 600;
2342
2342
  color: var(--fl-primary);
2343
2343
  }
2344
- .flow-item__label[data-v-315b70f6] {
2344
+ .flow-item__label[data-v-c6d34e6e] {
2345
2345
  display: -webkit-box;
2346
2346
  flex-grow: 1;
2347
2347
  /* Developed collaboratively with vscode - 改动代码行数: 3行(中英混排按字符接排换行:不整体掉词填满行宽,防止收缩被内容撑破) */
@@ -2355,54 +2355,65 @@ to {
2355
2355
  -webkit-box-orient: vertical;
2356
2356
  -webkit-line-clamp: 2;
2357
2357
  }
2358
- .flow-item__actions[data-v-315b70f6] {
2358
+ .flow-item__actions[data-v-c6d34e6e] {
2359
2359
  display: flex;
2360
2360
  flex-shrink: 0;
2361
2361
  gap: 6px;
2362
2362
  }
2363
- .flow-group[data-v-4bf10196] {
2363
+ .flow-item[data-v-c6d34e6e] {
2364
+ /* Developed collaboratively with vscode - 新增9行(「···」更多按钮:收窄内边距成紧凑方钮,三点图标居中) */
2365
+ }
2366
+ .flow-item__more[data-v-c6d34e6e] {
2367
+ padding: 0 8px;
2368
+ }
2369
+ .flow-item__more-icon[data-v-c6d34e6e] {
2370
+ display: block;
2371
+ width: 16px;
2372
+ height: 16px;
2373
+ }
2374
+ .flow-group[data-v-0587937e] {
2364
2375
  padding: 0 20px;
2365
2376
  background: var(--fl-card-color);
2366
2377
  border: 1px solid var(--fl-border-color);
2367
2378
  border-radius: 12px;
2368
2379
  /* Developed collaboratively with vscode - 改动代码行数: 20行(面板头修复:负 margin 让分隔线通到卡片两端、仅展开时显示;补回首项 padding-top;锁定箭头容器旋转,方向由自定义 chevron 控制) */
2369
2380
  }
2370
- .flow-group[data-v-4bf10196] .n-collapse-item__header {
2381
+ .flow-group[data-v-0587937e] .n-collapse-item__header {
2371
2382
  padding: 16px 20px 12px;
2372
2383
  margin: 0 -20px;
2373
2384
  border-bottom: 1px solid transparent;
2374
2385
  }
2375
- .flow-group[data-v-4bf10196] .n-collapse-item--active .n-collapse-item__header {
2386
+ .flow-group[data-v-0587937e] .n-collapse-item--active .n-collapse-item__header {
2376
2387
  border-bottom-color: var(--fl-divider-color);
2377
2388
  }
2378
- .flow-group[data-v-4bf10196] .n-collapse-item:first-child > .n-collapse-item__header {
2389
+ .flow-group[data-v-0587937e] .n-collapse-item:first-child > .n-collapse-item__header {
2379
2390
  padding-top: 16px;
2380
2391
  }
2381
- .flow-group[data-v-4bf10196] .n-collapse-item__content-inner {
2392
+ .flow-group[data-v-0587937e] .n-collapse-item__content-inner {
2382
2393
  padding: 16px 0 20px;
2383
2394
  }
2384
- .flow-group[data-v-4bf10196] {
2395
+ .flow-group[data-v-0587937e] {
2385
2396
  /* Developed collaboratively with vscode - 改动代码行数: 11行(header-main 设 flex;箭头 margin-left:auto 提权,压过 naive 运行时注入的 4px 间距,推到最右侧) */
2386
2397
  }
2387
- .flow-group[data-v-4bf10196] .n-collapse-item__header-main {
2398
+ .flow-group[data-v-0587937e] .n-collapse-item__header-main {
2388
2399
  display: flex;
2389
2400
  align-items: center;
2390
2401
  }
2391
- .flow-group[data-v-4bf10196] .n-collapse-item__header-main .n-collapse-item-arrow {
2402
+ .flow-group[data-v-0587937e] .n-collapse-item__header-main .n-collapse-item-arrow {
2392
2403
  margin-left: auto !important;
2393
2404
  transform: none !important;
2394
2405
  }
2395
- .flow-group__title[data-v-4bf10196] {
2406
+ .flow-group__title[data-v-0587937e] {
2396
2407
  font-size: 17px;
2397
2408
  font-weight: 600;
2398
2409
  color: var(--fl-text-1);
2399
2410
  letter-spacing: 0.2px;
2400
2411
  transition: color 0.2s ease;
2401
2412
  }
2402
- .flow-group[data-v-4bf10196] {
2413
+ .flow-group[data-v-0587937e] {
2403
2414
  /* Developed collaboratively with vscode - 改动代码行数: 4行(数量徽标改胶囊形,紧跟标题同侧排列) */
2404
2415
  }
2405
- .flow-group__count[data-v-4bf10196] {
2416
+ .flow-group__count[data-v-0587937e] {
2406
2417
  display: flex;
2407
2418
  align-items: center;
2408
2419
  height: 20px;
@@ -2416,53 +2427,53 @@ to {
2416
2427
  border-radius: 999px;
2417
2428
  background: color-mix(in srgb, var(--fl-primary) 12%, transparent);
2418
2429
  }
2419
- .flow-group[data-v-4bf10196] {
2430
+ .flow-group[data-v-0587937e] {
2420
2431
  /* Developed collaboratively with vscode - 改动代码行数: 15行(自定义箭头+旋转动画;头部悬停时标题/箭头高亮主题色) */
2421
2432
  }
2422
- .flow-group__chevron[data-v-4bf10196] {
2433
+ .flow-group__chevron[data-v-0587937e] {
2423
2434
  width: 16px;
2424
2435
  height: 16px;
2425
2436
  color: var(--fl-text-3);
2426
2437
  transition: transform 0.2s ease;
2427
2438
  transform: rotate(-180deg);
2428
2439
  }
2429
- .flow-group__chevron--collapsed[data-v-4bf10196] {
2440
+ .flow-group__chevron--collapsed[data-v-0587937e] {
2430
2441
  transform: rotate(0deg);
2431
2442
  }
2432
- [data-v-4bf10196] .n-collapse-item__header:hover .flow-group__title,[data-v-4bf10196] .n-collapse-item__header:hover .flow-group__chevron {
2443
+ [data-v-0587937e] .n-collapse-item__header:hover .flow-group__title,[data-v-0587937e] .n-collapse-item__header:hover .flow-group__chevron {
2433
2444
  color: var(--fl-primary);
2434
2445
  }
2435
- .flow-group__grid[data-v-4bf10196] {
2446
+ .flow-group__grid[data-v-0587937e] {
2436
2447
  display: grid;
2437
2448
  grid-template-columns: repeat(1, 1fr);
2438
2449
  gap: 12px;
2439
2450
  }
2440
2451
  @media (min-width: 576px) {
2441
- .flow-group__grid[data-v-4bf10196] {
2452
+ .flow-group__grid[data-v-0587937e] {
2442
2453
  grid-template-columns: repeat(2, 1fr);
2443
2454
  }
2444
2455
  }
2445
2456
  @media (min-width: 992px) {
2446
- .flow-group__grid[data-v-4bf10196] {
2457
+ .flow-group__grid[data-v-0587937e] {
2447
2458
  grid-template-columns: repeat(3, 1fr);
2448
2459
  }
2449
2460
  }
2450
2461
  @media (min-width: 1200px) {
2451
- .flow-group__grid[data-v-4bf10196] {
2462
+ .flow-group__grid[data-v-0587937e] {
2452
2463
  grid-template-columns: repeat(4, 1fr);
2453
2464
  }
2454
2465
  }
2455
2466
  @media (min-width: 1600px) {
2456
- .flow-group__grid[data-v-4bf10196] {
2467
+ .flow-group__grid[data-v-0587937e] {
2457
2468
  grid-template-columns: repeat(5, 1fr);
2458
2469
  }
2459
2470
  }
2460
- .flow-group[data-v-4bf10196] {
2471
+ .flow-group[data-v-0587937e] {
2461
2472
  /* Developed collaboratively with vscode - 改动代码行数: 3行(空态样式:仅保留上下留白,无外框) */
2462
2473
  }
2463
- .flow-group__empty[data-v-4bf10196] {
2474
+ .flow-group__empty[data-v-0587937e] {
2464
2475
  padding: 8px 0;
2465
- }.flow-list[data-v-56ed3cd3] {
2476
+ }.flow-list[data-v-f35421fd] {
2466
2477
  display: flex;
2467
2478
  flex-direction: column;
2468
2479
  gap: 20px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yugu-ui/flow-ui",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "堉古商城流程组件库:流程设计器(config)/ 审批时间线(timeline)/ 流程列表(FlowList)",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",