@fecp/mobile 1.0.25 → 1.0.27

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 (137) hide show
  1. package/es/mobile.css +7 -0
  2. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/index.mjs +38 -0
  3. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/adapters.mjs +60 -0
  4. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/fetch.mjs +174 -0
  5. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/xhr.mjs +138 -0
  6. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/axios.mjs +50 -0
  7. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/CancelToken.mjs +99 -0
  8. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/CanceledError.mjs +12 -0
  9. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/isCancel.mjs +6 -0
  10. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/Axios.mjs +181 -0
  11. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/AxiosError.mjs +76 -0
  12. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/AxiosHeaders.mjs +223 -0
  13. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/InterceptorManager.mjs +65 -0
  14. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/buildFullPath.mjs +12 -0
  15. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/dispatchRequest.mjs +52 -0
  16. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/mergeConfig.mjs +83 -0
  17. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/settle.mjs +18 -0
  18. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/transformData.mjs +17 -0
  19. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/defaults/index.mjs +116 -0
  20. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/defaults/transitional.mjs +8 -0
  21. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/env/data.mjs +4 -0
  22. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/AxiosURLSearchParams.mjs +34 -0
  23. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/HttpStatusCode.mjs +71 -0
  24. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/bind.mjs +8 -0
  25. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/buildURL.mjs +34 -0
  26. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/combineURLs.mjs +6 -0
  27. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/composeSignals.mjs +39 -0
  28. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/cookies.mjs +36 -0
  29. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/formDataToJSON.mjs +54 -0
  30. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isAbsoluteURL.mjs +6 -0
  31. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isAxiosError.mjs +7 -0
  32. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isURLSameOrigin.mjs +11 -0
  33. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/null.mjs +4 -0
  34. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/parseHeaders.mjs +47 -0
  35. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/parseProtocol.mjs +7 -0
  36. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/progressEventReducer.mjs +41 -0
  37. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/resolveConfig.mjs +42 -0
  38. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/speedometer.mjs +36 -0
  39. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/spread.mjs +8 -0
  40. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/throttle.mjs +35 -0
  41. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/toFormData.mjs +114 -0
  42. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/toURLEncodedForm.mjs +17 -0
  43. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/trackStream.mjs +80 -0
  44. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/validator.mjs +67 -0
  45. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/Blob.mjs +4 -0
  46. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/FormData.mjs +4 -0
  47. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/URLSearchParams.mjs +5 -0
  48. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/index.mjs +15 -0
  49. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/common/utils.mjs +15 -0
  50. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/index.mjs +9 -0
  51. package/es/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/utils.mjs +364 -0
  52. package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/composables/use-tab-status.mjs +4 -2
  53. package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/list/List.mjs +145 -0
  54. package/es/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/list/index.mjs +8 -0
  55. package/es/packages/mobile/index.mjs +2 -0
  56. package/es/packages/mobile/src/axios/config.mjs +105 -0
  57. package/es/packages/mobile/src/axios/index.mjs +11 -0
  58. package/es/packages/mobile/src/components/all.mjs +2 -0
  59. package/es/packages/mobile/src/components/dataDisplay/list/List.vue.mjs +100 -0
  60. package/es/packages/mobile/src/components/dataDisplay/list/index.mjs +7 -0
  61. package/es/packages/mobile/src/components/form/field/Field.vue.mjs +6 -2
  62. package/es/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.mjs +22 -7
  63. package/es/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.mjs +27 -9
  64. package/es/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.mjs +14 -3
  65. package/es/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.mjs +24 -9
  66. package/es/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.mjs +23 -8
  67. package/es/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.mjs +24 -9
  68. package/es/packages/mobile/src/utils/dataSourceUtil.mjs +71 -0
  69. package/lib/mobile.css +7 -0
  70. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/index.js +38 -0
  71. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/adapters.js +60 -0
  72. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/fetch.js +174 -0
  73. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/adapters/xhr.js +138 -0
  74. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/axios.js +50 -0
  75. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/CancelToken.js +99 -0
  76. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/CanceledError.js +12 -0
  77. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/cancel/isCancel.js +6 -0
  78. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/Axios.js +181 -0
  79. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/AxiosError.js +76 -0
  80. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/AxiosHeaders.js +223 -0
  81. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/InterceptorManager.js +65 -0
  82. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/buildFullPath.js +12 -0
  83. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/dispatchRequest.js +52 -0
  84. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/mergeConfig.js +83 -0
  85. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/settle.js +18 -0
  86. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/core/transformData.js +17 -0
  87. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/defaults/index.js +116 -0
  88. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/defaults/transitional.js +8 -0
  89. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/env/data.js +4 -0
  90. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +34 -0
  91. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  92. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/bind.js +8 -0
  93. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/buildURL.js +34 -0
  94. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  95. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/composeSignals.js +39 -0
  96. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/cookies.js +36 -0
  97. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/formDataToJSON.js +54 -0
  98. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  99. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  100. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/isURLSameOrigin.js +11 -0
  101. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/null.js +4 -0
  102. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/parseHeaders.js +47 -0
  103. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  104. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/progressEventReducer.js +41 -0
  105. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/resolveConfig.js +42 -0
  106. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/speedometer.js +36 -0
  107. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/spread.js +8 -0
  108. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/throttle.js +35 -0
  109. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/toFormData.js +114 -0
  110. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/toURLEncodedForm.js +17 -0
  111. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/trackStream.js +80 -0
  112. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/helpers/validator.js +67 -0
  113. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  114. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  115. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  116. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/browser/index.js +15 -0
  117. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/common/utils.js +15 -0
  118. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/platform/index.js +9 -0
  119. package/lib/node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/utils.js +364 -0
  120. package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/composables/use-tab-status.js +3 -1
  121. package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/list/List.js +145 -0
  122. package/lib/node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/list/index.js +7 -0
  123. package/lib/packages/mobile/index.js +92 -90
  124. package/lib/packages/mobile/src/axios/config.js +105 -0
  125. package/lib/packages/mobile/src/axios/index.js +11 -0
  126. package/lib/packages/mobile/src/components/all.js +92 -90
  127. package/lib/packages/mobile/src/components/dataDisplay/list/List.vue.js +100 -0
  128. package/lib/packages/mobile/src/components/dataDisplay/list/index.js +7 -0
  129. package/lib/packages/mobile/src/components/form/field/Field.vue.js +5 -1
  130. package/lib/packages/mobile/src/components/form/fieldCalendarPicker/FieldCalendarPicker.vue.js +21 -6
  131. package/lib/packages/mobile/src/components/form/fieldCascaderPicker/fieldCascaderPicker.vue.js +26 -8
  132. package/lib/packages/mobile/src/components/form/fieldCheckbox/FieldCheckbox.vue.js +13 -2
  133. package/lib/packages/mobile/src/components/form/fieldDatePicker/FieldDatePicker.vue.js +23 -8
  134. package/lib/packages/mobile/src/components/form/fieldPicker/FieldPicker.vue.js +22 -7
  135. package/lib/packages/mobile/src/components/form/fieldTimePicker/FieldTimePicker.vue.js +23 -8
  136. package/lib/packages/mobile/src/utils/dataSourceUtil.js +71 -0
  137. package/package.json +1 -1
