cnhis-design-vue 3.1.1 → 3.1.2

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/es/grid/index.css CHANGED
@@ -506,37 +506,6 @@ body > .vxe-table--tooltip-wrapper {
506
506
  height: 20px;
507
507
  }
508
508
 
509
- .text-over-tooltip-components[data-v-6633a934] {
510
- display: inline-block;
511
- max-width: 98%;
512
- /* 文字超出宽度显示省略号 单行 */
513
- /* 自定义样式 */
514
- }
515
- .text-over-tooltip-components[data-v-6633a934] .ellipsis[data-v-6633a934] {
516
- font-size: 14px;
517
- color: #35393c;
518
- overflow: hidden;
519
- text-overflow: ellipsis;
520
- white-space: nowrap;
521
- }
522
- .text-over-tooltip-components[data-v-6633a934] .ellipsis[data-v-6633a934] i[data-v-6633a934] {
523
- font-style: normal;
524
- word-break: keep-all;
525
- white-space: nowrap;
526
- }
527
- .text-over-tooltip-components[data-v-6633a934] .fs20[data-v-6633a934] {
528
- font-size: 20px;
529
- font-weight: 600;
530
- color: green;
531
- line-height: 22px;
532
- }
533
- .text-over-tooltip-components[data-v-6633a934] .fs12[data-v-6633a934] {
534
- font-size: 12px;
535
- font-weight: 400;
536
- color: orange;
537
- line-height: 14px;
538
- }
539
-
540
509
  .no-data-tip[data-v-4a4b0812] {
541
510
  display: -webkit-box;
542
511
  display: -webkit-flex;
@@ -576,6 +545,37 @@ body > .vxe-table--tooltip-wrapper {
576
545
  margin-top: 6px;
577
546
  }
578
547
 
548
+ .text-over-tooltip-components[data-v-6633a934] {
549
+ display: inline-block;
550
+ max-width: 98%;
551
+ /* 文字超出宽度显示省略号 单行 */
552
+ /* 自定义样式 */
553
+ }
554
+ .text-over-tooltip-components[data-v-6633a934] .ellipsis[data-v-6633a934] {
555
+ font-size: 14px;
556
+ color: #35393c;
557
+ overflow: hidden;
558
+ text-overflow: ellipsis;
559
+ white-space: nowrap;
560
+ }
561
+ .text-over-tooltip-components[data-v-6633a934] .ellipsis[data-v-6633a934] i[data-v-6633a934] {
562
+ font-style: normal;
563
+ word-break: keep-all;
564
+ white-space: nowrap;
565
+ }
566
+ .text-over-tooltip-components[data-v-6633a934] .fs20[data-v-6633a934] {
567
+ font-size: 20px;
568
+ font-weight: 600;
569
+ color: green;
570
+ line-height: 22px;
571
+ }
572
+ .text-over-tooltip-components[data-v-6633a934] .fs12[data-v-6633a934] {
573
+ font-size: 12px;
574
+ font-weight: 400;
575
+ color: orange;
576
+ line-height: 14px;
577
+ }
578
+
579
579
 
580
580
  .svg-icon[data-v-d1ad5be8] {
581
581
  width: 1em;
@@ -596,25 +596,25 @@ body > .vxe-table--tooltip-wrapper {
596
596
  color: #5585f5;
597
597
  }
598
598
 
599
- .login-form[data-v-06588d4e] {
600
- padding-top: 15px;
601
- }
602
- .login-form[data-v-06588d4e][data-v-06588d4e] .n-input {
603
- height: 50px;
604
- font-size: 14px;
605
- color: #757575;
606
- border-radius: 6px;
607
- }
608
599
  .login-form-button[data-v-06588d4e] {
609
600
  width: 100%;
610
601
  height: 50px;
611
- background: #2d7aff;
612
602
  border-radius: 24px;
613
- border-color: #2d7aff !important;
614
603
  font-size: 16px;
615
604
  color: #ffffff;
616
605
  }
617
606
 
607
+ .login-form-button-print {
608
+ padding-top: 15px;
609
+ }
610
+ .login-form-button-print .n-input {
611
+ height: 50px;
612
+ line-height: 50px;
613
+ font-size: 14px;
614
+ color: #757575;
615
+ border-radius: 6px;
616
+ }
617
+
618
618
  .drag-layout-container[data-v-3b2d7d19] {
619
619
  width: 100%;
620
620
  height: 100%;
@@ -735,6 +735,48 @@ body > .vxe-table--tooltip-wrapper {
735
735
  z-index: 2001;
736
736
  }
737
737
 
738
+ .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] {
739
+ width: 100%;
740
+ margin-bottom: 16px;
741
+ overflow: hidden;
742
+ cursor: pointer;
743
+ color: #2e2e2e;
744
+ }
745
+ .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] {
746
+ display: -webkit-box;
747
+ display: -webkit-flex;
748
+ display: -ms-flexbox;
749
+ display: flex;
750
+ -webkit-box-pack: center;
751
+ -webkit-justify-content: center;
752
+ -ms-flex-pack: center;
753
+ justify-content: center;
754
+ -webkit-box-align: center;
755
+ -webkit-align-items: center;
756
+ -ms-flex-align: center;
757
+ align-items: center;
758
+ width: 100%;
759
+ height: 60px;
760
+ padding: 0 8px;
761
+ -webkit-box-sizing: border-box;
762
+ box-sizing: border-box;
763
+ margin-bottom: 8px;
764
+ background: #f3f5f8;
765
+ }
766
+ .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966]-input[data-v-55852966] {
767
+ width: 85%;
768
+ overflow: hidden;
769
+ text-overflow: ellipsis;
770
+ white-space: nowrap;
771
+ cursor: pointer !important;
772
+ }
773
+ .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="radio"][disabled][data-v-55852966],
774
+ .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="checkbox"][disabled][data-v-55852966],
775
+ .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="radio"].disabled[data-v-55852966],
776
+ .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="checkbox"].disabled[data-v-55852966] {
777
+ cursor: pointer !important;
778
+ }
779
+
738
780
  .DragFormRightItem[data-v-2d9603cc] {
739
781
  position: relative;
740
782
  }
