3h1-ui 1.0.150 → 1.0.152

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
@@ -7375,7 +7375,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
7375
7375
  schema: schema2,
7376
7376
  tableAction,
7377
7377
  formModel,
7378
- formActionType
7378
+ formActionType,
7379
+ formProps: formProps2
7379
7380
  } = props2;
7380
7381
  let {
7381
7382
  componentProps = {}
@@ -7397,8 +7398,26 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
7397
7398
  });
7398
7399
  }
7399
7400
  if (schema2.component === "Input") {
7400
- const showCount = (componentProps == null ? void 0 : componentProps.showCount) === void 0 ? true : componentProps.showCount;
7401
- const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
7401
+ let showCount;
7402
+ let maxlength;
7403
+ if ((componentProps == null ? void 0 : componentProps.showCount) === void 0) {
7404
+ if ((formProps2 == null ? void 0 : formProps2.showCount) === void 0) {
7405
+ showCount = true;
7406
+ } else {
7407
+ showCount = formProps2.showCount;
7408
+ }
7409
+ } else {
7410
+ showCount = componentProps.showCount;
7411
+ }
7412
+ if ((componentProps == null ? void 0 : componentProps.maxlength) === void 0) {
7413
+ if ((formProps2 == null ? void 0 : formProps2.maxlength) === void 0) {
7414
+ maxlength = 100;
7415
+ } else {
7416
+ showCount = formProps2.maxlength;
7417
+ }
7418
+ } else {
7419
+ maxlength = componentProps.maxlength;
7420
+ }
7402
7421
  componentProps = Object.assign({}, componentProps, {
7403
7422
  showCount,
7404
7423
  maxlength
@@ -9763,7 +9782,9 @@ const basicProps$2 = {
9763
9782
  wrapperCol: Object,
9764
9783
  colon: propTypes.bool,
9765
9784
  labelAlign: propTypes.string,
9766
- rowProps: Object
9785
+ rowProps: Object,
9786
+ showCount: false,
9787
+ maxlength: 100
9767
9788
  };
9768
9789
  const _sfc_main$y = defineComponent({
9769
9790
  name: "BasicForm",
package/lib/index.js CHANGED
@@ -7380,7 +7380,8 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
7380
7380
  schema: schema2,
7381
7381
  tableAction,
7382
7382
  formModel,
7383
- formActionType
7383
+ formActionType,
7384
+ formProps: formProps2
7384
7385
  } = props2;
7385
7386
  let {
7386
7387
  componentProps = {}
@@ -7402,8 +7403,26 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
7402
7403
  });
7403
7404
  }
7404
7405
  if (schema2.component === "Input") {
7405
- const showCount = (componentProps == null ? void 0 : componentProps.showCount) === void 0 ? true : componentProps.showCount;
7406
- const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
7406
+ let showCount;
7407
+ let maxlength;
7408
+ if ((componentProps == null ? void 0 : componentProps.showCount) === void 0) {
7409
+ if ((formProps2 == null ? void 0 : formProps2.showCount) === void 0) {
7410
+ showCount = true;
7411
+ } else {
7412
+ showCount = formProps2.showCount;
7413
+ }
7414
+ } else {
7415
+ showCount = componentProps.showCount;
7416
+ }
7417
+ if ((componentProps == null ? void 0 : componentProps.maxlength) === void 0) {
7418
+ if ((formProps2 == null ? void 0 : formProps2.maxlength) === void 0) {
7419
+ maxlength = 100;
7420
+ } else {
7421
+ showCount = formProps2.maxlength;
7422
+ }
7423
+ } else {
7424
+ maxlength = componentProps.maxlength;
7425
+ }
7407
7426
  componentProps = Object.assign({}, componentProps, {
7408
7427
  showCount,
7409
7428
  maxlength
@@ -9768,7 +9787,9 @@ const basicProps$2 = {
9768
9787
  wrapperCol: Object,
9769
9788
  colon: utils.propTypes.bool,
9770
9789
  labelAlign: utils.propTypes.string,
9771
- rowProps: Object
9790
+ rowProps: Object,
9791
+ showCount: false,
9792
+ maxlength: 100
9772
9793
  };
9773
9794
  const _sfc_main$y = vue.defineComponent({
9774
9795
  name: "BasicForm",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "1.0.150",
3
+ "version": "1.0.152",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -31,8 +31,8 @@
31
31
  "vue-types": "^5.0.2",
32
32
  "vxe-table": "^4.3.6",
33
33
  "xe-utils": "^3.5.7",
34
- "@shy-plugins/use": "1.0.3",
35
- "@shy-plugins/utils": "1.0.14"
34
+ "@shy-plugins/utils": "1.0.14",
35
+ "@shy-plugins/use": "1.0.3"
36
36
  },
37
37
  "types": "lib/ui/index.d.ts",
38
38
  "devDependencies": {