jobsys-explore 4.8.0 → 4.8.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, defineComponent, inject, nextTick, onMounted, reactive, ref, watch } from "vue"
|
|
2
2
|
import { EX_UPLOADER, EX_FORM } from "../provider/ExProvider.jsx"
|
|
3
|
-
import { cloneDeep, every, isEqual, isFunction, isObject, isString, pick } from "lodash-es"
|
|
3
|
+
import { cloneDeep, every, isArray, isEqual, isFunction, isObject, isString, pick } from "lodash-es"
|
|
4
4
|
import { initItemDefaultValue } from "./utils"
|
|
5
5
|
import { useCache, useFetch, useFormFail, useFormFormat, useProcessStatusSuccess } from "../../hooks"
|
|
6
6
|
import { CellGroup, Form, showConfirmDialog, showSuccessToast, Skeleton } from "vant"
|
|
@@ -475,13 +475,24 @@ export default defineComponent({
|
|
|
475
475
|
|
|
476
476
|
/********** render **********/
|
|
477
477
|
|
|
478
|
-
const formItemElems = () =>
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
const formItemElems = () => {
|
|
479
|
+
let formItemElems = []
|
|
480
|
+
formItems.value.forEach((formItem) => {
|
|
481
|
+
const formItemElem = createFormItem(formItem, state.submitForm, {
|
|
481
482
|
props,
|
|
482
483
|
slots,
|
|
483
|
-
})
|
|
484
|
-
|
|
484
|
+
})
|
|
485
|
+
if (formItemElem) {
|
|
486
|
+
if (isArray(formItemElem)) {
|
|
487
|
+
formItemElems = [...formItemElems, ...formItemElem]
|
|
488
|
+
} else {
|
|
489
|
+
formItemElems.push(formItemElem)
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
})
|
|
493
|
+
|
|
494
|
+
return formItemElems
|
|
495
|
+
}
|
|
485
496
|
|
|
486
497
|
const skeletonElem = () => (
|
|
487
498
|
<Skeleton row={10} title loading={state.isInitializing}>
|