cnhis-design-vue 3.1.16-beta.4 → 3.1.16-beta.7

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 (41) hide show
  1. package/es/packages/big-table/index.d.ts +1 -429
  2. package/es/packages/big-table/src/BigTable.vue.d.ts +26 -458
  3. package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +61 -97
  4. package/es/packages/big-table/style/index.css +1 -2
  5. package/es/packages/fabric-chart/src/hooks/useLeft.js +8 -4
  6. package/es/packages/form-config/index.d.ts +23 -9
  7. package/es/packages/form-config/src/FormConfig.vue.d.ts +23 -9
  8. package/es/packages/form-config/src/components/FormConfigCreator.vue.d.ts +10 -3
  9. package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +10 -3
  10. package/es/packages/form-config/src/hooks/useSortable.d.ts +1 -0
  11. package/es/packages/form-render/index.d.ts +10 -3
  12. package/es/packages/form-render/src/FormRender.js +7 -3
  13. package/es/packages/form-render/src/FormRender.vue.d.ts +11 -4
  14. package/es/packages/form-render/src/components/renderer/cascader.js +2 -2
  15. package/es/packages/form-render/src/components/renderer/date.d.ts +20 -4
  16. package/es/packages/form-render/src/components/renderer/date.js +36 -20
  17. package/es/packages/form-render/src/components/renderer/linebar.js +1 -4
  18. package/es/packages/form-render/src/components/renderer/select.js +19 -13
  19. package/es/packages/form-render/src/components/renderer/slider.d.ts +8 -344
  20. package/es/packages/form-render/src/components/renderer/slider.js +23 -1
  21. package/es/packages/form-render/src/hooks/useAnchor.js +7 -4
  22. package/es/packages/form-render/src/hooks/useBusinessBinding.d.ts +5 -2
  23. package/es/packages/form-render/src/hooks/useBusinessBinding.js +9 -5
  24. package/es/packages/form-render/src/hooks/useChangeContext.d.ts +4 -2
  25. package/es/packages/form-render/src/hooks/useChangeContext.js +4 -7
  26. package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +4 -4
  27. package/es/packages/form-render/src/hooks/useFormContext.js +1 -1
  28. package/es/packages/form-render/src/hooks/useFormValidator.js +13 -3
  29. package/es/packages/form-render/src/hooks/useInitialData.d.ts +1 -1
  30. package/es/packages/form-render/src/hooks/useInitialData.js +9 -4
  31. package/es/packages/form-render/src/types/index.d.ts +7 -0
  32. package/es/packages/form-render/src/utils/business.js +15 -2
  33. package/es/packages/form-render/src/utils/index.d.ts +1 -1
  34. package/es/packages/form-render/src/utils/index.js +5 -2
  35. package/es/packages/form-render/src/utils/schema.d.ts +1 -0
  36. package/es/packages/form-render/src/utils/schema.js +12 -1
  37. package/es/packages/index.css +1 -2
  38. package/es/packages/shortcut-setter/index.d.ts +10 -3
  39. package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +10 -3
  40. package/global.d.ts +8 -8
  41. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, createVNode, h, resolveComponent, Teleport, createTextVNode, nextTick, watch, openBlock, createElementBlock, Fragment, createCommentVNode, createBlock, unref, withCtx, renderList, createElementVNode, normalizeClass, normalizeStyle, mergeProps, renderSlot, toDisplayString, withDirectives, vShow, isVNode } from 'vue';
1
+ import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, createVNode, h, resolveComponent, Teleport, createTextVNode, nextTick, watch, openBlock, createElementBlock, Fragment, createBlock, unref, withCtx, renderList, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, mergeProps, renderSlot, toDisplayString, withDirectives, vShow, isVNode } from 'vue';
2
2
  import { isArray, isFunction } from 'lodash-es';
3
3
  import bigTableState from './bigTableState.js';
4
4
  import bigTableProps from './bigTableProps.js';
@@ -30,12 +30,9 @@ const _hoisted_1 = {
30
30
  class: "check-wrap"
31
31
  };
32
32
  const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", null, "\u7CFB\u7EDF\u68C0\u6D4B\u5230\u6709\u6570\u636E\u66F4\u65B0,", -1);
33
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("i", {
34
- class: "disabled-checked-tips"
35
- }, null, -1);
33
+ const _hoisted_3 = ["innerHTML"];
36
34
  const _hoisted_4 = ["innerHTML"];
