@fecp/designer 5.5.36 → 5.5.37

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.
@@ -1,4 +1,4 @@
1
- const version = "5.5.36";
1
+ const version = "5.5.37";
2
2
  const packageJson = {
3
3
  version
4
4
  };
package/es/designer.css CHANGED
@@ -5742,15 +5742,15 @@ body,
5742
5742
  text-align: center;
5743
5743
  color: #f56c6c;
5744
5744
  font-size: 14px;
5745
- }.text-field-wrapper[data-v-185ddd14] {
5745
+ }.text-field-wrapper[data-v-b509ac94] {
5746
5746
  width: 100%;
5747
5747
  }
5748
- .prefix-content[data-v-185ddd14],
5749
- .suffix-content[data-v-185ddd14] {
5748
+ .prefix-content[data-v-b509ac94],
5749
+ .suffix-content[data-v-b509ac94] {
5750
5750
  color: #909399;
5751
5751
  font-size: 14px;
5752
5752
  }
5753
- .data-masking[data-v-185ddd14] {
5753
+ .data-masking[data-v-b509ac94] {
5754
5754
  margin-top: 4px;
5755
5755
  padding: 8px;
5756
5756
  background: #f5f7fa;
@@ -5758,26 +5758,26 @@ body,
5758
5758
  font-size: 12px;
5759
5759
  color: #909399;
5760
5760
  }
5761
- [data-v-185ddd14] .el-input-group__append {
5761
+ [data-v-b509ac94] .el-input-group__append {
5762
5762
  background-color: #409eff;
5763
5763
  color: #fff;
5764
5764
  padding: 0 18px;
5765
5765
  box-shadow: 0 1px 0 0 #a8abb2 inset, 0 -1px 0 0 #a8abb2 inset, -1px 0 0 0 #a8abb2 inset;
5766
5766
  }
5767
- [data-v-185ddd14] .el-input-group__append:hover {
5767
+ [data-v-b509ac94] .el-input-group__append:hover {
5768
5768
  background-color: #79bbff;
5769
5769
  border-color: #79bbff;
5770
5770
  color: #fff;
5771
5771
  outline: none;
5772
5772
  box-shadow: 0 1px 0 0 #c0c4cc inset, 0 -1px 0 0 #c0c4cc inset, -1px 0 0 0 #c0c4cc inset;
5773
- }.textarea-field-wrapper[data-v-34bc3c06] {
5773
+ }.textarea-field-wrapper[data-v-1bdb1a05] {
5774
5774
  height: 100%;
5775
5775
  width: 100%;
5776
5776
  }
5777
- .textarea-field-wrapper[data-v-34bc3c06] .el-textarea {
5777
+ .textarea-field-wrapper[data-v-1bdb1a05] .el-textarea {
5778
5778
  height: 100%;
5779
5779
  }
5780
- .textarea-field-wrapper[data-v-34bc3c06] .el-textarea .el-textarea__inner {
5780
+ .textarea-field-wrapper[data-v-1bdb1a05] .el-textarea .el-textarea__inner {
5781
5781
  height: 100%;
5782
5782
  }[data-v-cc99b56c] .el-input-group__append {
5783
5783
  background-color: #409eff;
@@ -138,6 +138,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
138
138
  emit("update:modelValue", val);
139
139
  }
140
140
  });
141
+ const realMaxLength = computed(() => {
142
+ return Math.floor(props.maxLength / (ctx.$dbFieldLengthRatio || 1));
143
+ });
141
144
  function handleChange(val) {
142
145
  emit("change", val);
143
146
  }
@@ -211,7 +214,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
211
214
  placeholder: __props.placeholder,
212
215
  disabled: __props.disabled,
213
216
  readonly: __props.suffixButton == "dialog" ? true : false,
214
- maxlength: __props.maxLength,
217
+ maxlength: realMaxLength.value,
215
218
  "show-word-limit": __props.showWordCount,
216
219
  onChange: handleChange,
217
220
  clearable: ""
@@ -260,7 +263,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
260
263
  };
261
264
  }
262
265
  });
