cnhis-design-vue 3.1.23-beta.0 → 3.1.23-beta.11

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.
Files changed (123) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +0 -3
  3. package/es/components/big-table/src/BigTable.vue.d.ts +0 -3
  4. package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +9 -20
  5. package/es/components/big-table/src/utils.d.ts +1 -1
  6. package/es/components/big-table/src/utils2.js +11 -37
  7. package/es/components/fabric-chart/src/components/PopupMenu.js +7 -2
  8. package/es/components/fabric-chart/src/hooks/useCenter2.js +9 -5
  9. package/es/components/fabric-chart/src/hooks/useEvent2.js +40 -8
  10. package/es/components/field-set/index.d.ts +1 -0
  11. package/es/components/field-set/src/FieldSet.js +16 -10
  12. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -0
  13. package/es/components/form-config/index.d.ts +6 -0
  14. package/es/components/form-config/src/FormConfig.vue.d.ts +6 -0
  15. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +6 -0
  16. package/es/components/form-render/index2.js +2 -1
  17. package/es/components/form-render/src/components/renderer/index.d.ts +2 -1
  18. package/es/components/form-render/src/components/renderer/index.js +2 -1
  19. package/es/components/form-render/src/components/renderer/index2.js +2 -1
  20. package/es/components/form-render/src/components/renderer/levelSearchCascade.d.ts +86 -0
  21. package/es/components/form-render/src/components/renderer/levelSearchCascade.js +229 -0
  22. package/es/components/form-render/src/components/renderer/search.d.ts +13 -1
  23. package/es/components/form-render/src/components/renderer/search.js +2 -1
  24. package/es/components/form-render/src/components/renderer/{cascader.d.ts → searchCascade.d.ts} +0 -0
  25. package/es/components/form-render/src/components/renderer/{cascader.js → searchCascade.js} +1 -0
  26. package/es/components/form-render/src/components/renderer/select.js +2 -1
  27. package/es/components/form-render/src/hooks/useAsyncQueue2.js +4 -4
  28. package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +11 -4
  29. package/es/components/form-render/src/hooks/useFormRequest.d.ts +2 -0
  30. package/es/components/form-render/src/hooks/useFormRequest2.js +1 -1
  31. package/es/components/form-render/src/types/fieldItem.d.ts +6 -0
  32. package/es/components/form-render/src/utils/schema2.js +1 -4
  33. package/es/components/iho-table/index.d.ts +270 -101
  34. package/es/components/iho-table/src/IhoTable.vue.d.ts +270 -101
  35. package/es/components/iho-table/src/constants/index.d.ts +5 -3
  36. package/es/components/iho-table/src/constants/index.js +1 -1
  37. package/es/components/iho-table/src/constants/index2.js +9 -7
  38. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -2
  39. package/es/components/iho-table/src/plugins/index.js +4 -1
  40. package/es/components/iho-table/src/plugins/index2.js +4 -1
  41. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +11 -8
  42. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.d.ts +31 -0
  43. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.js +205 -0
  44. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -0
  45. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +39 -0
  46. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.js +1 -0
  47. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon2.js +17 -0
  48. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/index.d.ts +4 -1
  49. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/index.js +4 -1
  50. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -0
  51. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/{inputRendererPlugins.js → inputRendererPlugin.js} +4 -4
  52. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +31 -0
  53. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +60 -0
  54. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -0
  55. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +40 -0
  56. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -0
  57. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -0
  58. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils2.js +20 -0
  59. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{edit-separate.js → editSeparate.js} +20 -22
  60. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{edit-separate.vue.d.ts → editSeparate.vue.d.ts} +1 -17
  61. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +13 -9
  62. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils.d.ts → separateUtils.d.ts} +0 -0
  63. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils.js → separateUtils.js} +1 -1
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils2.js → separateUtils2.js} +4 -4
  65. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.d.ts +31 -0
  66. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.js +60 -0
  67. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -0
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +39 -0
  69. package/es/components/iho-table/src/plugins/rendererPlugins/index.js +4 -1
  70. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index2.js +1 -46
  71. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +11 -0
  72. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -0
  73. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils2.js +50 -0
  74. package/es/components/iho-table/src/types/index.d.ts +0 -3
  75. package/es/components/index.css +1 -1
  76. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -0
  77. package/es/components/search-cascader/index.d.ts +196 -0
  78. package/es/components/search-cascader/index.js +1 -0
  79. package/es/components/search-cascader/index2.js +10 -0
  80. package/es/components/search-cascader/src/SearchCascader.js +168 -0
  81. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +198 -0
  82. package/es/components/search-cascader/src/components/SearchMenu.d.ts +45 -0
  83. package/es/components/search-cascader/src/components/SearchMenu.js +134 -0
  84. package/es/components/search-cascader/src/components/index.d.ts +1 -0
  85. package/es/components/search-cascader/src/components/index.js +1 -0
  86. package/es/components/search-cascader/src/constants/index.d.ts +3 -0
  87. package/es/components/search-cascader/src/constants/index.js +1 -0
  88. package/es/components/search-cascader/src/constants/index2.js +3 -0
  89. package/es/components/search-cascader/src/hooks/index.d.ts +1 -0
  90. package/es/components/search-cascader/src/hooks/index.js +1 -0
  91. package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +3 -0
  92. package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -0
  93. package/es/components/search-cascader/src/hooks/useCssVariable2.js +7 -0
  94. package/es/components/search-cascader/src/utils/index.d.ts +2 -0
  95. package/es/components/search-cascader/src/utils/index.js +1 -0
  96. package/es/components/search-cascader/src/utils/index2.js +11 -0
  97. package/es/components/search-cascader/style/index.css +1 -0
  98. package/es/components/select-label/index.d.ts +1 -0
  99. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -0
  100. package/es/components/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +16 -4
  101. package/es/components/select-person/index.d.ts +41 -0
  102. package/es/components/select-person/src/SelectPerson.vue.d.ts +41 -0
  103. package/es/components/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +45 -10
  104. package/es/components/select-person/style/index.css +1 -1
  105. package/es/components/shortcut-provider/src/ShortcutProvider.js +2 -1
  106. package/es/components/shortcut-setter/index.d.ts +6 -0
  107. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -0
  108. package/es/shared/components/no-data/NoData.js +74 -0
  109. package/es/shared/components/no-data/NoData.vue.d.ts +51 -0
  110. package/es/shared/components/no-data/index.d.ts +2 -0
  111. package/es/shared/components/no-data/index.js +1 -0
  112. package/es/shared/components/no-data/index2.js +2 -0
  113. package/es/shared/utils/index.d.ts +1 -1
  114. package/es/shared/utils/index2.js +14 -5
  115. package/package.json +2 -2
  116. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -4
  117. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  118. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  119. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  120. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  121. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  122. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugins.d.ts +0 -1
  123. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -45,6 +45,18 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
