@dt-frames/ui 2.0.8 → 2.0.10

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 (37) hide show
  1. package/es/components/curd/index.js +69 -77
  2. package/es/components/curd/index.less +2 -0
  3. package/es/components/curd/src/components/Curd.d.ts +16 -8
  4. package/es/components/curd/src/hooks/useCurd.d.ts +1 -1
  5. package/es/components/curd/src/props.d.ts +0 -1
  6. package/es/components/form/index.d.ts +1 -3160
  7. package/es/components/form/index.js +64 -98
  8. package/es/components/form/index.less +18 -0
  9. package/es/components/form/src/components/FormButtons.d.ts +13 -3
  10. package/es/components/form/src/components/FormItem.d.ts +0 -1
  11. package/es/components/form/src/components/formIcon.d.ts +11 -11
  12. package/es/components/form/src/components/formInputUseDialog.d.ts +6 -6
  13. package/es/components/form/src/hooks/useFormEvent.d.ts +1 -1
  14. package/es/components/form/src/hooks/useLabelWidth.d.ts +2 -18
  15. package/es/components/form/src/index.d.ts +2 -2
  16. package/es/components/form/src/props.d.ts +3 -4
  17. package/es/components/form/src/types/form.type.d.ts +11 -5
  18. package/es/components/form/src/types/items.type.d.ts +382 -0
  19. package/es/components/modal/index.js +22 -2
  20. package/es/components/modal/index.less +3 -0
  21. package/es/components/modal/src/components/Modal.d.ts +1 -1
  22. package/es/components/modal/src/components/ModalFooter.d.ts +13 -3
  23. package/es/components/modal/src/index.d.ts +23 -13
  24. package/es/components/modal/src/props.d.ts +2 -1
  25. package/es/components/source/index.js +8 -1
  26. package/es/components/source/types/source.type.d.ts +1 -1
  27. package/es/components/table/index.js +42 -61
  28. package/es/components/table/index.less +3 -3
  29. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +15 -5
  30. package/es/theme/index.js +144 -88
  31. package/es/theme/index.less +1 -0
  32. package/es/theme/src/components/header/components/size.d.ts +5 -5
  33. package/es/theme/src/components/header/index.d.ts +5 -5
  34. package/es/theme/src/components/header/multiple-header.d.ts +5 -5
  35. package/es/theme/src/index.d.ts +10 -10
  36. package/es/theme/transition.less +105 -0
  37. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { RadioButton, RadioGroup, Button, FormItem as FormItem$1, Col as Col$1, Row, Form as Form$1 } from "ant-design-vue/es";
2
2
  import "ant-design-vue/es/form/style";
3
3
  import "ant-design-vue/es/row/style";
4
- import { toRaw, unref, computed, getCurrentInstance, reactive, readonly, watchEffect, nextTick, defineComponent, useAttrs, openBlock, createBlock, mergeProps, isRef, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createElementVNode, createVNode, normalizeProps, guardReactiveProps, createCommentVNode, toRefs, isVNode, ref, watch, resolveDirective, normalizeStyle, withDirectives, normalizeClass, onMounted, withKeys, createSlots, renderSlot } from "vue";
5
- import { DtCache, CacheKey, deepMerge, Pages, useGo, useRedo, Language, useAppStore, isNumber, useI18n, isString, isFunction, error, useSlots, isArray, isBoolean, isNull, dispatchResize, isObject, isNullAndUnDef, isEmpty, useTimeoutFn } from "@dt-frames/core";
6
- import { cloneDeep, isEqual, omit, upperFirst, uniqBy, set } from "lodash-es";
4
+ import { toRaw, unref, computed, getCurrentInstance, reactive, readonly, watchEffect, nextTick, defineComponent, useAttrs, openBlock, createBlock, mergeProps, isRef, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, toRefs, createVNode, isVNode, ref, watch, resolveDirective, normalizeProps, normalizeStyle, withDirectives, normalizeClass, createCommentVNode, createElementVNode, onMounted, withKeys, createSlots, renderSlot, guardReactiveProps } from "vue";
5
+ import { DtCache, CacheKey, deepMerge, Pages, useGo, useRedo, Language, useAppStore, isNumber, useI18n, isString, useSlots, isArray, isFunction, error, isBoolean, isNull, dispatchResize, isObject, isNullAndUnDef, isEmpty, useTimeoutFn } from "@dt-frames/core";
6
+ import { cloneDeep, merge, isEqual, upperFirst, uniqBy, set } from "lodash-es";
7
7
  import { Input, Select, TreeSelect, Radio, Checkbox, AutoComplete, Cascader, DatePicker, InputNumber, Switch, TimePicker, Slider, Rate, Divider, Col, Tooltip, Form, FormItem } from "ant-design-vue";
