@fecp/mobile 1.1.57 → 1.1.58

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.
@@ -81,18 +81,20 @@ const _sfc_main = {
81
81
  return true;
82
82
  });
83
83
  const handleInput = (e) => {
84
- const inputElement = e.target;
85
- recordCursor(inputElement);
86
- inputElement.value = textFormatter4Input(
87
- inputElement.value,
88
- props.dataFormatter
89
- );
90
- setCursor(inputElement);
91
- const unformattedValue = reverseTextFormatter(
92
- inputElement.value,
93
- props.dataFormatter
94
- );
95
- compValue.value = unformattedValue;
84
+ if (props.fieldType == "text" && (props.dataFormatter == "money(yuan)" || props.dataFormatter == "money(wan)" || props.dataFormatter == "money(yi)")) {
85
+ const inputElement = e.target;
86
+ recordCursor(inputElement);
87
+ inputElement.value = textFormatter4Input(
88
+ inputElement.value,
89
+ props.dataFormatter
90
+ );
91
+ setCursor(inputElement);
92
+ const unformattedValue = reverseTextFormatter(
93
+ inputElement.value,
94
+ props.dataFormatter
95
+ );
96
+ compValue.value = unformattedValue;
97
+ }
96
98
  };
97
99
  return (_ctx, _cache) => {
98
100
  const _component_van_field = Field;
@@ -83,18 +83,20 @@ const _sfc_main = {
83
83
  return true;
84
84
  });
85
85
  const handleInput = (e) => {
86
- const inputElement = e.target;
87
- recordCursor(inputElement);
88
- inputElement.value = formatterUtil.textFormatter4Input(
89
- inputElement.value,
90
- props.dataFormatter
91
- );
92
- setCursor(inputElement);
93
- const unformattedValue = formatterUtil.reverseTextFormatter(
94
- inputElement.value,
95
- props.dataFormatter
96
- );
97
- compValue.value = unformattedValue;
86
+ if (props.fieldType == "text" && (props.dataFormatter == "money(yuan)" || props.dataFormatter == "money(wan)" || props.dataFormatter == "money(yi)")) {
87
+ const inputElement = e.target;
88
+ recordCursor(inputElement);
89
+ inputElement.value = formatterUtil.textFormatter4Input(
90
+ inputElement.value,
91
+ props.dataFormatter
92
+ );
93
+ setCursor(inputElement);
94
+ const unformattedValue = formatterUtil.reverseTextFormatter(
95
+ inputElement.value,
96
+ props.dataFormatter
97
+ );
98
+ compValue.value = unformattedValue;
99
+ }
98
100
  };
99
101
  return (_ctx, _cache) => {
100
102
  const _component_van_field = index.Field;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/mobile",
3
- "version": "1.1.57",
3
+ "version": "1.1.58",
4
4
  "main": "lib/packages/mobile/index.js",
5
5
  "module": "es/packages/mobile/index.mjs",
6
6
  "files": [