cnhis-design-vue 3.1.34-beta.4 → 3.1.34-beta.5

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.
@@ -32,10 +32,11 @@ var EditInput = defineComponent({
32
32
  attrs,
33
33
  emit
34
34
  }) {
35
+ var _a;
35
36
  const {
36
37
  formRef
37
38
  } = useCommon(props, attrs);
38
- const __value = ref(props.type === "number" ? attrs.value || void 0 : attrs.value);
39
+ const __value = ref(props.type === "number" ? (_a = attrs.value) != null ? _a : void 0 : attrs.value);
39
40
  const commData = {
40
41
  row: props.row,
41
42
  column: props.col,
@@ -230,6 +230,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
230
230
  pacemaker = {},
231
231
  upArrowStyle = {},
232
232
  limitValueStyle = {},
233
+ nonePainPointStyle = {},
233
234
  dataList = []
234
235
  } = scaleValue;
235
236
  const pointList = [];
@@ -444,7 +445,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
444
445
  lockMovementX: true,
445
446
  ...v.pacemakerShow && type == "pulse" ? pacemaker.style : pointAttr,
446
447
  ...propItems.event,
447
- ...isNonePain ? { selectable: false, evented: false } : {}
448
+ ...isNonePain ? { selectable: false, evented: false, ...nonePainPointStyle } : {}
448
449
  };
449
450
  if (previousLine) {
450
451
  const y = previousLine.get("y2");
@@ -2077,6 +2077,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
2077
2077
  onActiveCellChangeEnd?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams) => void) | undefined;
2078
2078
  uuid?: string | undefined;
2079
2079
  isTree?: 0 | 2 | 1 | 3 | undefined;
2080
+ isSort?: 0 | 1 | undefined;
2080
2081
  showSeq?: boolean | undefined;
2081
2082
  selectType?: "checkbox" | "radio" | null | undefined;
