@fecp/mobile-designer 1.0.7 → 1.0.8
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/_virtual/index.mjs +4 -4
- package/es/_virtual/index2.mjs +2 -5
- package/es/mobileDesigner/package.json.mjs +1 -1
- package/es/mobileDesigner/src/axios/crypto.mjs +1 -1
- package/es/node_modules/crypto-js/index.mjs +1 -1
- package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +1 -2
- package/es/packages/mobile/src/utils/formatterUtil.mjs +1 -1
- package/lib/_virtual/index.js +4 -4
- package/lib/_virtual/index2.js +3 -6
- package/lib/mobileDesigner/package.json.js +1 -1
- package/lib/mobileDesigner/src/axios/crypto.js +1 -1
- package/lib/node_modules/crypto-js/index.js +1 -1
- package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +2 -3
- package/lib/packages/mobile/src/utils/formatterUtil.js +21 -21
- package/package.json +1 -1
package/es/_virtual/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs } from "./_commonjsHelpers.mjs";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as requireCryptoJs } from "../node_modules/crypto-js/index.mjs";
|
|
3
|
+
var cryptoJsExports = requireCryptoJs();
|
|
4
|
+
const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
CryptoJS as default
|
|
7
7
|
};
|
package/es/_virtual/index2.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as requireCryptoJs } from "../node_modules/crypto-js/index.mjs";
|
|
3
|
-
var cryptoJsExports = requireCryptoJs();
|
|
4
|
-
const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports);
|
|
1
|
+
var cryptoJs = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
cryptoJs as __module
|
|
7
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as cryptoJs$1 } from "../../_virtual/
|
|
1
|
+
import { __module as cryptoJs$1 } from "../../_virtual/index2.mjs";
|
|
2
2
|
import { __require as requireCore } from "./core.mjs";
|
|
3
3
|
import { __require as requireX64Core } from "./x64-core.mjs";
|
|
4
4
|
import { __require as requireLibTypedarrays } from "./lib-typedarrays.mjs";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { getCurrentInstance, computed, ref, onMounted, createVNode, render, nextTick, resolveComponent, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, unref, normalizeStyle, normalizeClass, withCtx, isRef, createSlots, createElementVNode, renderList, renderSlot } from "vue";
|
|
6
|
-
import "
|
|
6
|
+
import { VxeGrid } from "vxe-table";
|
|
7
7
|
import { createDataSource } from "../../../utils/datasource.mjs";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { textFormatter, dateFormatter, cascadeFormatter, multipleFormatter, selectFormatter } from "../../../utils/formatterUtil.mjs";
|
|
@@ -17,7 +17,6 @@ import { textFormatter, dateFormatter, cascadeFormatter, multipleFormatter, sele
|
|
|
17
17
|
/* empty css */
|
|
18
18
|
/* empty css */
|
|
19
19
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
20
|
-
import { VxeGrid } from "../../../../../../node_modules/vxe-table/es/grid/index.mjs";
|
|
21
20
|
import { SwipeCell } from "../../../../node_modules/vant/es/swipe-cell/index.mjs";
|
|
22
21
|
import { Button } from "../../../../node_modules/vant/es/button/index.mjs";
|
|
23
22
|
import { showConfirmDialog } from "../../../../node_modules/vant/es/dialog/function-call.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import hooks from "../../node_modules/moment/dist/moment.mjs";
|
|
2
2
|
import { parseDateFormatter } from "./dateUtil.mjs";
|
|
3
|
-
import XEUtils from "
|
|
3
|
+
import XEUtils from "xe-utils";
|
|
4
4
|
const selectFormatter = (value, options = []) => {
|
|
5
5
|
const item = options.find((item2) => item2.value === value);
|
|
6
6
|
return item ? item.label : value;
|
package/lib/_virtual/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const _commonjsHelpers = require("./_commonjsHelpers.js");
|
|
4
|
-
const index = require("../node_modules/
|
|
5
|
-
var
|
|
6
|
-
const
|
|
7
|
-
exports.default =
|
|
4
|
+
const index = require("../node_modules/crypto-js/index.js");
|
|
5
|
+
var cryptoJsExports = index.__require();
|
|
6
|
+
const CryptoJS = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(cryptoJsExports);
|
|
7
|
+
exports.default = CryptoJS;
|
package/lib/_virtual/index2.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var cryptoJsExports = index.__require();
|
|
6
|
-
const CryptoJS = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(cryptoJsExports);
|
|
7
|
-
exports.default = CryptoJS;
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var cryptoJs = { exports: {} };
|
|
4
|
+
exports.__module = cryptoJs;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../_virtual/
|
|
3
|
+
const index = require("../../_virtual/index2.js");
|
|
4
4
|
const core = require("./core.js");
|
|
5
5
|
const x64Core = require("./x64-core.js");
|
|
6
6
|
const libTypedarrays = require("./lib-typedarrays.js");
|
|
@@ -5,7 +5,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const Vue = require("vue");
|
|
8
|
-
require("
|
|
8
|
+
const vxeTable = require("vxe-table");
|
|
9
9
|
const datasource = require("../../../utils/datasource.js");
|
|
10
10
|
;/* empty css */
|
|
11
11
|
const formatterUtil = require("../../../utils/formatterUtil.js");
|
|
@@ -19,7 +19,6 @@ const formatterUtil = require("../../../utils/formatterUtil.js");
|
|
|
19
19
|
;/* empty css */
|
|
20
20
|
;/* empty css */
|
|
21
21
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
22
|
-
const index$4 = require("../../../../../../node_modules/vxe-table/es/grid/index.js");
|
|
23
22
|
const index = require("../../../../node_modules/vant/es/swipe-cell/index.js");
|
|
24
23
|
const index$1 = require("../../../../node_modules/vant/es/button/index.js");
|
|
25
24
|
const functionCall = require("../../../../node_modules/vant/es/dialog/function-call.js");
|
|
@@ -480,7 +479,7 @@ const _sfc_main = {
|
|
|
480
479
|
onLoad
|
|
481
480
|
}, {
|
|
482
481
|
default: Vue.withCtx(() => [
|
|
483
|
-
Vue.createVNode(Vue.unref(
|
|
482
|
+
Vue.createVNode(Vue.unref(vxeTable.VxeGrid), {
|
|
484
483
|
ref_key: "gridRef",
|
|
485
484
|
ref: gridRef,
|
|
486
485
|
class: "fec-table",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const moment = require("../../node_modules/moment/dist/moment.js");
|
|
4
4
|
const dateUtil = require("./dateUtil.js");
|
|
5
|
-
const
|
|
5
|
+
const XEUtils = require("xe-utils");
|
|
6
6
|
const selectFormatter = (value, options = []) => {
|
|
7
7
|
const item = options.find((item2) => item2.value === value);
|
|
8
8
|
return item ? item.label : value;
|
|
@@ -53,20 +53,20 @@ const textFormatter = (value, dataFormatter) => {
|
|
|
53
53
|
case "money(yi)":
|
|
54
54
|
return moneyFormatter(value, dataFormatter);
|
|
55
55
|
case "bankCard":
|
|
56
|
-
value =
|
|
56
|
+
value = XEUtils.toValueString(value);
|
|
57
57
|
value = value.replace(/\s+/g, "");
|
|
58
|
-
return
|
|
58
|
+
return XEUtils.commafy(value, {
|
|
59
59
|
spaceNumber: 4,
|
|
60
60
|
separator: " "
|
|
61
61
|
});
|
|
62
62
|
case "percent":
|
|
63
|
-
value =
|
|
63
|
+
value = XEUtils.multiply(XEUtils.toNumber(value), 100);
|
|
64
64
|
return value;
|
|
65
65
|
case "thousand":
|
|
66
|
-
value =
|
|
66
|
+
value = XEUtils.multiply(XEUtils.toNumber(value), 1e3);
|
|
67
67
|
return value;
|
|
68
68
|
case "tenThousand":
|
|
69
|
-
value =
|
|
69
|
+
value = XEUtils.multiply(XEUtils.toNumber(value), 1e4);
|
|
70
70
|
return value;
|
|
71
71
|
default:
|
|
72
72
|
return value;
|
|
@@ -76,19 +76,19 @@ const moneyFormatter = (value, dataFormatter) => {
|
|
|
76
76
|
let moneyValue;
|
|
77
77
|
switch (dataFormatter) {
|
|
78
78
|
case "money(yuan)":
|
|
79
|
-
moneyValue =
|
|
79
|
+
moneyValue = XEUtils.toNumber(value);
|
|
80
80
|
break;
|
|
81
81
|
case "money(wan)":
|
|
82
|
-
moneyValue =
|
|
82
|
+
moneyValue = XEUtils.divide(XEUtils.toNumber(value), 1e4);
|
|
83
83
|
break;
|
|
84
84
|
case "money(yi)":
|
|
85
|
-
moneyValue =
|
|
85
|
+
moneyValue = XEUtils.divide(XEUtils.toNumber(value), 1e8);
|
|
86
86
|
break;
|
|
87
87
|
default:
|
|
88
|
-
moneyValue =
|
|
88
|
+
moneyValue = XEUtils.toNumber(value);
|
|
89
89
|
break;
|
|
90
90
|
}
|
|
91
|
-
return
|
|
91
|
+
return XEUtils.commafy(moneyValue, { digits: 2 });
|
|
92
92
|
};
|
|
93
93
|
const textFormatter4Input = (value, dataFormatter) => {
|
|
94
94
|
if (!value) {
|
|
@@ -98,12 +98,12 @@ const textFormatter4Input = (value, dataFormatter) => {
|
|
|
98
98
|
case "money(yuan)":
|
|
99
99
|
case "money(wan)":
|
|
100
100
|
case "money(yi)":
|
|
101
|
-
return
|
|
101
|
+
return XEUtils.toNumberString(XEUtils.toNumber(value)).replace(
|
|
102
102
|
/\B(?=(\d{3})+(?!\d))/g,
|
|
103
103
|
","
|
|
104
104
|
);
|
|
105
105
|
case "bankCard":
|
|
106
|
-
return
|
|
106
|
+
return XEUtils.toValueString(value.replace(/\s+/g, "")).replace(
|
|
107
107
|
/\B(?=(\d{4})+(?!\d))/g,
|
|
108
108
|
" "
|
|
109
109
|
);
|
|
@@ -123,13 +123,13 @@ const reverseTextFormatter = (value, dataFormatter) => {
|
|
|
123
123
|
case "bankCard":
|
|
124
124
|
return value.replace(/\s+/g, "");
|
|
125
125
|
case "percent":
|
|
126
|
-
value =
|
|
126
|
+
value = XEUtils.divide(XEUtils.toNumber(value), 100);
|
|
127
127
|
return value;
|
|
128
128
|
case "thousand":
|
|
129
|
-
value =
|
|
129
|
+
value = XEUtils.divide(XEUtils.toNumber(value), 1e3);
|
|
130
130
|
return value;
|
|
131
131
|
case "tenThousand":
|
|
132
|
-
value =
|
|
132
|
+
value = XEUtils.divide(XEUtils.toNumber(value), 1e4);
|
|
133
133
|
return value;
|
|
134
134
|
default:
|
|
135
135
|
return value;
|
|
@@ -140,19 +140,19 @@ const reverseMoneyFormatter = (value, dataFormatter) => {
|
|
|
140
140
|
value = value.replace(/,/gi, "");
|
|
141
141
|
switch (dataFormatter) {
|
|
142
142
|
case "money(yuan)":
|
|
143
|
-
moneyValue =
|
|
143
|
+
moneyValue = XEUtils.toNumber(value);
|
|
144
144
|
break;
|
|
145
145
|
case "money(wan)":
|
|
146
|
-
moneyValue =
|
|
146
|
+
moneyValue = XEUtils.multiply(XEUtils.toNumber(value), 1e4);
|
|
147
147
|
break;
|
|
148
148
|
case "money(yi)":
|
|
149
|
-
moneyValue =
|
|
149
|
+
moneyValue = XEUtils.multiply(XEUtils.toNumber(value), 1e8);
|
|
150
150
|
break;
|
|
151
151
|
default:
|
|
152
|
-
moneyValue =
|
|
152
|
+
moneyValue = XEUtils.toNumber(value);
|
|
153
153
|
break;
|
|
154
154
|
}
|
|
155
|
-
return
|
|
155
|
+
return XEUtils.toNumberString(moneyValue);
|
|
156
156
|
};
|
|
157
157
|
const getUnit = (dataFormatter) => {
|
|
158
158
|
switch (dataFormatter) {
|