cnhis-design-vue 3.1.14-beta.0 → 3.1.14-beta.1

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.
@@ -22,12 +22,16 @@ function useColumnConfigAdaptor() {
22
22
  ["0", 0],
23
23
  ["1", 1]
24
24
  ]);
25
- const htmlTypeValueMap = new Map(["RADIO", "RADIO_BLOCK", "CHECKBOX", "CHECKBOX_BLOCK", "SELECT"].map((type) => [type, "select"]));
25
+ const htmlTypeValueMap = new Map([
26
+ ...["RADIO", "RADIO_BLOCK", "CHECKBOX", "CHECKBOX_BLOCK", "SELECT"].map((type) => [type, "select"]),
27
+ ...["INPUT"].map((type) => [type, "input"]),
28
+ ...["DIGITAL"].map((type) => [type, "number"])
29
+ ]);
26
30
  const settingMap = /* @__PURE__ */ new Map([
27
31
  ["multi_select_value", { property: "multiple", valueMap: multipleValueMap }],
28
32
  [
29
33
  "is_null",
30
- (value, _fieldItem, _editRules) => {
34
+ (value, result, _fieldItem, _editRules) => {
31
35
  if (value === "0")
32
36
  return;
33
37
  if (value === "1")
@@ -36,7 +40,7 @@ function useColumnConfigAdaptor() {
36
40
  ],
37
41
  ["is_edit", { property: "isEdit", valueMap: isEditValueMap }],
38
42
  ["html_type", { property: "formType", valueMap: htmlTypeValueMap }],
39
- ["option", { fieldMap: /* @__PURE__ */ new Map([["text", "label"]]) }]
43
+ ["option", { property: "options", fieldMap: /* @__PURE__ */ new Map([["text", "label"]]) }]
40
44
  ]);
41
45
  const fieldMap = /* @__PURE__ */ new Map([
42
46
  ["sum", "isSum"],
@@ -61,7 +65,7 @@ function useColumnConfigAdaptor() {
61
65
  if (isString(rule))
62
66
  return result[rule] = value;
63
67
  if (isFunction(rule))
64
- return rule(value, fieldItem, _editRules);
68
+ return rule(value, result, fieldItem, _editRules);
65
69
  if (isObject(rule)) {
66
70
  if (rule.assign) {
67
71
  Object.assign(result, valueTransfer(value, rule));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
3
  "private": false,
4
- "version": "3.1.14-beta.0",
4
+ "version": "3.1.14-beta.1",
5
5
  "license": "ISC",
6
6
  "module": "es/packages/index.js",
7
7
  "main": "es/packages/index.js",