@yugu-ui/flow-ui 0.1.9 → 0.1.10

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.
@@ -6,6 +6,8 @@ interface Props {
6
6
  showActions?: boolean;
7
7
  /** 卡片整体是否可点击(点击触发 itemClick),默认不可点击 */
8
8
  clickable?: boolean;
9
+ /** 是否显示「编辑」按钮(配置按钮不受影响),默认显示 */
10
+ showEdit?: boolean;
9
11
  }
10
12
  declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
13
  itemClick: (item: FlowItem) => any;
@@ -16,6 +18,7 @@ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {},
16
18
  }>, {
17
19
  showActions: boolean;
18
20
  clickable: boolean;
21
+ showEdit: boolean;
19
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
23
  declare const _default: typeof __VLS_export;
21
24
  export default _default;
@@ -6,6 +6,8 @@ type __VLS_Props = {
6
6
  showActions?: boolean;
7
7
  /** 卡片整体是否可点击(点击触发 itemClick),默认不可点击 */
8
8
  clickable?: boolean;
9
+ /** 是否显示「编辑」按钮(配置按钮不受影响),默认显示 */
10
+ showEdit?: boolean;
9
11
  };
10
12
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
13
  itemClick: (item: FlowItem) => any;
@@ -16,6 +18,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
16
18
  }>, {
17
19
  showActions: boolean;
18
20
  clickable: boolean;
21
+ showEdit: boolean;
19
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
23
  declare const _default: typeof __VLS_export;
21
24
  export default _default;
@@ -6,6 +6,8 @@ type __VLS_Props = {
6
6
  showActions?: boolean;
7
7
  /** 卡片整体是否可点击(点击触发 itemClick),默认不可点击 */
8
8
  clickable?: boolean;
9
+ /** 是否显示「编辑」按钮(配置按钮不受影响),默认显示 */
10
+ showEdit?: boolean;
9
11
  };
10
12
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
13
  itemClick: (item: FlowItem) => any;
@@ -16,6 +18,7 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
16
18
  }>, {
17
19
  showActions: boolean;
18
20
  clickable: boolean;
21
+ showEdit: boolean;
19
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
23
  declare const _default: typeof __VLS_export;
21
24
  export default _default;
package/dist/index.js CHANGED
@@ -6734,6 +6734,10 @@ var FlowListItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6734
6734
  clickable: {
6735
6735
  type: Boolean,
6736
6736
  default: false
6737
+ },
6738
+ showEdit: {
6739
+ type: Boolean,
6740
+ default: true
6737
6741
  }
6738
6742
  },
6739
6743
  emits: ["itemClick", "design"],
@@ -6772,7 +6776,8 @@ var FlowListItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6772
6776
  class: "flow-item__label",
6773
6777
  title: __props.item.name
6774
6778
  }, toDisplayString(__props.item.name), 9, _hoisted_3$1),
6775
- __props.showActions ? (openBlock(), createElementBlock("div", _hoisted_4$1, [createVNode(_component_NButton, {
6779
+ __props.showActions ? (openBlock(), createElementBlock("div", _hoisted_4$1, [__props.showEdit ? (openBlock(), createBlock(_component_NButton, {
6780
+ key: 0,
6776
6781
  class: "flow-item__btn",
6777
6782
  size: "small",
6778
6783
  quaternary: "",
@@ -6781,7 +6786,7 @@ var FlowListItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6781
6786
  }, {
6782
6787
  default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" 编辑 ", -1)])]),
6783
6788
  _: 1
6784
- }), createVNode(_component_NButton, {
6789
+ })) : createCommentVNode("", true), createVNode(_component_NButton, {
6785
6790
  class: "flow-item__btn",
6786
6791
  size: "small",
6787
6792
  secondary: "",
@@ -6794,7 +6799,7 @@ var FlowListItem_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6794
6799
  ], 2);
6795
6800
  };
6796
6801
  }
6797
- }), [["__scopeId", "data-v-aa89ccbf"]]);
6802
+ }), [["__scopeId", "data-v-315b70f6"]]);
6798
6803
  //#endregion
6799
6804
  //#region src/flow-list/modules/FlowListGroup.vue?vue&type=script&setup=true&lang.ts
6800
6805
  var _hoisted_1 = { class: "flow-group" };
@@ -6822,6 +6827,10 @@ var FlowListGroup_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6822
6827
  clickable: {
6823
6828
  type: Boolean,
6824
6829
  default: false
6830
+ },
6831
+ showEdit: {
6832
+ type: Boolean,
6833
+ default: true
6825
6834
  }
6826
6835
  },
6827
6836
  emits: ["itemClick", "design"],
@@ -6856,12 +6865,14 @@ var FlowListGroup_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6856
6865
  item,
