@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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
inputElement.value
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
inputElement.value
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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;
|