@fecp/mobile 1.0.17 → 1.0.19
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/mobile.css +5 -5
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/picker/Picker.mjs +2 -2
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/picker-group/PickerGroup.mjs +3 -4
- package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/radio-group/RadioGroup.mjs +1 -1
- package/es/packages/mobile/index.mjs +4 -14
- package/es/packages/mobile/src/components/all.mjs +4 -14
- package/es/packages/mobile/src/components/form/checkbox/Checkbox.vue.mjs +22 -18
- package/es/packages/mobile/src/components/form/checkbox/index.mjs +2 -2
- package/es/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.mjs +45 -18
- package/es/packages/mobile/src/components/form/checkboxGroup/index.mjs +2 -2
- package/es/packages/mobile/src/components/form/field/Field.vue.mjs +17 -14
- package/es/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.mjs +23 -35
- package/es/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.mjs +33 -45
- package/es/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.mjs +43 -0
- package/es/packages/mobile/src/components/form/fieldCheckbox/index.mjs +10 -0
- package/es/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.mjs +31 -43
- package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +31 -43
- package/es/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.mjs +19 -0
- package/es/packages/mobile/src/components/form/fieldRadio/index.mjs +10 -0
- package/es/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.mjs +30 -42
- package/es/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.mjs +46 -18
- package/es/packages/mobile/src/components/form/radioGroup/index.mjs +2 -2
- package/es/packages/mobile/src/utils/formRule.mjs +49 -11
- package/lib/mobile.css +5 -5
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/picker-group/PickerGroup.js +2 -3
- package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/radio-group/RadioGroup.js +1 -1
- package/lib/packages/mobile/index.js +60 -70
- package/lib/packages/mobile/src/components/all.js +60 -70
- package/lib/packages/mobile/src/components/form/checkbox/Checkbox.vue.js +21 -17
- package/lib/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.js +44 -17
- package/lib/packages/mobile/src/components/form/field/Field.vue.js +16 -13
- package/lib/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.js +22 -34
- package/lib/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.js +32 -44
- package/lib/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.js +43 -0
- package/lib/packages/mobile/src/components/form/fieldCheckbox/index.js +10 -0
- package/lib/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.js +30 -42
- package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +30 -42
- package/lib/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.js +19 -0
- package/lib/packages/mobile/src/components/form/fieldRadio/index.js +10 -0
- package/lib/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.js +29 -41
- package/lib/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.js +45 -17
- package/lib/packages/mobile/src/utils/formRule.js +49 -11
- package/package.json +1 -1
package/es/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.mjs
CHANGED
|
@@ -9,12 +9,10 @@
|
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import { ref, computed, watch, createElementBlock, openBlock, Fragment, createVNode, mergeProps, unref, isRef, createSlots, renderList, withCtx, renderSlot } from "vue";
|
|
15
|
-
import { Field } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/field/index.mjs";
|
|
16
|
-
import { Popup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.mjs";
|
|
12
|
+
import { ref, computed, watch, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createVNode } from "vue";
|
|
13
|
+
import { MobileField } from "../field/index.mjs";
|
|
17
14
|
import { Cascader } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/cascader/index.mjs";
|
|
15
|
+
import { Popup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.mjs";
|
|
18
16
|
const _sfc_main = {
|
|
19
17
|
__name: "fieldCascaderPicker",
|
|
20
18
|
props: {
|
|
@@ -92,48 +90,38 @@ const _sfc_main = {
|
|
|
92
90
|
showPicker.value = false;
|
|
93
91
|
};
|
|
94
92
|
return (_ctx, _cache) => {
|
|
95
|
-
const _component_van_field = Field;
|
|
96
93
|
const _component_van_cascader = Cascader;
|
|
97
94
|
const _component_van_popup = Popup;
|
|
98
|
-
return openBlock(),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"field-names": _ctx.columnsFieldNames,
|
|
129
|
-
placeholder: "请选择",
|
|
130
|
-
onFinish,
|
|
131
|
-
onClose: _cache[3] || (_cache[3] = ($event) => showPicker.value = false)
|
|
132
|
-
}), null, 16, ["modelValue", "options", "field-names"])
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
}, 8, ["show"])
|
|
136
|
-
], 64);
|
|
95
|
+
return openBlock(), createBlock(unref(MobileField), mergeProps(_ctx.$attrs, {
|
|
96
|
+
modelValue: unref(fieldTextValue),
|
|
97
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
|
|
98
|
+
"is-link": "",
|
|
99
|
+
readonly: "",
|
|
100
|
+
onClick: _cache[4] || (_cache[4] = ($event) => showPicker.value = true)
|
|
101
|
+
}), {
|
|
102
|
+
default: withCtx(() => [
|
|
103
|
+
createVNode(_component_van_popup, {
|
|
104
|
+
show: unref(showPicker),
|
|
105
|
+
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => isRef(showPicker) ? showPicker.value = $event : null),
|
|
106
|
+
"destroy-on-close": "",
|
|
107
|
+
position: "bottom"
|
|
108
|
+
}, {
|
|
109
|
+
default: withCtx(() => [
|
|
110
|
+
createVNode(_component_van_cascader, mergeProps(_ctx.$attrs, {
|
|
111
|
+
modelValue: unref(pickerValue),
|
|
112
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
113
|
+
options: __props.options,
|
|
114
|
+
"field-names": _ctx.columnsFieldNames,
|
|
115
|
+
placeholder: "请选择",
|
|
116
|
+
onFinish,
|
|
117
|
+
onClose: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
|
|
118
|
+
}), null, 16, ["modelValue", "options", "field-names"])
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}, 8, ["show"])
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 16, ["modelValue"]);
|
|
137
125
|
};
|
|
138
126
|
}
|
|
139
127
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { computed, createBlock, openBlock, unref, mergeProps, withCtx, createVNode, isRef } from "vue";
|
|
2
|
+
import { MobileField } from "../field/index.mjs";
|
|
3
|
+
import { MobileCheckboxGroup } from "../checkboxGroup/index.mjs";
|
|
4
|
+
const _sfc_main = {
|
|
5
|
+
__name: "FieldCheckbox",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: Array,
|
|
9
|
+
default: []
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const emit = __emit;
|
|
16
|
+
const compValue = computed({
|
|
17
|
+
get: () => {
|
|
18
|
+
if (Array.isArray(props.modelValue)) {
|
|
19
|
+
return props.modelValue;
|
|
20
|
+
} else {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
set: (val) => {
|
|
25
|
+
emit("update:modelValue", val);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createBlock(unref(MobileField), mergeProps(_ctx.$attrs, { modelValue: "" }), {
|
|
30
|
+
input: withCtx(() => [
|
|
31
|
+
createVNode(unref(MobileCheckboxGroup), mergeProps(_ctx.$attrs, {
|
|
32
|
+
modelValue: unref(compValue),
|
|
33
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(compValue) ? compValue.value = $event : null)
|
|
34
|
+
}), null, 16, ["modelValue"])
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
}, 16);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
_sfc_main as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./FieldCheckbox.vue.mjs";
|
|
2
|
+
import install from "../../../utils/install.mjs";
|
|
3
|
+
const MobileFieldCheckbox = install.withInstall(
|
|
4
|
+
"MobileFieldCheckbox",
|
|
5
|
+
_sfc_main
|
|
6
|
+
);
|
|
7
|
+
export {
|
|
8
|
+
MobileFieldCheckbox,
|
|
9
|
+
MobileFieldCheckbox as default
|
|
10
|
+
};
|
|
@@ -11,13 +11,11 @@
|
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { ref, computed, watch, createElementBlock, openBlock, Fragment, createVNode, mergeProps, unref, isRef, createSlots, renderList, withCtx, renderSlot } from "vue";
|
|
14
|
+
import { ref, computed, watch, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createVNode } from "vue";
|
|
15
|
+
import { MobileField } from "../field/index.mjs";
|
|
17
16
|
import hooks from "../../../../../../node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/moment.mjs";
|
|
18
|
-
import { Field } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/field/index.mjs";
|
|
19
|
-
import { Popup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.mjs";
|
|
20
17
|
import { DatePicker } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/date-picker/index.mjs";
|
|
18
|
+
import { Popup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.mjs";
|
|
21
19
|
const _sfc_main = {
|
|
22
20
|
__name: "FieldDatePicker",
|
|
23
21
|
props: {
|
|
@@ -70,46 +68,36 @@ const _sfc_main = {
|
|
|
70
68
|
showPicker.value = false;
|
|
71
69
|
};
|
|
72
70
|
return (_ctx, _cache) => {
|
|
73
|
-
const _component_van_field = Field;
|
|
74
71
|
const _component_van_date_picker = DatePicker;
|
|
75
72
|
const _component_van_popup = Popup;
|
|
76
|
-
return openBlock(),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
105
|
-
readonly: false,
|
|
106
|
-
onConfirm,
|
|
107
|
-
onCancel: _cache[3] || (_cache[3] = ($event) => showPicker.value = false)
|
|
108
|
-
}), null, 16, ["modelValue"])
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
}, 8, ["show"])
|
|
112
|
-
], 64);
|
|
73
|
+
return openBlock(), createBlock(unref(MobileField), mergeProps(_ctx.$attrs, {
|
|
74
|
+
modelValue: unref(fieldTextValue),
|
|
75
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
|
|
76
|
+
"is-link": "",
|
|
77
|
+
readonly: "",
|
|
78
|
+
onClick: _cache[4] || (_cache[4] = ($event) => showPicker.value = true)
|
|
79
|
+
}), {
|
|
80
|
+
default: withCtx(() => [
|
|
81
|
+
createVNode(_component_van_popup, {
|
|
82
|
+
show: unref(showPicker),
|
|
83
|
+
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => isRef(showPicker) ? showPicker.value = $event : null),
|
|
84
|
+
"destroy-on-close": "",
|
|
85
|
+
position: "bottom"
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createVNode(_component_van_date_picker, mergeProps(_ctx.$attrs, {
|
|
89
|
+
modelValue: unref(pickerValue),
|
|
90
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
91
|
+
readonly: false,
|
|
92
|
+
onConfirm,
|
|
93
|
+
onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
|
|
94
|
+
}), null, 16, ["modelValue"])
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["show"])
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 16, ["modelValue"]);
|
|
113
101
|
};
|
|
114
102
|
}
|
|
115
103
|
};
|
|
@@ -11,11 +11,9 @@
|
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { ref, computed, watch, createElementBlock, openBlock, Fragment, createVNode, mergeProps, unref, isRef, createSlots, renderList, withCtx, renderSlot } from "vue";
|
|
14
|
+
import { ref, computed, watch, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createVNode } from "vue";
|
|
15
|
+
import { MobileField } from "../field/index.mjs";
|
|
17
16
|
import { Picker } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/picker/index.mjs";
|
|
18
|
-
import { Field } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/field/index.mjs";
|
|
19
17
|
import { Popup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.mjs";
|
|
20
18
|
const _sfc_main = {
|
|
21
19
|
__name: "FieldPicker",
|
|
@@ -69,47 +67,37 @@ const _sfc_main = {
|
|
|
69
67
|
showPicker.value = false;
|
|
70
68
|
};
|
|
71
69
|
return (_ctx, _cache) => {
|
|
72
|
-
const _component_van_field = Field;
|
|
73
70
|
const _component_van_picker = Picker;
|
|
74
71
|
const _component_van_popup = Popup;
|
|
75
|
-
return openBlock(),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"model-value": unref(pickerValue),
|
|
105
|
-
readonly: false,
|
|
106
|
-
onConfirm,
|
|
107
|
-
onCancel: _cache[2] || (_cache[2] = ($event) => showPicker.value = false)
|
|
108
|
-
}), null, 16, ["columns", "columns-field-names", "model-value"])
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
}, 8, ["show"])
|
|
112
|
-
], 64);
|
|
72
|
+
return openBlock(), createBlock(unref(MobileField), mergeProps(_ctx.$attrs, {
|
|
73
|
+
modelValue: unref(fieldTextValue),
|
|
74
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
|
|
75
|
+
"is-link": "",
|
|
76
|
+
readonly: "",
|
|
77
|
+
onClick: _cache[3] || (_cache[3] = ($event) => showPicker.value = true)
|
|
78
|
+
}), {
|
|
79
|
+
default: withCtx(() => [
|
|
80
|
+
createVNode(_component_van_popup, {
|
|
81
|
+
show: unref(showPicker),
|
|
82
|
+
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => isRef(showPicker) ? showPicker.value = $event : null),
|
|
83
|
+
"destroy-on-close": "",
|
|
84
|
+
position: "bottom"
|
|
85
|
+
}, {
|
|
86
|
+
default: withCtx(() => [
|
|
87
|
+
createVNode(_component_van_picker, mergeProps(_ctx.$attrs, {
|
|
88
|
+
columns: __props.columns,
|
|
89
|
+
"columns-field-names": __props.columnsFieldNames,
|
|
90
|
+
"model-value": unref(pickerValue),
|
|
91
|
+
readonly: false,
|
|
92
|
+
onConfirm,
|
|
93
|
+
onCancel: _cache[0] || (_cache[0] = ($event) => showPicker.value = false)
|
|
94
|
+
}), null, 16, ["columns", "columns-field-names", "model-value"])
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["show"])
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 16, ["modelValue"]);
|
|
113
101
|
};
|
|
114
102
|
}
|
|
115
103
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createVNode } from "vue";
|
|
2
|
+
import { MobileField } from "../field/index.mjs";
|
|
3
|
+
import { MobileRadioGroup } from "../radioGroup/index.mjs";
|
|
4
|
+
const _sfc_main = {
|
|
5
|
+
__name: "FieldRadio",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
return (_ctx, _cache) => {
|
|
8
|
+
return openBlock(), createBlock(unref(MobileField), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
9
|
+
input: withCtx(() => [
|
|
10
|
+
createVNode(unref(MobileRadioGroup), normalizeProps(guardReactiveProps(_ctx.$attrs)), null, 16)
|
|
11
|
+
]),
|
|
12
|
+
_: 1
|
|
13
|
+
}, 16);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
_sfc_main as default
|
|
19
|
+
};
|
|
@@ -11,12 +11,10 @@
|
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { ref, computed, watch, createElementBlock, openBlock, Fragment, createVNode, mergeProps, unref, isRef, createSlots, renderList, withCtx, renderSlot } from "vue";
|
|
14
|
+
import { ref, computed, watch, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createVNode } from "vue";
|
|
15
|
+
import { MobileField } from "../field/index.mjs";
|
|
17
16
|
import hooks from "../../../../../../node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/moment.mjs";
|
|
18
17
|
import { TimePicker } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/time-picker/index.mjs";
|
|
19
|
-
import { Field } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/field/index.mjs";
|
|
20
18
|
import { Popup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.mjs";
|
|
21
19
|
const _sfc_main = {
|
|
22
20
|
__name: "FieldTimePicker",
|
|
@@ -70,46 +68,36 @@ const _sfc_main = {
|
|
|
70
68
|
showPicker.value = false;
|
|
71
69
|
};
|
|
72
70
|
return (_ctx, _cache) => {
|
|
73
|
-
const _component_van_field = Field;
|
|
74
71
|
const _component_van_time_picker = TimePicker;
|
|
75
72
|
const _component_van_popup = Popup;
|
|
76
|
-
return openBlock(),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
105
|
-
readonly: false,
|
|
106
|
-
onConfirm,
|
|
107
|
-
onCancel: _cache[3] || (_cache[3] = ($event) => showPicker.value = false)
|
|
108
|
-
}), null, 16, ["modelValue"])
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
}, 8, ["show"])
|
|
112
|
-
], 64);
|
|
73
|
+
return openBlock(), createBlock(unref(MobileField), mergeProps(_ctx.$attrs, {
|
|
74
|
+
modelValue: unref(fieldTextValue),
|
|
75
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
|
|
76
|
+
"is-link": "",
|
|
77
|
+
readonly: "",
|
|
78
|
+
onClick: _cache[4] || (_cache[4] = ($event) => showPicker.value = true)
|
|
79
|
+
}), {
|
|
80
|
+
default: withCtx(() => [
|
|
81
|
+
createVNode(_component_van_popup, {
|
|
82
|
+
show: unref(showPicker),
|
|
83
|
+
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => isRef(showPicker) ? showPicker.value = $event : null),
|
|
84
|
+
"destroy-on-close": "",
|
|
85
|
+
position: "bottom"
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createVNode(_component_van_time_picker, mergeProps(_ctx.$attrs, {
|
|
89
|
+
modelValue: unref(pickerValue),
|
|
90
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
91
|
+
readonly: false,
|
|
92
|
+
onConfirm,
|
|
93
|
+
onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
|
|
94
|
+
}), null, 16, ["modelValue"])
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["show"])
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 16, ["modelValue"]);
|
|
113
101
|
};
|
|
114
102
|
}
|
|
115
103
|
};
|
|
@@ -1,23 +1,51 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
|
|
5
8
|
import { RadioGroup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/radio-group/index.mjs";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
import { Radio } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/radio/index.mjs";
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
__name: "RadioGroup",
|
|
12
|
+
props: {
|
|
13
|
+
options: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: []
|
|
16
|
+
},
|
|
17
|
+
fieldNames: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: {
|
|
20
|
+
text: "text",
|
|
21
|
+
value: "value",
|
|
22
|
+
disabled: "disabled"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(__props) {
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
const _component_van_radio = Radio;
|
|
29
|
+
const _component_van_radio_group = RadioGroup;
|
|
30
|
+
return openBlock(), createBlock(_component_van_radio_group, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
31
|
+
default: withCtx(() => [
|
|
32
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => {
|
|
33
|
+
return openBlock(), createBlock(_component_van_radio, {
|
|
34
|
+
name: item[__props.fieldNames.value],
|
|
35
|
+
disabled: item[__props.fieldNames.disabled]
|
|
36
|
+
}, {
|
|
37
|
+
default: withCtx(() => [
|
|
38
|
+
createTextVNode(toDisplayString(item[__props.fieldNames.text]), 1)
|
|
39
|
+
]),
|
|
40
|
+
_: 2
|
|
41
|
+
}, 1032, ["name", "disabled"]);
|
|
42
|
+
}), 256))
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 16);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
};
|
|
21
49
|
export {
|
|
22
|
-
|
|
50
|
+
_sfc_main as default
|
|
23
51
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _sfc_main from "./RadioGroup.vue.mjs";
|
|
2
2
|
import install from "../../../utils/install.mjs";
|
|
3
3
|
const MobileRadioGroup = install.withInstall(
|
|
4
4
|
"MobileRadioGroup",
|
|
5
|
-
|
|
5
|
+
_sfc_main
|
|
6
6
|
);
|
|
7
7
|
export {
|
|
8
8
|
MobileRadioGroup,
|