@tmagic/form 1.3.0-beta.6 → 1.3.0-beta.8

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.
@@ -4,7 +4,6 @@ import { cloneDeep, isEqual, isEmpty } from 'lodash-es';
4
4
  import { TMagicFormItem, TMagicTooltip, TMagicIcon, TMagicButton, TMagicCheckbox, TMagicCard, TMagicCol, TMagicRow, TMagicSteps, TMagicStep, TMagicTable, TMagicTableColumn, TMagicUpload, TMagicPagination, tMagicMessage, getConfig as getConfig$1, TMagicBadge, TMagicCascader, TMagicCheckboxGroup, TMagicColorPicker, TMagicDatePicker, TMagicForm, TMagicInput, TMagicDialog, TMagicInputNumber, TMagicRadioGroup, TMagicRadio, TMagicOptionGroup, TMagicOption, TMagicSelect, TMagicSwitch, TMagicTimePicker, TMagicDrawer } from '@tmagic/design';
5
5
  import Sortable from 'sortablejs';
6
6
  import { sleep, asyncLoadJs, datetimeFormatter, getValueByKeyPath, isNumber } from '@tmagic/utils';
7
- import cloneDeep$1 from 'lodash-es/cloneDeep';
8
7
 
9
8
  const isTableSelect = (type) => typeof type === "string" && ["table-select", "tableSelect"].includes(type);
10
9
  const asyncLoadConfig = (value, initValue2, { asyncLoad, name, type }) => {
@@ -2846,7 +2845,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2846
2845
  submitForm: async (native) => {
2847
2846
  try {
2848
2847
  await tMagicForm.value?.validate();
2849
- return native ? values.value : cloneDeep$1(toRaw(values.value));
2848
+ return native ? values.value : cloneDeep(toRaw(values.value));
2850
2849
  } catch (invalidFields) {
2851
2850
  const error = [];
2852
2851
  Object.entries(invalidFields).forEach(([, ValidateError]) => {