2082
2083
  rowGroupSetting?: {
@@ -4466,6 +4467,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
4466
4467
  params?: any;
4467
4468
  uuid?: string | undefined;
4468
4469
  isTree?: 0 | 2 | 1 | 3 | undefined;
4470
+ isSort?: 0 | 1 | undefined;
4469
4471
  showSeq?: boolean | undefined;
4470
4472
  selectType?: "checkbox" | "radio" | null | undefined;
4471
4473
  rowGroupSetting?: {
@@ -2076,6 +2076,7 @@ declare const _default: import("vue").DefineComponent<{
2076
2076
  onActiveCellChangeEnd?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams) => void) | undefined;
2077
2077
  uuid?: string | undefined;
2078
2078
  isTree?: 0 | 2 | 1 | 3 | undefined;
2079
+ isSort?: 0 | 1 | undefined;
2079
2080
  showSeq?: boolean | undefined;
2080
2081
  selectType?: "checkbox" | "radio" | null | undefined;
2081
2082
  rowGroupSetting?: {
@@ -4465,6 +4466,7 @@ declare const _default: import("vue").DefineComponent<{
4465
4466
  params?: any;
4466
4467
  uuid?: string | undefined;
4467
4468
  isTree?: 0 | 2 | 1 | 3 | undefined;
4469
+ isSort?: 0 | 1 | undefined;
4468
4470
  showSeq?: boolean | undefined;
4469
4471
  selectType?: "checkbox" | "radio" | null | undefined;
4470
4472
  rowGroupSetting?: {
@@ -27,7 +27,7 @@ const ColumnComponent = defineComponent({
27
27
  "class": "iho-table__headerWrapper"
28
28
  }, [createVNode("section", {
29
29
  "style": {
30
- width: widthAppend(payload.column.renderWidth - (hasAnnotation ? 36 : 20))
30
+ width: widthAppend(payload.column.renderWidth - (hasAnnotation ? 36 : 20) - (props.field.sortable ? 24 : 0))
31
31
  }
32
32
  }, [[...arrayed(customHeader != null ? customHeader : createVNode(NEllipsis, {
33
33
  "style": {
@@ -125,6 +125,7 @@ function filterPlugin() {
125
125
  const fieldSetting = jsonParse(lowCodeField.fieldSetting || "");
126
126
  if (!isFieldSetting(fieldSetting) || !showFilter(fieldSetting))
127
127
  return;
128
+ fieldItem.sortable = false;
128
129
  let options = (_d = (_c = (_b = fieldSetting.mapping) == null ? void 0 : _b.mappingFiled) == null ? void 0 : _c.map((item) => item.value[0])) != null ? _d : [];
129
130
  if (isCompatibleColumn(lowCodeField)) {
130
131
  options = (_f = (_e = lowCodeField.options) == null ? void 0 : _e.map((option) => ({
@@ -1,4 +1,4 @@
1
- import { pick, cloneDeep } from 'lodash-es';
1
+ import { pick, cloneDeep, isObject } from 'lodash-es';
2
2
  import { toRaw } from 'vue';
3
3
  import { HIGHEST_PRIORITY, IHO_TABLE_NUMBER_STATUS, WIDGET_TYPE, IHO_TABLE_STRING_STATUS } from '../../constants/index.js';
4
4
  import { defineTablePlugin } from '../../hooks/useTablePlugin.js';
@@ -17,6 +17,7 @@ function lowCodeFieldAdaptorPlugin() {
17
17
  showOverflow: Reflect.has(_field, "showOverflow") ? _field.showOverflow : "tooltip",
18
18
  visible: _field.isShow !== IHO_TABLE_NUMBER_STATUS.NEGATIVE,
19
19
  minWidth: _field.colWidth,
20
+ sortable: _field.isSort === IHO_TABLE_NUMBER_STATUS.POSITIVE,
20
21
  slots: { ..._field.slots, default: _field.slotFn, header: _field.headerSlotFn },
21
22
  ...pick(_field, ["title", "treeNode", "resizable"])
22
23
  };
@@ -27,7 +28,6 @@ function lowCodeFieldAdaptorPlugin() {
27
28
  });
28
29
  }
29
30
  function settingObjAdaptor(fieldItem, lowCodeField, config) {
30
- var _a;
31
31
  const props = cloneDeep(toRaw(lowCodeField));
32
32
  props.componentProps = { size: config.size === "mini" ? "small" : config.size, ...props.componentProps };
33
33
  fieldItem.editRender = {
@@ -36,9 +36,11 @@ function settingObjAdaptor(fieldItem, lowCodeField, config) {
36
36
  props
37
37
  };
38
38
  fieldItem.editRender.enabled = !Reflect.get(WIDGET_TYPE, fieldItem.editRender.name);
39
- if (!lowCodeField.settingObj)
39
+ if (!isObject(lowCodeField.settingObj))
40
40
  return;
41
- fieldItem.visible = ((_a = lowCodeField.settingObj) == null ? void 0 : _a.isHide) !== IHO_TABLE_STRING_STATUS.POSITIVE;
41
+ if (Reflect.has(lowCodeField.settingObj, "isHide")) {
42
+ fieldItem.visible = fieldItem.visible && lowCodeField.settingObj.isHide !== IHO_TABLE_STRING_STATUS.POSITIVE;
43
+ }
42
44
  }
43
45
 
44
46
  export { lowCodeFieldAdaptorPlugin };
@@ -14,6 +14,7 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
14
14
  }> & Partial<{
15
15
  uuid: string;
16
16
  isTree: 0 | 1 | 2 | 3;
17
+ isSort: 0 | 1;
17
18
  showSeq: boolean;
18
19
  selectType: Exclude<VxeTableDefines.ColumnInfo['type'], 'seq' | 'expand' | 'html'>;
19
20
  rowGroupSetting: Partial<Record<TupleToUnion<typeof IhoTableRowGroupSequence>, IhoTableRowGroupItem[]>>;
@@ -56,6 +57,7 @@ export declare type LowCodeTableFieldItem = {
56
57
  settingObj: IhoTableLowCodeField.SettingObj;
57
58
  treeNode: boolean;
58
59
  isShow: 0 | 1;
60
+ isSort: 0 | 1;
59
61
  formType: string;
60
62
  fieldSetting: string;
61
63
  componentProps: AnyObject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.34-beta.4",
3
+ "version": "3.1.34-beta.5",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "bb84ad766b4ccadc69da5beb8979c3fa1b2816b3"
64
+ "gitHead": "a8d46e9ee25e00f378e72e0e30ca668efb1fb9ff"
65
65
  }