8
8
  import { defineStore } from "pinia";
9
9
  import "ant-design-vue/es/radio/style";
@@ -495,18 +495,20 @@ function useLabelWidth(schemaItemRef, propsRef) {
495
495
  layout = appConf.ui.form.layout
496
496
  } = unref(propsRef);
497
497
  let width = (unref(getIsZH) ? labelWidth ?? gLabelWidth : enLabelWidth ?? gEnLabelWidth) ?? labelWidth ?? gLabelWidth ?? 0;
498
- const labelcol = { ...glabelCol, ...labelCol };
499
- const wrapcol = { ...gwrapperCol, ...wrapperCol };
498
+ const labelcol = merge({}, glabelCol, labelCol);
499
+ const wrapcol = merge({}, gwrapperCol, wrapperCol);
500
500
  width = isNumber(width) ? `${width}px` : width;
501
501
  return {
502
- labelCol: {
503
- style: { width },
504
- ...labelcol
505
- },
506
- wrapperCol: {
507
- style: { width: layout === "vertical" ? "100%" : `calc(100% - ${width})` },
508
- ...wrapcol
509
- }
502
+ labelCol: merge(
503
+ {},
504
+ { style: { width } },
505
+ labelcol
506
+ ),
507
+ wrapperCol: merge(
508
+ {},
509
+ { style: { width: layout === "vertical" ? "100%" : `calc(100% - ${width})` } },
510
+ wrapcol
511
+ )
510
512
  };
511
513
  });
512
514
  }
@@ -579,7 +581,7 @@ function useFormValue(props, key = "value", changeEvent = "change", emitData) {
579
581
  });
580
582
  return [state, setState, defaultState];
581
583
  }
582
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
584
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
583
585
  __name: "radioButton",
584
586
  props: {
585
587
  value: {
@@ -630,58 +632,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
630
632
  };
631
633
  }
632
634
  });