263
- const _Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-185ddd14"]]);
266
+ const _Text = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b509ac94"]]);
264
267
  export {
265
268
  _Text as default
266
269
  };
@@ -2,6 +2,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import { computed, createElementBlock, openBlock, createVNode, mergeProps, toHandlers } from "vue";
5
+ import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
5
6
  /* empty css */
6
7
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
7
8
  import { ElInput } from "../../../../../../node_modules/element-plus/es/components/input/index.mjs";
@@ -50,6 +51,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
50
51
  },
51
52
  emits: ["update:modelValue", "change"],
52
53
  setup(__props, { emit: __emit }) {
54
+ const ctx = getCurrentVueInstance();
53
55
  const props = __props;
54
56
  const emit = __emit;
55
57
  const inputValue = computed({
@@ -58,6 +60,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
58
60
  emit("update:modelValue", val);
59
61
  }
60
62
  });
63
+ const realMaxLength = computed(() => {
64
+ return Math.floor(props.maxLength / (ctx.$dbFieldLengthRatio || 1));
65
+ });
61
66
  function handleChange(val) {
62
67
  emit("change", val);
63
68
  }
@@ -72,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
72
77
  placeholder: __props.placeholder,
73
78
  disabled: __props.disabled,
74
79
  readonly: __props.readonly,
75
- maxlength: __props.maxLength,
80
+ maxlength: realMaxLength.value,
76
81
  "show-word-limit": __props.showWordCount,
77
82
  rows: __props.rows,
78
83
  autosize: __props.autosize,
@@ -83,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
83
88
  };
84
89
  }
85
90
  });
86
- const _Textarea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-34bc3c06"]]);
91
+ const _Textarea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1bdb1a05"]]);
87
92
  export {
88
93
  _Textarea as default
89
94
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.36";
3
+ const version = "5.5.37";
4
4
  const packageJson = {
5
5
  version
6
6
  };
package/lib/designer.css CHANGED
@@ -5742,15 +5742,15 @@ body,
5742
5742
  text-align: center;
5743
5743
  color: #f56c6c;
5744
5744
  font-size: 14px;
5745
- }.text-field-wrapper[data-v-185ddd14] {
5745
+ }.text-field-wrapper[data-v-b509ac94] {
5746
5746
  width: 100%;
5747
5747
  }