37
- const _hoisted_5 = ["innerHTML"];
38
- const _hoisted_6 = {
35
+ const _hoisted_5 = {
39
36
  class: "refresh-row"
40
37
  };
41
38
  function _isSlot(s) {
@@ -129,7 +126,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
129
126
  let {
130
127
  noSetting
131
128
  } = getOtherConfigInit() || {};
132
- return noSetting || ((_a = props.showSettings) == null ? void 0 : _a.hideSettingBtn) == 1;
129
+ return noSetting || ((_a = props.showSettings) == null ? void 0 : _a.hideSettingBtn);
133
130
  });
134
131
  const isScanMultiTable = computed(() => {
135
132
  var _a;
@@ -340,7 +337,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
340
337
  state.currentPageSelectedLength = currentPageSelectedRows.length;
341
338
  };
342
339
  const formatColumns = (map) => {
343
- var _a, _b;
340
+ var _a, _b, _c;
344
341
  let {
345
342
  selectType
346
343
  } = getOtherConfigInit() || {};
@@ -421,24 +418,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
421
418
  visible: checkVisible,
422
419
  resizable: false,
423
420
  width: checkMinWidth,
424
- slots: selectType === "checkbox" ? checkboxSlot : null,
421
+ slots: selectType === "checkbox" && !((_b = attr.checkboxConfig) == null ? void 0 : _b.checkMethod) ? checkboxSlot : null,
425
422
  showOverflow: true
426
423
  }];
427
424
  const seqObj = columns.find((v) => v.type == "seq");
