3h1-ui 3.0.0-next.234 → 3.0.0-next.236

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/index.js CHANGED
@@ -11732,7 +11732,7 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
11732
11732
  const isTableForm = computed(() => !!formProps2.value.formLabelInInput);
11733
11733
  const componentsPropsRef = ref({});
11734
11734
  watch(() => props2.formModel, () => {
11735
- var _a2, _b, _c, _d, _e;
11735
+ var _a2, _b, _c, _d, _e, _f;
11736
11736
  const {
11737
11737
  schema: schema2,
11738
11738
  tableAction: tableAction2,
@@ -11782,12 +11782,13 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
11782
11782
  };
11783
11783
  }
11784
11784
  if (schema2.component === "Input" || schema2.component === "InputTextArea") {
11785
- const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
11785
+ const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) || ((_e = config == null ? void 0 : config.Input) == null ? void 0 : _e.maxlength) || 100;
11786
11786
  componentProps = Object.assign({}, componentProps, {
11787
11787
  maxlength
11788
11788
  });
11789
11789
  componentProps.onInputEvent = (e2) => {
11790
- componentProps.maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
11790
+ var _a3;
11791
+ componentProps.maxlength = (componentProps == null ? void 0 : componentProps.maxlength) || ((_a3 = config == null ? void 0 : config.Input) == null ? void 0 : _a3.maxlength) || 100;
11791
11792
  if (!get$1(getValues.value.model, getValues.value.schema.field)) {
11792
11793
  componentProps.showCount = true;
11793
11794
  } else {
@@ -11796,7 +11797,7 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
11796
11797
  };
11797
11798
  }
11798
11799
  if (schema2.component === "Select") {
11799
- const label = ((_e = componentProps == null ? void 0 : componentProps.fieldNames) == null ? void 0 : _e.label) || "label";
11800
+ const label = ((_f = componentProps == null ? void 0 : componentProps.fieldNames) == null ? void 0 : _f.label) || "label";
11800
11801
  componentProps = Object.assign({}, componentProps, {
11801
11802
  showSearch: true,
11802
11803
  filterOption: (input, option) => {
@@ -25748,7 +25749,7 @@ const ShyForm = /* @__PURE__ */ defineComponent({
25748
25749
  }
25749
25750
  }
25750
25751
  if ((_b = (_a2 = schema == null ? void 0 : schema.component) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(_a2, "Input")) {
25751
- schema.defaultValue = schema.defaultValue || "";
25752
+ schema.defaultValue = schema.defaultValue ?? "";
25752
25753
  }
25753
25754
  if (schema.component === "Table") {
25754
25755
  schema.defaultValue = schema.defaultValue || reactive([]);
package/lib/index.js CHANGED
@@ -11756,7 +11756,7 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
11756
11756
  const isTableForm = vue.computed(() => !!formProps2.value.formLabelInInput);
11757
11757
  const componentsPropsRef = vue.ref({});
11758
11758
  vue.watch(() => props2.formModel, () => {
11759
- var _a2, _b, _c, _d, _e;
11759
+ var _a2, _b, _c, _d, _e, _f;
11760
11760
  const {
11761
11761
  schema: schema2,
11762
11762
  tableAction: tableAction2,
@@ -11806,12 +11806,13 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
11806
11806
  };
11807
11807
  }
11808
11808
  if (schema2.component === "Input" || schema2.component === "InputTextArea") {
11809
- const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
11809
+ const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) || ((_e = config == null ? void 0 : config.Input) == null ? void 0 : _e.maxlength) || 100;
11810
11810
  componentProps = Object.assign({}, componentProps, {
11811
11811
  maxlength
11812
11812
  });
11813
11813
  componentProps.onInputEvent = (e2) => {
11814
- componentProps.maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
11814
+ var _a3;
11815
+ componentProps.maxlength = (componentProps == null ? void 0 : componentProps.maxlength) || ((_a3 = config == null ? void 0 : config.Input) == null ? void 0 : _a3.maxlength) || 100;
11815
11816
  if (!get$1(getValues.value.model, getValues.value.schema.field)) {
11816
11817
  componentProps.showCount = true;
11817
11818
  } else {
@@ -11820,7 +11821,7 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
11820
11821
  };
11821
11822
  }
11822
11823
  if (schema2.component === "Select") {
11823
- const label = ((_e = componentProps == null ? void 0 : componentProps.fieldNames) == null ? void 0 : _e.label) || "label";
11824
+ const label = ((_f = componentProps == null ? void 0 : componentProps.fieldNames) == null ? void 0 : _f.label) || "label";
11824
11825
  componentProps = Object.assign({}, componentProps, {
11825
11826
  showSearch: true,
11826
11827
  filterOption: (input, option) => {
@@ -25772,7 +25773,7 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
25772
25773
  }
25773
25774
  }
25774
25775
  if ((_b = (_a2 = schema == null ? void 0 : schema.component) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(_a2, "Input")) {
25775
- schema.defaultValue = schema.defaultValue || "";
25776
+ schema.defaultValue = schema.defaultValue ?? "";
25776
25777
  }
25777
25778
  if (schema.component === "Table") {
25778
25779
  schema.defaultValue = schema.defaultValue || vue.reactive([]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "3.0.0-next.234",
3
+ "version": "3.0.0-next.236",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -29,9 +29,9 @@
29
29
  "vue-json-pretty": "^2.2.3",
30
30
  "vxe-table": "^4.3.6",
31
31
  "xe-utils": "^3.5.7",
32
+ "@shy-plugins/tinymce": "^1.0.6",
32
33
  "@shy-plugins/use": "1.0.1-next.5",
33
- "@shy-plugins/utils": "1.0.0-next.1",
34
- "@shy-plugins/tinymce": "^1.0.6"
34
+ "@shy-plugins/utils": "1.0.0-next.1"
35
35
  },
36
36
  "types": "es/ui/index.d.ts",
37
37
  "devDependencies": {