@fecp/mobile 1.0.21 → 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.
Files changed (19) hide show
  1. package/es/packages/mobile/src/components/form/checkbox/Checkbox.vue.mjs +2 -2
  2. package/es/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.mjs +2 -2
  3. package/es/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.mjs +7 -7
  4. package/es/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.mjs +9 -1
  5. package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +7 -7
  6. package/es/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.mjs +1 -0
  7. package/es/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.mjs +10 -1
  8. package/es/packages/mobile/src/components/form/formItem/FormItem.vue.mjs +18 -20
  9. package/es/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.mjs +2 -2
  10. package/lib/packages/mobile/src/components/form/checkbox/Checkbox.vue.js +1 -1
  11. package/lib/packages/mobile/src/components/form/checkboxGroup/CheckboxGroup.vue.js +1 -1
  12. package/lib/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.js +7 -7
  13. package/lib/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.js +9 -1
  14. package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +7 -7
  15. package/lib/packages/mobile/src/components/form/fieldRadio/FieldRadio.vue.js +1 -0
  16. package/lib/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.js +10 -1
  17. package/lib/packages/mobile/src/components/form/formItem/FormItem.vue.js +18 -20
  18. package/lib/packages/mobile/src/components/form/radioGroup/RadioGroup.vue.js +1 -1
  19. package/package.json +1 -1
@@ -3,7 +3,7 @@
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- import { createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createTextVNode, toDisplayString } from "vue";
6
+ import { createBlock, openBlock, mergeProps, withCtx, createTextVNode, toDisplayString } from "vue";
7
7
  import { Checkbox } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/checkbox/index.mjs";
