cloud-web-corejs 1.0.54-dev.121 → 1.0.54-dev.122
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/package.json
CHANGED
@@ -12,7 +12,6 @@ import {
|
|
12
12
|
generateId,
|
13
13
|
} from "../../../../components/xform/utils/util";
|
14
14
|
import { tableTreeMixins } from "../../../../mixins/tableTree/index.js";
|
15
|
-
import ItemEdit from "@/views/user/form/form_template/itemEdit.vue";
|
16
15
|
|
17
16
|
let modules = {};
|
18
17
|
const baseRefUtil = {
|
@@ -507,19 +506,20 @@ modules = {
|
|
507
506
|
|
508
507
|
let getDateItem = (widget) => {
|
509
508
|
let options = widget.options;
|
510
|
-
|
509
|
+
let isRange = widget.type == "time-range";
|
511
510
|
let dateConfig = {
|
512
511
|
format: options.format,
|
513
512
|
valueFormat: options.valueFormat,
|
514
|
-
isRange
|
513
|
+
isRange
|
515
514
|
};
|
516
515
|
let typeMap = {
|
517
516
|
input: { type: "input" },
|
518
517
|
number: { type: "number" },
|
519
|
-
inputBatch: { type: "inputBatch" },
|
518
|
+
inputBatch: { type: "inputBatch",isRange:true },
|
520
519
|
date: {
|
521
520
|
type: "date",
|
522
521
|
widgetType: options.type,
|
522
|
+
isRange,
|
523
523
|
widgetConfig: dateConfig,
|
524
524
|
},
|
525
525
|
time: { type: "time", isRange: false, widgetConfig: dateConfig },
|
@@ -527,10 +527,12 @@ modules = {
|
|
527
527
|
type: "date",
|
528
528
|
widgetType: "daterange",
|
529
529
|
widgetConfig: dateConfig,
|
530
|
+
isRange
|
530
531
|
},
|
531
532
|
"time-range": {
|
532
533
|
type: "time",
|
533
534
|
widgetConfig: dateConfig,
|
535
|
+
isRange
|
534
536
|
},
|
535
537
|
};
|
536
538
|
let item = typeMap[widget.type] || {};
|