@@ -6,13 +6,17 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
6
6
  ;/* empty css */
7
7
  ;/* empty css */
8
8
  const vue = require("vue");
9
+ ;/* empty css */
9
10
  const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
10
11
  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");
11
12
  const _sfc_main = {};
12
13
  function _sfc_render(_ctx, _cache) {
13
14
  const _component_van_field = index.Field;
14
15
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
15
- vue.createVNode(_component_van_field, vue.normalizeProps(vue.guardReactiveProps(_ctx.$attrs)), vue.createSlots({ _: 2 }, [
16
+ vue.createVNode(_component_van_field, vue.mergeProps(_ctx.$attrs, {
17
+ clearable: "",
18
+ "clear-trigger": "always"
19
+ }), vue.createSlots({ _: 2 }, [
16
20
  vue.renderList(_ctx.$slots, (item, key) => {
17
21
  return {
18
22
  name: key,
@@ -20,6 +20,7 @@ const vue = require("vue");
20
20
  const index = require("../field/index.js");
21
21
  const moment = require("../../../../../../node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/moment.js");
22
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");
23
+ const index$2 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/icon/index.js");
23
24
  const _sfc_main = {
24
25
  __name: "FieldCalendarPicker",
25
26
  props: {
@@ -89,6 +90,7 @@ const _sfc_main = {
89
90
  () => props.modelValue,
90
91
  (value) => {
91
92
  if (!value) {
93
+ fieldTextValue.value = "";
92
94
  return;
93
95
  }
94
96
  if (props.calendarType == "single") {
@@ -125,18 +127,19 @@ const _sfc_main = {
125
127
  showCalendar.value = false;
126
128
  };
127
129
  return (_ctx, _cache) => {
130
+ const _component_van_icon = index$2.Icon;
128
131
  const _component_van_calendar = index$1.Calendar;
129
132
  return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
130
133
  modelValue: vue.unref(fieldTextValue),
131
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
134
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
132
135
  "is-link": "",
133
136
  readonly: "",
134
- onClick: _cache[2] || (_cache[2] = ($event) => showCalendar.value = true)
135
- }), {
137
+ onClick: _cache[3] || (_cache[3] = ($event) => showCalendar.value = true)
138
+ }), vue.createSlots({
136
139
  default: vue.withCtx(() => [
137
140
  vue.createVNode(_component_van_calendar, vue.mergeProps(_ctx.$attrs, {
138
141
  show: vue.unref(showCalendar),
139
- "onUpdate:show": _cache[0] || (_cache[0] = ($event) => vue.isRef(showCalendar) ? showCalendar.value = $event : null),
142
+ "onUpdate:show": _cache[1] || (_cache[1] = ($event) => vue.isRef(showCalendar) ? showCalendar.value = $event : null),
140
143
  "default-date": vue.unref(defaultDate),
141
144
  title: __props.title,
142
145
  type: __props.calendarType,
@@ -145,8 +148,20 @@ const _sfc_main = {
145
148
  onConfirm
146
149
  }), null, 16, ["show", "default-date", "title", "type"])
147
150
  ]),
148
- _: 1
149
- }, 16, ["modelValue"]);
151
+ _: 2
152
+ }, [
153
+ vue.unref(fieldTextValue) ? {
154
+ name: "right-icon",
155
+ fn: vue.withCtx(() => [
156
+ vue.createVNode(_component_van_icon, {
157
+ name: "clear",
158
+ class: "custom-close-icon",
159
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => defaultDate.value = null, ["stop"]))
160
+ })
161
+ ]),
162
+ key: "0"
163
+ } : void 0
164
+ ]), 1040, ["modelValue"]);
150
165
  };
151
166
  }
152
167
  };
@@ -15,6 +15,7 @@ const vue = require("vue");
15
15
  const index = require("../field/index.js");
16
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
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");
18
+ const index$3 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/icon/index.js");
18
19
  const _sfc_main = {
19
20
  __name: "fieldCascaderPicker",
20
21
  props: {
@@ -81,6 +82,10 @@ const _sfc_main = {
81
82
  vue.watch(
82
83
  () => props.modelValue,
83
84
  (value) => {
85
+ if (!value) {
86
+ fieldTextValue.value = "";
87
+ return;
88
+ }
84
89
  fieldTextValue.value = getDisplayValue(
85
90
  props.treeOptions,
86
91
  props.treeOptionsFieldNames,
@@ -94,38 +99,51 @@ const _sfc_main = {
94
99
  showPicker.value = false;
95
100
  };
96
101
  return (_ctx, _cache) => {
102
+ const _component_van_icon = index$3.Icon;
97
103
  const _component_van_cascader = index$2.Cascader;
98
104
  const _component_van_popup = index$1.Popup;
99
105
  return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
100
106
  modelValue: vue.unref(fieldTextValue),
101
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
107
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
102
108
  "is-link": "",
103
109
  readonly: "",
104
- onClick: _cache[4] || (_cache[4] = ($event) => showPicker.value = true)
105
- }), {
110
+ onClick: _cache[5] || (_cache[5] = ($event) => showPicker.value = true)
111
+ }), vue.createSlots({
106
112
  default: vue.withCtx(() => [
107
113
  vue.createVNode(_component_van_popup, {
108
114
  show: vue.unref(showPicker),
109
- "onUpdate:show": _cache[2] || (_cache[2] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
115
+ "onUpdate:show": _cache[3] || (_cache[3] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
110
116
  "destroy-on-close": "",
111
117
  position: "bottom"
112
118
  }, {
113
119
  default: vue.withCtx(() => [
114
120
  vue.createVNode(_component_van_cascader, vue.mergeProps(_ctx.$attrs, {
115
121
  modelValue: vue.unref(pickerValue),
116
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
122
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
117
123
  options: __props.treeOptions,
118
124
  "field-names": __props.treeOptionsFieldNames,
119
125
  placeholder: "请选择",
120
126
  onFinish,
121
- onClose: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
127
+ onClose: _cache[2] || (_cache[2] = ($event) => showPicker.value = false)
122
128
  }), null, 16, ["modelValue", "options", "field-names"])
123
129
  ]),
124
130
  _: 1
125
131
  }, 8, ["show"])
126
132
  ]),
127
- _: 1
128
- }, 16, ["modelValue"]);
133
+ _: 2
134
+ }, [
135
+ vue.unref(fieldTextValue) ? {
136
+ name: "right-icon",
137
+ fn: vue.withCtx(() => [
138
+ vue.createVNode(_component_van_icon, {
139
+ name: "clear",
140
+ class: "custom-close-icon",
141
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => pickerValue.value = null, ["stop"]))
142
+ })
143
+ ]),
144
+ key: "0"
145
+ } : void 0
146
+ ]), 1040, ["modelValue"]);
129
147
  };
130
148
  }
131
149
  };
@@ -31,8 +31,19 @@ const _sfc_main = {
31
31
  emit("update:modelValue", val.join(","));
32
32
  }
33
33
  });
34
+ const inputValue = vue.computed({
35
+ get: () => {
36
+ return compValue.value.join(",");
37
+ },
38
+ set: (val) => {
39
+ emit("update:modelValue", val);
40
+ }
41
+ });
34
42
  return (_ctx, _cache) => {
35
- return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, { modelValue: "" }), {
43
+ return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
44
+ modelValue: vue.unref(inputValue),
45
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(inputValue) ? inputValue.value = $event : null)
46
+ }), {
36
47
  input: vue.withCtx(() => [
37
48
  vue.createVNode(vue.unref(index$1.MobileCheckboxGroup), vue.mergeProps(_ctx.$attrs, {
38
49
  modelValue: vue.unref(compValue),
@@ -40,7 +51,7 @@ const _sfc_main = {
40
51
  }), null, 16, ["modelValue"])
41
52
  ]),
42
53
  _: 1
43
- }, 16);
54
+ }, 16, ["modelValue"]);
44
55
  };
