af-mobile-client-vue3 1.4.52 → 1.4.53

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.4.52",
4
+ "version": "1.4.53",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -32,6 +32,7 @@
32
32
  "axios": "^1.10.0",
33
33
  "bcryptjs": "^2.4.3",
34
34
  "crypto-js": "^4.2.0",
35
+ "moment": "^2.21.0",
35
36
  "dayjs": "^1.11.13",
36
37
  "echarts": "^5.6.0",
37
38
  "jsencrypt": "^3.3.2",
@@ -13,6 +13,7 @@ import { useUserStore } from '@af-mobile-client-vue3/stores/modules/user'
13
13
  import { getDict } from '@af-mobile-client-vue3/utils/dictUtil'
14
14
  import { mobileUtil } from '@af-mobile-client-vue3/utils/mobileUtil'
15
15
  import { executeStrFunctionByContext } from '@af-mobile-client-vue3/utils/runEvalFunction'
16
+ import * as util from '@af-mobile-client-vue3/utils/util'
16
17
  import { areaList } from '@vant/area-data'
17
18
  import dayjs from 'dayjs/esm/index'
18
19
  import { debounce } from 'lodash-es'
@@ -193,7 +194,7 @@ const currInst = getCurrentInstance()
193
194
  // 配置中心->表单项变更触发函数
194
195
  async function dataChangeFunc() {
195
196
  if (attr.dataChangeFunc) {
196
- await executeStrFunctionByContext(currInst, attr.dataChangeFunc, [props.form, (formData: any) => emits('setForm', formData), attr, null, mode, runLogic, getConfigByNameAsync, userState.f.resources, dayjs])
197
+ await executeStrFunctionByContext(currInst, attr.dataChangeFunc, [props.form, (formData: any) => emits('setForm', formData), attr, util, mode, runLogic, getConfigByNameAsync, userState.f.resources, dayjs])
197
198
  }
198
199
  }
199
200
  const dataChangeFuncdebounce = debounce(dataChangeFunc, 300)
@@ -0,0 +1,5 @@
1
+ import moment from 'moment/moment'
2
+
3
+ export function _moment(...args) {
4
+ return moment(...args)
5
+ }