@@ -806,48 +848,6 @@ body > .vxe-table--tooltip-wrapper {
806
848
  color: red;
807
849
  }
808
850
 
809
- .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] {
810
- width: 100%;
811
- margin-bottom: 16px;
812
- overflow: hidden;
813
- cursor: pointer;
814
- color: #2e2e2e;
815
- }
816
- .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] {
817
- display: -webkit-box;
818
- display: -webkit-flex;
819
- display: -ms-flexbox;
820
- display: flex;
821
- -webkit-box-pack: center;
822
- -webkit-justify-content: center;
823
- -ms-flex-pack: center;
824
- justify-content: center;
825
- -webkit-box-align: center;
826
- -webkit-align-items: center;
827
- -ms-flex-align: center;
828
- align-items: center;
829
- width: 100%;
830
- height: 60px;
831
- padding: 0 8px;
832
- -webkit-box-sizing: border-box;
833
- box-sizing: border-box;
834
- margin-bottom: 8px;
835
- background: #f3f5f8;
836
- }
837
- .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966]-input[data-v-55852966] {
838
- width: 85%;
839
- overflow: hidden;
840
- text-overflow: ellipsis;
841
- white-space: nowrap;
842
- cursor: pointer !important;
843
- }
844
- .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="radio"][disabled][data-v-55852966],
845
- .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="checkbox"][disabled][data-v-55852966],
846
- .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="radio"].disabled[data-v-55852966],
847
- .DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="checkbox"].disabled[data-v-55852966] {
848
- cursor: pointer !important;
849
- }
850
-
851
851
 