6857
6866
  "show-actions": __props.showActions,
6858
6867
  clickable: __props.clickable,
6868
+ "show-edit": __props.showEdit,
6859
6869
  onItemClick: _cache[0] || (_cache[0] = ($event) => emit("itemClick", $event)),
6860
6870
  onDesign: _cache[1] || (_cache[1] = ($event) => emit("design", $event))
6861
6871
  }, null, 8, [
6862
6872
  "item",
6863
6873
  "show-actions",
6864
- "clickable"
6874
+ "clickable",
6875
+ "show-edit"
6865
6876
  ]);
6866
6877
  }), 128))])) : (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(_component_NEmpty, {
6867
6878
  size: "small",
@@ -6873,7 +6884,7 @@ var FlowListGroup_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
6873
6884
  }, 8, ["default-expanded-names"])]);
6874
6885
  };
6875
6886
  }
6876
- }), [["__scopeId", "data-v-5a44409e"]]);
6887
+ }), [["__scopeId", "data-v-4bf10196"]]);
6877
6888
  //#endregion
6878
6889
  //#region src/flow-list/index.vue
6879
6890
  var flow_list_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
@@ -6888,6 +6899,10 @@ var flow_list_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__
6888
6899
  clickable: {
6889
6900
  type: Boolean,
6890
6901
  default: false
6902
+ },
6903
+ showEdit: {
6904
+ type: Boolean,
6905
+ default: true
6891
6906
  }
6892
6907
  },
6893
6908
  emits: ["itemClick", "design"],
@@ -6914,16 +6929,18 @@ var flow_list_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__
6914
6929
  group,
6915
6930
  "show-actions": __props.showActions,
6916
6931
  clickable: __props.clickable,
6932
+ "show-edit": __props.showEdit,
6917
6933
  onItemClick: _cache[0] || (_cache[0] = (item) => emit("itemClick", item)),
6918
6934
  onDesign: _cache[1] || (_cache[1] = (item) => emit("design", item))
6919
6935
  }, null, 8, [
6920
6936
  "group",
6921
6937
  "show-actions",
6922
- "clickable"
6938
+ "clickable",
6939
+ "show-edit"
6923
6940
  ]);
6924
6941
  }), 128))], 4);
6925
6942
  };
6926
6943
  }
6927
- }), [["__scopeId", "data-v-3484a8df"]]);
6944
+ }), [["__scopeId", "data-v-56ed3cd3"]]);
6928
6945
  //#endregion
6929
6946
  export { ApprovalModal_default as ApprovalModal, FLOW_UI_KEY, FlowAvatar_default as FlowAvatar, FlowConfig_default as FlowConfig, FlowConfigField_default as FlowConfigField, FlowConfigMore_default as FlowConfigMore, FlowLayout_default as FlowLayout, flow_list_default as FlowList, FlowNode_default as FlowNode, FlowNodesPanel_default as FlowNodesPanel, person_selector_default as PersonSelector, createFlowUI, fetchGetWflowConfigDetail, fetchGetWflowFlowNodes, fetchLaunchWflowFlow, fetchWflowUndoApprove, fetchWflowUndoReject, getRemoteOptions, isRemoteField, useFlowUI };
package/dist/style.css CHANGED
@@ -2301,7 +2301,7 @@ to {
2301
2301
  box-shadow: 0 -8px 12px 0 rgba(255, 255, 255, 0.04);
2302
2302
  }
2303
2303
 
