@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
|
@@ -2,22 +2,49 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
|
+
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
5
8
|
const vue = require("vue");
|
|
6
|
-
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
7
9
|
const index = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/checkbox-group/index.js");
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/checkbox/index.js");
|
|
11
|
+
const _sfc_main = {
|
|
12
|
+
__name: "CheckboxGroup",
|
|
13
|
+
props: {
|
|
14
|
+
options: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: []
|
|
17
|
+
},
|
|
18
|
+
fieldNames: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: {
|
|
21
|
+
text: "text",
|
|
22
|
+
value: "value",
|
|
23
|
+
disabled: "disabled"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
const _component_van_checkbox = index$1.Checkbox;
|
|
30
|
+
const _component_van_checkbox_group = index.CheckboxGroup;
|
|
31
|
+
return vue.openBlock(), vue.createBlock(_component_van_checkbox_group, vue.normalizeProps(vue.guardReactiveProps(_ctx.$attrs)), {
|
|
32
|
+
default: vue.withCtx(() => [
|
|
33
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (item) => {
|
|
34
|
+
return vue.openBlock(), vue.createBlock(_component_van_checkbox, {
|
|
35
|
+
name: item[__props.fieldNames.value],
|
|
36
|
+
disabled: item[__props.fieldNames.disabled]
|
|
37
|
+
}, {
|
|
38
|
+
default: vue.withCtx(() => [
|
|
39
|
+
vue.createTextVNode(vue.toDisplayString(item[__props.fieldNames.disabled]) + " " + vue.toDisplayString(item[__props.fieldNames.text]), 1)
|
|
40
|
+
]),
|
|
41
|
+
_: 2
|
|
42
|
+
}, 1032, ["name", "disabled"]);
|
|
43
|
+
}), 256))
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
}, 16);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.default = _sfc_main;
|
|
@@ -17,19 +17,22 @@ const _sfc_main = {
|
|
|
17
17
|
});
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
19
|
const _component_van_field = index.Field;
|
|
20
|
-
return vue.openBlock(), vue.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
vue.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
vue.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
21
|
+
vue.createVNode(_component_van_field, vue.mergeProps(_ctx.$attrs, {
|
|
22
|
+
rules: rules.value,
|
|
23
|
+
required: "auto"
|
|
24
|
+
}), vue.createSlots({ _: 2 }, [
|
|
25
|
+
vue.renderList(_ctx.$slots, (item, key) => {
|
|
26
|
+
return {
|
|
27
|
+
name: key,
|
|
28
|
+
fn: vue.withCtx(() => [
|
|
29
|
+
vue.renderSlot(_ctx.$slots, key)
|
|
30
|
+
])
|
|
31
|
+
};
|
|
32
|
+
})
|
|
33
|
+
]), 1040, ["rules"]),
|
|
34
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
35
|
+
], 64);
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
};
|
package/lib/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.js
CHANGED
|
@@ -16,11 +16,9 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
16
16
|
;/* empty css */
|
|
17
17
|
;/* empty css */
|
|
18
18
|
;/* empty css */
|
|
19
|
-
;/* empty css */
|
|
20
|
-
;/* empty css */
|
|
21
19
|
const vue = require("vue");
|
|
20
|
+
const index = require("../field/index.js");
|
|
22
21
|
const moment = require("../../../../../../node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/moment.js");
|
|
23
|
-
const index = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/field/index.js");
|
|
24
22
|
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/calendar/index.js");
|
|
25
23
|
const _sfc_main = {
|
|
26
24
|
__name: "FieldCalendarPicker",
|
|
@@ -125,38 +123,28 @@ const _sfc_main = {
|
|
|
125
123
|
showCalendar.value = false;
|
|
126
124
|
};
|
|
127
125
|
return (_ctx, _cache) => {
|
|
128
|
-
const _component_van_field = index.Field;
|
|
129
126
|
const _component_van_calendar = index$1.Calendar;
|
|
130
|
-
return vue.openBlock(), vue.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
})
|
|
148
|
-
]),
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => vue.isRef(showCalendar) ? showCalendar.value = $event : null),
|
|
152
|
-
"default-date": vue.unref(defaultDate),
|
|
153
|
-
title: __props.title,
|
|
154
|
-
type: __props.calendarType,
|
|
155
|
-
readonly: false,
|
|
156
|
-
"switch-mode": "year-month",
|
|
157
|
-
onConfirm
|
|
158
|
-
}), null, 16, ["show", "default-date", "title", "type"])
|
|
159
|
-
], 64);
|
|
127
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
|
|
128
|
+
modelValue: vue.unref(fieldTextValue),
|
|
129
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
|
|
130
|
+
"is-link": "",
|
|
131
|
+
readonly: "",
|
|
132
|
+
onClick: _cache[2] || (_cache[2] = ($event) => showCalendar.value = true)
|
|
133
|
+
}), {
|
|
134
|
+
default: vue.withCtx(() => [
|
|
135
|
+
vue.createVNode(_component_van_calendar, vue.mergeProps(_ctx.$attrs, {
|
|
136
|
+
show: vue.unref(showCalendar),
|
|
137
|
+
"onUpdate:show": _cache[0] || (_cache[0] = ($event) => vue.isRef(showCalendar) ? showCalendar.value = $event : null),
|
|
138
|
+
"default-date": vue.unref(defaultDate),
|
|
139
|
+
title: __props.title,
|
|
140
|
+
type: __props.calendarType,
|
|
141
|
+
readonly: false,
|
|
142
|
+
"switch-mode": "year-month",
|
|
143
|
+
onConfirm
|
|
144
|
+
}), null, 16, ["show", "default-date", "title", "type"])
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 16, ["modelValue"]);
|
|
160
148
|
};
|
|
161
149
|
}
|
|
162
150
|
};
|
package/lib/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.js
CHANGED
|
@@ -11,12 +11,10 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
11
11
|
;/* empty css */
|
|
12
12
|
;/* empty css */
|
|
13
13
|
;/* empty css */
|
|
14
|
-
;/* empty css */
|
|
15
|
-
;/* empty css */
|
|
16
14
|
const vue = require("vue");
|
|
17
|
-
const index = require("
|
|
18
|
-
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.js");
|
|
15
|
+
const index = require("../field/index.js");
|
|
19
16
|
const index$2 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/cascader/index.js");
|
|
17
|
+
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.js");
|
|
20
18
|
const _sfc_main = {
|
|
21
19
|
__name: "fieldCascaderPicker",
|
|
22
20
|
props: {
|
|
@@ -94,48 +92,38 @@ const _sfc_main = {
|
|
|
94
92
|
showPicker.value = false;
|
|
95
93
|
};
|
|
96
94
|
return (_ctx, _cache) => {
|
|
97
|
-
const _component_van_field = index.Field;
|
|
98
95
|
const _component_van_cascader = index$2.Cascader;
|
|
99
96
|
const _component_van_popup = index$1.Popup;
|
|
100
|
-
return vue.openBlock(), vue.
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
"field-names": _ctx.columnsFieldNames,
|
|
131
|
-
placeholder: "请选择",
|
|
132
|
-
onFinish,
|
|
133
|
-
onClose: _cache[3] || (_cache[3] = ($event) => showPicker.value = false)
|
|
134
|
-
}), null, 16, ["modelValue", "options", "field-names"])
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
}, 8, ["show"])
|
|
138
|
-
], 64);
|
|
97
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
|
|
98
|
+
modelValue: vue.unref(fieldTextValue),
|
|
99
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
|
|
100
|
+
"is-link": "",
|
|
101
|
+
readonly: "",
|
|
102
|
+
onClick: _cache[4] || (_cache[4] = ($event) => showPicker.value = true)
|
|
103
|
+
}), {
|
|
104
|
+
default: vue.withCtx(() => [
|
|
105
|
+
vue.createVNode(_component_van_popup, {
|
|
106
|
+
show: vue.unref(showPicker),
|
|
107
|
+
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
|
|
108
|
+
"destroy-on-close": "",
|
|
109
|
+
position: "bottom"
|
|
110
|
+
}, {
|
|
111
|
+
default: vue.withCtx(() => [
|
|
112
|
+
vue.createVNode(_component_van_cascader, vue.mergeProps(_ctx.$attrs, {
|
|
113
|
+
modelValue: vue.unref(pickerValue),
|
|
114
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
115
|
+
options: __props.options,
|
|
116
|
+
"field-names": _ctx.columnsFieldNames,
|
|
117
|
+
placeholder: "请选择",
|
|
118
|
+
onFinish,
|
|
119
|
+
onClose: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
|
|
120
|
+
}), null, 16, ["modelValue", "options", "field-names"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["show"])
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 16, ["modelValue"]);
|
|
139
127
|
};
|
|
140
128
|
}
|
|
141
129
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const index = require("../field/index.js");
|
|
5
|
+
const index$1 = require("../checkboxGroup/index.js");
|
|
6
|
+
const _sfc_main = {
|
|
7
|
+
__name: "FieldCheckbox",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: Array,
|
|
11
|
+
default: []
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue"],
|
|
15
|
+
setup(__props, { emit: __emit }) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const emit = __emit;
|
|
18
|
+
const compValue = vue.computed({
|
|
19
|
+
get: () => {
|
|
20
|
+
if (Array.isArray(props.modelValue)) {
|
|
21
|
+
return props.modelValue;
|
|
22
|
+
} else {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
set: (val) => {
|
|
27
|
+
emit("update:modelValue", val);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, { modelValue: "" }), {
|
|
32
|
+
input: vue.withCtx(() => [
|
|
33
|
+
vue.createVNode(vue.unref(index$1.MobileCheckboxGroup), vue.mergeProps(_ctx.$attrs, {
|
|
34
|
+
modelValue: vue.unref(compValue),
|
|
35
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(compValue) ? compValue.value = $event : null)
|
|
36
|
+
}), null, 16, ["modelValue"])
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}, 16);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const FieldCheckbox = require("./FieldCheckbox.vue.js");
|
|
4
|
+
const install = require("../../../utils/install.js");
|
|
5
|
+
const MobileFieldCheckbox = install.default.withInstall(
|
|
6
|
+
"MobileFieldCheckbox",
|
|
7
|
+
FieldCheckbox.default
|
|
8
|
+
);
|
|
9
|
+
exports.MobileFieldCheckbox = MobileFieldCheckbox;
|
|
10
|
+
exports.default = MobileFieldCheckbox;
|
|
@@ -13,13 +13,11 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
13
13
|
;/* empty css */
|
|
14
14
|
;/* empty css */
|
|
15
15
|
;/* empty css */
|
|
16
|
-
;/* empty css */
|
|
17
|
-
;/* empty css */
|
|
18
16
|
const vue = require("vue");
|
|
17
|
+
const index = require("../field/index.js");
|
|
19
18
|
const moment = require("../../../../../../node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/moment.js");
|
|
20
|
-
const index = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/field/index.js");
|
|
21
|
-
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.js");
|
|
22
19
|
const index$2 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/date-picker/index.js");
|
|
20
|
+
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.js");
|
|
23
21
|
const _sfc_main = {
|
|
24
22
|
__name: "FieldDatePicker",
|
|
25
23
|
props: {
|
|
@@ -72,46 +70,36 @@ const _sfc_main = {
|
|
|
72
70
|
showPicker.value = false;
|
|
73
71
|
};
|
|
74
72
|
return (_ctx, _cache) => {
|
|
75
|
-
const _component_van_field = index.Field;
|
|
76
73
|
const _component_van_date_picker = index$2.DatePicker;
|
|
77
74
|
const _component_van_popup = index$1.Popup;
|
|
78
|
-
return vue.openBlock(), vue.
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
107
|
-
readonly: false,
|
|
108
|
-
onConfirm,
|
|
109
|
-
onCancel: _cache[3] || (_cache[3] = ($event) => showPicker.value = false)
|
|
110
|
-
}), null, 16, ["modelValue"])
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
}, 8, ["show"])
|
|
114
|
-
], 64);
|
|
75
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
|
|
76
|
+
modelValue: vue.unref(fieldTextValue),
|
|
77
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
|
|
78
|
+
"is-link": "",
|
|
79
|
+
readonly: "",
|
|
80
|
+
onClick: _cache[4] || (_cache[4] = ($event) => showPicker.value = true)
|
|
81
|
+
}), {
|
|
82
|
+
default: vue.withCtx(() => [
|
|
83
|
+
vue.createVNode(_component_van_popup, {
|
|
84
|
+
show: vue.unref(showPicker),
|
|
85
|
+
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
|
|
86
|
+
"destroy-on-close": "",
|
|
87
|
+
position: "bottom"
|
|
88
|
+
}, {
|
|
89
|
+
default: vue.withCtx(() => [
|
|
90
|
+
vue.createVNode(_component_van_date_picker, vue.mergeProps(_ctx.$attrs, {
|
|
91
|
+
modelValue: vue.unref(pickerValue),
|
|
92
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
|
|
93
|
+
readonly: false,
|
|
94
|
+
onConfirm,
|
|
95
|
+
onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
|
|
96
|
+
}), null, 16, ["modelValue"])
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["show"])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 16, ["modelValue"]);
|
|
115
103
|
};
|
|
116
104
|
}
|
|
117
105
|
};
|
|
@@ -13,11 +13,9 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
13
13
|
;/* empty css */
|
|
14
14
|
;/* empty css */
|
|
15
15
|
;/* empty css */
|
|
16
|
-
;/* empty css */
|
|
17
|
-
;/* empty css */
|
|
18
16
|
const vue = require("vue");
|
|
17
|
+
const index = require("../field/index.js");
|
|
19
18
|
const index$2 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/picker/index.js");
|
|
20
|
-
const index = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/field/index.js");
|
|
21
19
|
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/popup/index.js");
|
|
22
20
|
const _sfc_main = {
|
|
23
21
|
__name: "FieldPicker",
|
|
@@ -71,47 +69,37 @@ const _sfc_main = {
|
|
|
71
69
|
showPicker.value = false;
|
|
72
70
|
};
|
|
73
71
|
return (_ctx, _cache) => {
|
|
74
|
-
const _component_van_field = index.Field;
|
|
75
72
|
const _component_van_picker = index$2.Picker;
|
|
76
73
|
const _component_van_popup = index$1.Popup;
|
|
77
|
-
return vue.openBlock(), vue.
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
"model-value": vue.unref(pickerValue),
|
|
107
|
-
readonly: false,
|
|
108
|
-
onConfirm,
|
|
109
|
-
onCancel: _cache[2] || (_cache[2] = ($event) => showPicker.value = false)
|
|
110
|
-
}), null, 16, ["columns", "columns-field-names", "model-value"])
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
}, 8, ["show"])
|
|
114
|
-
], 64);
|
|
74
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
|
|
75
|
+
modelValue: vue.unref(fieldTextValue),
|
|
76
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
|
|
77
|
+
"is-link": "",
|
|
78
|
+
readonly: "",
|
|
79
|
+
onClick: _cache[3] || (_cache[3] = ($event) => showPicker.value = true)
|
|
80
|
+
}), {
|
|
81
|
+
default: vue.withCtx(() => [
|
|
82
|
+
vue.createVNode(_component_van_popup, {
|
|
83
|
+
show: vue.unref(showPicker),
|
|
84
|
+
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
|
|
85
|
+
"destroy-on-close": "",
|
|
86
|
+
position: "bottom"
|
|
87
|
+
}, {
|
|
88
|
+
default: vue.withCtx(() => [
|
|
89
|
+
vue.createVNode(_component_van_picker, vue.mergeProps(_ctx.$attrs, {
|
|
90
|
+
columns: __props.columns,
|
|
91
|
+
"columns-field-names": __props.columnsFieldNames,
|
|
92
|
+
"model-value": vue.unref(pickerValue),
|
|
93
|
+
readonly: false,
|
|
94
|
+
onConfirm,
|
|
95
|
+
onCancel: _cache[0] || (_cache[0] = ($event) => showPicker.value = false)
|
|
96
|
+
}), null, 16, ["columns", "columns-field-names", "model-value"])
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["show"])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 16, ["modelValue"]);
|
|
115
103
|
};
|
|
116
104
|
}
|
|
117
105
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const index = require("../field/index.js");
|
|
5
|
+
const index$1 = require("../radioGroup/index.js");
|
|
6
|
+
const _sfc_main = {
|
|
7
|
+
__name: "FieldRadio",
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.normalizeProps(vue.guardReactiveProps(_ctx.$attrs)), {
|
|
11
|
+
input: vue.withCtx(() => [
|
|
12
|
+
vue.createVNode(vue.unref(index$1.MobileRadioGroup), vue.normalizeProps(vue.guardReactiveProps(_ctx.$attrs)), null, 16)
|
|
13
|
+
]),
|
|
14
|
+
_: 1
|
|
15
|
+
}, 16);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const FieldRadio = require("./FieldRadio.vue.js");
|
|
4
|
+
const install = require("../../../utils/install.js");
|
|
5
|
+
const MobileFieldRadio = install.default.withInstall(
|
|
6
|
+
"MobileFieldRadio",
|
|
7
|
+
FieldRadio.default
|
|
8
|
+
);
|
|
9
|
+
exports.MobileFieldRadio = MobileFieldRadio;
|
|
10
|
+
exports.default = MobileFieldRadio;
|