8
8
  const _sfc_main = {
9
9
  __name: "Checkbox",
@@ -16,7 +16,7 @@ const _sfc_main = {
16
16
  setup(__props) {
17
17
  return (_ctx, _cache) => {
18
18
  const _component_van_checkbox = Checkbox;
19
- return openBlock(), createBlock(_component_van_checkbox, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
19
+ return openBlock(), createBlock(_component_van_checkbox, mergeProps(_ctx.$attrs, { shape: "square" }), {
20
20
  default: withCtx(() => [
21
21
  createTextVNode(toDisplayString(__props.label), 1)
22
22
  ]),
@@ -3,7 +3,7 @@
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- import { createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
6
+ import { createBlock, openBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
7
7
  import { CheckboxGroup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/checkbox-group/index.mjs";
8
8
  import { Checkbox } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/checkbox/index.mjs";
9
9
  const _sfc_main = {
@@ -26,7 +26,7 @@ const _sfc_main = {
26
26
  return (_ctx, _cache) => {
27
27
  const _component_van_checkbox = Checkbox;
28
28
  const _component_van_checkbox_group = CheckboxGroup;
29
- return openBlock(), createBlock(_component_van_checkbox_group, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
29
+ return openBlock(), createBlock(_component_van_checkbox_group, mergeProps(_ctx.$attrs, { shape: "square" }), {
30
30
  default: withCtx(() => [
31
31
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => {
32
32
  return openBlock(), createBlock(_component_van_checkbox, {
@@ -16,11 +16,11 @@ import { Popup } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.
16
16
  const _sfc_main = {
17
17
  __name: "fieldCascaderPicker",
18
18
  props: {
19
- options: {
19
+ treeOptions: {
20
20
  type: Array,
21
21
  default: []
22
22
  },
23
- fieldNames: {
23
+ treeOptionsFieldNames: {
24
24
  type: Object,
25
25
  default: {
26
26
  text: "text",
@@ -80,15 +80,15 @@ const _sfc_main = {
80
80
  () => props.modelValue,
81
81
  (value) => {
82
82
  fieldTextValue.value = getDisplayValue(
83
- props.options,
84
- props.fieldNames,
83
+ props.treeOptions,
84
+ props.treeOptionsFieldNames,
85
85
  value
86
86
  );
87
87
  },
88
88
  { immediate: true }
89
89
  );
90
90
  const onFinish = ({ selectedOptions }) => {
91
- pickerValue.value = selectedOptions.map((option) => option[props.fieldNames.value]).join("/");
91
+ pickerValue.value = selectedOptions.map((option) => option[props.treeOptionsFieldNames.value]).join("/");
92
92
  showPicker.value = false;
93
93
  };
94
94
  return (_ctx, _cache) => {
@@ -112,8 +112,8 @@ const _sfc_main = {
112
112
  createVNode(_component_van_cascader, mergeProps(_ctx.$attrs, {
113
113
  modelValue: unref(pickerValue),
114
114
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(pickerValue) ? pickerValue.value = $event : null),
115
- options: __props.options,
116
- "field-names": _ctx.columnsFieldNames,
115
+ options: __props.treeOptions,
116
+ "field-names": __props.treeOptionsFieldNames,
117
117
  placeholder: "请选择",
118
118
  onFinish,
119
119
  onClose: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
@@ -31,6 +31,10 @@ const _sfc_main = {
31
31
  type: String,
32
32
  default: "YYYYMMDD"
33
33
  },
34
+ dateColumnsType: {
35
+ type: String,
36
+ default: "year,month,day"
37
+ },
34
38
  readonly: false,
35
39
  "is-link": false
36
40
  },
@@ -49,6 +53,9 @@ const _sfc_main = {
49
53
  const value = [date.year(), date.month() + 1, date.date()];
50
54
  return value;
51
55
  });
56
+ const columnsType = computed(() => {
57
+ return props.dateColumnsType.join(",");
58
+ });
52
59
  watch(
53
60
  () => props.modelValue,
54
61
  (value) => {
@@ -92,8 +99,9 @@ const _sfc_main = {
92
99
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(pickerValue) ? pickerValue.value = $event : null),
93
100
  readonly: false,
94
101
  onConfirm,
102
+ columnsType: unref(columnsType),
95
103
  onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
96
- }), null, 16, ["modelValue"])
104
+ }), null, 16, ["modelValue", "columnsType"])
97
105
  ]),
98
106
  _: 1
99
107
  }, 8, ["show"])
@@ -18,11 +18,11 @@ 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
- options: {
21
+ pickerOptions: {
22
22
  type: Array,
23
23
  default: []
24
24
  },
25
- fieldNames: {
25
+ treeOptionsFieldNames: {
26
26
  type: Object,
27
27
  default: {
28
28
  text: "text",
@@ -57,10 +57,10 @@ const _sfc_main = {
57
57
  if (!value) {
58
58
  return;
59
59
  }
60
- const optionItem = props.options.find(
61
- (item) => item[props.fieldNames.value] == value
60
+ const optionItem = props.pickerOptions.find(
61
+ (item) => item[props.treeOptionsFieldNames.value] == value
62
62
  );
63
- fieldTextValue.value = optionItem == null ? void 0 : optionItem[props.fieldNames.text];
63
+ fieldTextValue.value = optionItem == null ? void 0 : optionItem[props.treeOptionsFieldNames.text];
64
64
  },
65
65
  { immediate: true }
66
66
  );
@@ -87,8 +87,8 @@ const _sfc_main = {
87
87
  }, {
88
88
  default: withCtx(() => [
89
89
  createVNode(_component_van_picker, mergeProps(_ctx.$attrs, {
90
- columns: __props.options,
91
- "columns-field-names": __props.fieldNames,
90
+ columns: __props.pickerOptions,
91
+ "columns-field-names": __props.treeOptionsFieldNames,
92
92
  "model-value": unref(pickerValue),
93
93
  readonly: false,
94
94
  onConfirm,
@@ -4,6 +4,7 @@ import { MobileRadioGroup } from "../radioGroup/index.mjs";
4
4
  const _sfc_main = {
5
5
  __name: "FieldRadio",
6
6
  setup(__props) {
7
+ debugger;
7
8
  return (_ctx, _cache) => {
8
9
  return openBlock(), createBlock(unref(MobileField), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
10
  input: withCtx(() => [
@@ -31,6 +31,11 @@ const _sfc_main = {
31
31
  type: String,
32
32
  default: "HH:mm:ss"
33
33
  },
34
+ timeColumnsType: {
35
+ type: String,
36
+ default: "hour,minute"
37
+ // default: ["hour", "minute", "second"],
38
+ },
34
39
  readonly: false,
35
40
  "is-link": false
36
41
  },
@@ -49,6 +54,9 @@ const _sfc_main = {
49
54
  const value = [date.hours(), date.minutes(), date.seconds()];
50
55
  return value;
51
56
  });
57
+ const columnsType = computed(() => {
58
+ return props.timeColumnsType.join(",");
59
+ });
52
60
  watch(
53
61
  () => props.modelValue,
54
62
  (value) => {
@@ -91,9 +99,10 @@ const _sfc_main = {
91
99
  modelValue: unref(pickerValue),
92
100
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(pickerValue) ? pickerValue.value = $event : null),
93
101
  readonly: false,
102
+ columnsType: unref(columnsType),
94
103
  onConfirm,
95
104
  onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
96
- }), null, 16, ["modelValue"])
105
+ }), null, 16, ["modelValue", "columnsType"])
97
106
  ]),
98
107
  _: 1
99
108
  }, 8, ["show"])
@@ -12,26 +12,24 @@ const _sfc_main = {
12
12
  setup(__props, { emit: __emit }) {
13
13
  const props = __props;
14
14
  const formItem = computed(() => {
15
- return defineAsyncComponent(() => {
16
- switch (props.fieldType) {
17
- case "text":
18
- return import("../field/index.mjs");
19
- case "picker":
20
- return import("../fieldPicker/index.mjs");
21
- case "cascader":
22
- return import("../fieldCascaderPicker/index.mjs");
23
- case "calendar":
24
- return import("../fieldCalendarPicker/index.mjs");
25
- case "date":
26
- return import("../fieldDatePicker/index.mjs");
27
- case "time":
28
- return import("../fieldTimePicker/index.mjs");
29
- case "radio":
30
- return import("../fieldRadio/index.mjs");
31
- case "checkbox":
32
- return import("../fieldCheckbox/index.mjs");
33
- }
34
- });
15
+ switch (props.fieldType) {
16
+ case "text":
17
+ return defineAsyncComponent(() => import("../field/index.mjs"));
18
+ case "picker":
19
+ return defineAsyncComponent(() => import("../fieldPicker/index.mjs"));
20
+ case "cascader":
21
+ return defineAsyncComponent(() => import("../fieldCascaderPicker/index.mjs"));
22
+ case "calendar":
23
+ return defineAsyncComponent(() => import("../fieldCalendarPicker/index.mjs"));
24
+ case "date":
25
+ return defineAsyncComponent(() => import("../fieldDatePicker/index.mjs"));
26
+ case "time":
27
+ return defineAsyncComponent(() => import("../fieldTimePicker/index.mjs"));
28
+ case "radio":
29
+ return defineAsyncComponent(() => import("../fieldRadio/index.mjs"));
30
+ case "checkbox":
31
+ return defineAsyncComponent(() => import("../fieldCheckbox/index.mjs"));
32
+ }
35
33
  });
36
34
  const formData = inject("formData");
37
35
  const attrs = useAttrs();
@@ -4,7 +4,7 @@
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
7
- import { createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
7
+ import { createBlock, openBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
8
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";
9
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
10
  const _sfc_main = {
@@ -27,7 +27,7 @@ const _sfc_main = {
27
27
  return (_ctx, _cache) => {
28
28
  const _component_van_radio = Radio;
29
29
  const _component_van_radio_group = RadioGroup;
30
- return openBlock(), createBlock(_component_van_radio_group, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
30
+ return openBlock(), createBlock(_component_van_radio_group, mergeProps(_ctx.$attrs, { shape: "round" }), {
31
31
  default: withCtx(() => [
32
32
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => {
33
33
  return openBlock(), createBlock(_component_van_radio, {
@@ -18,7 +18,7 @@ const _sfc_main = {
18
18
  setup(__props) {
19
19
  return (_ctx, _cache) => {
20
20
  const _component_van_checkbox = index.Checkbox;
21
- return vue.openBlock(), vue.createBlock(_component_van_checkbox, vue.normalizeProps(vue.guardReactiveProps(_ctx.$attrs)), {
21
+ return vue.openBlock(), vue.createBlock(_component_van_checkbox, vue.mergeProps(_ctx.$attrs, { shape: "square" }), {
22
22
  default: vue.withCtx(() => [
23
23
  vue.createTextVNode(vue.toDisplayString(__props.label), 1)
24
24
  ]),
@@ -28,7 +28,7 @@ const _sfc_main = {
28
28
  return (_ctx, _cache) => {
29
29
  const _component_van_checkbox = index$1.Checkbox;
30
30
  const _component_van_checkbox_group = index.CheckboxGroup;
31
- return vue.openBlock(), vue.createBlock(_component_van_checkbox_group, vue.normalizeProps(vue.guardReactiveProps(_ctx.$attrs)), {
31
+ return vue.openBlock(), vue.createBlock(_component_van_checkbox_group, vue.mergeProps(_ctx.$attrs, { shape: "square" }), {
32
32
  default: vue.withCtx(() => [
33
33
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (item) => {
34
34
  return vue.openBlock(), vue.createBlock(_component_van_checkbox, {
@@ -18,11 +18,11 @@ const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.
18
18
  const _sfc_main = {
19
19
  __name: "fieldCascaderPicker",
20
20
  props: {
21
- options: {
21
+ treeOptions: {
22
22
  type: Array,
23
23
  default: []
24
24
  },
25
- fieldNames: {
25
+ treeOptionsFieldNames: {
26
26
  type: Object,
27
27
  default: {
28
28
  text: "text",
@@ -82,15 +82,15 @@ const _sfc_main = {
82
82
  () => props.modelValue,
83
83
  (value) => {
84
84
  fieldTextValue.value = getDisplayValue(
85
- props.options,
86
- props.fieldNames,
85
+ props.treeOptions,
86
+ props.treeOptionsFieldNames,
87
87
  value
88
88
  );
89
89
  },
90
90
  { immediate: true }
91
91
  );
92
92
  const onFinish = ({ selectedOptions }) => {
93
- pickerValue.value = selectedOptions.map((option) => option[props.fieldNames.value]).join("/");
93
+ pickerValue.value = selectedOptions.map((option) => option[props.treeOptionsFieldNames.value]).join("/");
94
94
  showPicker.value = false;
95
95
  };
96
96
  return (_ctx, _cache) => {
@@ -114,8 +114,8 @@ const _sfc_main = {
114
114
  vue.createVNode(_component_van_cascader, vue.mergeProps(_ctx.$attrs, {
115
115
  modelValue: vue.unref(pickerValue),
116
116
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
117
- options: __props.options,
118
- "field-names": _ctx.columnsFieldNames,
117
+ options: __props.treeOptions,
118
+ "field-names": __props.treeOptionsFieldNames,
119
119
  placeholder: "请选择",
120
120
  onFinish,
121
121
  onClose: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
@@ -33,6 +33,10 @@ const _sfc_main = {
33
33
  type: String,
34
34
  default: "YYYYMMDD"
35
35
  },
36
+ dateColumnsType: {
37
+ type: String,
38
+ default: "year,month,day"
39
+ },
36
40
  readonly: false,
37
41
  "is-link": false
38
42
  },
@@ -51,6 +55,9 @@ const _sfc_main = {
51
55
  const value = [date.year(), date.month() + 1, date.date()];
52
56
  return value;
53
57
  });
58
+ const columnsType = vue.computed(() => {
59
+ return props.dateColumnsType.join(",");
60
+ });
54
61
  vue.watch(
55
62
  () => props.modelValue,
56
63
  (value) => {
@@ -94,8 +101,9 @@ const _sfc_main = {
94
101
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
95
102
  readonly: false,
96
103
  onConfirm,
104
+ columnsType: vue.unref(columnsType),
97
105
  onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
98
- }), null, 16, ["modelValue"])
106
+ }), null, 16, ["modelValue", "columnsType"])
99
107
  ]),
100
108
  _: 1
101
109
  }, 8, ["show"])
@@ -20,11 +20,11 @@ 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
- options: {
23
+ pickerOptions: {
24
24
  type: Array,
25
25
  default: []
26
26
  },
27
- fieldNames: {
27
+ treeOptionsFieldNames: {
28
28
  type: Object,
29
29
  default: {
30
30
  text: "text",
@@ -59,10 +59,10 @@ const _sfc_main = {
59
59
  if (!value) {
60
60
  return;
61
61
  }
62
- const optionItem = props.options.find(
63
- (item) => item[props.fieldNames.value] == value
62
+ const optionItem = props.pickerOptions.find(
63
+ (item) => item[props.treeOptionsFieldNames.value] == value
64
64
  );
65
- fieldTextValue.value = optionItem == null ? void 0 : optionItem[props.fieldNames.text];
65
+ fieldTextValue.value = optionItem == null ? void 0 : optionItem[props.treeOptionsFieldNames.text];
66
66
  },
67
67
  { immediate: true }
68
68
  );
@@ -89,8 +89,8 @@ const _sfc_main = {
89
89
  }, {
90
90
  default: vue.withCtx(() => [
91
91
  vue.createVNode(_component_van_picker, vue.mergeProps(_ctx.$attrs, {
92
- columns: __props.options,
93
- "columns-field-names": __props.fieldNames,
92
+ columns: __props.pickerOptions,
93
+ "columns-field-names": __props.treeOptionsFieldNames,
94
94
  "model-value": vue.unref(pickerValue),
95
95
  readonly: false,
96
96
  onConfirm,
@@ -6,6 +6,7 @@ const index$1 = require("../radioGroup/index.js");
6
6
  const _sfc_main = {
7
7
  __name: "FieldRadio",
8
8
  setup(__props) {
9
+ debugger;
9
10
  return (_ctx, _cache) => {
10
11
  return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.normalizeProps(vue.guardReactiveProps(_ctx.$attrs)), {
11
12
  input: vue.withCtx(() => [
@@ -33,6 +33,11 @@ const _sfc_main = {
33
33
  type: String,
34
34
  default: "HH:mm:ss"
35
35
  },
36
+ timeColumnsType: {
37
+ type: String,
38
+ default: "hour,minute"
39
+ // default: ["hour", "minute", "second"],
40
+ },
36
41
  readonly: false,
37
42
  "is-link": false
38
43
  },
@@ -51,6 +56,9 @@ const _sfc_main = {
51
56
  const value = [date.hours(), date.minutes(), date.seconds()];
52
57
  return value;
53
58
  });
59
+ const columnsType = vue.computed(() => {
60
+ return props.timeColumnsType.join(",");
61
+ });
54
62
  vue.watch(
55
63
  () => props.modelValue,
56
64
  (value) => {
@@ -93,9 +101,10 @@ const _sfc_main = {
93
101
  modelValue: vue.unref(pickerValue),
94
102
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
95
103
  readonly: false,
104
+ columnsType: vue.unref(columnsType),
96
105
  onConfirm,
97
106
  onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
98
- }), null, 16, ["modelValue"])
107
+ }), null, 16, ["modelValue", "columnsType"])
99
108
  ]),
100
109
  _: 1
101
110
  }, 8, ["show"])
@@ -14,26 +14,24 @@ const _sfc_main = {
14
14
  setup(__props, { emit: __emit }) {
15
15
  const props = __props;
16
16
  const formItem = vue.computed(() => {
17
- return vue.defineAsyncComponent(() => {
18
- switch (props.fieldType) {
19
- case "text":
20
- return Promise.resolve().then(() => require("../field/index.js"));
21
- case "picker":
22
- return Promise.resolve().then(() => require("../fieldPicker/index.js"));
23
- case "cascader":
24
- return Promise.resolve().then(() => require("../fieldCascaderPicker/index.js"));
25
- case "calendar":
26
- return Promise.resolve().then(() => require("../fieldCalendarPicker/index.js"));
27
- case "date":
28
- return Promise.resolve().then(() => require("../fieldDatePicker/index.js"));
29
- case "time":
30
- return Promise.resolve().then(() => require("../fieldTimePicker/index.js"));
31
- case "radio":
32
- return Promise.resolve().then(() => require("../fieldRadio/index.js"));
33
- case "checkbox":
34
- return Promise.resolve().then(() => require("../fieldCheckbox/index.js"));
35
- }
36
- });
17
+ switch (props.fieldType) {
18
+ case "text":
19
+ return vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../field/index.js")));
20
+ case "picker":
21
+ return vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../fieldPicker/index.js")));
22
+ case "cascader":
23
+ return vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../fieldCascaderPicker/index.js")));
24
+ case "calendar":
25
+ return vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../fieldCalendarPicker/index.js")));
26
+ case "date":
27
+ return vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../fieldDatePicker/index.js")));
28
+ case "time":
29
+ return vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../fieldTimePicker/index.js")));
30
+ case "radio":
31
+ return vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../fieldRadio/index.js")));
32
+ case "checkbox":
33
+ return vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../fieldCheckbox/index.js")));
34
+ }
37
35
  });
38
36
  const formData = vue.inject("formData");
39
37
  const attrs = vue.useAttrs();
@@ -29,7 +29,7 @@ const _sfc_main = {
29
29
  return (_ctx, _cache) => {
30
30
  const _component_van_radio = index$1.Radio;
31
31
  const _component_van_radio_group = index.RadioGroup;
32
- return vue.openBlock(), vue.createBlock(_component_van_radio_group, vue.normalizeProps(vue.guardReactiveProps(_ctx.$attrs)), {
32
+ return vue.openBlock(), vue.createBlock(_component_van_radio_group, vue.mergeProps(_ctx.$attrs, { shape: "round" }), {
33
33
  default: vue.withCtx(() => [
34
34
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (item) => {
35
35
  return vue.openBlock(), vue.createBlock(_component_van_radio, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/mobile",
3
- "version": "1.0.21",
3
+ "version": "1.0.24",
4
4
  "main": "lib/packages/mobile/index.js",
5
5
  "module": "es/packages/mobile/index.mjs",
6
6
  "files": [