2304
- .flow-item[data-v-aa89ccbf] {
2304
+ .flow-item[data-v-315b70f6] {
2305
2305
  display: flex;
2306
2306
  align-items: center;
2307
2307
  gap: 12px;
@@ -2315,32 +2315,32 @@ to {
2315
2315
  user-select: none;
2316
2316
  transition: transform 0.2s ease, box-shadow 0.2s ease;
2317
2317
  }
2318
- .flow-item[data-v-aa89ccbf]:hover {
2318
+ .flow-item[data-v-315b70f6]:hover {
2319
2319
  transform: translateY(-2px);
2320
2320
  /* Developed collaboratively with vscode - 改动代码行数: 1行(阴影色改用全局文本色变量) */
2321
2321
  box-shadow: rgb(var(--base-text-color)/0.25) 0 12px 28px;
2322
2322
  }
2323
- .flow-item[data-v-aa89ccbf]:active {
2323
+ .flow-item[data-v-315b70f6]:active {
2324
2324
  transform: translateY(0);
2325
2325
  /* Developed collaboratively with vscode - 改动代码行数: 1行(阴影色改用全局文本色变量) */
2326
2326
  box-shadow: rgb(var(--base-text-color)/0.15) 0 4px 12px;
2327
2327
  transition-duration: 0.08s;
2328
2328
  }
2329
- .flow-item[data-v-aa89ccbf] {
2329
+ .flow-item[data-v-315b70f6] {
2330
2330
  /* Developed collaboratively with vscode - 改动代码行数: 1行(clickable 卡片:pointer 光标明示可点击,hover 上浮动效沿用通用样式) */
2331
2331
  }
2332
- .flow-item--clickable[data-v-aa89ccbf] {
2332
+ .flow-item--clickable[data-v-315b70f6] {
2333
2333
  cursor: pointer;
2334
2334
  }
2335
- .flow-item__avatar[data-v-aa89ccbf] {
2335
+ .flow-item__avatar[data-v-315b70f6] {
2336
2336
  flex-shrink: 0;
2337
2337
  }
2338
- .flow-item__avatar-text[data-v-aa89ccbf] {
2338
+ .flow-item__avatar-text[data-v-315b70f6] {
2339
2339
  font-size: 15px;
2340
2340
  font-weight: 600;
2341
2341
  color: var(--fl-primary);
2342
2342
  }
2343
- .flow-item__label[data-v-aa89ccbf] {
2343
+ .flow-item__label[data-v-315b70f6] {
2344
2344
  display: -webkit-box;
2345
2345
  flex-grow: 1;
2346
2346
  /* Developed collaboratively with vscode - 改动代码行数: 3行(中英混排按字符接排换行:不整体掉词填满行宽,防止收缩被内容撑破) */
@@ -2354,54 +2354,54 @@ to {
2354
2354
  -webkit-box-orient: vertical;
2355
2355
  -webkit-line-clamp: 2;
2356
2356
  }
2357
- .flow-item__actions[data-v-aa89ccbf] {
2357
+ .flow-item__actions[data-v-315b70f6] {
2358
2358
  display: flex;
2359
2359
  flex-shrink: 0;
2360
2360
  gap: 6px;
2361
2361
  }
2362
- .flow-group[data-v-5a44409e] {
2362
+ .flow-group[data-v-4bf10196] {
2363
2363
  padding: 0 20px;
2364
2364
  background: var(--fl-card-color);
2365
2365
  border: 1px solid var(--fl-border-color);
2366
2366
  border-radius: 12px;
2367
2367
  /* Developed collaboratively with vscode - 改动代码行数: 20行(面板头修复:负 margin 让分隔线通到卡片两端、仅展开时显示;补回首项 padding-top;锁定箭头容器旋转,方向由自定义 chevron 控制) */
2368
2368
  }
2369
- .flow-group[data-v-5a44409e] .n-collapse-item__header {
2369
+ .flow-group[data-v-4bf10196] .n-collapse-item__header {
2370
2370
  padding: 16px 20px 12px;
2371
2371
  margin: 0 -20px;
2372
2372
  border-bottom: 1px solid transparent;
2373
2373
  }
2374
- .flow-group[data-v-5a44409e] .n-collapse-item--active .n-collapse-item__header {
2374
+ .flow-group[data-v-4bf10196] .n-collapse-item--active .n-collapse-item__header {
2375
2375
  border-bottom-color: var(--fl-divider-color);
2376
2376
  }
2377
- .flow-group[data-v-5a44409e] .n-collapse-item:first-child > .n-collapse-item__header {
2377
+ .flow-group[data-v-4bf10196] .n-collapse-item:first-child > .n-collapse-item__header {
2378
2378
  padding-top: 16px;
2379
2379
  }
2380
- .flow-group[data-v-5a44409e] .n-collapse-item__content-inner {
2380
+ .flow-group[data-v-4bf10196] .n-collapse-item__content-inner {
2381
2381
  padding: 16px 0 20px;
2382
2382
  }
2383
- .flow-group[data-v-5a44409e] {
2383
+ .flow-group[data-v-4bf10196] {
2384
2384
  /* Developed collaboratively with vscode - 改动代码行数: 11行(header-main 设 flex;箭头 margin-left:auto 提权,压过 naive 运行时注入的 4px 间距,推到最右侧) */
2385
2385
  }
2386
- .flow-group[data-v-5a44409e] .n-collapse-item__header-main {
2386
+ .flow-group[data-v-4bf10196] .n-collapse-item__header-main {
2387
2387
  display: flex;
2388
2388
  align-items: center;
2389
2389
  }
2390
- .flow-group[data-v-5a44409e] .n-collapse-item__header-main .n-collapse-item-arrow {
2390
+ .flow-group[data-v-4bf10196] .n-collapse-item__header-main .n-collapse-item-arrow {
2391
2391
  margin-left: auto !important;
2392
2392
  transform: none !important;
2393
2393
  }
2394
- .flow-group__title[data-v-5a44409e] {
2394
+ .flow-group__title[data-v-4bf10196] {
2395
2395
  font-size: 17px;
2396
2396
  font-weight: 600;
2397
2397
  color: var(--fl-text-1);
2398
2398
  letter-spacing: 0.2px;
2399
2399
  transition: color 0.2s ease;
2400
2400
  }
2401
- .flow-group[data-v-5a44409e] {
2401
+ .flow-group[data-v-4bf10196] {
2402
2402
  /* Developed collaboratively with vscode - 改动代码行数: 4行(数量徽标改胶囊形,紧跟标题同侧排列) */
2403
2403
  }
2404
- .flow-group__count[data-v-5a44409e] {
2404
+ .flow-group__count[data-v-4bf10196] {
2405
2405
  display: flex;
2406
2406
  align-items: center;
2407
2407
  height: 20px;
@@ -2415,53 +2415,53 @@ to {
2415
2415
  border-radius: 999px;
2416
2416
  background: color-mix(in srgb, var(--fl-primary) 12%, transparent);
2417
2417
  }
2418
- .flow-group[data-v-5a44409e] {
2418
+ .flow-group[data-v-4bf10196] {
2419
2419
  /* Developed collaboratively with vscode - 改动代码行数: 15行(自定义箭头+旋转动画;头部悬停时标题/箭头高亮主题色) */
2420
2420
  }
2421
- .flow-group__chevron[data-v-5a44409e] {
2421
+ .flow-group__chevron[data-v-4bf10196] {
2422
2422
  width: 16px;
2423
2423
  height: 16px;
2424
2424
  color: var(--fl-text-3);
2425
2425
  transition: transform 0.2s ease;
2426
2426
  transform: rotate(-180deg);
2427
2427
  }
2428
- .flow-group__chevron--collapsed[data-v-5a44409e] {
2428
+ .flow-group__chevron--collapsed[data-v-4bf10196] {
2429
2429
  transform: rotate(0deg);
2430
2430
  }
2431
- [data-v-5a44409e] .n-collapse-item__header:hover .flow-group__title,[data-v-5a44409e] .n-collapse-item__header:hover .flow-group__chevron {
2431
+ [data-v-4bf10196] .n-collapse-item__header:hover .flow-group__title,[data-v-4bf10196] .n-collapse-item__header:hover .flow-group__chevron {
2432
2432
  color: var(--fl-primary);
2433
2433
  }
2434
- .flow-group__grid[data-v-5a44409e] {
2434
+ .flow-group__grid[data-v-4bf10196] {
2435
2435
  display: grid;
2436
2436
  grid-template-columns: repeat(1, 1fr);
2437
2437
  gap: 12px;
2438
2438
  }
2439
2439
  @media (min-width: 576px) {
2440
- .flow-group__grid[data-v-5a44409e] {
2440
+ .flow-group__grid[data-v-4bf10196] {
2441
2441
  grid-template-columns: repeat(2, 1fr);
2442
2442
  }
2443
2443
  }
2444
2444
  @media (min-width: 992px) {
2445
- .flow-group__grid[data-v-5a44409e] {
2445
+ .flow-group__grid[data-v-4bf10196] {
2446
2446
  grid-template-columns: repeat(3, 1fr);
2447
2447
  }
2448
2448
  }
2449
2449
  @media (min-width: 1200px) {
2450
- .flow-group__grid[data-v-5a44409e] {
2450
+ .flow-group__grid[data-v-4bf10196] {
2451
2451
  grid-template-columns: repeat(4, 1fr);
2452
2452
  }
2453
2453
  }
2454
2454
  @media (min-width: 1600px) {
2455
- .flow-group__grid[data-v-5a44409e] {
2455
+ .flow-group__grid[data-v-4bf10196] {
2456
2456
  grid-template-columns: repeat(5, 1fr);
2457
2457
  }
2458
2458
  }
2459
- .flow-group[data-v-5a44409e] {
2459
+ .flow-group[data-v-4bf10196] {
2460
2460
  /* Developed collaboratively with vscode - 改动代码行数: 3行(空态样式:仅保留上下留白,无外框) */
2461
2461
  }
2462
- .flow-group__empty[data-v-5a44409e] {
2462
+ .flow-group__empty[data-v-4bf10196] {
2463
2463
  padding: 8px 0;
2464
- }.flow-list[data-v-3484a8df] {
2464
+ }.flow-list[data-v-56ed3cd3] {
2465
2465
  display: flex;
2466
2466
  flex-direction: column;
2467
2467
  gap: 20px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yugu-ui/flow-ui",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "堉古商城流程组件库:流程设计器(config)/ 审批时间线(timeline)/ 流程列表(FlowList)",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",