5748
- .prefix-content[data-v-185ddd14],
5749
- .suffix-content[data-v-185ddd14] {
5748
+ .prefix-content[data-v-b509ac94],
5749
+ .suffix-content[data-v-b509ac94] {
5750
5750
  color: #909399;
5751
5751
  font-size: 14px;
5752
5752
  }
5753
- .data-masking[data-v-185ddd14] {
5753
+ .data-masking[data-v-b509ac94] {
5754
5754
  margin-top: 4px;
5755
5755
  padding: 8px;
5756
5756
  background: #f5f7fa;
@@ -5758,26 +5758,26 @@ body,
5758
5758
  font-size: 12px;
5759
5759
  color: #909399;
5760
5760
  }
5761
- [data-v-185ddd14] .el-input-group__append {
5761
+ [data-v-b509ac94] .el-input-group__append {
5762
5762
  background-color: #409eff;
5763
5763
  color: #fff;
5764
5764
  padding: 0 18px;
5765
5765
  box-shadow: 0 1px 0 0 #a8abb2 inset, 0 -1px 0 0 #a8abb2 inset, -1px 0 0 0 #a8abb2 inset;
5766
5766
  }
5767
- [data-v-185ddd14] .el-input-group__append:hover {
5767
+ [data-v-b509ac94] .el-input-group__append:hover {
5768
5768
  background-color: #79bbff;
5769
5769
  border-color: #79bbff;
5770
5770
  color: #fff;
5771
5771
  outline: none;
5772
5772
  box-shadow: 0 1px 0 0 #c0c4cc inset, 0 -1px 0 0 #c0c4cc inset, -1px 0 0 0 #c0c4cc inset;
5773
- }.textarea-field-wrapper[data-v-34bc3c06] {
5773
+ }.textarea-field-wrapper[data-v-1bdb1a05] {
5774
5774
  height: 100%;
5775
5775
  width: 100%;
5776
5776
  }
5777
- .textarea-field-wrapper[data-v-34bc3c06] .el-textarea {
5777
+ .textarea-field-wrapper[data-v-1bdb1a05] .el-textarea {
5778
5778
  height: 100%;
5779
5779
  }
5780
- .textarea-field-wrapper[data-v-34bc3c06] .el-textarea .el-textarea__inner {
5780
+ .textarea-field-wrapper[data-v-1bdb1a05] .el-textarea .el-textarea__inner {
5781
5781
  height: 100%;
5782
5782
  }[data-v-cc99b56c] .el-input-group__append {
5783
5783
  background-color: #409eff;
@@ -140,6 +140,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
140
140
  emit("update:modelValue", val);
141
141
  }
142
142
  });
143
+ const realMaxLength = Vue.computed(() => {
144
+ return Math.floor(props.maxLength / (ctx.$dbFieldLengthRatio || 1));
145
+ });
143
146
  function handleChange(val) {
144
147
  emit("change", val);
145
148
  }
@@ -213,7 +216,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
213
216
  placeholder: __props.placeholder,
214
217
  disabled: __props.disabled,
215
218
  readonly: __props.suffixButton == "dialog" ? true : false,
216
- maxlength: __props.maxLength,
219
+ maxlength: realMaxLength.value,
217
220
  "show-word-limit": __props.showWordCount,
218
221
  onChange: handleChange,
219
222
  clearable: ""
@@ -262,5 +265,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
262
265
  };
263
266
  }
264
267
  });
265
- const _Text = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-185ddd14"]]);
268
+ const _Text = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b509ac94"]]);
266
269
  exports.default = _Text;
@@ -4,6 +4,7 @@ require("../../../../../../node_modules/element-plus/es/index.js");
4
4
  ;/* empty css */
5
5
  ;/* empty css */
6
6
  const Vue = require("vue");
7
+ const getInstance = require("../../../utils/getInstance.js");
7
8
  ;/* empty css */
8
9
  const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
9
10
  const index = require("../../../../../../node_modules/element-plus/es/components/input/index.js");
@@ -52,6 +53,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
52
53
  },
53
54
  emits: ["update:modelValue", "change"],
54
55
  setup(__props, { emit: __emit }) {
56
+ const ctx = getInstance.getCurrentVueInstance();
55
57
  const props = __props;
56
58
  const emit = __emit;
57
59
  const inputValue = Vue.computed({
@@ -60,6 +62,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
60
62
  emit("update:modelValue", val);
61
63
  }
62
64
  });
65
+ const realMaxLength = Vue.computed(() => {
66
+ return Math.floor(props.maxLength / (ctx.$dbFieldLengthRatio || 1));
67
+ });
63
68
  function handleChange(val) {
64
69
  emit("change", val);
65
70
  }
@@ -74,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
74
79
  placeholder: __props.placeholder,
75
80
  disabled: __props.disabled,
76
81
  readonly: __props.readonly,
77
- maxlength: __props.maxLength,
82
+ maxlength: realMaxLength.value,
78
83
  "show-word-limit": __props.showWordCount,
79
84
  rows: __props.rows,
80
85
  autosize: __props.autosize,
@@ -85,5 +90,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
85
90
  };
86
91
  }
87
92
  });
88
- const _Textarea = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-34bc3c06"]]);
93
+ const _Textarea = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-1bdb1a05"]]);
89
94
  exports.default = _Textarea;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.5.36",
3
+ "version": "5.5.37",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [