3h1-ui 3.0.0-next.246 → 3.0.0-next.248

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/es/index.js CHANGED
@@ -11737,7 +11737,7 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
11737
11737
  schema: schema2,
11738
11738
  tableAction: tableAction2,
11739
11739
  formModel,
11740
- formActionType: formActionType2
11740
+ formActionType
11741
11741
  } = props2;
11742
11742
  let {
11743
11743
  componentProps = {}
@@ -11747,7 +11747,7 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
11747
11747
  schema: schema2,
11748
11748
  tableAction: tableAction2,
11749
11749
  formModel,
11750
- formActionType: formActionType2
11750
+ formActionType
11751
11751
  }) ?? {};
11752
11752
  }
11753
11753
  if (schema2.component === "Divider") {
@@ -12410,7 +12410,6 @@ function useFormValues({
12410
12410
  }
12411
12411
  return { handleFormValues, initDefault };
12412
12412
  }
12413
- const formActionType = inject("formActionType");
12414
12413
  function useFormEvents({
12415
12414
  emit,
12416
12415
  getProps,
@@ -12419,8 +12418,7 @@ function useFormEvents({
12419
12418
  defaultValueRef,
12420
12419
  formElRef,
12421
12420
  schemaRef,
12422
- handleFormValues,
12423
- tableAction: tableAction2
12421
+ handleFormValues
12424
12422
  }) {
12425
12423
  async function resetFields() {
12426
12424
  const { resetFunc, submitOnReset } = unref(getProps);
@@ -12616,41 +12614,20 @@ function useFormEvents({
12616
12614
  return;
12617
12615
  }
12618
12616
  const schema = [];
12619
- function processSchemas(schemas, context = {}) {
12620
- return schemas.map((schemaItem) => {
12621
- const matched = updateData.find(
12622
- (item) => item.field === schemaItem.field
12623
- );
12624
- const merged = matched ? deepMerge$2(schemaItem, matched) : { ...schemaItem };
12625
- const rawComponentProps = merged.componentProps;
12626
- if (typeof rawComponentProps === "function" && merged.component === "Group") {
12627
- merged.componentProps = (ctx) => {
12628
- const originalResult = rawComponentProps(ctx);
12629
- const rawSchemas2 = originalResult.schemas || [];
12630
- const updatedSchemas = processSchemas(rawSchemas2, ctx);
12631
- return {
12632
- ...originalResult,
12633
- schemas: updatedSchemas
12634
- };
12635
- };
12636
- }
12637
- if (typeof rawComponentProps === "object" && merged.component === "Group" && Array.isArray(rawComponentProps == null ? void 0 : rawComponentProps.schemas)) {
12638
- merged.componentProps = {
12639
- ...rawComponentProps,
12640
- schemas: processSchemas(rawComponentProps.schemas, context)
12641
- };
12617
+ unref(getSchema).forEach((val) => {
12618
+ let _val;
12619
+ updateData.forEach((item) => {
12620
+ if (val.field === item.field) {
12621
+ _val = item;
12642
12622
  }
12643
- return merged;
12644
12623
  });
12645
- }
12646
- const rawSchemas = unref(getSchema);
12647
- schema.push(
12648
- ...processSchemas(rawSchemas, {
12649
- formModel,
12650
- formActionType,
12651
- tableAction: tableAction2
12652
- })
12653
- );
12624
+ if (_val !== void 0 && val.field === _val.field) {
12625
+ const newSchema = deepMerge$2(val, _val);
12626
+ schema.push(newSchema);
12627
+ } else {
12628
+ schema.push(val);
12629
+ }
12630
+ });
12654
12631
  _setDefaultValue(schema);
12655
12632
  schemaRef.value = uniqBy(schema, "field");
12656
12633
  }
@@ -25849,8 +25826,7 @@ const ShyForm = /* @__PURE__ */ defineComponent({
25849
25826
  formElRef,
25850
25827
  //@ts-ignore
25851
25828
  schemaRef,
25852
- handleFormValues,
25853
- tableAction: props2.tableAction
25829
+ handleFormValues
25854
25830
  });
25855
25831
  createFormContext({
25856
25832
  resetAction: resetFields,
@@ -25890,27 +25866,28 @@ const ShyForm = /* @__PURE__ */ defineComponent({
25890
25866
  for (const key2 in val) {
25891
25867
  let handleSchemas = function(schemas = []) {
25892
25868
  schemas.forEach((item) => {
25893
- const isTargetField = item.field === key2;
25894
- context.schema = item;
25895
- const rawComponentProps = item.componentProps;
25896
- const resolvedProps = isFunction$5(rawComponentProps) ? rawComponentProps(context) : rawComponentProps;
25897
- if (isTargetField && (resolvedProps == null ? void 0 : resolvedProps.onModelChange)) {
25898
- resolvedProps.onModelChange(val[key2]);
25869
+ var _a2, _b;
25870
+ const isComponentProps = item.field === key2 && item.componentProps;
25871
+ if (isComponentProps && !isFunction$5(item.componentProps) && ((_a2 = item.componentProps) == null ? void 0 : _a2.onModelChange)) {
25872
+ item.componentProps.onModelChange(val[key2]);
25873
+ } else if (isComponentProps && isFunction$5(item.componentProps)) {
25874
+ const modelProps = item.componentProps({
25875
+ schema: item,
25876
+ formModel,
25877
+ formActionType,
25878
+ tableAction: props2.tableAction
25879
+ });
25880
+ if (modelProps.onModelChange) {
25881
+ modelProps.onModelChange(val[key2]);
25882
+ }
25899
25883
  }
25900
- if (item.component === "Group" && resolvedProps && Array.isArray(resolvedProps.schemas)) {
25901
- handleSchemas(resolvedProps.schemas);
25884
+ if (item.component === "Group" && ((_b = item.componentProps) == null ? void 0 : _b.schemas)) {
25885
+ handleSchemas(item.componentProps.schemas);
25902
25886
  }
25903
25887
  });
25904
25888
  };
25905
25889
  if (isEqual(toRaw(val[key2]), toRaw(tempFormModel[key2])))
25906
25890
  continue;
25907
- const context = {
25908
- schema: {},
25909
- // 每次赋值
25910
- formModel,
25911
- formActionType: formActionType2,
25912
- tableAction: props2.tableAction
25913
- };
25914
25891
  handleSchemas(unref(getProps).schemas);
25915
25892
  }
25916
25893
  Object.assign(tempFormModel, cloneDeep(formModel));
@@ -25947,7 +25924,7 @@ const ShyForm = /* @__PURE__ */ defineComponent({
25947
25924
  ;
25948
25925
  }
25949
25926
  }
25950
- const formActionType2 = {
25927
+ const formActionType = {
25951
25928
  getFieldsValue,
25952
25929
  setFieldsValue,
25953
25930
  resetFields,
@@ -25962,7 +25939,7 @@ const ShyForm = /* @__PURE__ */ defineComponent({
25962
25939
  validate,
25963
25940
  scrollToField
25964
25941
  };
25965
- provide("formActionType", formActionType2);
25942
+ provide("formActionType", formActionType);
25966
25943
  const isTableForm = computed(() => {
25967
25944
  return !!unref(getBindValue).tableAction;
25968
25945
  });
@@ -26052,7 +26029,7 @@ const ShyForm = /* @__PURE__ */ defineComponent({
26052
26029
  };
26053
26030
  onMounted(() => {
26054
26031
  initDefault();
26055
- emit("register", formActionType2);
26032
+ emit("register", formActionType);
26056
26033
  });
26057
26034
  return () => {
26058
26035
  const ignoreKeys = ["resetBefore", "submitBefore", "advanceBefore", "advanceAfter", "advancedSearch"];
@@ -26090,7 +26067,7 @@ const ShyForm = /* @__PURE__ */ defineComponent({
26090
26067
  const realSpan = (((_a2 = schema.colProps) == null ? void 0 : _a2.span) ?? ((_c = (_b = unref(getBindValue)) == null ? void 0 : _b.baseColProps) == null ? void 0 : _c.span)) / (unref(ROW_SLICE2) + unref(ACTION_COL2));
26091
26068
  return createVNode(FormItem$2, {
26092
26069
  "tableAction": props2.tableAction,
26093
- "formActionType": formActionType2,
26070
+ "formActionType": formActionType,
26094
26071
  "schema": schema,
26095
26072
  "formProps": getProps.value,
26096
26073
  "allDefaultValues": defaultValueRef.value,
@@ -28270,7 +28247,7 @@ const EQUAL_OPERATOR_OPTIONS = ALL_OPERATOR_OPTION.filter(
28270
28247
  const CONTAIN_OPERATOR_OPTIONS = ALL_OPERATOR_OPTION.filter(
28271
28248
  (item) => ["ct"].includes(item.value)
28272
28249
  );
28273
- const useAdvancedSearch = (schemas, formActionType2) => {
28250
+ const useAdvancedSearch = (schemas, formActionType) => {
28274
28251
  const getSchemaOptions = (type4) => {
28275
28252
  switch (type4) {
28276
28253
  case "number":
@@ -28358,7 +28335,7 @@ const useAdvancedSearch = (schemas, formActionType2) => {
28358
28335
  removeSchemaByField,
28359
28336
  updateSchema,
28360
28337
  setFieldsValue
28361
- } = formActionType2;
28338
+ } = formActionType;
28362
28339
  const {
28363
28340
  schemas: [operatorSchema, valueSchema]
28364
28341
  } = componentProps;
@@ -32086,7 +32063,7 @@ const ShyFormTable = /* @__PURE__ */ defineComponent({
32086
32063
  const {
32087
32064
  prefixCls: prefixCls2
32088
32065
  } = useDesign$1("ant-form-table-children");
32089
- const formActionType2 = inject("formActionType");
32066
+ const formActionType = inject("formActionType");
32090
32067
  const tableWrapperRef = ref();
32091
32068
  const tableElRef = ref();
32092
32069
  const curIndex = ref(0);
@@ -32412,7 +32389,7 @@ const ShyFormTable = /* @__PURE__ */ defineComponent({
32412
32389
  column: column2,
32413
32390
  record,
32414
32391
  ...args
32415
- }, formActionType2);
32392
+ }, formActionType);
32416
32393
  } catch (error2) {
32417
32394
  rulesRef[errKey].show = true;
32418
32395
  rulesRef[errKey].msg = error2;
@@ -35750,7 +35727,7 @@ const Group = /* @__PURE__ */ defineComponent({
35750
35727
  schema,
35751
35728
  tableAction: tableAction2,
35752
35729
  formModel,
35753
- formActionType: formActionType2
35730
+ formActionType
35754
35731
  } = props2;
35755
35732
  let {
35756
35733
  componentProps: _componentProps,
@@ -35762,7 +35739,7 @@ const Group = /* @__PURE__ */ defineComponent({
35762
35739
  schema,
35763
35740
  tableAction: tableAction2,
35764
35741
  formModel,
35765
- formActionType: formActionType2
35742
+ formActionType
35766
35743
  }) ?? {};
35767
35744
  }
35768
35745
  const realSpan = (((_a2 = schema.colProps) == null ? void 0 : _a2.span) ?? ((_c = (_b = unref(contextBindValue)) == null ? void 0 : _b.baseColProps) == null ? void 0 : _c.span)) / (unref(ROW_SLICE) + unref(ACTION_COL));
@@ -35913,7 +35890,7 @@ const FormItem = /* @__PURE__ */ defineComponent({
35913
35890
  const {
35914
35891
  schema,
35915
35892
  formModel,
35916
- formActionType: formActionType2
35893
+ formActionType
35917
35894
  } = props2;
35918
35895
  let {
35919
35896
  componentProps = {}
@@ -35922,7 +35899,7 @@ const FormItem = /* @__PURE__ */ defineComponent({
35922
35899
  componentProps = componentProps({
35923
35900
  schema,
35924
35901
  formModel,
35925
- formActionType: formActionType2
35902
+ formActionType
35926
35903
  }) ?? {};
35927
35904
  }
35928
35905
  if (schema.component === "Divider") {
@@ -49543,7 +49520,7 @@ const Descriptions = /* @__PURE__ */ defineComponent({
49543
49520
  model: data,
49544
49521
  values: data,
49545
49522
  schema: item,
49546
- transformValue
49523
+ transformValue: unref(transformValue)
49547
49524
  };
49548
49525
  };
49549
49526
  });
@@ -10,9 +10,8 @@ interface UseFormActionContext {
10
10
  formElRef: Ref<FormActionType>;
11
11
  schemaRef: Ref<FormSchema[]>;
12
12
  handleFormValues: Fn;
13
- tableAction?: any;
14
13
  }
15
- export declare function useFormEvents({ emit, getProps, formModel, getSchema, defaultValueRef, formElRef, schemaRef, handleFormValues, tableAction }: UseFormActionContext): {
14
+ export declare function useFormEvents({ emit, getProps, formModel, getSchema, defaultValueRef, formElRef, schemaRef, handleFormValues }: UseFormActionContext): {
16
15
  handleSubmit: (e?: Event) => Promise<void>;
17
16
  clearValidate: (name?: string | string[]) => Promise<void>;
18
17
  validate: (nameList?: NamePath[] | undefined) => Promise<any>;
package/lib/index.js CHANGED
@@ -11761,7 +11761,7 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
11761
11761
  schema: schema2,
11762
11762
  tableAction: tableAction2,
11763
11763
  formModel,
11764
- formActionType: formActionType2
11764
+ formActionType
11765
11765
  } = props2;
11766
11766
  let {
11767
11767
  componentProps = {}
@@ -11771,7 +11771,7 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
11771
11771
  schema: schema2,
11772
11772
  tableAction: tableAction2,
11773
11773
  formModel,
11774
- formActionType: formActionType2
11774
+ formActionType
11775
11775
  }) ?? {};
11776
11776
  }
11777
11777
  if (schema2.component === "Divider") {
@@ -12434,7 +12434,6 @@ function useFormValues({
12434
12434
  }
12435
12435
  return { handleFormValues, initDefault };
12436
12436
  }
12437
- const formActionType = vue.inject("formActionType");
12438
12437
  function useFormEvents({
12439
12438
  emit,
12440
12439
  getProps,
@@ -12443,8 +12442,7 @@ function useFormEvents({
12443
12442
  defaultValueRef,
12444
12443
  formElRef,
12445
12444
  schemaRef,
12446
- handleFormValues,
12447
- tableAction: tableAction2
12445
+ handleFormValues
12448
12446
  }) {
12449
12447
  async function resetFields() {
12450
12448
  const { resetFunc, submitOnReset } = vue.unref(getProps);
@@ -12640,41 +12638,20 @@ function useFormEvents({
12640
12638
  return;
12641
12639
  }
12642
12640
  const schema = [];
12643
- function processSchemas(schemas, context = {}) {
12644
- return schemas.map((schemaItem) => {
12645
- const matched = updateData.find(
12646
- (item) => item.field === schemaItem.field
12647
- );
12648
- const merged = matched ? utils$1.deepMerge(schemaItem, matched) : { ...schemaItem };
12649
- const rawComponentProps = merged.componentProps;
12650
- if (typeof rawComponentProps === "function" && merged.component === "Group") {
12651
- merged.componentProps = (ctx) => {
12652
- const originalResult = rawComponentProps(ctx);
12653
- const rawSchemas2 = originalResult.schemas || [];
12654
- const updatedSchemas = processSchemas(rawSchemas2, ctx);
12655
- return {
12656
- ...originalResult,
12657
- schemas: updatedSchemas
12658
- };
12659
- };
12660
- }
12661
- if (typeof rawComponentProps === "object" && merged.component === "Group" && Array.isArray(rawComponentProps == null ? void 0 : rawComponentProps.schemas)) {
12662
- merged.componentProps = {
12663
- ...rawComponentProps,
12664
- schemas: processSchemas(rawComponentProps.schemas, context)
12665
- };
12641
+ vue.unref(getSchema).forEach((val) => {
12642
+ let _val;
12643
+ updateData.forEach((item) => {
12644
+ if (val.field === item.field) {
12645
+ _val = item;
12666
12646
  }
12667
- return merged;
12668
12647
  });
12669
- }
12670
- const rawSchemas = vue.unref(getSchema);
12671
- schema.push(
12672
- ...processSchemas(rawSchemas, {
12673
- formModel,
12674
- formActionType,
12675
- tableAction: tableAction2
12676
- })
12677
- );
12648
+ if (_val !== void 0 && val.field === _val.field) {
12649
+ const newSchema = utils$1.deepMerge(val, _val);
12650
+ schema.push(newSchema);
12651
+ } else {
12652
+ schema.push(val);
12653
+ }
12654
+ });
12678
12655
  _setDefaultValue(schema);
12679
12656
  schemaRef.value = uniqBy(schema, "field");
12680
12657
  }
@@ -25873,8 +25850,7 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
25873
25850
  formElRef,
25874
25851
  //@ts-ignore
25875
25852
  schemaRef,
25876
- handleFormValues,
25877
- tableAction: props2.tableAction
25853
+ handleFormValues
25878
25854
  });
25879
25855
  createFormContext({
25880
25856
  resetAction: resetFields,
@@ -25914,27 +25890,28 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
25914
25890
  for (const key2 in val) {
25915
25891
  let handleSchemas = function(schemas = []) {
25916
25892
  schemas.forEach((item) => {
25917
- const isTargetField = item.field === key2;
25918
- context.schema = item;
25919
- const rawComponentProps = item.componentProps;
25920
- const resolvedProps = isFunction$5(rawComponentProps) ? rawComponentProps(context) : rawComponentProps;
25921
- if (isTargetField && (resolvedProps == null ? void 0 : resolvedProps.onModelChange)) {
25922
- resolvedProps.onModelChange(val[key2]);
25893
+ var _a2, _b;
25894
+ const isComponentProps = item.field === key2 && item.componentProps;
25895
+ if (isComponentProps && !isFunction$5(item.componentProps) && ((_a2 = item.componentProps) == null ? void 0 : _a2.onModelChange)) {
25896
+ item.componentProps.onModelChange(val[key2]);
25897
+ } else if (isComponentProps && isFunction$5(item.componentProps)) {
25898
+ const modelProps = item.componentProps({
25899
+ schema: item,
25900
+ formModel,
25901
+ formActionType,
25902
+ tableAction: props2.tableAction
25903
+ });
25904
+ if (modelProps.onModelChange) {
25905
+ modelProps.onModelChange(val[key2]);
25906
+ }
25923
25907
  }
25924
- if (item.component === "Group" && resolvedProps && Array.isArray(resolvedProps.schemas)) {
25925
- handleSchemas(resolvedProps.schemas);
25908
+ if (item.component === "Group" && ((_b = item.componentProps) == null ? void 0 : _b.schemas)) {
25909
+ handleSchemas(item.componentProps.schemas);
25926
25910
  }
25927
25911
  });
25928
25912
  };
25929
25913
  if (isEqual(vue.toRaw(val[key2]), vue.toRaw(tempFormModel[key2])))
25930
25914
  continue;
25931
- const context = {
25932
- schema: {},
25933
- // 每次赋值
25934
- formModel,
25935
- formActionType: formActionType2,
25936
- tableAction: props2.tableAction
25937
- };
25938
25915
  handleSchemas(vue.unref(getProps).schemas);
25939
25916
  }
25940
25917
  Object.assign(tempFormModel, cloneDeep(formModel));
@@ -25971,7 +25948,7 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
25971
25948
  ;
25972
25949
  }
25973
25950
  }
25974
- const formActionType2 = {
25951
+ const formActionType = {
25975
25952
  getFieldsValue,
25976
25953
  setFieldsValue,
25977
25954
  resetFields,
@@ -25986,7 +25963,7 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
25986
25963
  validate,
25987
25964
  scrollToField
25988
25965
  };
25989
- vue.provide("formActionType", formActionType2);
25966
+ vue.provide("formActionType", formActionType);
25990
25967
  const isTableForm = vue.computed(() => {
25991
25968
  return !!vue.unref(getBindValue).tableAction;
25992
25969
  });
@@ -26076,7 +26053,7 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
26076
26053
  };
26077
26054
  vue.onMounted(() => {
26078
26055
  initDefault();
26079
- emit("register", formActionType2);
26056
+ emit("register", formActionType);
26080
26057
  });
26081
26058
  return () => {
26082
26059
  const ignoreKeys = ["resetBefore", "submitBefore", "advanceBefore", "advanceAfter", "advancedSearch"];
@@ -26114,7 +26091,7 @@ const ShyForm = /* @__PURE__ */ vue.defineComponent({
26114
26091
  const realSpan = (((_a2 = schema.colProps) == null ? void 0 : _a2.span) ?? ((_c = (_b = vue.unref(getBindValue)) == null ? void 0 : _b.baseColProps) == null ? void 0 : _c.span)) / (vue.unref(ROW_SLICE2) + vue.unref(ACTION_COL2));
26115
26092
  return vue.createVNode(FormItem$2, {
26116
26093
  "tableAction": props2.tableAction,
26117
- "formActionType": formActionType2,
26094
+ "formActionType": formActionType,
26118
26095
  "schema": schema,
26119
26096
  "formProps": getProps.value,
26120
26097
  "allDefaultValues": defaultValueRef.value,
@@ -28294,7 +28271,7 @@ const EQUAL_OPERATOR_OPTIONS = ALL_OPERATOR_OPTION.filter(
28294
28271
  const CONTAIN_OPERATOR_OPTIONS = ALL_OPERATOR_OPTION.filter(
28295
28272
  (item) => ["ct"].includes(item.value)
28296
28273
  );
28297
- const useAdvancedSearch = (schemas, formActionType2) => {
28274
+ const useAdvancedSearch = (schemas, formActionType) => {
28298
28275
  const getSchemaOptions = (type4) => {
28299
28276
  switch (type4) {
28300
28277
  case "number":
@@ -28382,7 +28359,7 @@ const useAdvancedSearch = (schemas, formActionType2) => {
28382
28359
  removeSchemaByField,
28383
28360
  updateSchema,
28384
28361
  setFieldsValue
28385
- } = formActionType2;
28362
+ } = formActionType;
28386
28363
  const {
28387
28364
  schemas: [operatorSchema, valueSchema]
28388
28365
  } = componentProps;
@@ -32110,7 +32087,7 @@ const ShyFormTable = /* @__PURE__ */ vue.defineComponent({
32110
32087
  const {
32111
32088
  prefixCls: prefixCls2
32112
32089
  } = use.useDesign("ant-form-table-children");
32113
- const formActionType2 = vue.inject("formActionType");
32090
+ const formActionType = vue.inject("formActionType");
32114
32091
  const tableWrapperRef = vue.ref();
32115
32092
  const tableElRef = vue.ref();
32116
32093
  const curIndex = vue.ref(0);
@@ -32436,7 +32413,7 @@ const ShyFormTable = /* @__PURE__ */ vue.defineComponent({
32436
32413
  column: column2,
32437
32414
  record,
32438
32415
  ...args
32439
- }, formActionType2);
32416
+ }, formActionType);
32440
32417
  } catch (error2) {
32441
32418
  rulesRef[errKey].show = true;
32442
32419
  rulesRef[errKey].msg = error2;
@@ -35774,7 +35751,7 @@ const Group = /* @__PURE__ */ vue.defineComponent({
35774
35751
  schema,
35775
35752
  tableAction: tableAction2,
35776
35753
  formModel,
35777
- formActionType: formActionType2
35754
+ formActionType
35778
35755
  } = props2;
35779
35756
  let {
35780
35757
  componentProps: _componentProps,
@@ -35786,7 +35763,7 @@ const Group = /* @__PURE__ */ vue.defineComponent({
35786
35763
  schema,
35787
35764
  tableAction: tableAction2,
35788
35765
  formModel,
35789
- formActionType: formActionType2
35766
+ formActionType
35790
35767
  }) ?? {};
35791
35768
  }
35792
35769
  const realSpan = (((_a2 = schema.colProps) == null ? void 0 : _a2.span) ?? ((_c = (_b = vue.unref(contextBindValue)) == null ? void 0 : _b.baseColProps) == null ? void 0 : _c.span)) / (vue.unref(ROW_SLICE) + vue.unref(ACTION_COL));
@@ -35937,7 +35914,7 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
35937
35914
  const {
35938
35915
  schema,
35939
35916
  formModel,
35940
- formActionType: formActionType2
35917
+ formActionType
35941
35918
  } = props2;
35942
35919
  let {
35943
35920
  componentProps = {}
@@ -35946,7 +35923,7 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
35946
35923
  componentProps = componentProps({
35947
35924
  schema,
35948
35925
  formModel,
35949
- formActionType: formActionType2
35926
+ formActionType
35950
35927
  }) ?? {};
35951
35928
  }
35952
35929
  if (schema.component === "Divider") {
@@ -49567,7 +49544,7 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
49567
49544
  model: data,
49568
49545
  values: data,
49569
49546
  schema: item,
49570
- transformValue
49547
+ transformValue: vue.unref(transformValue)
49571
49548
  };
49572
49549
  };
49573
49550
  });
@@ -10,9 +10,8 @@ interface UseFormActionContext {
10
10
  formElRef: Ref<FormActionType>;
11
11
  schemaRef: Ref<FormSchema[]>;
12
12
  handleFormValues: Fn;
13
- tableAction?: any;
14
13
  }
15
- export declare function useFormEvents({ emit, getProps, formModel, getSchema, defaultValueRef, formElRef, schemaRef, handleFormValues, tableAction }: UseFormActionContext): {
14
+ export declare function useFormEvents({ emit, getProps, formModel, getSchema, defaultValueRef, formElRef, schemaRef, handleFormValues }: UseFormActionContext): {
16
15
  handleSubmit: (e?: Event) => Promise<void>;
17
16
  clearValidate: (name?: string | string[]) => Promise<void>;
18
17
  validate: (nameList?: NamePath[] | undefined) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "3.0.0-next.246",
3
+ "version": "3.0.0-next.248",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -29,8 +29,8 @@
29
29
  "vue-json-pretty": "^2.2.3",
30
30
  "vxe-table": "4.3.6",
31
31
  "xe-utils": "^3.5.7",
32
- "@shy-plugins/tinymce": "^1.0.6",
33
32
  "@shy-plugins/utils": "1.0.0-next.1",
33
+ "@shy-plugins/tinymce": "^1.0.6",
34
34
  "@shy-plugins/use": "1.0.1-next.5"
35
35
  },
36
36
  "types": "es/ui/index.d.ts",