@fmdeui/fmui 1.0.91 → 1.0.92
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/packages/components/fm-inputnumber/index.vue2.mjs +4 -3
- package/index.js +5 -4
- package/index.min.js +2 -2
- package/index.min.mjs +6 -6
- package/index.mjs +5 -4
- package/lib/packages/components/fm-inputnumber/index.vue2.js +4 -3
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/lib/{make-installer.css → component.css} +0 -0
|
@@ -25,12 +25,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
const modelValue = useModel(__props, "modelValue");
|
|
26
26
|
const props = __props;
|
|
27
27
|
const handleInput = (val) => {
|
|
28
|
-
if (val
|
|
29
|
-
modelValue.value = props.defaultValue;
|
|
28
|
+
if (val === "" || val === null || val === void 0) {
|
|
29
|
+
modelValue.value = props.defaultValue !== -1 ? props.defaultValue : 0;
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
if (props.bType == "number") {
|
|
33
|
-
|
|
33
|
+
const num = parseInt(val, 10);
|
|
34
|
+
modelValue.value = Number.isNaN(num) ? props.defaultValue : num;
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
37
|
let cleaned = String(val).replace(/[^\d.]/g, "");
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.92 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -26868,12 +26868,13 @@
|
|
|
26868
26868
|
const modelValue = vue.useModel(__props, "modelValue");
|
|
26869
26869
|
const props = __props;
|
|
26870
26870
|
const handleInput = (val) => {
|
|
26871
|
-
if (val
|
|
26872
|
-
modelValue.value = props.defaultValue;
|
|
26871
|
+
if (val === "" || val === null || val === void 0) {
|
|
26872
|
+
modelValue.value = props.defaultValue !== -1 ? props.defaultValue : 0;
|
|
26873
26873
|
return;
|
|
26874
26874
|
}
|
|
26875
26875
|
if (props.bType == "number") {
|
|
26876
|
-
|
|
26876
|
+
const num = parseInt(val, 10);
|
|
26877
|
+
modelValue.value = Number.isNaN(num) ? props.defaultValue : num;
|
|
26877
26878
|
return;
|
|
26878
26879
|
}
|
|
26879
26880
|
let cleaned = String(val).replace(/[^\d.]/g, "");
|