428
- if ((_b = props == null ? void 0 : props.columnConfig) == null ? void 0 : _b.seqSlotFn) {
425
+ if ((_c = props == null ? void 0 : props.columnConfig) == null ? void 0 : _c.seqSlotFn) {
429
426
  seqObj.slots.default = (params) => {
430
427
  var _a2;
431
428
  return (_a2 = props.columnConfig) == null ? void 0 : _a2.seqSlotFn(params);
432
429
  };
433
430
  }
434
431
  const currentColumns = fieldList.map((item, index) => {
435
- var _a2, _b2, _c, _d, _e, _f, _g;
432
+ var _a2, _b2, _c2, _d, _e, _f, _g;
436
433
  let filterField = false;
437
434
  let filterItems = [];
438
435
  try {
439
436
  const fieldSetting = JSON.parse(item.fieldSetting);
440
437
  filterField = ((_a2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _a2.type) === "manual" && item.isMerge != 1;
441
- filterItems = (_c = (_b2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _b2.mappingFiled) == null ? void 0 : _c.map((item2) => item2.value[0]);
438
+ filterItems = (_c2 = (_b2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _b2.mappingFiled) == null ? void 0 : _c2.map((item2) => item2.value[0]);
442
439
  } catch (e) {
443
440
  }
444
441
  let notParticipatingSort = ((_d = item == null ? void 0 : item.fieldSetting) == null ? void 0 : _d.notParticipatingSort) || "";
@@ -465,31 +462,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
465
462
  treeNode,
466
463
  type,
467
464
  slots: {
468
- edit: (params) => {
469
- if (isEdit && item.isEdit && item.columnName !== "operatorColumn") {
470
- return formatterEdit(params, item);
471
- } else {
472
- return createVNode("span", null, [params.row[item.columnName]]);
473
- }
474
- },
465
+ edit: (params) => formatterEdit(params, item),
475
466
  default: (params) => {
476
- var _a3;
477
- if (!isEdit || item.columnName === "operatorColumn" || !item.isEdit) {
478
- return formatter(params, item);
479
- } else if (item.formType === "separate") {
480
- const SeparateComponent = Separate;
481
- return createVNode(SeparateComponent, {
482
- "row": params.row,
483
- "col": item
484
- }, null);
485
- } else if (isEdit && item.isEdit && ((_a3 = item.checkEditStatus) == null ? void 0 : _a3.call(item, params))) {
486
- return formatterEdit(params, item);
487
- } else {
488
- return createVNode("span", null, [getDefaultValue(params, item)]);
489
- }
467
+ const _isEdit = isEdit && item.isEdit;
468
+ return formatter(params, item, _isEdit);
490
469
  }
491
470
  },
492
- editRender: isEdit ? {} : generateEditRender(item)
471
+ editRender: isEdit && item.isEdit ? {} : generateEditRender(item)
493
472
  });
494
473
  if (filterField && !props.isNestTable && !isScanMultiTable2) {
495
474
  state.filterFields[item.columnName] = Object.assign({}, vexutils.clone({
@@ -594,15 +573,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
594
573
  }
595
574
  });
596
575
  };
597
- const formatter = (params, col) => {
598
- var _a, _b;
576
+ const formatter = (params, col, _isEdit) => {
577
+ var _a, _b, _c;
599
578
  let {
600
579
  row,
601
580
  column,
602
581
  $rowIndex
603
582
  } = params;
604
- let own = (column == null ? void 0 : column._own) || (column == null ? void 0 : column.own) || col;
605
- let attrType = (own == null ? void 0 : own.attrType) || "";
583
+ let attrType = (col == null ? void 0 : col.attrType) || "";
584
+ if (col.formType === "separate") {
585
+ const SeparateComponent = Separate;
586
+ return createVNode(SeparateComponent, {
587
+ "row": params.row,
588
+ "col": col
589
+ }, null);
590
+ }
591
+ if (_isEdit) {
592
+ if ((_a = col.checkEditStatus) == null ? void 0 : _a.call(col, params)) {
593
+ return formatterEdit(params, col);
594
+ } else {
595
+ return createVNode("span", null, [getDefaultValue(params, col)]);
596
+ }
597
+ }
606
598
  let formUnionItem = showEditForm(row, column, $rowIndex);
607
599
  if (formUnionItem) {
608
600
  let dynamicProps = initBatchDynamicProps(formUnionItem, row, column);
@@ -618,66 +610,66 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
618
610
  return row[GROUP_TITLE_KEY];
619
611
  }
620
612
  if (attrType == "PICTURE" || attrType == "HEADPORTRAIT") {
621
- return getPicture(row, own, attrType);
613
+ return getPicture(row, col, attrType);
622
614
  }
623
615
  if (attrType == "COLOR") {
624
- return getColor(row, own);
616
+ return getColor(row, col);
625
617
  }
626
618
  if (attrType == "EVALUATE") {
627
- return getEvaluate(row, own);
619
+ return getEvaluate(row, col);
628
620
  }
629
621
  if (attrType == "MAP") {
630
- return getMapVal(row, own);
622
+ return getMapVal(row, col);
631
623
  }
632
624
  if (attrType == "DATE" || attrType == "TASKDATE") {
633
- return getDate(row, own);
625
+ return getDate(row, col);
634
626
  }
635
627
  if (attrType == "PERCENTAGE") {
636
- return getPercentage(row, own);
628
+ return getPercentage(row, col);
637
629
  }
638
630
  if (attrType == "VIDEO") {
639
- return getvideoList(row, own);
631
+ return getvideoList(row, col);
640
632
  }
641
633
  if (attrType == "CANDIDATE_COMPONENTS") {
642
- return getCandidateComponents(row, own);
634
+ return getCandidateComponents(row, col);
643
635
  }
644
636
  if (attrType == "AGE") {
645
- return getageShowType(row, own);
637
+ return getageShowType(row, col);
646
638
  }
647
639
  if (attrType === "COUNTDOWN") {
648
640
  return createVNode(NTooltip, null, {
649
641
  trigger() {
650
642
  return createVNode("span", {
651
- "innerHTML": row[own.columnName + "_countdown"] || ""
643
+ "innerHTML": row[col.columnName + "_countdown"] || ""
652
644
  }, null);
653
645
  },
654
646
  default() {
655
- return row[own.columnName + "_countdownTip"];
647
+ return row[col.columnName + "_countdownTip"];
656
648
  }
657
649
  });
658
650
  }
659
651
  if (attrType === "DURATION") {
660
- const value = row[own.columnName];
661
- const duration = (_a = own == null ? void 0 : own.fieldSetting) == null ? void 0 : _a.duration;
652
+ const value = row[col.columnName];
653
+ const duration = (_b = col == null ? void 0 : col.fieldSetting) == null ? void 0 : _b.duration;
662
654
  return parseDurationValue(value, duration);
663
655
  }
664
656
  if (attrType === "COMBINATION") {
665
- const value = row[own.columnName];
666
- const params2 = own.fieldSetting || {};
657
+ const value = row[col.columnName];
658
+ const params2 = col.fieldSetting || {};
667
659
  const data = parseCombinationValue(value, params2);
668
660
  return data ? [createVNode("span", {
669
661
  "title": data
670
662
  }, [data])] : "";
671
663
  }
672
664
  if (attrType === "PASSWORD") {
673
- const value = row[own.columnName];
665
+ const value = row[col.columnName];
674
666
  return [createVNode(resolveComponent("password-com"), {
675
667
  "value": value,
676
668
  "styleSetting": props.styleSetting
677
669
  }, null)];
678
670
  }
679
671
  if (attrType === "QR_CODE") {
680
- return getOrCode(row, own);
672
+ return getOrCode(row, col);
681
673
  }
682
674
  if (column.property === "operatorColumn") {
683
675
  if ((col == null ? void 0 : col.formType) === "custom" && col.slotFn && !row.initRow) {
@@ -693,21 +685,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
693
685
  const foldBtnList = getFoldBtnList(row, $rowIndex);
694
686
  return [createVNode("span", null, [tileBtnList, foldBtnList, inlineBtnList])];
695
687
  }
696
- if (isLink(props, own, row) && !isScanMultiTable.value) {
697
- if (own.btnLinkSwitch) {
688
+ if (isLink(props, col, row) && !isScanMultiTable.value) {
689
+ if (col.btnLinkSwitch) {
698
690
  let disabled = false;
699
- let curBtn = (_b = row.btnList) == null ? void 0 : _b.find((v) => v.name == own.columnName);
691
+ let curBtn = (_c = row.btnList) == null ? void 0 : _c.find((v) => v.name == col.columnName);
700
692
  if (curBtn && "authorizedMark" in curBtn) {
701
693
  if (!curBtn.authorizedMark) {
702
694
  disabled = true;
703
695
  }
704
696
  }
705
- return getBtnLinkSwitch(row, own, disabled, $rowIndex);
697
+ return getBtnLinkSwitch(row, col, disabled, $rowIndex);
706
698
  } else {
707
- return getField(row, own, $rowIndex, true);
699
+ return getField(row, col, $rowIndex, true);
708
700
  }
709
701
  } else {
710
- return getField(row, own, $rowIndex, false);
702
+ return getField(row, col, $rowIndex, false);
711
703
  }
712
704
  };
713
705
  const formatterHeader = (item) => {
@@ -1156,9 +1148,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1156
1148
  var _a;
1157
1149
  const {
1158
1150
  row,
1159
- column,
1160
- _rowIndex,
1161
- _columnIndex
1151
+ column
1162
1152
  } = payload;
1163
1153
  if (isFunction(attr.spanMethod))
1164
1154
  return attr.spanMethod(payload);
@@ -1206,8 +1196,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1206
1196
  };
1207
1197
  let {
1208
1198
  $rowIndex,
1209
- _columnIndex,
1210
- column
1199
+ _columnIndex
1211
1200
  } = obj;
1212
1201
  let len = state.columnLen || 99;
1213
1202
  let {
@@ -1532,9 +1521,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1532
1521
  };
1533
1522
  const radioOnChange = (rowData = {}) => {
1534
1523
  let {
1535
- data,
1536
- row,
1537
- $rowIndex
1524
+ row
1538
1525
  } = rowData;
1539
1526
  emit("selectionChange", [{
1540
1527
  ...row
@@ -2283,14 +2270,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2283
2270
  loadData
2284
2271
  });
2285
2272
  return (_ctx, _cache) => {
2286
- return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(` <div
2287
- class="big-table custom-big-table"
2288
- :class="{
2289
- mt: state.visibleCheckAllWrap || state.visibleTreeCheck || state.hasRefresh,
2290
- 'expand-padding': !props.isNestTable
2291
- }"
2292
- :style="{ height: state.tableHeight }"
2293
- > `), state.anchorList.length ? (openBlock(), createBlock(unref(NTabs), {
2273
+ return openBlock(), createElementBlock(Fragment, null, [state.anchorList.length ? (openBlock(), createBlock(unref(NTabs), {
2294
2274
  key: 0,
2295
2275
  type: "line",
2296
2276
  animated: "",
@@ -2319,7 +2299,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2319
2299
  }, [_hoisted_2, createElementVNode("span", {
2320
2300
  class: "check-wrap-btn",
2321
2301
  onClick: refreshTable
2322
- }, "\u70B9\u51FB\u67E5\u770B")])])) : createCommentVNode("v-if", true), createCommentVNode(" \u5168\u9009 \u9009\u62E9\u6846 "), createCommentVNode(' <div\n v-show="state.visibleCheckAllWrap && !props.isInlineOperating && !props.isNestTable"\n class="check-wrap"\n >\n <p class="check-wrap-title">\n <span>\u5DF2\u52FE\u9009\u6570\u636E\u5171{{ allSelectedLength }}\u6761</span>\n <span v-show="state.visibleCheckAllWrapMore">\n \uFF08\u5F53\u524D\u9875{{ state.currentPageSelectedLength }}\u6761\uFF09\n </span>\n </p>\n <template v-if="state.visibleCheckAllWrapMore && !props.asyncCount">\n <p v-if="!visibleCancelCheckAllBtn" class="check-wrap-btn" @click="handleCheckAll">\n <span v-if="pageVO.total > maxCheckSize">\n {{ `\u52FE\u9009\u5168\u90E8\u9875 ${maxCheckSize}\u6761\u6570\u636E` }}\n </span>\n <span v-else>\n {{ `\u52FE\u9009\u5168\u90E8\u9875 ${pageVO.total}\u6761\u6570\u636E` }}\n </span>\n </p>\n <p v-else class="check-wrap-btn" @click="handleCancelAllCheck">\u53D6\u6D88\u5168\u90E8\u52FE\u9009</p>\n </template>\n </div> '), createCommentVNode(" \u6811\u72B6\u8868\u683C\u5DF2\u9009 "), createCommentVNode(' <div\n v-show="state.visibleTreeCheck && !props.isInlineOperating && !props.isNestTable"\n class="check-wrap"\n >\n <p class="check-wrap-title">\n <span>\u5DF2\u52FE\u9009\u6570\u636E\u5171{{ state.treeTableLength }}\u6761</span>\n </p>\n </div> '), createVNode(unref(CGrid), mergeProps({
2302
+ }, "\u70B9\u51FB\u67E5\u770B")])])) : createCommentVNode("v-if", true), createVNode(unref(CGrid), mergeProps({
2323
2303
  ref_key: "xGrid",
2324
2304
  ref: xGrid,
2325
2305
  border: "",
@@ -2401,28 +2381,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2401
2381
  "no-data-tip": props.emptyItems.noDataTip,
2402
2382
  "show-img": !props.isNestTable
2403
2383
  }, null, 8, ["no-data-img", "no-data-tip", "show-img"])]) : createCommentVNode("v-if", true)]),
2404
- tooltip_checkbox: withCtx(({
2405
- row,
2406
- checked
2407
- }) => [row.forbiddenBatchSelect ? (openBlock(), createBlock(unref(NTooltip), {
2408
- key: 0,
2409
- trigger: "hover",
2410
- placement: "right"
2411
- }, {
2412
- trigger: withCtx(() => [_hoisted_3]),
2413
- default: withCtx(() => [createTextVNode(" " + toDisplayString(row.forbiddenBatchSelectReason), 1)]),
2414
- _: 2
2415
- }, 1024)) : (openBlock(), createBlock(unref(NCheckbox), {
2416
- key: 1,
2417
- class: "tooltip-checkbox-item",
2418
- checked
2419
- }, null, 8, ["checked"]))]),
2420
2384
  tooltip_footer: withCtx(({
2421
2385
  column
2422
2386
  }) => [createCommentVNode(" \u5206\u7EC4\u7EDF\u8BA1 "), _ctx.groupCountFields && _ctx.groupCountFields.length ? (openBlock(), createElementBlock("span", {
2423
2387
  key: 0,
2424
2388
  innerHTML: state.groupText
2425
- }, null, 8, _hoisted_4)) : (openBlock(), createElementBlock(Fragment, {
2389
+ }, null, 8, _hoisted_3)) : (openBlock(), createElementBlock(Fragment, {
2426
2390
  key: 1
2427
2391
  }, [createCommentVNode(" \u4E00\u822C\u7EDF\u8BA1 "), createVNode(unref(NTooltip), {
2428
2392
  trigger: "hover"
@@ -2430,7 +2394,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2430
2394
  trigger: withCtx(() => [createTextVNode(toDisplayString(getFooterTitle(column)), 1)]),
2431
2395
  default: withCtx(() => [createElementVNode("div", {
2432
2396
  innerHTML: getFooterTooltipTitle(column)
2433
- }, null, 8, _hoisted_5)]),
2397
+ }, null, 8, _hoisted_4)]),
2434
2398
  _: 2
2435
2399
  }, 1024)], 2112))]),
2436
2400
  nest_table_content: withCtx(({
@@ -2453,7 +2417,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2453
2417
  }, [createVNode(unref(NIcon), {
2454
2418
  size: "14",
2455
2419
  component: unref(SyncOutline)
2456
- }, null, 8, ["component"]), createElementVNode("p", _hoisted_6, toDisplayString(_ctx.refreshRow) + "\u6761\u66F4\u65B0", 1)], 512), [[vShow, props.refreshRow > 0 && !props.isNestTable]])], 6)], 64);
2420
+ }, null, 8, ["component"]), createElementVNode("p", _hoisted_5, toDisplayString(_ctx.refreshRow) + "\u6761\u66F4\u65B0", 1)], 512), [[vShow, props.refreshRow > 0 && !props.isNestTable]])], 6)], 64);
2457
2421
  };