852
852
  .popver-content {
853
853
  height: 400px;
package/es/index.css CHANGED
@@ -1017,25 +1017,25 @@ ul[data-v-726261b7] {
1017
1017
  z-index: 2001;
1018
1018
  }
1019
1019
 
1020
- .login-form[data-v-06588d4e] {
1021
- padding-top: 15px;
1022
- }
1023
- .login-form[data-v-06588d4e][data-v-06588d4e] .n-input {
1024
- height: 50px;
1025
- font-size: 14px;
1026
- color: #757575;
1027
- border-radius: 6px;
1028
- }
1029
1020
  .login-form-button[data-v-06588d4e] {
1030
1021
  width: 100%;
1031
1022
  height: 50px;
1032
- background: #2d7aff;
1033
1023
  border-radius: 24px;
1034
- border-color: #2d7aff !important;
1035
1024
  font-size: 16px;
1036
1025
  color: #ffffff;
1037
1026
  }
1038
1027
 
1028
+ .login-form-button-print {
1029
+ padding-top: 15px;
1030
+ }
1031
+ .login-form-button-print .n-input {
1032
+ height: 50px;
1033
+ line-height: 50px;
1034
+ font-size: 14px;
1035
+ color: #757575;
1036
+ border-radius: 6px;
1037
+ }
1038
+
1039
1039
  .dropdown-button[data-v-1e5281d7] {
1040
1040
  color: #212121;
1041
1041
  border-color: #d5d5d5 !important;
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { watch, h as h$1, resolveComponent, defineComponent, inject, computed, nextTick, reactive, createApp, ref, Teleport, createCommentVNode, provide, onMounted, onUnmounted, getCurrentInstance, onBeforeUnmount, onActivated, onDeactivated, createVNode, mergeProps, isVNode, openBlock, createElementBlock, unref, createElementVNode, toDisplayString, withCtx, normalizeClass, renderSlot, createTextVNode, useAttrs, normalizeStyle, withDirectives, vShow, Fragment, createBlock, vModelSelect, vModelText, pushScopeId, popScopeId, vModelCheckbox, withModifiers, renderList } from 'vue';
2
2
  import { NInput, NInputNumber, NSelect, NDatePicker, NTooltip, useMessage, NIcon, NPopconfirm, NButton, NInputGroup, NCheckbox, NCheckboxGroup, NSpace, NProgress, NDropdown, NSwitch, NPopover, NSpin, NRadio, NModal, NForm, NGrid, NFormItemGi, NFormItem, NTree } from 'naive-ui';
3
- import { SettingsSharp, CaretDown, CaretForward, CopyOutline, SyncOutline, EllipsisVerticalSharp, Reload, ChevronDown, Search, CloseCircleSharp } from '@vicons/ionicons5';
3
+ import { SettingsSharp, CaretDown, CaretForward, CopyOutline, SyncOutline, EllipsisVerticalSharp, ChevronDown, Search, CloseCircleSharp } from '@vicons/ionicons5';
4
4
  import draggable from 'vuedraggable';
5
5
 
6
6
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -38533,7 +38533,6 @@ var script$d = defineComponent({
38533
38533
  "consistentMenuWidth": false,
38534
38534
  "clearable": true,
38535
38535
  "filterable": true,
38536
- "to": false,
38537
38536
  "placeholder": "\u8BF7\u9009\u62E9",
38538
38537
  "loading": state.loading,
38539
38538
  "onUpdateValue": onUpdateValue
@@ -38608,7 +38607,6 @@ var script$c = defineComponent({
38608
38607
  clearable: props.col.clearable || true,
38609
38608
  disabled: props.col.disabled || false,
38610
38609
  valueFormat: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
38611
- to: false,
38612
38610
  isDateDisabled: props.col.isDateDisabled || isDateDisabled
38613
38611
  };
38614
38612
  if (config.type.includes("time")) {
@@ -38711,12 +38709,11 @@ const useEdit = (props, state, emit, xGrid) => {
38711
38709
  return params.row[item.formatMap.label];
38712
38710
  }
38713
38711
  if (item.options) {
38714
- return item.options.find((v) => v.value == value)?.label || "";
38712
+ return item.options.find((v) => v.value == value)?.label || value || "";
38715
38713
  }
38716
38714
  if (item.queryOptions) {
38717
- return params.row[`${item.columnName}_options`]?.find((v) => v.value === value)?.label || "";
38715
+ return params.row[`${item.columnName}_options`]?.find((v) => v.value === value)?.label || value || "";
38718
38716
  }
38719
- return value;
38720
38717
  }
38721
38718
  return value;
38722
38719
  };
@@ -39590,7 +39587,8 @@ var script$8 = /* @__PURE__ */ defineComponent({
39590
39587
  const GROUP_TITLE_KEY = "group-show-title";
39591
39588
  window.$message = useMessage();
39592
39589
  const xGrid = ref(null);
39593
- const state = reactive(bigTableState);
39590
+ const copyState = xeUtils.clone(bigTableState, true);
39591
+ const state = reactive(copyState);
39594
39592
  const { formatData, htmlToText, getBtnStyle } = useFormat(state);
39595
39593
  const { imgs2imgArr, parseDurationValue, parseCombinationValue, formatFieldText } = useTableParse(formatData);
39596
39594
  const { allSelectedLength, checkOperateCurrentTable, setRowStatus, resetBatchOperationRowStatus, checkListFormUnionSettingParamsList, handleClickCancelBtnByInline, setAllRowInlineStatus, hideSelectCloumns, handleEditFormLength, resetOperationRowStatus, recordClickBtnInfo, getInlineOpreateRow } = useBatchEditing(props, state, emit, xGrid);
@@ -39948,13 +39946,13 @@ var script$8 = /* @__PURE__ */ defineComponent({
39948
39946
  onFormChange
39949
39947
  };
39950
39948
  if (formType === "date") {
39951
- propsData.defaultFormattedValue = row[col.columnName];
39949
+ propsData.formattedValue = row[col.columnName];
39952
39950
  }
39953
39951
  else if (formatMap) {
39954
- propsData.defaultValue = row[formatMap.value];
39952
+ propsData.value = row[formatMap.value];
39955
39953
  }
39956
39954
  else {
39957
- propsData.defaultValue = row[col.columnName];
39955
+ propsData.value = row[col.columnName];
39958
39956
  }
39959
39957
  if (formType === "select") {
39960
39958
  propsData.onSetOptions = (options) => row[`${col.columnName}_options`] = options;
@@ -41441,7 +41439,8 @@ var script$8 = /* @__PURE__ */ defineComponent({
41441
41439
  loadData(value);
41442
41440
  });
41443
41441
  }, {
41444
- immediate: true
41442
+ immediate: true,
41443
+ deep: true
41445
41444
  });
41446
41445
  watch(() => currentCheckedKeys, (val) => {
41447
41446
  setVisibleCheckAllWrap(state, props, currentCheckedKeys.value);
@@ -41591,7 +41590,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
41591
41590
  "highlight-current-row": "",
41592
41591
  "show-footer-overflow": "title",
41593
41592
  "keep-source": "",
41594
- height: "auto",
41593
+ height: props.height ? "auto" : "unset",
41595
41594
  resizable: "",
41596
41595
  "auto-resize": "",
41597
41596
  "seq-config": unref(handleSeqConfig),
@@ -41691,7 +41690,7 @@ var script$8 = /* @__PURE__ */ defineComponent({
41691
41690
  }
41692
41691
  })]),
41693
41692
  _: 3
41694
- }, 8, ["seq-config", "tree-config", "row-id", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
41693
+ }, 8, ["height", "seq-config", "tree-config", "row-id", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
41695
41694
  class: "refresh",
41696
41695
  onClick: hanldeClickRefresh
41697
41696
  }, [createVNode(unref(NIcon), {
@@ -45208,8 +45207,7 @@ var script$3 = /* @__PURE__ */ defineComponent({
45208
45207
  password: { required: true, message: "\u8BF7\u8F93\u5165\u5BC6\u7801" }
45209
45208
  };
45210
45209
  const style = {
45211
- width: "416px",
45212
- height: "328px"
45210
+ width: "416px"
45213
45211
  };
45214
45212
  const formRef = ref(null);
45215
45213
  const handleClickClose = () => {
@@ -45249,13 +45247,13 @@ var script$3 = /* @__PURE__ */ defineComponent({
45249
45247
  show: __props.modelValue,
45250
45248
  "close-on-esc": false,
45251
45249
  "show-icon": false,
45252
- style: normalizeStyle({ width: style.width, maxHeight: style.height, overflowY: "auto" }),
45253
- onAfterLeave: handleClickClose
45250
+ style: normalizeStyle({ width: style.width, overflowY: "auto" }),
45251
+ onClose: handleClickClose
45254
45252
  }, {
45255
45253
  default: withCtx(() => [
45256
45254
  createElementVNode("div", _hoisted_1$2, [
45257
45255
  createVNode(unref(NForm), {
45258
- class: "login-form",
45256
+ class: "login-form-button-print",
45259
45257
  ref_key: "formRef",
45260
45258
  ref: formRef,
45261
45259
  model: unref(form),
@@ -45376,9 +45374,19 @@ var script$2 = /* @__PURE__ */ defineComponent({
45376
45374
  printParams: {
45377
45375
  type: Array,
45378
45376
  required: false
45377
+ },
45378
+ clickPrevFn: {
45379
+ type: Function,
45380
+ required: false,
45381
+ default: () => Promise.resolve(true)
45382
+ },
45383
+ noDataMsg: {
45384
+ type: String,
45385
+ required: false,
45386
+ default: "\u8BF7\u9009\u4E2D\u9700\u8981\u6253\u5370\u7684\u6570\u636E"
45379
45387
  }
45380
45388
  },
45381
- emits: ["success", "error"],
45389
+ emits: ["success", "error", "clickoutside"],
45382
45390
  setup(__props, { emit }) {
45383
45391
  const props = __props;
45384
45392
  window.$message = useMessage();
@@ -45556,16 +45564,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
45556
45564
  };
45557
45565
  const handleClickOutside = () => {
45558
45566
  state.visible = false;
45559
- };
45560
- const handleClickWrap = () => {
45561
- setTimeout(() => {
45562
- state.visible = true;
45563
- }, 0);
45564
- };
45565
- const setTimeoutSpin = () => {
45566
- state.spinTimer = setTimeout(() => {
45567
- state.spinning = true;
45568
- }, 1500);
45567
+ emit("clickoutside");
45569
45568
  };
45570
45569
  const instantiatePrintSDK = () => {
45571
45570
  if (printInstance)
@@ -45600,16 +45599,9 @@ var script$2 = /* @__PURE__ */ defineComponent({
45600
45599
  });
45601
45600
  return formatList;
45602
45601
  };
45603
- const setLoaded = () => {
45604
- state.spinning = false;
45605
- if (!state.spinTimer)
45606
- return false;
45607
- clearTimeout(state.spinTimer);
45608
- state.spinTimer = null;
45609
- };
45610
45602
  const requestError = () => {
45611
45603
  state.isInited = false;
45612
- setLoaded();
45604
+ state.spinning = false;
45613
45605
  setTimeout(() => {
45614
45606
  state.visible = false;
45615
45607
  }, 0);
@@ -45678,14 +45670,21 @@ var script$2 = /* @__PURE__ */ defineComponent({
45678
45670
  if (state.isInited)
45679
45671
  return true;
45680
45672
  state.isInited = true;
45681
- setTimeoutSpin();
45673
+ state.spinning = true;
45682
45674
  instantiatePrintSDK();
45683
45675
  const formatListResult = await props.queryPrintFormatByNumber();
45684
45676
  await initCRM(formatListResult);
45685
- setLoaded();
45677
+ state.spinning = false;
45686
45678
  return true;
45687
45679
  };
45688
45680
  const handleClickBtn = async () => {
45681
+ const status = await props.clickPrevFn();
45682
+ if (!status)
45683
+ return;
45684
+ if (!props.params?.length) {
45685
+ window.$message.warning(props.noDataMsg);
45686
+ return;
45687
+ }
45689
45688
  if (!state.visible) {
45690
45689
  let result = await init();
45691
45690
  if (!result)
@@ -45728,11 +45727,10 @@ var script$2 = /* @__PURE__ */ defineComponent({
45728
45727
  deep: true
45729
45728
  });
45730
45729
  return (_ctx, _cache) => {
45731
- return openBlock(), createElementBlock("span", {
45732
- onClick: handleClickWrap
45733
- }, [createVNode(unref(NDropdown), {
45730
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(NDropdown), {
45734
45731
  class: "rowFoldHideBtnList-dropdown",
45735
45732
  placement: "bottom-start",
45733
+ trigger: "click",
45736
45734
  show: unref(state).visible,
45737
45735
  onClickoutside: handleClickOutside,
45738
45736
  options: unref(options),
@@ -45751,13 +45749,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
45751
45749
  },
45752
45750
  onClick: withModifiers(handleClickBtn, ["stop"])
45753
45751
  }, {
45754
- default: withCtx(() => [unref(state).spinning ? (openBlock(), createBlock(unref(NIcon), {
45755
- key: 0,
45756
- component: unref(Reload),
45757
- style: {
45758
- "line-height": "10px"
45759
- }
45760
- }, null, 8, ["component"])) : createCommentVNode("v-if", true), createTextVNode(" " + toDisplayString(__props.btnText) + " ", 1), createVNode(unref(NIcon), {
45752
+ default: withCtx(() => [createCommentVNode(' <n-spin v-show="state.spinning" size="small"></n-spin> '), createTextVNode(toDisplayString(__props.btnText) + " ", 1), createVNode(unref(NIcon), {
45761
45753
  component: unref(ChevronDown)
45762
45754
  }, null, 8, ["component"])]),
45763
45755
  _: 1
@@ -45768,7 +45760,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
45768
45760
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(state).identityVerification.visible = $event)
45769
45761
  }, _ctx.$attrs, {
45770
45762
  onSuccess: verifiySuccess
45771
- }), null, 16, ["modelValue"])]);
45763
+ }), null, 16, ["modelValue"])], 64);
45772
45764
  };
45773
45765
  }
45774
45766
  });