45
56
  }
46
57
  };
@@ -19,6 +19,7 @@ const moment = require("../../../../../../node_modules/.pnpm/moment@2.30.1/node_
19
19
  const dateUtil = require("../../../utils/dateUtil.js");
20
20
  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");
21
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
+ const index$3 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/icon/index.js");
22
23
  const _sfc_main = {
23
24
  __name: "FieldDatePicker",
24
25
  props: {
@@ -95,6 +96,7 @@ const _sfc_main = {
95
96
  () => props.modelValue,
96
97
  (value) => {
97
98
  if (!value) {
99
+ fieldTextValue.value = "";
98
100
  return;
99
101
  }
100
102
  fieldTextValue.value = moment.default(value, valueFormat).format(textFormat);
@@ -110,38 +112,51 @@ const _sfc_main = {
110
112
  showPicker.value = false;
111
113
  };
112
114
  return (_ctx, _cache) => {
115
+ const _component_van_icon = index$3.Icon;
113
116
  const _component_van_date_picker = index$2.DatePicker;
114
117
  const _component_van_popup = index$1.Popup;
115
118
  return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
116
119
  modelValue: vue.unref(fieldTextValue),
117
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
120
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
118
121
  "is-link": "",
119
122
  readonly: "",
120
- onClick: _cache[4] || (_cache[4] = ($event) => showPicker.value = true)
121
- }), {
123
+ onClick: _cache[5] || (_cache[5] = ($event) => showPicker.value = true)
124
+ }), vue.createSlots({
122
125
  default: vue.withCtx(() => [
123
126
  vue.createVNode(_component_van_popup, {
124
127
  show: vue.unref(showPicker),
125
- "onUpdate:show": _cache[2] || (_cache[2] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
128
+ "onUpdate:show": _cache[3] || (_cache[3] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
126
129
  "destroy-on-close": "",
127
130
  position: "bottom"
128
131
  }, {
129
132
  default: vue.withCtx(() => [
130
133
  vue.createVNode(_component_van_date_picker, vue.mergeProps(_ctx.$attrs, {
131
134
  modelValue: vue.unref(pickerValue),
132
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
135
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
133
136
  readonly: false,
134
137
  onConfirm,
135
138
  columnsType: vue.unref(columnsType),
136
139
  formatter,
137
- onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
140
+ onCancel: _cache[2] || (_cache[2] = ($event) => showPicker.value = false)
138
141
  }), null, 16, ["modelValue", "columnsType"])
139
142
  ]),
140
143
  _: 1
141
144
  }, 8, ["show"])
142
145
  ]),
143
- _: 1
144
- }, 16, ["modelValue"]);
146
+ _: 2
147
+ }, [
148
+ vue.unref(fieldTextValue) ? {
149
+ name: "right-icon",
150
+ fn: vue.withCtx(() => [
151
+ vue.createVNode(_component_van_icon, {
152
+ name: "clear",
153
+ class: "custom-close-icon",
154
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => emit("update:modelValue", null), ["stop"]))
155
+ })
156
+ ]),
157
+ key: "0"
158
+ } : void 0
159
+ ]), 1040, ["modelValue"]);
145
160
  };