45
45
  queryTreeSearch: {
46
46
  type: FunctionConstructor;
47
47
  };
48
+ showCount: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ showClear: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ multiple: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
48
60
  }, {
49
61
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
50
62
  visible: {
@@ -92,6 +104,18 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
92
104
  queryTreeSearch: {
93
105
  type: FunctionConstructor;
94
106
  };
107
+ showCount: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ showClear: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ multiple: {
116
+ type: BooleanConstructor;
117
+ default: boolean;
118
+ };
95
119
  }>> & {
96
120
  onChange?: ((...args: any[]) => any) | undefined;
97
121
  onCheck?: ((...args: any[]) => any) | undefined;
@@ -195,6 +219,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
195
219
  handleDeldefaultShowList: (key: any) => void;
196
220
  closeDefaultTag: (tag: any, i: any) => void;
197
221
  closeTag: (removedTag: any) => void;
222
+ clearAll: () => void;
198
223
  removeCheckedkeysIncludeChildren: (parentKey: any) => void;
199
224
  removedCheckedkeysMain: (tag: any) => false | undefined;
200
225
  removedCheckedkeysOther: (tag: any) => false | undefined;
@@ -227,6 +252,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
227
252
  NCheckbox: any;
228
253
  NTree: any;
229
254
  NIcon: any;
255
+ NSpace: any;
230
256
  CloseCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
231
257
  SearchTree: import("vue").DefineComponent<{
232
258
  visible: {
@@ -420,6 +446,18 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
420
446
  queryTreeSearch: {
421
447
  type: FunctionConstructor;
422
448
  };
449
+ showCount: {
450
+ type: BooleanConstructor;
451
+ default: boolean;
452
+ };
453
+ showClear: {
454
+ type: BooleanConstructor;
455
+ default: boolean;
456
+ };
457
+ multiple: {
458
+ type: BooleanConstructor;
459
+ default: boolean;
460
+ };
423
461
  }>> & {
424
462
  onChange?: ((...args: any[]) => any) | undefined;
425
463
  onCheck?: ((...args: any[]) => any) | undefined;
@@ -437,5 +475,8 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
437
475
  wordbook: Record<string, any>;
438
476
  wordbookChild: Record<string, any>;
439
477
  SearchLoadMore: boolean;
478
+ showCount: boolean;
479
+ showClear: boolean;
480
+ multiple: boolean;
440
481
  }>>;
441
482
  export default SelectPerson;
@@ -44,6 +44,18 @@ declare const _default: import("vue").DefineComponent<{
44
44
  queryTreeSearch: {
45
45
  type: FunctionConstructor;
46
46
  };
47
+ showCount: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ showClear: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ multiple: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
47
59
  }, {
48
60
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
49
61
  visible: {
@@ -91,6 +103,18 @@ declare const _default: import("vue").DefineComponent<{
91
103
  queryTreeSearch: {
92
104
  type: FunctionConstructor;
93
105
  };
106
+ showCount: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ showClear: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ multiple: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
94
118
  }>> & {
95
119
  onChange?: ((...args: any[]) => any) | undefined;
96
120
  onCheck?: ((...args: any[]) => any) | undefined;
@@ -194,6 +218,7 @@ declare const _default: import("vue").DefineComponent<{
194
218
  handleDeldefaultShowList: (key: any) => void;
195
219
  closeDefaultTag: (tag: any, i: any) => void;
196
220
  closeTag: (removedTag: any) => void;
221
+ clearAll: () => void;
197
222
  removeCheckedkeysIncludeChildren: (parentKey: any) => void;
198
223
  removedCheckedkeysMain: (tag: any) => false | undefined;
199
224
  removedCheckedkeysOther: (tag: any) => false | undefined;
@@ -226,6 +251,7 @@ declare const _default: import("vue").DefineComponent<{
226
251
  NCheckbox: any;
227
252
  NTree: any;
228
253
  NIcon: any;
254
+ NSpace: any;
229
255
  CloseCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
230
256
  SearchTree: import("vue").DefineComponent<{
231
257
  visible: {
@@ -419,6 +445,18 @@ declare const _default: import("vue").DefineComponent<{
419
445
  queryTreeSearch: {
420
446
  type: FunctionConstructor;
421
447
  };
448
+ showCount: {
449
+ type: BooleanConstructor;
450
+ default: boolean;
451
+ };
452
+ showClear: {
453
+ type: BooleanConstructor;
454
+ default: boolean;
455
+ };
456
+ multiple: {
457
+ type: BooleanConstructor;
458
+ default: boolean;
459
+ };
422
460
  }>> & {
423
461
  onChange?: ((...args: any[]) => any) | undefined;
424
462
  onCheck?: ((...args: any[]) => any) | undefined;
@@ -436,5 +474,8 @@ declare const _default: import("vue").DefineComponent<{
436
474
  wordbook: Record<string, any>;
437
475
  wordbookChild: Record<string, any>;
438
476
  SearchLoadMore: boolean;
477
+ showCount: boolean;
478
+ showClear: boolean;
479
+ multiple: boolean;
439
480
  }>;
440
481
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, reactive, computed, nextTick, watch, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, createCommentVNode, withKeys, createTextVNode, toDisplayString, createBlock, withDirectives, vShow, mergeProps, renderSlot, Fragment, renderList, normalizeClass } from 'vue';
2
- import { useMessage, NSpin, NInputGroup, NInput, NButton, NCheckbox, NTree, NIcon, NTooltip } from 'naive-ui';
2
+ import { useMessage, NSpin, NInputGroup, NInput, NButton, NCheckbox, NTree, NSpace, NIcon, NTooltip } from 'naive-ui';
3
3
  import { CloseCircleSharp } from '@vicons/ionicons5';
4
4
  import XEUtils from 'xe-utils';
5
5
  import 'moment';
@@ -18,7 +18,10 @@ const _hoisted_3 = {
18
18
  const _hoisted_4 = /* @__PURE__ */ createTextVNode(" \u5168\u9009 ");
19
19
  const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u5168\u9009 ");
20
20
  const _hoisted_6 = {
21
- class: "people-tree-item tags-box"
21
+ class: "people-tree-item"
22
+ };
23
+ const _hoisted_7 = {
24
+ key: 0
22
25
  };
23
26
  var _sfc_main = /* @__PURE__ */ defineComponent({
24
27
  __name: "SelectPerson",
@@ -67,6 +70,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
67
70
  },
68
71
  queryTreeSearch: {
69
72
  type: Function
73
+ },
74
+ showCount: {
75
+ type: Boolean,
76
+ default: true
77
+ },
78
+ showClear: {
79
+ type: Boolean,
80
+ default: true
81
+ },
82
+ multiple: {
83
+ type: Boolean,
84
+ default: true
70
85
  }
71
86
  },
72
87
  emits: ["check", "pubCheckedTreeItem", "handleOk", "change", "submitData", "update:visible"],
@@ -724,6 +739,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
724
739
  removedCheckedkeysOther(removedTag);
725
740
  refreshSearchTree();
726
741
  };
742
+ function clearAll() {
743
+ state.defaultShowList = [];
744
+ state.indeterminate = state.singleChecked = false;
745
+ checkedTreeItem.value.forEach((tag) => closeTag(tag));
746
+ }
727
747
  const removeCheckedkeysIncludeChildren = (parentKey) => {
728
748
  let needRemoveChildKeys = state.dataList.main.filter((i) => {
729
749
  let parentId = getParentId(i);
@@ -848,7 +868,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
848
868
  value: state.title,
849
869
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => state.title = $event),
850
870
  placeholder: __props.searchPlaceholder,
851
- onKeyup: withKeys(searchClick, ["enter", "native"])
871
+ onKeyup: withKeys(searchClick, ["enter"])
852
872
  }, null, 8, ["value", "placeholder", "onKeyup"]), createVNode(unref(NButton), {
853
873
  type: "primary",
854
874
  onClick: searchClick
@@ -865,7 +885,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
865
885
  }, {
866
886
  default: withCtx(() => [_hoisted_4]),
867
887
  _: 1
868
- }, 8, ["checked", "indeterminate"])) : (openBlock(), createBlock(unref(NCheckbox), {
888
+ }, 8, ["checked", "indeterminate"])) : createCommentVNode("v-if", true), !unref(searchTreeVisable) && __props.multiple ? (openBlock(), createBlock(unref(NCheckbox), {
869
889
  key: 1,
870
890
  checked: state.singleChecked,
871
891
  indeterminate: state.searchIndeterminate,
@@ -873,21 +893,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
873
893
  }, {
874
894
  default: withCtx(() => [_hoisted_5]),
875
895
  _: 1
876
- }, 8, ["checked", "indeterminate"])), createCommentVNode(' <div v-show="state.search.status == 3 || (state.search.status == 0 && state.treeData.main && state.treeData.main.length == 0)" class="no-data-tips">\n \u67E5\u65E0\u7ED3\u679C\n </div> '), createCommentVNode(" main tree "), withDirectives(createVNode(unref(NTree), {
896
+ }, 8, ["checked", "indeterminate"])) : createCommentVNode("v-if", true), createCommentVNode(' <div v-show="state.search.status == 3 || (state.search.status == 0 && state.treeData.main && state.treeData.main.length == 0)" class="no-data-tips">\n \u67E5\u65E0\u7ED3\u679C\n </div> '), createCommentVNode(" main tree "), withDirectives(createVNode(unref(NTree), {
877
897
  class: "main-tree-container",
878
898
  "checked-keys": state.checkedKeys.main,
879
899
  "onUpdate:checked-keys": _cache[2] || (_cache[2] = ($event) => state.checkedKeys.main = $event),
880
900
  "expanded-keys": state.expandedKeys,
881
- checkable: "",
901
+ checkable: __props.multiple,
882
902
  cascade: "",
883
903
  "allow-checking-not-loaded": "",
884
- selectable: false,
904
+ selectable: !__props.multiple,
905
+ "selected-keys": state.checkedKeys.main,
906
+ "onUpdate:selected-keys": _cache[3] || (_cache[3] = ($event) => state.checkedKeys.main = $event),
885
907
  data: state.treeData.main,
886
908
  "check-strategy": __props.queryMainTreeData ? "all" : "child",
887
909
  "onUpdate:expandedKeys": onExpand,
888
910
  "on-load": onLoadData,
889
911
  "render-label": renderLabel
890
- }, null, 8, ["checked-keys", "expanded-keys", "data", "check-strategy"]), [[vShow, state.search.status == 0]]), createCommentVNode(" search tree "), createVNode(SearchTree, mergeProps(_ctx.$attrs, {
912
+ }, null, 8, ["checked-keys", "expanded-keys", "checkable", "selectable", "selected-keys", "data", "check-strategy"]), [[vShow, state.search.status == 0]]), createCommentVNode(" search tree "), createVNode(SearchTree, mergeProps(_ctx.$attrs, {
891
913
  ref_key: "searchTree",
892
914
  ref: searchTree,
893
915
  visible: unref(searchTreeVisable),
@@ -903,8 +925,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
903
925
  onAddCheckedkeysOther: addCheckedkeysOther,
904
926
  onRemoveCheckedkeysOther: removeCheckedkeysOther,
905
927
  onSearchOnloadMore: searchOnloadMore
906
- }), null, 16, ["visible", "formatTreeData", "searchValue", "allCheckedKeys", "defaultExpandedKeys", "dataListKeys", "searchNoMore", "loadMorenLoadinng"])]), createCommentVNode(" \u6811\u5DF2\u9009\u7684\u6570\u636E "), createElementVNode("div", _hoisted_6, [state.defaultShowList && state.defaultShowList.length ? renderSlot(_ctx.$slots, "default", {
907
- key: 0
928
+ }), null, 16, ["visible", "formatTreeData", "searchValue", "allCheckedKeys", "defaultExpandedKeys", "dataListKeys", "searchNoMore", "loadMorenLoadinng"])]), createCommentVNode(" \u6811\u5DF2\u9009\u7684\u6570\u636E "), createElementVNode("div", _hoisted_6, [state.defaultShowList.length || unref(checkedTreeItem).length ? (openBlock(), createBlock(unref(NSpace), {
929
+ key: 0,
930
+ justify: "space-between",
931
+ style: {
932
+ "margin-bottom": "20px"
933
+ }
934
+ }, {
935
+ default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("div", _hoisted_7, "\u5DF2\u9009\u62E9\uFF1A" + toDisplayString(state.defaultShowList.length + unref(checkedTreeItem).length), 1)) : createCommentVNode("v-if", true), __props.showClear ? (openBlock(), createElementBlock("div", {
936
+ key: 1,
937
+ class: "clear-btn",
938
+ onClick: clearAll
939
+ }, "\u6E05\u7A7A")) : createCommentVNode("v-if", true)]),
940
+ _: 1
941
+ })) : createCommentVNode("v-if", true), state.defaultShowList && state.defaultShowList.length ? renderSlot(_ctx.$slots, "default", {
942
+ key: 1
908
943
  }, () => [(openBlock(true), createElementBlock(Fragment, null, renderList(state.defaultShowList, (tag, i) => {
909
944
  return openBlock(), createElementBlock("div", {
910
945
  class: "tag-item def-item",
@@ -1 +1 @@
1
- .people-tree{display:flex}.people-tree .people-tree-item{height:376px;max-height:376px;overflow-y:auto;padding:22px 12px 0;width:50%}.people-tree .people-tree-item.people-tree-left{display:flex;flex-direction:column}.people-tree .people-tree-item:first-child{border-right:1px solid #e8e8e8}.people-tree .people-tree-item .tag-item{align-items:center;background:hsla(0,0%,84%,.2);border:1px solid rgba(0,0,0,.14);border-radius:4px;box-sizing:border-box;color:#212121;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin-bottom:4px;margin-right:8px;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.people-tree .people-tree-item .tag-item.isRoot{background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);color:#5585f5}.people-tree .people-tree-item .tag-item.isRoot .tag-close{color:#5585f5}.people-tree .people-tree-item .tag-item.isRoot .tag-close:hover{color:rgba(85,133,245,.6)}.people-tree .people-tree-item .tag-item .tag-close{color:#969696;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.people-tree .people-tree-item .tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.people-tree .people-tree-item .tag-item .tag-close:active{color:#fff}.people-tree .people-tree-item .no-data-tips{align-items:center;display:flex;font-size:16px;font-weight:700;height:200px;justify-content:center;width:100%}.people-tree .people-tree-item .c-title{color:#212121;font-family:PingFangSC-Regular,PingFang SC;font-size:14px;font-weight:400}.people-tree .people-tree-item .c-sub-title{color:#4e4e4e;font-family:PingFangSC-Regular,PingFang SC;font-size:12px}.people-tree .people-tree-item .p-title{color:#212121;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500}.people-tree .people-tree-item.tags-box{align-content:flex-start;align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start}.search-input-icon{color:rgba(0,0,0,.4);margin-bottom:-2px}.main-tree-container{overflow-y:auto}.df{display:flex}.search-tree-wrap .name-wrap,.search-tree-wrap .search-tree-item{align-items:center;display:flex}.search-tree-wrap .name-wrap{background:#7d88b5;border-radius:50%;height:48px;justify-content:center;margin-right:13px;width:48px}.search-tree-wrap .name-wrap .name{color:#fff;font-size:16px;line-height:16px;margin-bottom:0}.search-tree-wrap .info-wrap{display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-tree-wrap .info-wrap-top{align-items:flex-end;margin:0 0 1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-tree-wrap .info-wrap-title{color:#4e4e4e;font-family:PingFangSC-Regular,PingFang SC;font-size:16px;font-weight:400;line-height:16px;margin-bottom:0}.search-tree-wrap .info-wrap-title .c-title{color:#212121;font-family:PingFangSC-Regular,PingFang SC;font-size:14px;font-weight:400}.search-tree-wrap .info-wrap-title .c-sub-title{color:#4e4e4e;font-family:PingFangSC-Regular,PingFang SC;font-size:12px}.search-tree-wrap .info-wrap-desc{color:#aeaeae;font-size:12px;line-height:17px;margin-bottom:0;margin-left:10px}.search-tree-wrap .info-wrap-position{color:#7d88b5;font-size:12px;line-height:17px;margin-bottom:0}.load-more-btn-wrap{box-sizing:border-box;cursor:pointer;display:flex;height:35px;justify-content:center;line-height:35px;padding-top:10px}.load-more-btn-wrap .search-input-icon{color:rgba(0,0,0,.4);font-size:16px;margin-right:14px}.load-more-btn-wrap .load-more-btn{color:#747c8e;font-size:12px;line-height:12px}
1
+ .people-tree{display:flex}.people-tree .people-tree-item{height:376px;max-height:376px;overflow-y:auto;padding:22px 12px 0;width:50%}.people-tree .people-tree-item.people-tree-left{display:flex;flex-direction:column}.people-tree .people-tree-item:first-child{border-right:1px solid #e8e8e8}.people-tree .people-tree-item .tag-item{align-items:center;background:hsla(0,0%,84%,.2);border:1px solid rgba(0,0,0,.14);border-radius:4px;box-sizing:border-box;color:#212121;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin-bottom:4px;margin-right:8px;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.people-tree .people-tree-item .tag-item.isRoot{background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);color:#5585f5}.people-tree .people-tree-item .tag-item.isRoot .tag-close{color:#5585f5}.people-tree .people-tree-item .tag-item.isRoot .tag-close:hover{color:rgba(85,133,245,.6)}.people-tree .people-tree-item .tag-item .tag-close{color:#969696;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.people-tree .people-tree-item .tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.people-tree .people-tree-item .tag-item .tag-close:active{color:#fff}.people-tree .people-tree-item .no-data-tips{align-items:center;display:flex;font-size:16px;font-weight:700;height:200px;justify-content:center;width:100%}.people-tree .people-tree-item .c-title{color:#212121;font-family:PingFangSC-Regular,PingFang SC;font-size:14px;font-weight:400}.people-tree .people-tree-item .c-sub-title{color:#4e4e4e;font-family:PingFangSC-Regular,PingFang SC;font-size:12px}.people-tree .people-tree-item .p-title{color:#212121;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500}.people-tree .people-tree-item .clear-btn{color:#5585f5;cursor:pointer}.search-input-icon{color:rgba(0,0,0,.4);margin-bottom:-2px}.main-tree-container{overflow-y:auto}.df{display:flex}.search-tree-wrap .name-wrap,.search-tree-wrap .search-tree-item{align-items:center;display:flex}.search-tree-wrap .name-wrap{background:#7d88b5;border-radius:50%;height:48px;justify-content:center;margin-right:13px;width:48px}.search-tree-wrap .name-wrap .name{color:#fff;font-size:16px;line-height:16px;margin-bottom:0}.search-tree-wrap .info-wrap{display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-tree-wrap .info-wrap-top{align-items:flex-end;margin:0 0 1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-tree-wrap .info-wrap-title{color:#4e4e4e;font-family:PingFangSC-Regular,PingFang SC;font-size:16px;font-weight:400;line-height:16px;margin-bottom:0}.search-tree-wrap .info-wrap-title .c-title{color:#212121;font-family:PingFangSC-Regular,PingFang SC;font-size:14px;font-weight:400}.search-tree-wrap .info-wrap-title .c-sub-title{color:#4e4e4e;font-family:PingFangSC-Regular,PingFang SC;font-size:12px}.search-tree-wrap .info-wrap-desc{color:#aeaeae;font-size:12px;line-height:17px;margin-bottom:0;margin-left:10px}.search-tree-wrap .info-wrap-position{color:#7d88b5;font-size:12px;line-height:17px;margin-bottom:0}.load-more-btn-wrap{box-sizing:border-box;cursor:pointer;display:flex;height:35px;justify-content:center;line-height:35px;padding-top:10px}.load-more-btn-wrap .search-input-icon{color:rgba(0,0,0,.4);font-size:16px;margin-right:14px}.load-more-btn-wrap .load-more-btn{color:#747c8e;font-size:12px;line-height:12px}
@@ -1,4 +1,5 @@
1
1
  import { defineComponent, ref, provide, onBeforeUnmount, openBlock, createElementBlock, renderSlot } from 'vue';
2
+ import { uuidGenerator } from '../../../shared/utils/index2.js';
2
3
  import { InjectionShortcutManager } from './constants/index2.js';
3
4
  import '../index2.js';
4
5
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
@@ -12,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
13
  setup(__props) {
13
14
  const props = __props;
14
15
  const shortcutWrapperRef = ref();
15
- const manager = new ShortcutManager(shortcutWrapperRef, props.scope || String(Date.now())).start();
16
+ const manager = new ShortcutManager(shortcutWrapperRef, props.scope || uuidGenerator()).start();
16
17
  provide(InjectionShortcutManager, manager);
17
18
  onBeforeUnmount(() => {
18
19
  manager.destroy();
@@ -100,6 +100,12 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
100
100
  search_key?: string[] | undefined;
101
101
  type?: string | undefined;
102
102
  value_key?: string | undefined;
103
+ level_key?: string | undefined;
104
+ link_key?: string | undefined;
105
+ link_key_split?: string | undefined;
106
+ show_key?: string[] | undefined;
107
+ conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
108
+ conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
103
109
  } | undefined;
104
110
  open?: {
105
111
  value?: any;
@@ -102,6 +102,12 @@ declare const _default: import("vue").DefineComponent<{
102
102
  search_key?: string[] | undefined;
103
103
  type?: string | undefined;
104
104
  value_key?: string | undefined;
105
+ level_key?: string | undefined;
106
+ link_key?: string | undefined;
107
+ link_key_split?: string | undefined;
108
+ show_key?: string[] | undefined;
109
+ conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
110
+ conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
105
111
  } | undefined;
106
112
  open?: {
107
113
  value?: any;
@@ -0,0 +1,74 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, toDisplayString } from 'vue';
2
+ import img$1 from '../../assets/img/nodata.js';
3
+ import img$3 from '../../assets/img/no-permission.js';
4
+ import img$2 from '../../assets/img/failure.js';
5
+ import img from '../../assets/img/notfound.js';
6
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
7
+
8
+ const _hoisted_1 = { class: "no-data-tip NoData-page" };
9
+ const _hoisted_2 = ["src"];
10
+ const _hoisted_3 = { key: 1 };
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ __name: "NoData",
13
+ props: {
14
+ noDataTip: {
15
+ type: String,
16
+ default: "\u6682\u65E0\u6570\u636E"
17
+ },
18
+ noDataImg: {
19
+ type: String,
20
+ default: "nodata"
21
+ },
22
+ showImg: {
23
+ type: Boolean,
24
+ default: true
25
+ }
26
+ },
27
+ setup(__props) {
28
+ const props = __props;
29
+ const imgStr = computed(() => {
30
+ let str = null;
31
+ switch (props.noDataImg) {
32
+ case "no-permission":
33
+ str = img$3;
34
+ break;
35
+ case "failure":
36
+ str = img$2;
37
+ break;
38
+ case "nodata":
39
+ str = img$1;
40
+ break;
41
+ default:
42
+ str = img;
43
+ break;
44
+ }
45
+ return str;
46
+ });
47
+ const handleDesc = computed(() => {
48
+ let res = "";
49
+ switch (props.noDataImg) {
50
+ case "no-permission":
51
+ res = "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
52
+ break;
53
+ case "failure":
54
+ res = "\u8BF7\u7A0D\u540E\u518D\u8BD5";
55
+ break;
56
+ }
57
+ return res;
58
+ });
59
+ return (_ctx, _cache) => {
60
+ return openBlock(), createElementBlock("div", _hoisted_1, [
61
+ __props.showImg ? (openBlock(), createElementBlock("img", {
62
+ key: 0,
63
+ src: unref(imgStr),
64
+ alt: ""
65
+ }, null, 8, _hoisted_2)) : createCommentVNode("v-if", true),
66
+ createElementVNode("p", null, toDisplayString(__props.noDataTip), 1),
67
+ unref(handleDesc) ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(unref(handleDesc)), 1)) : createCommentVNode("v-if", true)
68
+ ]);
69
+ };
70
+ }
71
+ });
72
+ var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "NoData.vue"]]);
73
+
74
+ export { script as default };
@@ -0,0 +1,51 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ noDataTip: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ noDataImg: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ showImg: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ }, {
15
+ imgStr: import("vue").ComputedRef<null>;
16
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
17
+ noDataTip: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ noDataImg: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ showImg: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ }>> & {
30
+ [x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
31
+ }>>;
32
+ handleDesc: import("vue").ComputedRef<string>;
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
+ noDataTip: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ noDataImg: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ showImg: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ }>>, {
47
+ noDataTip: string;
48
+ noDataImg: string;
49
+ showImg: boolean;
50
+ }>;
51
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import script from './NoData.vue';
2
+ export default script;
@@ -0,0 +1 @@
1
+ export { default } from './NoData.js';
@@ -0,0 +1,2 @@
1
+ import script from './NoData.js';
2
+ export { default } from './NoData.js';
@@ -1,6 +1,6 @@
1
1
  import { AnyObject, ArrayAble } from '../../../es/shared/types';
2
2
  import { App, Component } from 'vue';
3
- export declare function traverse<T extends ArrayAble<AnyObject>>(target: T, handler: (item: T extends Array<infer P> ? P : T) => void, keys?: ArrayAble<string>): void;
3
+ export declare function traverse<T extends ArrayAble<AnyObject>>(target: T, handler: (item: T extends Array<infer P> ? P : T, stop: () => void) => void, keys?: ArrayAble<string>): void;
4
4
  export declare function safeComponentRegister(app: App, component: Component, cName?: string | undefined, scheduler?: () => void): void;
5
5
  export declare function generateTimeFormat(format: string): string | undefined;
6
6
  export declare function arrayed<T>(maybeArray: T): T extends Array<any> ? T : [T];
@@ -2,12 +2,21 @@ import { useMemoize } from '@vueuse/core';
2
2
  import { isArray, isString } from 'lodash-es';
3
3
 
4
4
  function traverse(target, handler, keys = "children") {
5
- arrayed(target).forEach((item) => {
6
- handler(item);
7
- arrayed(keys).forEach((key) => {
8
- isArray(item[key]) && traverse(item[key], handler);
5
+ function stop() {
6
+ throw "silence break traverse";
7
+ }
8
+ try {
9
+ arrayed(target).forEach((item) => {
10
+ handler(item, stop);
11
+ arrayed(keys).forEach((key) => {
12
+ isArray(item[key]) && traverse(item[key], handler);
13
+ });
9
14
  });
10
- });
15
+ } catch (err) {
16
+ if (err === "silence break traverse")
17
+ return;
18
+ throw err;
19
+ }
11
20
  }
12
21
  function safeComponentRegister(app, component, cName = component.name, scheduler) {
13
22
  if (!cName)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.23-beta.0",
3
+ "version": "3.1.23-beta.11",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -66,5 +66,5 @@
66
66
  "iOS 7",
67
67
  "last 3 iOS versions"
68
68
  ],
69
- "gitHead": "3239c2e9a7ced5091266fc42e325a148eac27b4c"
69
+ "gitHead": "5582c78f5b4a4e969ee1e6089307d2142107816c"
70
70
  }
@@ -1,4 +0,0 @@
1
- export declare const useCommon: (props: any, attrs: any) => {
2
- formRef: import("vue").Ref<HTMLElement | null>;
3
- isShow: import("vue").Ref<boolean>;
4
- };
File without changes
@@ -1 +0,0 @@
1
- declare module 'bpmn-js/lib/Viewer';
@@ -1 +0,0 @@
1
- declare module 'bpmn-js/lib/features/modeling';
@@ -1 +0,0 @@
1
- declare module 'diagram-js/lib/navigation/movecanvas';