633
- const _export_sfc = (sfc, props) => {
634
- const target = sfc.__vccOpts || sfc;
635
- for (const [key, val] of props) {
636
- target[key] = val;
637
- }
638
- return target;
639
- };
640
- const RadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/radioButton.vue"]]);
641
- const _hoisted_1$1 = { class: "input-with-dialog" };
642
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
643
- __name: "formInputUseDialog",
644
- setup(__props) {
645
- const { t } = useI18n("UI");
646
- const attrs = useAttrs();
647
- const bindProps = computed(() => {
648
- return {
649
- ...omit(attrs, [
650
- "formValues"
651
- ]),
652
- disabled: true
653
- };
654
- });
655
- function onClickInput() {
656
- const { model, schema = {} } = attrs.formValues;
657
- if (!schema.openDialog || !isFunction(schema.openDialog)) {
658
- error(t("MUSE_FUNCTION"));
659
- return;
660
- }
661
- schema.openDialog(model);
662
- }
663
- function clearProps() {
664
- const { model, schema = {} } = attrs.formValues;
665
- [...schema.linkProps, schema.name].forEach((it) => model[it] = null);
666
- }
667
- return (_ctx, _cache) => {
668
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
669
- createElementVNode("div", { onClick: onClickInput }, [
670
- createVNode(unref(Input), normalizeProps(guardReactiveProps(unref(bindProps))), null, 16)
671
- ]),
672
- unref(attrs).formValues?.schema?.linkProps?.length ? (openBlock(), createElementBlock("i", {
673
- key: 0,
674
- class: "i mdi:close-circle",
675
- onClick: clearProps
676
- })) : createCommentVNode("v-if", true)
677
- ]);
678
- };
679
- }
680
- });
681
- const DtFormInputDialog = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/formInputUseDialog.vue"]]);
682
635
  const components = {
683
636
  Input,
684
- InputWithDialog: DtFormInputDialog,
685
637
  InputTextArea: Input.TextArea,
686
638
  InputSearch: Input.Search,
687
639
  InputGroup: Input.Group,
@@ -690,7 +642,7 @@ const components = {
690
642
  TreeSelect,
691
643
  Radio,
692
644
  RadioGroup: Radio.Group,
693
- RadioButtonGroup,
645
+ RadioButtonGroup: _sfc_main$3,
694
646
  Checkbox,
695
647
  CheckboxGroup: Checkbox.Group,
696
648
  AutoComplete,
@@ -826,7 +778,7 @@ const _sfc_main$2 = {
826
778
  const getContent = () => {
827
779
  const value = unref(getValues);
828
780
  let _con = slot ? getSlot(slots, slot, value.model) : render ? render(value.model) : renderFormItem();
829
- return component === "InputGroup" || component === "Icon" ? createVNode(FormItem, {
781
+ return component === "InputGroup" ? createVNode(FormItem, {
830
782
  "class": "m-0"
831
783
  }, _isSlot(_con) ? _con : {
832
784
  default: () => [_con]
@@ -937,10 +889,13 @@ const _sfc_main$2 = {
937
889
  return _disabled;
938
890
  });
939
891
  const getSize = () => {
940
- if (component === "Switch" && unref(getUiSize) === UiSize.LARGE) {
892
+ const {
893
+ size = unref(getUiSize)
894
+ } = props.formProps;
895
+ if (component === "Switch" && size === UiSize.LARGE) {
941
896
  return "default";
942
897
  }
943
- return unref(getUiSize) === UiSize.MIDDLE ? "default" : unref(getUiSize);
898
+ return size === UiSize.MIDDLE ? "default" : size;
944
899
  };
945
900
  const itemProps = {
946
901
  allowClear: _sProps?.allowClear ?? appConf.ui.form.allowClear,
@@ -1055,7 +1010,7 @@ const _sfc_main$2 = {
1055
1010
  let _colProps = colProps || gColProps || (mode === "search" ? appConf.ui.form.searchColspan : appConf.ui.form.dialogColspan);
1056
1011
  const values = unref(getValues);
1057
1012
  if (!component) {
1058
- if (!render && !renderCol && !slot) {
1013
+ if (!render && !renderCol && !slot && !colSlot) {
1059
1014
  error(t("NEED_RENDER"));
1060
1015
  return;
1061
1016
  }
@@ -1081,7 +1036,6 @@ const _sfc_main$2 = {
1081
1036
  };
1082
1037
  }
1083
1038
  };
1084
- const DtFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/FormItem.vue"]]);
1085
1039
  const _hoisted_1 = {
1086
1040
  key: 0,
1087
1041
  className: "preIcon pr-1"
@@ -1121,6 +1075,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1121
1075
  isAdvanced: {
1122
1076
  type: Boolean,
1123
1077
  default: true
1078
+ },
1079
+ colspan: {
1080
+ type: Object
1124
1081
  }
1125
1082
  },
1126
1083
  emits: ["handle-method"],
@@ -1140,6 +1097,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1140
1097
  Object.assign(style, {
1141
1098
  display: "inline-block"
1142
1099
  });
1100
+ return { style };
1101
+ } else if (props.mode === null) {
1102
+ Object.assign(style, {
1103
+ display: "flex",
1104
+ justifyContent: "center",
1105
+ marginBottom: "20px"
1106
+ });
1107
+ return {
1108
+ style,
1109
+ span: 24
1110
+ };
1143
1111
  }
1144
1112
  return { style };
1145
1113
  });
@@ -1162,8 +1130,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1162
1130
  }
1163
1131
  }
1164
1132
  watch(() => props.isAdvanced, (v) => {
1165
- if (v) {
1166
- nextTick(() => toggleAdvanced());
1133
+ if (v || props.mode !== "search") {
1134
+ requestAnimationFrame(toggleAdvanced);
1167
1135
  }
1168
1136
  }, {
1169
1137
  immediate: true
@@ -1204,18 +1172,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1204
1172
  icon: withCtx(() => [
1205
1173
  button.preIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1, null, 512)), [
1206
1174
  [_directive_icon, button.preIcon]
1207
- ]) : createCommentVNode("v-if", true)
1175
+ ]) : createCommentVNode("", true)
1208
1176
  ]),
1209
1177
  default: withCtx(() => [
1210
1178
  createTextVNode(" " + toDisplayString(unref(t)(button.label)) + " ", 1),
1211
1179
  button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
1212
1180
  [_directive_icon, button.postIcon]
1213
- ]) : createCommentVNode("v-if", true)
1181
+ ]) : createCommentVNode("", true)
1214
1182
  ]),