146
161
  }
147
162
  };
@@ -16,6 +16,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
16
16
  const vue = require("vue");
17
17
  const index = require("../field/index.js");
18
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");
19
+ const index$3 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/icon/index.js");
19
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");
20
21
  const _sfc_main = {
21
22
  __name: "FieldPicker",
@@ -57,6 +58,7 @@ const _sfc_main = {
57
58
  () => props.modelValue,
58
59
  (value) => {
59
60
  if (!value) {
61
+ fieldTextValue.value = "";
60
62
  return;
61
63
  }
62
64
  const optionItem = props.pickerOptions.find(
@@ -71,19 +73,20 @@ const _sfc_main = {
71
73
  showPicker.value = false;
72
74
  };
73
75
  return (_ctx, _cache) => {
76
+ const _component_van_icon = index$3.Icon;
74
77
  const _component_van_picker = index$2.Picker;
75
78
  const _component_van_popup = index$1.Popup;
76
79
  return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
77
80
  modelValue: vue.unref(fieldTextValue),
78
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
81
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
79
82
  "is-link": "",
80
83
  readonly: "",
81
- onClick: _cache[3] || (_cache[3] = ($event) => showPicker.value = true)
82
- }), {
84
+ onClick: _cache[4] || (_cache[4] = ($event) => showPicker.value = true)
85
+ }), vue.createSlots({
83
86
  default: vue.withCtx(() => [
84
87
  vue.createVNode(_component_van_popup, {
85
88
  show: vue.unref(showPicker),
86
- "onUpdate:show": _cache[1] || (_cache[1] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
89
+ "onUpdate:show": _cache[2] || (_cache[2] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
87
90
  "destroy-on-close": "",
88
91
  position: "bottom"
89
92
  }, {
@@ -94,14 +97,26 @@ const _sfc_main = {
94
97
  "model-value": vue.unref(pickerValue),
95
98
  readonly: false,
96
99
  onConfirm,
97
- onCancel: _cache[0] || (_cache[0] = ($event) => showPicker.value = false)
100
+ onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
98
101
  }), null, 16, ["columns", "columns-field-names", "model-value"])
99
102
  ]),
100
103
  _: 1
101
104
  }, 8, ["show"])
102
105
  ]),
103
- _: 1
104
- }, 16, ["modelValue"]);
106
+ _: 2
107
+ }, [
108
+ vue.unref(fieldTextValue) ? {
109
+ name: "right-icon",
110
+ fn: vue.withCtx(() => [
111
+ vue.createVNode(_component_van_icon, {
112
+ name: "clear",
113
+ class: "custom-close-icon",
114
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => pickerValue.value = null, ["stop"]))
115
+ })
116
+ ]),
117
+ key: "0"
118
+ } : void 0
119
+ ]), 1040, ["modelValue"]);
105
120
  };
