@fecp/mobile 1.0.22 → 1.0.24
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/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.mjs +0 -1
- package/es/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.mjs +6 -3
- package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +3 -3
- package/es/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.mjs +7 -3
- package/lib/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.js +0 -1
- package/lib/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.js +6 -3
- package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +3 -3
- package/lib/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.js +7 -3
- package/package.json +1 -1
|
@@ -32,8 +32,8 @@ const _sfc_main = {
|
|
|
32
32
|
default: "YYYYMMDD"
|
|
33
33
|
},
|
|
34
34
|
dateColumnsType: {
|
|
35
|
-
type:
|
|
36
|
-
default:
|
|
35
|
+
type: String,
|
|
36
|
+
default: "year,month,day"
|
|
37
37
|
},
|
|
38
38
|
readonly: false,
|
|
39
39
|
"is-link": false
|
|
@@ -53,6 +53,9 @@ const _sfc_main = {
|
|
|
53
53
|
const value = [date.year(), date.month() + 1, date.date()];
|
|
54
54
|
return value;
|
|
55
55
|
});
|
|
56
|
+
const columnsType = computed(() => {
|
|
57
|
+
return props.dateColumnsType.join(",");
|
|
58
|
+
});
|
|
56
59
|
watch(
|
|
57
60
|
() => props.modelValue,
|
|
58
61
|
(value) => {
|
|
@@ -96,7 +99,7 @@ const _sfc_main = {
|
|
|
96
99
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
97
100
|
readonly: false,
|
|
98
101
|
onConfirm,
|
|
99
|
-
columnsType:
|
|
102
|
+
columnsType: unref(columnsType),
|
|
100
103
|
onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
|
|
101
104
|
}), null, 16, ["modelValue", "columnsType"])
|
|
102
105
|
]),
|
|
@@ -18,7 +18,7 @@ import { Popup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.
|
|
|
18
18
|
const _sfc_main = {
|
|
19
19
|
__name: "FieldPicker",
|
|
20
20
|
props: {
|
|
21
|
-
|
|
21
|
+
pickerOptions: {
|
|
22
22
|
type: Array,
|
|
23
23
|
default: []
|
|
24
24
|
},
|
|
@@ -57,7 +57,7 @@ const _sfc_main = {
|
|
|
57
57
|
if (!value) {
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
const optionItem = props.
|
|
60
|
+
const optionItem = props.pickerOptions.find(
|
|
61
61
|
(item) => item[props.treeOptionsFieldNames.value] == value
|
|
62
62
|
);
|
|
63
63
|
fieldTextValue.value = optionItem == null ? void 0 : optionItem[props.treeOptionsFieldNames.text];
|
|
@@ -87,7 +87,7 @@ const _sfc_main = {
|
|
|
87
87
|
}, {
|
|
88
88
|
default: withCtx(() => [
|
|
89
89
|
createVNode(_component_van_picker, mergeProps(_ctx.$attrs, {
|
|
90
|
-
columns: __props.
|
|
90
|
+
columns: __props.pickerOptions,
|
|
91
91
|
"columns-field-names": __props.treeOptionsFieldNames,
|
|
92
92
|
"model-value": unref(pickerValue),
|
|
93
93
|
readonly: false,
|
|
@@ -32,8 +32,9 @@ const _sfc_main = {
|
|
|
32
32
|
default: "HH:mm:ss"
|
|
33
33
|
},
|
|
34
34
|
timeColumnsType: {
|
|
35
|
-
type:
|
|
36
|
-
default:
|
|
35
|
+
type: String,
|
|
36
|
+
default: "hour,minute"
|
|
37
|
+
// default: ["hour", "minute", "second"],
|
|
37
38
|
},
|
|
38
39
|
readonly: false,
|
|
39
40
|
"is-link": false
|
|
@@ -53,6 +54,9 @@ const _sfc_main = {
|
|
|
53
54
|
const value = [date.hours(), date.minutes(), date.seconds()];
|
|
54
55
|
return value;
|
|
55
56
|
});
|
|
57
|
+
const columnsType = computed(() => {
|
|
58
|
+
return props.timeColumnsType.join(",");
|
|
59
|
+
});
|
|
56
60
|
watch(
|
|
57
61
|
() => props.modelValue,
|
|
58
62
|
(value) => {
|
|
@@ -95,7 +99,7 @@ const _sfc_main = {
|
|
|
95
99
|
modelValue: unref(pickerValue),
|
|
96
100
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
97
101
|
readonly: false,
|
|
98
|
-
columnsType:
|
|
102
|
+
columnsType: unref(columnsType),
|
|
99
103
|
onConfirm,
|
|
100
104
|
onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
|
|
101
105
|
}), null, 16, ["modelValue", "columnsType"])
|
|
@@ -34,8 +34,8 @@ const _sfc_main = {
|
|
|
34
34
|
default: "YYYYMMDD"
|
|
35
35
|
},
|
|
36
36
|
dateColumnsType: {
|
|
37
|
-
type:
|
|
38
|
-
default:
|
|
37
|
+
type: String,
|
|
38
|
+
default: "year,month,day"
|
|
39
39
|
},
|
|
40
40
|
readonly: false,
|
|
41
41
|
"is-link": false
|
|
@@ -55,6 +55,9 @@ const _sfc_main = {
|
|
|
55
55
|
const value = [date.year(), date.month() + 1, date.date()];
|
|
56
56
|
return value;
|
|
57
57
|
});
|
|
58
|
+
const columnsType = vue.computed(() => {
|
|
59
|
+
return props.dateColumnsType.join(",");
|
|
60
|
+
});
|
|
58
61
|
vue.watch(
|
|
59
62
|
() => props.modelValue,
|
|
60
63
|
(value) => {
|
|
@@ -98,7 +101,7 @@ const _sfc_main = {
|
|
|
98
101
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
99
102
|
readonly: false,
|
|
100
103
|
onConfirm,
|
|
101
|
-
columnsType:
|
|
104
|
+
columnsType: vue.unref(columnsType),
|
|
102
105
|
onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
|
|
103
106
|
}), null, 16, ["modelValue", "columnsType"])
|
|
104
107
|
]),
|
|
@@ -20,7 +20,7 @@ const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.
|
|
|
20
20
|
const _sfc_main = {
|
|
21
21
|
__name: "FieldPicker",
|
|
22
22
|
props: {
|
|
23
|
-
|
|
23
|
+
pickerOptions: {
|
|
24
24
|
type: Array,
|
|
25
25
|
default: []
|
|
26
26
|
},
|
|
@@ -59,7 +59,7 @@ const _sfc_main = {
|
|
|
59
59
|
if (!value) {
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
const optionItem = props.
|
|
62
|
+
const optionItem = props.pickerOptions.find(
|
|
63
63
|
(item) => item[props.treeOptionsFieldNames.value] == value
|
|
64
64
|
);
|
|
65
65
|
fieldTextValue.value = optionItem == null ? void 0 : optionItem[props.treeOptionsFieldNames.text];
|
|
@@ -89,7 +89,7 @@ const _sfc_main = {
|
|
|
89
89
|
}, {
|
|
90
90
|
default: vue.withCtx(() => [
|
|
91
91
|
vue.createVNode(_component_van_picker, vue.mergeProps(_ctx.$attrs, {
|
|
92
|
-
columns: __props.
|
|
92
|
+
columns: __props.pickerOptions,
|
|
93
93
|
"columns-field-names": __props.treeOptionsFieldNames,
|
|
94
94
|
"model-value": vue.unref(pickerValue),
|
|
95
95
|
readonly: false,
|
|
@@ -34,8 +34,9 @@ const _sfc_main = {
|
|
|
34
34
|
default: "HH:mm:ss"
|
|
35
35
|
},
|
|
36
36
|
timeColumnsType: {
|
|
37
|
-
type:
|
|
38
|
-
default:
|
|
37
|
+
type: String,
|
|
38
|
+
default: "hour,minute"
|
|
39
|
+
// default: ["hour", "minute", "second"],
|
|
39
40
|
},
|
|
40
41
|
readonly: false,
|
|
41
42
|
"is-link": false
|
|
@@ -55,6 +56,9 @@ const _sfc_main = {
|
|
|
55
56
|
const value = [date.hours(), date.minutes(), date.seconds()];
|
|
56
57
|
return value;
|
|
57
58
|
});
|
|
59
|
+
const columnsType = vue.computed(() => {
|
|
60
|
+
return props.timeColumnsType.join(",");
|
|
61
|
+
});
|
|
58
62
|
vue.watch(
|
|
59
63
|
() => props.modelValue,
|
|
60
64
|
(value) => {
|
|
@@ -97,7 +101,7 @@ const _sfc_main = {
|
|
|
97
101
|
modelValue: vue.unref(pickerValue),
|
|
98
102
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
99
103
|
readonly: false,
|
|
100
|
-
columnsType:
|
|
104
|
+
columnsType: vue.unref(columnsType),
|
|
101
105
|
onConfirm,
|
|
102
106
|
onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
|
|
103
107
|
}), null, 16, ["modelValue", "columnsType"])
|