1215
1183
  _: 2
1216
1184
  }, 1032, ["type", "class", "loading", "disabled", "onClick"])), [
1217
1185
  [_directive_auth, button.auth]
1218
- ]) : createCommentVNode("v-if", true)
1186
+ ]) : createCommentVNode("", true)
1219
1187
  ], 64);
1220
1188
  }), 256)),
1221
1189
  unref(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
@@ -1225,24 +1193,22 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1225
1193
  onClick: toggleAdvanced
1226
1194
  }, {
1227
1195
  default: withCtx(() => [
1228
- createCommentVNode(" \u6536\u8D77 | \u5C55\u5F00 "),
1229
1196
  createElementVNode("span", _hoisted_3, toDisplayString(advancedRef.value ? unref(t)("UI.ADVANCED") : unref(t)("UI.EXPAND")), 1),
1230
1197
  createElementVNode("span", {
1231
1198
  class: normalizeClass(unref(getAdvanceClass))
1232
1199
  }, _hoisted_5, 2)
1233
1200
  ]),
1234
1201
  _: 1
1235
- })) : createCommentVNode("v-if", true)
1202
+ })) : createCommentVNode("", true)
1236
1203
  ]),
1237
1204
  _: 1
1238
1205
  }, 8, ["style"])
1239
1206
  ]),
1240
1207
  _: 1
1241
- }, 16)) : createCommentVNode("v-if", true);
1208
+ }, 16)) : createCommentVNode("", true);
1242
1209
  };
1243
1210
  }
1244
1211
  });
1245
- const DtFormButtons = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/FormButtons.vue"]]);
1246
1212
  const SEARCH_BTN_NAME = "UI.SEARCH";
1247
1213
  const RESET_BTN_NAME = "UI.RESET";