106
121
  }
107
122
  };
@@ -19,6 +19,7 @@ const moment = require("../../../../../../node_modules/.pnpm/moment@2.30.1/node_
19
19
  const dateUtil = require("../../../utils/dateUtil.js");
20
20
  const index$2 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/time-picker/index.js");
21
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
+ const index$3 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/icon/index.js");
22
23
  const _sfc_main = {
23
24
  __name: "FieldTimePicker",
24
25
  props: {
@@ -97,6 +98,7 @@ const _sfc_main = {
97
98
  () => props.modelValue,
98
99
  (value) => {
99
100
  if (!value) {
101
+ fieldTextValue.value = "";
100
102
  return;
101
103
  }
102
104
  fieldTextValue.value = moment.default(value, valueFormat).format(textFormat);
@@ -112,38 +114,51 @@ const _sfc_main = {
112
114
  showPicker.value = false;
113
115
  };
114
116
  return (_ctx, _cache) => {
117
+ const _component_van_icon = index$3.Icon;
115
118
  const _component_van_time_picker = index$2.TimePicker;
116
119
  const _component_van_popup = index$1.Popup;
117
120
  return vue.openBlock(), vue.createBlock(vue.unref(index.MobileField), vue.mergeProps(_ctx.$attrs, {
118
121
  modelValue: vue.unref(fieldTextValue),
119
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
122
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(fieldTextValue) ? fieldTextValue.value = $event : null),
120
123
  "is-link": "",
121
124
  readonly: "",
122
- onClick: _cache[4] || (_cache[4] = ($event) => showPicker.value = true)
123
- }), {
125
+ onClick: _cache[5] || (_cache[5] = ($event) => showPicker.value = true)
126
+ }), vue.createSlots({
124
127
  default: vue.withCtx(() => [
125
128
  vue.createVNode(_component_van_popup, {
126
129
  show: vue.unref(showPicker),
127
- "onUpdate:show": _cache[2] || (_cache[2] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
130
+ "onUpdate:show": _cache[3] || (_cache[3] = ($event) => vue.isRef(showPicker) ? showPicker.value = $event : null),
128
131
  "destroy-on-close": "",
129
132
  position: "bottom"
130
133
  }, {
131
134
  default: vue.withCtx(() => [
132
135
  vue.createVNode(_component_van_time_picker, vue.mergeProps(_ctx.$attrs, {
133
136
  modelValue: vue.unref(pickerValue),
134
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
137
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(pickerValue) ? pickerValue.value = $event : null),
135
138
  readonly: false,
136
139
  columnsType: vue.unref(columnsType),
137
140
  formatter,
138
141
  onConfirm,
139
- onCancel: _cache[1] || (_cache[1] = ($event) => showPicker.value = false)
142
+ onCancel: _cache[2] || (_cache[2] = ($event) => showPicker.value = false)
140
143
  }), null, 16, ["modelValue", "columnsType"])
141
144
  ]),
142
145
  _: 1
143
146
  }, 8, ["show"])
144
147
  ]),
145
- _: 1
146
- }, 16, ["modelValue"]);
148
+ _: 2
149
+ }, [
150
+ vue.unref(fieldTextValue) ? {
151
+ name: "right-icon",
152
+ fn: vue.withCtx(() => [
153
+ vue.createVNode(_component_van_icon, {
154
+ name: "clear",
155
+ class: "custom-close-icon",
156
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => emit("update:modelValue", null), ["stop"]))
157
+ })
158
+ ]),
159
+ key: "0"
160
+ } : void 0
161
+ ]), 1040, ["modelValue"]);
147
162
  };