2458
2422
  }
2459
2423
  });
@@ -282,7 +282,7 @@ body > .vxe-table--tooltip-wrapper {
282
282
  height: 30px;
283
283
  line-height: 30px;
284
284
  }
285
- .custom-big-table .vxe-table .vxe-cell--checkbox.is--disabled .vxe-checkbox--icon {
285
+ .custom-big-table .vxe-table .vxe-cell--checkbox .vxe-checkbox--label {
286
286
  display: none;
287
287
  }
288
288
  .custom-big-table .filter-box {
@@ -307,7 +307,6 @@ body > .vxe-table--tooltip-wrapper {
307
307
  }
308
308
  .custom-big-table .disabled-checked-tips {
309
309
  position: absolute;
310
- left: 6px;
311
310
  top: 50%;
312
311
  bottom: 0;
313
312
  right: 0;
@@ -65,12 +65,14 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
65
65
  const list = [];
66
66
  if (item.showScale || item.showNumber) {
67
67
  const { lineXMain, textLeft } = getScaleInfo(item.position, iconsWidth, originX - iconsWidth);
68
+ const listLen = item.list.length;
68
69
  item.list.forEach((v, i) => {
69
70
  let top = painOriginY.endY - i * yCellHeight * item.spaceGridNumber;
70
71
  if (i === 0) {
71
72
  top = endY - 5;
72
73
  }
73
- if (item.showNumber) {
74
+ const isMaxMinNumber = i === 0 || i === listLen - 1;
75
+ if (item.showNumber && (isMaxMinNumber ? item.showMaxMinNumber : true)) {
74
76
  list.push(drawScaleNumber(v, item, textLeft, top));
75
77
  }
76
78
  if (item.showScale && i !== 0) {
@@ -117,20 +119,22 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
117
119
  const spaceScale = spaceGridNumber * yCellHeight / 5;
118
120
  const position = item.position || "center";
119
121
  const { lineXMain, lineXSub, textLeft } = getScaleInfo(item.position, rectLeft, rectWidth);
122
+ const listLen = item.list.length;
120
123
  item.list.forEach((v, i) => {
121
124
  const top = vitalSignsOriginY.endY - i * yCellHeight * spaceGridNumber;
122
- if (item.showNumber) {
125
+ const isMaxMinNumber = i === 0 || i === listLen - 1;
126
+ if (item.showNumber && (isMaxMinNumber ? item.showMaxMinNumber : true)) {
123
127
  const text = drawScaleNumber(v, item, textLeft, i === 0 ? top - 5 : top);
124
128
  list.push(text);
125
129
  }
126
- if (item.showScale && i !== item.list.length - 1) {
130
+ if (item.showScale && i !== listLen - 1) {
127
131
  for (let j = 0; j < 5; j++) {
128
132
  if (j > 0 || !item.showNumber || position !== "center") {
129
133
  const x1 = j == 0 ? lineXMain[0] : lineXSub[0];
130
134
  const x2 = j == 0 ? lineXMain[1] : lineXSub[1];
131
135
  const y = top - j * spaceScale;
132
136
  createLine([x1, y, x2, y]);
133
- if (i == item.list.length - 2 && j == 4) {
137
+ if (i == listLen - 2 && j == 4) {
134
138
  createLine([lineXMain[0], y - spaceScale, lineXMain[1], y - spaceScale]);
135
139
  }
136
140
  }
@@ -14,9 +14,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14
14
  [x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
15
15
  }>>;
16
16
  commonConfig: {
17
- onMove: ({ to, from }: Sortable.SortableEvent) => void;
18
- onChoose: ({ target, item }: Sortable.SortableEvent) => void;
19
- onUnchoose: ({ from, to, target, item }: Sortable.SortableEvent) => void;
17
+ onMove: ({ to, from }: import("sortablejs").SortableEvent) => void;
18
+ onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
19
+ onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
20
20
  tag: string;
21
21
  animation: string;
22
22
  'item-key': string;
@@ -7038,6 +7038,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7038
7038
  type: NumberConstructor;
7039
7039
  default: number;
7040
7040
  };
7041
+ businessFormatter: {
7042
+ type: import("vue").PropType<import("..").FormBusinessFormatter>;
7043
+ };
7041
7044
  schema: {
7042
7045
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
7043
7046
  [key: symbol]: any;
@@ -7150,6 +7153,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7150
7153
  type: NumberConstructor;
7151
7154
  default: number;
7152
7155
  };
7156
+ businessFormatter: {
7157
+ type: import("vue").PropType<import("..").FormBusinessFormatter>;
7158
+ };
7153
7159
  schema: {
7154
7160
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
7155
7161
  [key: symbol]: any;
@@ -7239,9 +7245,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7239
7245
  }>>;
7240
7246
  emit: (event: "formChange", ...args: any[]) => void;
7241
7247
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
7242
- formModel: import("@formily/core").Form<{
7243
- [x: string]: any;
7244
- }>;
7248
+ formModel: import("@formily/core").Form<any>;
7245
7249
  SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
7246
7250
  businessCollector: import("..").BusinessCollector;
7247
7251
  formItemDepsCollector: import("..").FormItemDepsCollector;
@@ -8649,6 +8653,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
8649
8653
  type: NumberConstructor;
8650
8654
  default: number;
8651
8655
  };
8656
+ businessFormatter: {
8657
+ type: import("vue").PropType<import("..").FormBusinessFormatter>;
8658
+ };
8652
8659
  schema: {
8653
8660
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
8654
8661
  [key: symbol]: any;
@@ -12116,6 +12123,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
12116
12123
  type: NumberConstructor;
12117
12124
  default: number;
12118
12125
  };
12126
+ businessFormatter: {
12127
+ type: import("vue").PropType<import("..").FormBusinessFormatter>;
12128
+ };
12119
12129
  schema: {
12120
12130
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
12121
12131
  [key: symbol]: any;
@@ -12228,6 +12238,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
12228
12238
  type: NumberConstructor;
12229
12239
  default: number;
12230
12240
  };
12241
+ businessFormatter: {
12242
+ type: import("vue").PropType<import("..").FormBusinessFormatter>;
12243
+ };
12231
12244
  schema: {
12232
12245
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
12233
12246
  [key: symbol]: any;
@@ -12317,9 +12330,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
12317
12330
  }>>;
12318
12331
  emit: (event: "formChange", ...args: any[]) => void;
12319
12332
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
12320
- formModel: import("@formily/core").Form<{
12321
- [x: string]: any;
12322
- }>;
12333
+ formModel: import("@formily/core").Form<any>;
12323
12334
  SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
12324
12335
  businessCollector: import("..").BusinessCollector;
12325
12336
  formItemDepsCollector: import("..").FormItemDepsCollector;
@@ -13727,6 +13738,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
13727
13738
  type: NumberConstructor;
13728
13739
  default: number;
13729
13740
  };
13741
+ businessFormatter: {
13742
+ type: import("vue").PropType<import("..").FormBusinessFormatter>;
13743
+ };
13730
13744
  schema: {
13731
13745
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
13732
13746
  [key: symbol]: any;
@@ -16,9 +16,9 @@ declare const _default: import("vue").DefineComponent<{
16
16
  [x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
17
17
  }>>;
18
18
  commonConfig: {
19
- onMove: ({ to, from }: Sortable.SortableEvent) => void;
20
- onChoose: ({ target, item }: Sortable.SortableEvent) => void;
21
- onUnchoose: ({ from, to, target, item }: Sortable.SortableEvent) => void;
19
+ onMove: ({ to, from }: import("sortablejs").SortableEvent) => void;
20
+ onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
21
+ onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
22
22
  tag: string;
23
23
  animation: string;
24
24
  'item-key': string;
@@ -7040,6 +7040,9 @@ declare const _default: import("vue").DefineComponent<{
7040
7040
  type: NumberConstructor;
7041
7041
  default: number;
7042
7042
  };
7043
+ businessFormatter: {
7044
+ type: PropType<import("../../../../es/packages/form-render").FormBusinessFormatter>;
7045
+ };
7043
7046
  schema: {
7044
7047
  type: PropType<import("@formily/json-schema").Stringify<{
7045
7048
  [key: symbol]: any;
@@ -7152,6 +7155,9 @@ declare const _default: import("vue").DefineComponent<{
7152
7155
  type: NumberConstructor;
7153
7156
  default: number;
7154
7157
  };
7158
+ businessFormatter: {
7159
+ type: PropType<import("../../../../es/packages/form-render").FormBusinessFormatter>;
7160
+ };
7155
7161
  schema: {
7156
7162
  type: PropType<import("@formily/json-schema").Stringify<{
7157
7163
  [key: symbol]: any;
@@ -7241,9 +7247,7 @@ declare const _default: import("vue").DefineComponent<{
7241
7247
  }>>;
7242
7248
  emit: (event: "formChange", ...args: any[]) => void;
7243
7249
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
7244
- formModel: import("@formily/core").Form<{
7245
- [x: string]: any;
7246
- }>;
7250
+ formModel: import("@formily/core").Form<any>;
7247
7251
  SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
7248
7252
  businessCollector: import("../../../../es/packages/form-render").BusinessCollector;
7249
7253
  formItemDepsCollector: import("../../../../es/packages/form-render").FormItemDepsCollector;
@@ -8651,6 +8655,9 @@ declare const _default: import("vue").DefineComponent<{
8651
8655
  type: NumberConstructor;
8652
8656
  default: number;
8653
8657
  };
8658
+ businessFormatter: {
8659
+ type: PropType<import("../../../../es/packages/form-render").FormBusinessFormatter>;
8660
+ };
8654
8661
  schema: {
8655
8662
  type: PropType<import("@formily/json-schema").Stringify<{
8656
8663
  [key: symbol]: any;
@@ -12118,6 +12125,9 @@ declare const _default: import("vue").DefineComponent<{
12118
12125
  type: NumberConstructor;
12119
12126
  default: number;
12120
12127
  };
12128
+ businessFormatter: {
12129
+ type: PropType<import("../../../../es/packages/form-render").FormBusinessFormatter>;
12130
+ };
12121
12131
  schema: {
12122
12132
  type: PropType<import("@formily/json-schema").Stringify<{
12123
12133
  [key: symbol]: any;
@@ -12230,6 +12240,9 @@ declare const _default: import("vue").DefineComponent<{
12230
12240
  type: NumberConstructor;
12231
12241
  default: number;
12232
12242
  };
12243
+ businessFormatter: {
12244
+ type: PropType<import("../../../../es/packages/form-render").FormBusinessFormatter>;
12245
+ };
12233
12246
  schema: {
12234
12247
  type: PropType<import("@formily/json-schema").Stringify<{
12235
12248
  [key: symbol]: any;
@@ -12319,9 +12332,7 @@ declare const _default: import("vue").DefineComponent<{
12319
12332
  }>>;
12320
12333
  emit: (event: "formChange", ...args: any[]) => void;
12321
12334
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
12322
- formModel: import("@formily/core").Form<{
12323
- [x: string]: any;
12324
- }>;
12335
+ formModel: import("@formily/core").Form<any>;
12325
12336
  SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
12326
12337
  businessCollector: import("../../../../es/packages/form-render").BusinessCollector;
12327
12338
  formItemDepsCollector: import("../../../../es/packages/form-render").FormItemDepsCollector;
@@ -13729,6 +13740,9 @@ declare const _default: import("vue").DefineComponent<{
13729
13740
  type: NumberConstructor;
13730
13741
  default: number;
13731
13742
  };
13743
+ businessFormatter: {
13744
+ type: PropType<import("../../../../es/packages/form-render").FormBusinessFormatter>;
13745
+ };
13732
13746
  schema: {
13733
13747
  type: PropType<import("@formily/json-schema").Stringify<{
13734
13748
  [key: symbol]: any;
@@ -3370,6 +3370,9 @@ declare const _default: import("vue").DefineComponent<{}, {
3370
3370
  type: NumberConstructor;
3371
3371
  default: number;
3372
3372
  };
3373
+ businessFormatter: {
3374
+ type: import("vue").PropType<import("../../../../../es/packages/form-render").FormBusinessFormatter>;
3375
+ };
3373
3376
  schema: {
3374
3377
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
3375
3378
  [key: symbol]: any;
@@ -3482,6 +3485,9 @@ declare const _default: import("vue").DefineComponent<{}, {
3482
3485
  type: NumberConstructor;
3483
3486
  default: number;
3484
3487
  };
3488
+ businessFormatter: {
3489
+ type: import("vue").PropType<import("../../../../../es/packages/form-render").FormBusinessFormatter>;
3490
+ };
3485
3491
  schema: {
3486
3492
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
3487
3493
  [key: symbol]: any;
@@ -3571,9 +3577,7 @@ declare const _default: import("vue").DefineComponent<{}, {
3571
3577
  }>>;
3572
3578
  emit: (event: "formChange", ...args: any[]) => void;
3573
3579
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
3574
- formModel: import("@formily/core").Form<{
3575
- [x: string]: any;
3576
- }>;
3580
+ formModel: import("@formily/core").Form<any>;
3577
3581
  SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
3578
3582
  businessCollector: import("../../../../../es/packages/form-render").BusinessCollector;
3579
3583
  formItemDepsCollector: import("../../../../../es/packages/form-render").FormItemDepsCollector;
@@ -4981,6 +4985,9 @@ declare const _default: import("vue").DefineComponent<{}, {
4981
4985
  type: NumberConstructor;
4982
4986
  default: number;
4983
4987
  };
4988
+ businessFormatter: {
4989
+ type: import("vue").PropType<import("../../../../../es/packages/form-render").FormBusinessFormatter>;
4990
+ };
4984
4991
  schema: {
4985
4992
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
4986
4993
  [key: symbol]: any;