1248
1214
  const SEARCH_BTNS = [
@@ -1471,14 +1437,12 @@ function useFormValues({
1471
1437
  function initDefault() {
1472
1438
  const schema = unref(getSchema), obj = {};
1473
1439
  schema.forEach((item) => {
1474
- const { props = {}, name, component, defaultValue: gDefaultValue, extraName } = item;
1440
+ const { props = {}, name, component, defaultValue: gDefaultValue } = item;
1475
1441
  const { defaultValue: itemDefaultValue, mode, format, treeCheckable } = isFunction(props) ? props(formModel) : props;
1476
1442
  if (!name)
1477
1443
  return;
1478
1444
  let names = [];
1479
- if (component === "InputWithDialog") {
1480
- names = [name, ...extraName];
1481
- } else if (isArray(name)) {
1445
+ if (isArray(name)) {
1482
1446
  names = name;
1483
1447
  } else {
1484
1448
  names = [name];
@@ -1537,7 +1501,7 @@ function useFormActions(opt) {
1537
1501
  schemas,
1538
1502
  minShowColumn = appConf.ui.form?.minShowColumn || 2,
1539
1503
  showAdvancedButton = true
1540
- } = unref(getProps);
1504
+ } = unref(opt.getProps);
1541
1505
  let schema = [...schemas];
1542
1506
  if (showAdvancedButton) {
1543
1507
  schema = schemas.reduce((t, it, index) => {
@@ -1610,8 +1574,7 @@ const BasicProps = {
1610
1574
  default: () => ({})
1611
1575
  },
1612
1576
  size: {
1613
- type: String,
1614
- default: "small"
1577
+ type: String
1615
1578
  },
1616
1579
  disabled: {
1617
1580
  type: Boolean,
@@ -1800,8 +1763,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1800
1763
  });
1801
1764
  }
1802
1765
  let colspan = mode === "search" ? getAppConf.ui.form.searchColspan : getAppConf.ui.form.dialogColspan;
1766
+ if (mode !== "search") {
1767
+ return {
1768
+ colspan,
1769
+ ...{
1770
+ mode,
1771
+ showAdvancedButton: false,
1772
+ isAdvanced: false,
1773
+ buttonList
1774
+ }
1775
+ };
1776
+ }
1803
1777
  return {
1804
- ...colspan,
1778
+ colspan,
1805
1779
  ...{
1806
1780
  showAdvancedButton,
1807
1781
  buttonList
@@ -1864,7 +1838,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1864
1838
  } }), {
1865
1839
  default: withCtx(() => [
1866
1840
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
1867
- return openBlock(), createBlock(unref(DtFormItem), {
1841
+ return openBlock(), createBlock(unref(_sfc_main$2), {
1868
1842
  key: schema.name,
1869
1843
  schema,
1870
1844
  formProps: unref(getProps),
@@ -1883,7 +1857,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1883
1857
  })
1884
1858
  ]), 1032, ["schema", "formProps", "formModel", "defaultValues"]);
1885
1859
  }), 128)),
1886
- unref(getActionsProps).buttonList?.length ? (openBlock(), createBlock(unref(DtFormButtons), mergeProps({ key: 0 }, unref(getActionsProps), { onHandleMethod: unref(handleMethod) }), null, 16, ["onHandleMethod"])) : createCommentVNode("v-if", true)
1860
+ unref(getActionsProps).buttonList?.length ? (openBlock(), createBlock(unref(_sfc_main$1), mergeProps({ key: 0 }, unref(getActionsProps), { onHandleMethod: unref(handleMethod) }), null, 16, ["onHandleMethod"])) : createCommentVNode("", true)
1887
1861
  ]),
1888
1862
  _: 3
1889
1863
  }, 16)
@@ -1893,7 +1867,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1893
1867
  };
1894
1868
  }
1895
1869
  });
1896
- const Forms = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/index.vue"]]);
1897
1870
  function useForm(props) {
1898
1871
  const formRef = ref(null);
1899
1872
  const loadedRef = ref(false);
@@ -1964,14 +1937,7 @@ function useForm(props) {
1964
1937
  };
1965
1938
  return [register, methods];
1966
1939
  }
1967
- const withInstall = (comp) => {
1968
- comp.install = (app) => {
1969
- app.component(comp.name, comp);
1970
- };
1971
- return comp;
1972
- };
1973
- const DtForm = withInstall(Forms);
1974
1940
  export {
1975
- DtForm,
1941
+ _sfc_main as DtForm,
1976
1942
  useForm
1977
1943
  };
@@ -317,6 +317,24 @@
317
317
  }
318
318
  }
319
319
 