148
163
  }
149
164
  };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const index = require("../axios/index.js");
4
+ const useDataSource = (dataSourceJson) => {
5
+ var _a, _b;
6
+ const dataSource = JSON.parse(dataSourceJson.replace(/'/g, '"'));
7
+ const globalDataHandle = dataSource.dataHandler ? createFn(dataSource.dataHandler.value) : (res) => res;
8
+ const http = index.default(globalDataHandle);
9
+ const shouldFetch = ((_a = dataSource.shouldFetch) == null ? void 0 : _a.value) ? createFn(dataSource.shouldFetch.value) : () => true;
10
+ const willFetch = ((_b = dataSource.willFetch) == null ? void 0 : _b.value) ? createFn(dataSource.willFetch.value) : (options) => options;
11
+ const dataHandler = (res) => {
12
+ var _a2;
13
+ const data = ((_a2 = dataSource.dataHandler) == null ? void 0 : _a2.value) ? createFn(dataSource.dataHandler.value)(res) : res;
14
+ return data;
15
+ };
16
+ const errorHandler = (error) => {
17
+ var _a2;
18
+ if ((_a2 = dataSource.errorHandler) == null ? void 0 : _a2.value) {
19
+ createFn(dataSource.errorHandler.value)(error);
20
+ }
21
+ };
22
+ http.interceptors.request.use(willFetch, errorHandler);
23
+ http.interceptors.response.use(dataHandler, errorHandler);
24
+ return {
25
+ load: createLoad(http, dataSource, shouldFetch)
26
+ };
27
+ };
28
+ const createFn = (fnContent) => {
29
+ return (...args) => {
30
+ window.eval("var fn = " + fnContent);
31
+ return fn.apply(void 0, args);
32
+ };
33
+ };
34
+ const createLoad = (http, dataSource, shouldFetch) => (params) => {
35
+ if (!shouldFetch()) {
36
+ return;
37
+ }
38
+ if (dataSource.mockSwitch == "1") {
39
+ let mockData = dataSource.mockData;
40
+ return new Promise((resolve) => {
41
+ const mockDataHandle = createFn(dataSource.mockDataHandlerValue);
42
+ resolve(mockDataHandle(mockData));
43
+ });
44
+ }
45
+ const {
46
+ method,
47
+ uri: url,
48
+ params: defaultParams,
49
+ timeout,
50
+ headers,
51
+ serviceAddr
52
+ } = dataSource.options;
53
+ const config = { method, url, headers, timeout };
54
+ const data = params && JSON.stringify(params) != "{}" ? params : defaultParams;
55
+ if (serviceAddr) {
56
+ const serviceAddrValue = dataSource == null ? void 0 : dataSource.serviceAddr;
57
+ const serviceAddrItem = serviceAddrValue == null ? void 0 : serviceAddrValue.find(
58
+ (item) => item.name == serviceAddr
59
+ );
60
+ config.url = (serviceAddrItem == null ? void 0 : serviceAddrItem.url) ? serviceAddrItem.url + config.url : config.url;
61
+ } else {
62
+ config.url = config.url;
63
+ }
64
+ if (method.toLowerCase() === "get") {
65
+ config.params = data;
66
+ } else {
67
+ config.data = data;
68
+ }
69
+ return http.request(config);
70
+ };
71
+ exports.useDataSource = useDataSource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/mobile",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "main": "lib/packages/mobile/index.js",
5
5
  "module": "es/packages/mobile/index.mjs",
6
6
  "files": [