@fecp/designer 5.5.82 → 5.5.84
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/designer/package.json.mjs +1 -1
- package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
- package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
- package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
- package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer/src/packages/prod/index.vue.mjs +1 -1
- package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
- package/es/designer.css +2 -2
- package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +2 -1
- package/es/packages/vue/src/components/forms/number/Number.vue.mjs +34 -37
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DocumentParam.vue.js +1 -1
- package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
- package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
- package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
- package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
- package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
- package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer/src/packages/prod/index.vue.js +1 -1
- package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
- package/lib/designer.css +2 -2
- package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +2 -1
- package/lib/packages/vue/src/components/forms/number/Number.vue.js +34 -37
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
|
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { getCurrentInstance, computed, ref, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
|
|
11
11
|
import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
12
|
-
import ValueSelector from "./ValueSelector.
|
|
12
|
+
import ValueSelector from "./ValueSelector.vue2.mjs";
|
|
13
13
|
import api from "../api/index.mjs";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
@@ -4,7 +4,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { computed, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
|
|
6
6
|
import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
7
|
-
import ValueSelector from "./ValueSelector.
|
|
7
|
+
import ValueSelector from "./ValueSelector.vue2.mjs";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
10
10
|
import { ElButton } from "../../../node_modules/element-plus/es/components/button/index.mjs";
|
|
@@ -16,7 +16,7 @@ import { Plus as plus_default, RefreshRight as refresh_right_default, Delete as
|
|
|
16
16
|
import { getEditConfigData, getEditingType, cloneDeep, getEditConfigDataFields } from "../../packages/utils/common.mjs";
|
|
17
17
|
import { defaultProperty } from "../../packages/form/aside/index.mjs";
|
|
18
18
|
import { defaultProperty as defaultProperty$1 } from "../../packages/table/aside/index.mjs";
|
|
19
|
-
import ValueSelector from "../../components/ValueSelector.
|
|
19
|
+
import ValueSelector from "../../components/ValueSelector.vue2.mjs";
|
|
20
20
|
/* empty css */
|
|
21
21
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
22
22
|
import { ElDialog } from "../../../../node_modules/element-plus/es/components/dialog/index.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
|
|
|
14
14
|
import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
|
|
15
15
|
import { getCurrentInstance, computed, watch, ref, createElementBlock, unref, openBlock, createBlock, isRef, createVNode, createElementVNode, withCtx, Fragment, renderList } from "vue";
|
|
16
16
|
import { useVModel } from "../../../../node_modules/@vueuse/core/dist/index.mjs";
|
|
17
|
-
import ValueSelector from "../../components/ValueSelector.
|
|
17
|
+
import ValueSelector from "../../components/ValueSelector.vue2.mjs";
|
|
18
18
|
import api from "../../api/index.mjs";
|
|
19
19
|
import { getEditConfigDataSources } from "../utils/common.mjs";
|
|
20
20
|
import { createDataSource } from "../utils/datasource.mjs";
|
|
@@ -30,7 +30,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs
|
|
|
30
30
|
/* empty css */
|
|
31
31
|
/* empty css */
|
|
32
32
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
33
|
-
/* empty css
|
|
33
|
+
/* empty css */
|
|
34
34
|
import api from "../../api/index.mjs";
|
|
35
35
|
/* empty css */
|
|
36
36
|
/* empty css */
|
|
@@ -84,7 +84,7 @@ import widgets from "../table/property/widgets.vue.mjs";
|
|
|
84
84
|
import "../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
|
|
85
85
|
/* empty css */
|
|
86
86
|
/* empty css */
|
|
87
|
-
/* empty css
|
|
87
|
+
/* empty css */
|
|
88
88
|
/* empty css */
|
|
89
89
|
/* empty css */
|
|
90
90
|
/* empty css */
|
|
@@ -4,7 +4,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createElementBlock, openBlock, Fragment, createVNode, withCtx } from "vue";
|
|
6
6
|
import RiskSchemeSelector from "../../../../components/RiskSchemeSelector.vue2.mjs";
|
|
7
|
-
import ValueSelector from "../../../../components/ValueSelector.
|
|
7
|
+
import ValueSelector from "../../../../components/ValueSelector.vue2.mjs";
|
|
8
8
|
import ParamsConfig from "../../../../components/ParamsConfig.vue2.mjs";
|
|
9
9
|
import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
|
|
10
10
|
import { ElSwitch } from "../../../../../../node_modules/element-plus/es/components/switch/index.mjs";
|
|
@@ -11,7 +11,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
11
11
|
import { computed, ref, watch, createBlock, openBlock, unref, isRef, withCtx, createVNode, createElementBlock, createCommentVNode, createTextVNode, Fragment } from "vue";
|
|
12
12
|
import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
|
|
13
13
|
import emitter from "../../utils/eventBus.mjs";
|
|
14
|
-
import ValueSelector from "../../../components/ValueSelector.
|
|
14
|
+
import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
|
|
15
15
|
import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
|
|
16
16
|
import { ElForm, ElFormItem } from "../../../../../node_modules/element-plus/es/components/form/index.mjs";
|
|
17
17
|
import { ElInput } from "../../../../../node_modules/element-plus/es/components/input/index.mjs";
|
|
@@ -17,7 +17,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
17
17
|
import { getCurrentInstance, computed, ref, createBlock, openBlock, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
18
18
|
import { getCurrentItem } from "../../utils/common.mjs";
|
|
19
19
|
import "../../utils/eventBus.mjs";
|
|
20
|
-
import ValueSelector from "../../../components/ValueSelector.
|
|
20
|
+
import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
|
|
21
21
|
import api from "../../../api/index.mjs";
|
|
22
22
|
import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
|
|
23
23
|
/* empty css */
|
|
@@ -12,7 +12,7 @@ import { computed, ref, createBlock, openBlock, unref, isRef, withCtx, createVNo
|
|
|
12
12
|
import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
|
|
13
13
|
import TemplateSelector from "../../../components/TemplateSelector.vue2.mjs";
|
|
14
14
|
import emitter from "../../utils/eventBus.mjs";
|
|
15
|
-
import ValueSelector from "../../../components/ValueSelector.
|
|
15
|
+
import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
|
|
16
16
|
import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
|
|
17
17
|
import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
|
|
18
18
|
import { ElForm, ElFormItem } from "../../../../../node_modules/element-plus/es/components/form/index.mjs";
|
|
@@ -52,8 +52,8 @@ import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
52
52
|
import "../../../components/TemplateSelector.vue.mjs";
|
|
53
53
|
import "../../table/default.mjs";
|
|
54
54
|
/* empty css */
|
|
55
|
-
/* empty css
|
|
56
|
-
/* empty css
|
|
55
|
+
/* empty css */
|
|
56
|
+
/* empty css */
|
|
57
57
|
import "../../../store/index.mjs";
|
|
58
58
|
/* empty css */
|
|
59
59
|
import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
|
|
|
14
14
|
import { getCurrentInstance, useModel, ref, watch, computed, createBlock, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, createTextVNode, unref } from "vue";
|
|
15
15
|
import { Plus as plus_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
16
16
|
import { getEditConfigData, getEditConfigDataFields, setEditConfigData } from "../utils/common.mjs";
|
|
17
|
-
import ValueSelector from "../../components/ValueSelector.
|
|
17
|
+
import ValueSelector from "../../components/ValueSelector.vue2.mjs";
|
|
18
18
|
import api from "../../api/index.mjs";
|
|
19
19
|
/* empty css */
|
|
20
20
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
package/es/designer.css
CHANGED
|
@@ -6020,13 +6020,13 @@ body,
|
|
|
6020
6020
|
}
|
|
6021
6021
|
.textarea-field-wrapper[data-v-1bdb1a05] .el-textarea .el-textarea__inner {
|
|
6022
6022
|
height: 100%;
|
|
6023
|
-
}[data-v-
|
|
6023
|
+
}[data-v-01611195] .el-input-group__append {
|
|
6024
6024
|
background-color: #409eff;
|
|
6025
6025
|
color: #fff;
|
|
6026
6026
|
padding: 0 18px;
|
|
6027
6027
|
box-shadow: 0 1px 0 0 #a8abb2 inset, 0 -1px 0 0 #a8abb2 inset, -1px 0 0 0 #a8abb2 inset;
|
|
6028
6028
|
}
|
|
6029
|
-
[data-v-
|
|
6029
|
+
[data-v-01611195] .el-input-group__append:hover {
|
|
6030
6030
|
background-color: #79bbff;
|
|
6031
6031
|
border-color: #79bbff;
|
|
6032
6032
|
color: #fff;
|
|
@@ -77,6 +77,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
77
77
|
return (_ctx, _cache) => {
|
|
78
78
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
79
79
|
(openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), {
|
|
80
|
+
id: `comp_${__props.config.id}`,
|
|
80
81
|
mode: unref(mode),
|
|
81
82
|
busNo: unref(busNo),
|
|
82
83
|
contNo: unref(contNo),
|
|
@@ -84,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
84
85
|
genType: __props.config.genType,
|
|
85
86
|
parmList: unref(parsedParams),
|
|
86
87
|
onLoaded: loaded
|
|
87
|
-
}, null, 40, ["mode", "busNo", "contNo", "modeNo", "genType", "parmList"]))
|
|
88
|
+
}, null, 40, ["id", "mode", "busNo", "contNo", "modeNo", "genType", "parmList"]))
|
|
88
89
|
]);
|
|
89
90
|
};
|
|
90
91
|
}
|
|
@@ -279,7 +279,35 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
279
279
|
};
|
|
280
280
|
const handleBlur = (event) => {
|
|
281
281
|
let value = event.target.value;
|
|
282
|
-
|
|
282
|
+
if (!value && value !== 0) {
|
|
283
|
+
compValue.value = value;
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
let cleanValue = delcommafy(value.toString());
|
|
287
|
+
let numValue = Number(cleanValue);
|
|
288
|
+
if (isNaN(numValue)) return;
|
|
289
|
+
numValue = Number(numValue.toFixed(precision.value));
|
|
290
|
+
switch (props.format) {
|
|
291
|
+
case "wan":
|
|
292
|
+
numValue = numMulti(numValue, 1e4);
|
|
293
|
+
break;
|
|
294
|
+
case "million":
|
|
295
|
+
numValue = numMulti(numValue, 1e6);
|
|
296
|
+
break;
|
|
297
|
+
case "percentage":
|
|
298
|
+
numValue = numDiv(numValue, 100);
|
|
299
|
+
break;
|
|
300
|
+
case "permillage":
|
|
301
|
+
numValue = numDiv(numValue, 1e3);
|
|
302
|
+
break;
|
|
303
|
+
case "permillion":
|
|
304
|
+
numValue = numDiv(numValue, 1e4);
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
const effectiveMax = props.maxValue != null ? props.maxValue : 999999999999999;
|
|
308
|
+
const effectiveMin = props.minValue != null ? props.minValue : -999999999999999;
|
|
309
|
+
numValue = Math.max(effectiveMin, Math.min(effectiveMax, numValue));
|
|
310
|
+
compValue.value = numValue;
|
|
283
311
|
switch (props.format) {
|
|
284
312
|
case "wan":
|
|
285
313
|
textValue.value = numDiv(numValue, 1e4);
|
|
@@ -308,42 +336,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
308
336
|
textValue.value = delcommafy(textValue.value);
|
|
309
337
|
}
|
|
310
338
|
};
|
|
311
|
-
function
|
|
312
|
-
if (
|
|
313
|
-
|
|
314
|
-
return;
|
|
315
|
-
}
|
|
316
|
-
let cleanValue = delcommafy(value.toString());
|
|
317
|
-
let numValue2 = Number(cleanValue);
|
|
318
|
-
if (isNaN(numValue2)) return;
|
|
319
|
-
numValue2 = Number(numValue2.toFixed(precision.value));
|
|
320
|
-
switch (props.format) {
|
|
321
|
-
case "wan":
|
|
322
|
-
numValue2 = numMulti(numValue2, 1e4);
|
|
323
|
-
break;
|
|
324
|
-
case "million":
|
|
325
|
-
numValue2 = numMulti(numValue2, 1e6);
|
|
326
|
-
break;
|
|
327
|
-
case "percentage":
|
|
328
|
-
numValue2 = numDiv(numValue2, 100);
|
|
329
|
-
break;
|
|
330
|
-
case "permillage":
|
|
331
|
-
numValue2 = numDiv(numValue2, 1e3);
|
|
332
|
-
break;
|
|
333
|
-
case "permillion":
|
|
334
|
-
numValue2 = numDiv(numValue2, 1e4);
|
|
335
|
-
break;
|
|
336
|
-
}
|
|
337
|
-
const effectiveMax = props.maxValue != null ? props.maxValue : 999999999999999;
|
|
338
|
-
const effectiveMin = props.minValue != null ? props.minValue : -999999999999999;
|
|
339
|
-
numValue2 = Math.max(effectiveMin, Math.min(effectiveMax, numValue2));
|
|
340
|
-
compValue.value = numValue2;
|
|
341
|
-
}
|
|
342
|
-
function formatNumberWithComma(numValue2) {
|
|
343
|
-
if (isNaN(numValue2) || numValue2 === null || numValue2 === void 0) {
|
|
344
|
-
return numValue2;
|
|
339
|
+
function formatNumberWithComma(numValue) {
|
|
340
|
+
if (isNaN(numValue) || numValue === null || numValue === void 0) {
|
|
341
|
+
return numValue;
|
|
345
342
|
}
|
|
346
|
-
let numStr =
|
|
343
|
+
let numStr = numValue.toString();
|
|
347
344
|
const endsWithDot = numStr.endsWith(".");
|
|
348
345
|
const [integerPart, decimalPart] = numStr.split(".");
|
|
349
346
|
const formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
@@ -507,7 +504,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
507
504
|
};
|
|
508
505
|
}
|
|
509
506
|
});
|
|
510
|
-
const _Number = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
507
|
+
const _Number = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-01611195"]]);
|
|
511
508
|
export {
|
|
512
509
|
_Number as default
|
|
513
510
|
};
|
|
@@ -11,7 +11,7 @@ require("../../../node_modules/element-plus/es/index.js");
|
|
|
11
11
|
;/* empty css */
|
|
12
12
|
const Vue = require("vue");
|
|
13
13
|
const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
14
|
-
const ValueSelector = require("./ValueSelector.
|
|
14
|
+
const ValueSelector = require("./ValueSelector.vue2.js");
|
|
15
15
|
const index = require("../api/index.js");
|
|
16
16
|
;/* empty css */
|
|
17
17
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
@@ -6,7 +6,7 @@ require("../../../node_modules/element-plus/es/index.js");
|
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const Vue = require("vue");
|
|
8
8
|
const index$1 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
9
|
-
const ValueSelector = require("./ValueSelector.
|
|
9
|
+
const ValueSelector = require("./ValueSelector.vue2.js");
|
|
10
10
|
;/* empty css */
|
|
11
11
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
12
12
|
const index = require("../../../node_modules/element-plus/es/components/button/index.js");
|
|
@@ -18,7 +18,7 @@ const index$2 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
|
|
|
18
18
|
const common = require("../../packages/utils/common.js");
|
|
19
19
|
const index$5 = require("../../packages/form/aside/index.js");
|
|
20
20
|
const index$6 = require("../../packages/table/aside/index.js");
|
|
21
|
-
const ValueSelector = require("../../components/ValueSelector.
|
|
21
|
+
const ValueSelector = require("../../components/ValueSelector.vue2.js");
|
|
22
22
|
;/* empty css */
|
|
23
23
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
24
24
|
const index = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
|
|
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
|
|
|
16
16
|
require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
|
|
17
17
|
const Vue = require("vue");
|
|
18
18
|
const index = require("../../../../node_modules/@vueuse/core/dist/index.js");
|
|
19
|
-
const ValueSelector = require("../../components/ValueSelector.
|
|
19
|
+
const ValueSelector = require("../../components/ValueSelector.vue2.js");
|
|
20
20
|
const index$1 = require("../../api/index.js");
|
|
21
21
|
const common = require("../utils/common.js");
|
|
22
22
|
const datasource = require("../utils/datasource.js");
|
|
@@ -32,7 +32,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
|
|
|
32
32
|
;/* empty css */
|
|
33
33
|
;/* empty css */
|
|
34
34
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
35
|
-
;/* empty css
|
|
35
|
+
;/* empty css */
|
|
36
36
|
const index$8 = require("../../api/index.js");
|
|
37
37
|
;/* empty css */
|
|
38
38
|
;/* empty css */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.vue.js");
|
|
4
4
|
const Vue = require("vue");
|
|
5
5
|
function useDialogDialog() {
|
|
6
6
|
const dialogDialogVisible = Vue.ref(false);
|
|
@@ -86,7 +86,7 @@ const widgets = require("../table/property/widgets.vue.js");
|
|
|
86
86
|
require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
87
87
|
;/* empty css */
|
|
88
88
|
;/* empty css */
|
|
89
|
-
;/* empty css
|
|
89
|
+
;/* empty css */
|
|
90
90
|
;/* empty css */
|
|
91
91
|
;/* empty css */
|
|
92
92
|
;/* empty css */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.vue.js");
|
|
4
4
|
const Vue = require("vue");
|
|
5
5
|
function useDialogGlobalDialog() {
|
|
6
6
|
const dialogGlobalDialogVisible = Vue.ref(false);
|
|
@@ -6,7 +6,7 @@ require("../../../../../../node_modules/element-plus/es/index.js");
|
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const Vue = require("vue");
|
|
8
8
|
const RiskSchemeSelector = require("../../../../components/RiskSchemeSelector.vue2.js");
|
|
9
|
-
const ValueSelector = require("../../../../components/ValueSelector.
|
|
9
|
+
const ValueSelector = require("../../../../components/ValueSelector.vue2.js");
|
|
10
10
|
const ParamsConfig = require("../../../../components/ParamsConfig.vue2.js");
|
|
11
11
|
const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
12
12
|
const index$1 = require("../../../../../../node_modules/element-plus/es/components/switch/index.js");
|
|
@@ -13,7 +13,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
|
|
|
13
13
|
const Vue = require("vue");
|
|
14
14
|
const common = require("../../utils/common.js");
|
|
15
15
|
const eventBus = require("../../utils/eventBus.js");
|
|
16
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
16
|
+
const ValueSelector = require("../../../components/ValueSelector.vue2.js");
|
|
17
17
|
const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
|
|
18
18
|
const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
19
19
|
const index$2 = require("../../../../../node_modules/element-plus/es/components/input/index.js");
|
|
@@ -19,7 +19,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
|
|
|
19
19
|
const Vue = require("vue");
|
|
20
20
|
const common = require("../../utils/common.js");
|
|
21
21
|
require("../../utils/eventBus.js");
|
|
22
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
22
|
+
const ValueSelector = require("../../../components/ValueSelector.vue2.js");
|
|
23
23
|
const index = require("../../../api/index.js");
|
|
24
24
|
const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
|
|
25
25
|
;/* empty css */
|
|
@@ -14,7 +14,7 @@ const Vue = require("vue");
|
|
|
14
14
|
const common = require("../../utils/common.js");
|
|
15
15
|
const TemplateSelector = require("../../../components/TemplateSelector.vue2.js");
|
|
16
16
|
const eventBus = require("../../utils/eventBus.js");
|
|
17
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
17
|
+
const ValueSelector = require("../../../components/ValueSelector.vue2.js");
|
|
18
18
|
const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
|
|
19
19
|
const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
|
|
20
20
|
const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
|
|
|
54
54
|
require("../../../components/TemplateSelector.vue.js");
|
|
55
55
|
require("../../table/default.js");
|
|
56
56
|
;/* empty css */
|
|
57
|
-
;/* empty css
|
|
58
|
-
;/* empty css
|
|
57
|
+
;/* empty css */
|
|
58
|
+
;/* empty css */
|
|
59
59
|
require("../../../store/index.js");
|
|
60
60
|
;/* empty css */
|
|
61
61
|
const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
|
|
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/es/index.js");
|
|
|
16
16
|
const Vue = require("vue");
|
|
17
17
|
const index$6 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
18
18
|
const common = require("../utils/common.js");
|
|
19
|
-
const ValueSelector = require("../../components/ValueSelector.
|
|
19
|
+
const ValueSelector = require("../../components/ValueSelector.vue2.js");
|
|
20
20
|
const index = require("../../api/index.js");
|
|
21
21
|
;/* empty css */
|
|
22
22
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
package/lib/designer.css
CHANGED
|
@@ -6020,13 +6020,13 @@ body,
|
|
|
6020
6020
|
}
|
|
6021
6021
|
.textarea-field-wrapper[data-v-1bdb1a05] .el-textarea .el-textarea__inner {
|
|
6022
6022
|
height: 100%;
|
|
6023
|
-
}[data-v-
|
|
6023
|
+
}[data-v-01611195] .el-input-group__append {
|
|
6024
6024
|
background-color: #409eff;
|
|
6025
6025
|
color: #fff;
|
|
6026
6026
|
padding: 0 18px;
|
|
6027
6027
|
box-shadow: 0 1px 0 0 #a8abb2 inset, 0 -1px 0 0 #a8abb2 inset, -1px 0 0 0 #a8abb2 inset;
|
|
6028
6028
|
}
|
|
6029
|
-
[data-v-
|
|
6029
|
+
[data-v-01611195] .el-input-group__append:hover {
|
|
6030
6030
|
background-color: #79bbff;
|
|
6031
6031
|
border-color: #79bbff;
|
|
6032
6032
|
color: #fff;
|
|
@@ -79,6 +79,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
79
79
|
return (_ctx, _cache) => {
|
|
80
80
|
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
81
81
|
(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(currentComponent)), {
|
|
82
|
+
id: `comp_${__props.config.id}`,
|
|
82
83
|
mode: Vue.unref(mode),
|
|
83
84
|
busNo: Vue.unref(busNo),
|
|
84
85
|
contNo: Vue.unref(contNo),
|
|
@@ -86,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
86
87
|
genType: __props.config.genType,
|
|
87
88
|
parmList: Vue.unref(parsedParams),
|
|
88
89
|
onLoaded: loaded
|
|
89
|
-
}, null, 40, ["mode", "busNo", "contNo", "modeNo", "genType", "parmList"]))
|
|
90
|
+
}, null, 40, ["id", "mode", "busNo", "contNo", "modeNo", "genType", "parmList"]))
|
|
90
91
|
]);
|
|
91
92
|
};
|
|
92
93
|
}
|
|
@@ -281,7 +281,35 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
281
281
|
};
|
|
282
282
|
const handleBlur = (event) => {
|
|
283
283
|
let value = event.target.value;
|
|
284
|
-
|
|
284
|
+
if (!value && value !== 0) {
|
|
285
|
+
compValue.value = value;
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
let cleanValue = delcommafy(value.toString());
|
|
289
|
+
let numValue = Number(cleanValue);
|
|
290
|
+
if (isNaN(numValue)) return;
|
|
291
|
+
numValue = Number(numValue.toFixed(precision.value));
|
|
292
|
+
switch (props.format) {
|
|
293
|
+
case "wan":
|
|
294
|
+
numValue = numMulti(numValue, 1e4);
|
|
295
|
+
break;
|
|
296
|
+
case "million":
|
|
297
|
+
numValue = numMulti(numValue, 1e6);
|
|
298
|
+
break;
|
|
299
|
+
case "percentage":
|
|
300
|
+
numValue = numDiv(numValue, 100);
|
|
301
|
+
break;
|
|
302
|
+
case "permillage":
|
|
303
|
+
numValue = numDiv(numValue, 1e3);
|
|
304
|
+
break;
|
|
305
|
+
case "permillion":
|
|
306
|
+
numValue = numDiv(numValue, 1e4);
|
|
307
|
+
break;
|
|
308
|
+
}
|
|
309
|
+
const effectiveMax = props.maxValue != null ? props.maxValue : 999999999999999;
|
|
310
|
+
const effectiveMin = props.minValue != null ? props.minValue : -999999999999999;
|
|
311
|
+
numValue = Math.max(effectiveMin, Math.min(effectiveMax, numValue));
|
|
312
|
+
compValue.value = numValue;
|
|
285
313
|
switch (props.format) {
|
|
286
314
|
case "wan":
|
|
287
315
|
textValue.value = numDiv(numValue, 1e4);
|
|
@@ -310,42 +338,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
310
338
|
textValue.value = delcommafy(textValue.value);
|
|
311
339
|
}
|
|
312
340
|
};
|
|
313
|
-
function
|
|
314
|
-
if (
|
|
315
|
-
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
let cleanValue = delcommafy(value.toString());
|
|
319
|
-
let numValue2 = Number(cleanValue);
|
|
320
|
-
if (isNaN(numValue2)) return;
|
|
321
|
-
numValue2 = Number(numValue2.toFixed(precision.value));
|
|
322
|
-
switch (props.format) {
|
|
323
|
-
case "wan":
|
|
324
|
-
numValue2 = numMulti(numValue2, 1e4);
|
|
325
|
-
break;
|
|
326
|
-
case "million":
|
|
327
|
-
numValue2 = numMulti(numValue2, 1e6);
|
|
328
|
-
break;
|
|
329
|
-
case "percentage":
|
|
330
|
-
numValue2 = numDiv(numValue2, 100);
|
|
331
|
-
break;
|
|
332
|
-
case "permillage":
|
|
333
|
-
numValue2 = numDiv(numValue2, 1e3);
|
|
334
|
-
break;
|
|
335
|
-
case "permillion":
|
|
336
|
-
numValue2 = numDiv(numValue2, 1e4);
|
|
337
|
-
break;
|
|
338
|
-
}
|
|
339
|
-
const effectiveMax = props.maxValue != null ? props.maxValue : 999999999999999;
|
|
340
|
-
const effectiveMin = props.minValue != null ? props.minValue : -999999999999999;
|
|
341
|
-
numValue2 = Math.max(effectiveMin, Math.min(effectiveMax, numValue2));
|
|
342
|
-
compValue.value = numValue2;
|
|
343
|
-
}
|
|
344
|
-
function formatNumberWithComma(numValue2) {
|
|
345
|
-
if (isNaN(numValue2) || numValue2 === null || numValue2 === void 0) {
|
|
346
|
-
return numValue2;
|
|
341
|
+
function formatNumberWithComma(numValue) {
|
|
342
|
+
if (isNaN(numValue) || numValue === null || numValue === void 0) {
|
|
343
|
+
return numValue;
|
|
347
344
|
}
|
|
348
|
-
let numStr =
|
|
345
|
+
let numStr = numValue.toString();
|
|
349
346
|
const endsWithDot = numStr.endsWith(".");
|
|
350
347
|
const [integerPart, decimalPart] = numStr.split(".");
|
|
351
348
|
const formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
@@ -509,5 +506,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
509
506
|
};
|
|
510
507
|
}
|
|
511
508
|
});
|
|
512
|
-
const _Number = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
509
|
+
const _Number = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-01611195"]]);
|
|
513
510
|
exports.default = _Number;
|