320
+ .basic-arrow{
321
+ display: inline-block;
322
+ cursor: pointer;
323
+ transform: rotate(180deg);
324
+ transition: all 0.3s ease 0.1s;
325
+ transform-origin: center center;
326
+
327
+
328
+ .dt-icon{
329
+ vertical-align: middle;
330
+ color: @primary-color !important;
331
+ }
332
+
333
+ &--active{
334
+ transform: rotate(0deg);
335
+ }
336
+ }
337
+
320
338
  .ant-select-dropdown.small .ant-select-item.ant-select-item-option {
321
339
  font-size: 12px;
322
340
  line-height: 20px;
@@ -26,6 +26,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
26
26
  type: BooleanConstructor;
27
27
  default: boolean;
28
28
  };
29
+ colspan: {
30
+ type: ObjectConstructor;
31
+ };
29
32
  }, {
30
33
  props: any;
31
34
  emits: (event: "handle-method", ...args: any[]) => void;
@@ -44,6 +47,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
44
47
  showAdvanceRef: import("vue").ComputedRef<boolean>;
45
48
  colOpt: import("vue").ComputedRef<{
46
49
  style: Recordable<any>;
50
+ span?: undefined;
51
+ } | {
52
+ style: Recordable<any>;
53
+ span: number;
47
54
  }>;
48
55
  getAdvanceClass: import("vue").ComputedRef<(string | {
49
56
  'basic-arrow--active': boolean;
@@ -75,14 +82,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
75
82
  type: BooleanConstructor;
76
83
  default: boolean;
77
84
  };
85
+ colspan: {
86
+ type: ObjectConstructor;
87
+ };
78
88
  }>> & {
79
89
  "onHandle-method"?: (...args: any[]) => any;
80
90
  }, {
81
91
  mode: "search" | "dialog";
82
- minShowColumn: number;
83
- showAdvancedButton: boolean;
84
92
  show: boolean;
85
- isAdvanced: boolean;
93
+ showAdvancedButton: boolean;
94
+ minShowColumn: number;
86
95
  buttonList: ButtonProps[];
96
+ isAdvanced: boolean;
87
97
  }>;
88
98
  export default _sfc_main;
@@ -70,7 +70,6 @@ declare const _sfc_main: {
70
70
  };
71
71
  size: {
72
72
  type: PropType<"middle" | "small" | "large">;
73
- default: string;
74
73
  };
75
74
  disabled: {
76
75
  type: BooleanConstructor;
@@ -143,7 +143,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
143
143
  'onUpdate:value': import("vue").PropType<(val: string) => void>;
144
144
  valueModifiers: ObjectConstructor;
145
145
  hidden: BooleanConstructor;
146
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "value" | "disabled" | "allowClear" | "loading" | "hidden" | "readonly" | "autofocus" | "lazy" | "bordered">;
146
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "value" | "disabled" | "allowClear" | "loading" | "hidden" | "bordered" | "autofocus" | "readonly" | "lazy">;
147
147
  $attrs: {
148
148
  [x: string]: unknown;
149
149
  };
@@ -153,8 +153,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
153
153
  $slots: Readonly<{
154
154
  [name: string]: import("vue").Slot;
155
155
  }>;
156
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
157
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
156
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
157
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
158
158
  $emit: (event: string, ...args: any[]) => void;
159
159
  $el: any;
160
160
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -236,7 +236,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
236
236
  allowClear: boolean;
237
237
  bordered: boolean;
238
238
  lazy: boolean;
239
- }> & {
239
+ }, {}, string> & {
240
240
  beforeCreate?: (() => void) | (() => void)[];
241
241
  created?: (() => void) | (() => void)[];
242
242
  beforeMount?: (() => void) | (() => void)[];
@@ -251,7 +251,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
251
251
  unmounted?: (() => void) | (() => void)[];
252
252
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
253
253
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
254
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
254
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
255
255
  };
256
256
  $forceUpdate: () => void;
257
257
  $nextTick: typeof import("vue").nextTick;
@@ -407,7 +407,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
407
407
  allowClear: boolean;
408
408
  bordered: boolean;
409
409
  lazy: boolean;
410
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
410
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
411
411
  readonly Group: import("vue").DefineComponent<{
412
412
  prefixCls: StringConstructor;
413
413
  size: {
@@ -1024,8 +1024,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
1024
1024
  $slots: Readonly<{
1025
1025
  [name: string]: import("vue").Slot;
1026
1026
  }>;
1027
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
1028
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
1027
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
1028
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
1029
1029
  $emit: (event: string, ...args: any[]) => void;
1030
1030
  $el: any;
1031
1031
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -1084,7 +1084,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1084
1084
  ghost: boolean;
1085
1085
  danger: boolean;
1086
1086
  htmlType: import("ant-design-vue/lib/button/buttonTypes").ButtonHTMLType;
1087
- }> & {
1087
+ }, {}, string> & {
1088
1088
  beforeCreate?: (() => void) | (() => void)[];
1089
1089
  created?: (() => void) | (() => void)[];
1090
1090
  beforeMount?: (() => void) | (() => void)[];
@@ -1099,7 +1099,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1099
1099
  unmounted?: (() => void) | (() => void)[];
1100
1100
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
1101
1101
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
1102
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
1102
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
1103
1103
  };
1104
1104
  $forceUpdate: () => void;
1105
1105
  $nextTick: typeof import("vue").nextTick;
@@ -1211,7 +1211,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1211
1211
  ghost: boolean;
1212
1212
  danger: boolean;
1213
1213
  htmlType: import("ant-design-vue/lib/button/buttonTypes").ButtonHTMLType;
1214
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
1214
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
1215
1215
  readonly Group: import("vue").DefineComponent<{
1216
1216
  prefixCls: StringConstructor;
1217
1217
  size: {
@@ -96,7 +96,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
96
96
  'onUpdate:value': import("vue").PropType<(val: string) => void>;
97
97
  valueModifiers: ObjectConstructor;
98
98
  hidden: BooleanConstructor;
99
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "value" | "disabled" | "allowClear" | "loading" | "hidden" | "readonly" | "autofocus" | "lazy" | "bordered">;
99
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "value" | "disabled" | "allowClear" | "loading" | "hidden" | "bordered" | "autofocus" | "readonly" | "lazy">;
100
100
  $attrs: {
101
101
  [x: string]: unknown;
102
102
  };
@@ -106,8 +106,8 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
106
106
  $slots: Readonly<{
107
107
  [name: string]: import("vue").Slot;
108
108
  }>;
109
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
110
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
109
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
110
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
111
111
  $emit: (event: string, ...args: any[]) => void;
112
112
  $el: any;
113
113
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -189,7 +189,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
189
189
  allowClear: boolean;
190
190
  bordered: boolean;
191
191
  lazy: boolean;
192
- }> & {
192
+ }, {}, string> & {
193
193
  beforeCreate?: (() => void) | (() => void)[];
194
194
  created?: (() => void) | (() => void)[];
195
195
  beforeMount?: (() => void) | (() => void)[];
@@ -204,7 +204,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
204
204
  unmounted?: (() => void) | (() => void)[];
205
205
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
206
206
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
207
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
207
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
208
208
  };
209
209
  $forceUpdate: () => void;
210
210
  $nextTick: typeof import("vue").nextTick;
@@ -360,7 +360,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
360
360
  allowClear: boolean;
361
361
  bordered: boolean;
362
362
  lazy: boolean;
363
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
363
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
364
364
  readonly Group: import("vue").DefineComponent<{
365
365
  prefixCls: StringConstructor;
366
366
  size: {
@@ -18,7 +18,7 @@ export declare function useFormEvents({ emits, getSchema, formModel, defaultValu
18
18
  clearValidate: (name?: string | string[]) => Promise<void>;
19
19
  resetForms: () => void;
20
20
  removeFormByName: (names: string | string[]) => void;
21
- validateFields: (nameList: (string | number)[]) => Promise<void>;
21
+ validateFields: (nameList: (string | number)[]) => Promise<any>;
22
22
  setFormValues: (values: Recordable | null) => Promise<void>;
23
23
  validate: (nameList: (string | number)[]) => Promise<any>;
24
24
  appendFormItems: (schema: FormSchema[], prefixName?: string, first?: boolean) => void;
@@ -1,22 +1,6 @@
1
1
  import { Ref } from "vue";
2
2
  import { FormProps, FormSchema } from "../types/form.type";
3
3
  export declare function useLabelWidth(schemaItemRef: Ref<FormSchema>, propsRef: Ref<FormProps>): import("vue").ComputedRef<{
4
- labelCol: {
5
- style: any;
6
- span?: string | number;
7
- order?: string | number;
8
- offset?: string | number;
9
- md?: string | number;
10
- xl?: string | number;
11
- xxl?: string | number;
12
- };
13
- wrapperCol: {
14
- style: any;
15
- span?: string | number;
16
- order?: string | number;
17
- offset?: string | number;
18
- md?: string | number;
19
- xl?: string | number;
20
- xxl?: string | number;
21
- };
4
+ labelCol: any;
5
+ wrapperCol: any;
22
6
  }>;
@@ -2513,7 +2513,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2513
2513
  setFormValues: (values: Recordable<any>) => Promise<void>;
2514
2514
  appendFormItems: (schema: FormSchema[], prefixName?: string, first?: boolean) => void;
2515
2515
  validate: (nameList: (string | number)[]) => Promise<any>;
2516
- validateFields: (nameList: (string | number)[]) => Promise<void>;
2516
+ validateFields: (nameList: (string | number)[]) => Promise<any>;
2517
2517
  getFormValues: () => Recordable<any>;
2518
2518
  formActionMethods: {
2519
2519
  setProps: (formProps: FormProps) => any;
@@ -2525,7 +2525,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2525
2525
  setFormValues: (values: Recordable<any>) => Promise<void>;
2526
2526
  appendFormItems: (schema: FormSchema[], prefixName?: string, first?: boolean) => void;
2527
2527
  validate: (nameList: (string | number)[]) => Promise<any>;
2528
- validateFields: (nameList: (string | number)[]) => Promise<void>;
2528
+ validateFields: (nameList: (string | number)[]) => Promise<any>;
2529
2529
  getFormValues: () => Recordable<any>;
2530
2530
  };
2531
2531
  getActionsProps: import("vue").ComputedRef<Recordable<any>>;
@@ -16,7 +16,7 @@ export declare const BasicProps: {
16
16
  default: () => {};
17
17
  };
18
18
  layout: {
19
- type: PropType<"vertical" | "inline" | "horizontal">;
19
+ type: PropType<"vertical" | "horizontal" | "inline">;
20
20
  default: string;
21
21
  };
22
22
  labelWidth: {
@@ -42,7 +42,7 @@ export declare const BasicProps: {
42
42
  rowProps: {
43
43
  type: PropType<Partial<import("vue").ExtractPropTypes<{
44
44
  align: PropType<"stretch" | "bottom" | "top" | "middle">;
45
- justify: PropType<"space-around" | "space-between" | "center" | "end" | "start">;
45
+ justify: PropType<"start" | "space-around" | "space-between" | "center" | "end">;
46
46
  prefixCls: StringConstructor;
47
47
  gutter: {
48
48
  type: PropType<import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter]>;
@@ -60,8 +60,7 @@ export declare const BasicProps: {
60
60
  default: () => {};
61
61
  };
62
62
  size: {
63
- type: PropType<"middle" | "small" | "large">;
64
- default: string;
63
+ type: PropType<"small" | "middle" | "large">;
65
64
  };
66
65
  disabled: {
67
66
  type: BooleanConstructor;