cnhis-design-vue 3.1.14-beta.16 → 3.1.14-beta.17

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 (43) hide show
  1. package/es/packages/big-table/index.d.ts +13 -0
  2. package/es/packages/big-table/src/BigTable.vue.d.ts +18 -19
  3. package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +3 -0
  4. package/es/packages/big-table/src/bigTableProps.d.ts +4 -0
  5. package/es/packages/big-table/src/bigTableProps.js +1 -0
  6. package/es/packages/big-table/src/components/edit-form/edit-date.js +11 -3
  7. package/es/packages/big-table/src/components/edit-form/edit-input.js +15 -4
  8. package/es/packages/big-table/src/components/edit-form/edit-time.d.ts +43 -0
  9. package/es/packages/big-table/src/components/edit-form/edit-time.js +52 -0
  10. package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +51 -12
  11. package/es/packages/big-table/src/hooks/useEdit.d.ts +42 -0
  12. package/es/packages/big-table/src/hooks/useEdit.js +2 -0
  13. package/es/packages/big-table/src/hooks/useFormat.js +8 -1
  14. package/es/packages/big-table/style/index.css +11 -0
  15. package/es/packages/button-print/src/utils/print.d.ts +1 -1
  16. package/es/packages/button-print/src/utils/print.js +4 -4
  17. package/es/packages/form-render/index.d.ts +0 -1
  18. package/es/packages/form-render/src/FormRender.js +2 -2
  19. package/es/packages/form-render/src/FormRender.vue.d.ts +0 -1
  20. package/es/packages/form-render/src/components/renderer/cascader.d.ts +4 -4
  21. package/es/packages/form-render/src/components/renderer/cascader.js +44 -45
  22. package/es/packages/form-render/src/components/renderer/combination.js +9 -9
  23. package/es/packages/form-render/src/components/renderer/formItem.js +1 -1
  24. package/es/packages/form-render/src/components/renderer/radio.d.ts +12 -4
  25. package/es/packages/form-render/src/components/renderer/radio.js +23 -5
  26. package/es/packages/form-render/src/components/renderer/select.js +45 -49
  27. package/es/packages/form-render/src/components/renderer/simpleComponent.d.ts +3 -2
  28. package/es/packages/form-render/src/hooks/useAsyncQueue.d.ts +1 -1
  29. package/es/packages/form-render/src/hooks/useChangeContext.d.ts +1 -1
  30. package/es/packages/form-render/src/hooks/useChangeContext.js +1 -1
  31. package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +2 -2
  32. package/es/packages/form-render/src/hooks/useFormItemDeps.d.ts +4 -3
  33. package/es/packages/form-render/src/hooks/useFormRequest.d.ts +2 -2
  34. package/es/packages/form-render/src/types/fieldItem.d.ts +122 -35
  35. package/es/packages/form-render/src/types/index.d.ts +4 -2
  36. package/es/packages/form-render/src/utils/index.d.ts +3 -6
  37. package/es/packages/index.css +14 -0
  38. package/es/packages/info-header/style/index.css +3 -0
  39. package/es/packages/shortcut-setter/index.d.ts +0 -1
  40. package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -1
  41. package/es/src/utils/anime.d.ts +1 -1
  42. package/global.d.ts +8 -8
  43. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, inject, computed, watch, createVNode } from 'vue';
1
+ import { defineComponent, ref, computed, inject, watch, createVNode } from 'vue';
2
2
  import { isField } from '@formily/core';
3
3
  import { isEqual } from 'lodash-es';
4
4
  import { InjectAsyncQueue } from '../../constants/index.js';
@@ -32,18 +32,43 @@ const script = defineComponent({
32
32
  slots,
33
33
  emit
34
34
  }) {
35
- const remoteOptions = ref(null);
36
- const asyncQueue = inject(InjectAsyncQueue);
35
+ const remoteOptions = ref();
37
36
  const {
38
37
  field,
39
38
  title
40
39
  } = useFormField();
40
+ const labelKey = computed(() => {
41
+ var _a, _b;
42
+ return (_b = (_a = props.urlConfig) == null ? void 0 : _a.nameKey) != null ? _b : "text";
43
+ });
44
+ const valueKey = computed(() => {
45
+ var _a, _b;
46
+ return (_b = (_a = props.urlConfig) == null ? void 0 : _a.valueKey) != null ? _b : "value";
47
+ });
48
+ const _value = computed(() => {
49
+ try {
50
+ const parsed = Array.isArray(props.value) ? props.value : JSON.parse(props.value || "");
51
+ if (!Array.isArray(parsed) || !parsed.length)
52
+ return null;
53
+ return parsed.map((option) => option[labelKey.value]).join(" / ");
54
+ } catch (e) {
55
+ return null;
56
+ }
57
+ });
58
+ function updateValue(_, __, options) {
59
+ emit("update:value", options.map(optionSimplify));
60
+ function optionSimplify(option) {
61
+ return {
62
+ ...option,
63
+ label: option[labelKey.value],
64
+ children: void 0,
65
+ parent: void 0
66
+ };
67
+ }
68
+ }
69
+ const asyncQueue = inject(InjectAsyncQueue);
41
70
  async function fetchData(option) {
42
- if (!option && remoteOptions.value)
43
- return;
44
- if (!configFor(props))
45
- return;
46
- if (deepFor(option) + 1 >= deepFor(props))
71
+ if (notNeedToFetchData(props, option))
47
72
  return;
48
73
  const data = await asyncQueue.addAsync(createRequestParams(deepFor(option), configFor(props), title.value, option));
49
74
  if (!data.length && option) {
@@ -54,6 +79,9 @@ const script = defineComponent({
54
79
  }
55
80
  const result = data.map((item) => optionNormalize(item, deepFor(option)));
56
81
  option ? option.children = result : remoteOptions.value = result;
82
+ function notNeedToFetchData(props2, option2) {
83
+ return !configFor(props2) || !option2 && remoteOptions.value || deepFor(option2) >= deepFor(props2) - 1;
84
+ }
57
85
  function createRequestParams(deep, config, key, option2) {
58
86
  const params = {
59
87
  lvlnr: deep + 1 + ""
@@ -95,9 +123,6 @@ const script = defineComponent({
95
123
  return (_a = target == null ? void 0 : target.depth) != null ? _a : -1;
96
124
  }
97
125
  }
98
- const parsedOptions = computed(() => {
99
- return remoteOptions.value || props.options || [];
100
- });
101
126
  watch(() => props.value, (n, o) => {
102
127
  var _a, _b;
103
128
  n != null && o == null && fetchData();
@@ -111,40 +136,14 @@ const script = defineComponent({
111
136
  remoteOptions.value = null;
112
137
  await fetchData();
113
138
  });
114
- const labelKey = computed(() => {
115
- var _a, _b;
116
- return (_b = (_a = props.urlConfig) == null ? void 0 : _a.nameKey) != null ? _b : "text";
117
- });
118
- const valueKey = computed(() => {
119
- var _a, _b;
120
- return (_b = (_a = props.urlConfig) == null ? void 0 : _a.valueKey) != null ? _b : "value";
121
- });
122
- const _value = computed(() => {
123
- try {
124
- const parsed = Array.isArray(props.value) ? props.value : JSON.parse(props.value || "");
125
- if (!Array.isArray(parsed) || !parsed.length)
126
- return null;
127
- return parsed.map((option) => option[labelKey.value]).join(" / ");
128
- } catch (e) {
129
- return null;
130
- }
131
- });
132
- function updateValue(_, __, options) {
133
- emit("update:value", options.map(optionSimplify));
134
- function optionSimplify(option) {
135
- return {
136
- ...option,
137
- label: option[labelKey.value],
138
- children: void 0,
139
- parent: void 0
140
- };
141
- }
142
- }
143
139
  const show = ref(false);
144
140
  function updateShow(v) {
145
141
  show.value = !!v;
146
142
  v && fetchData();
147
143
  }
144
+ const parsedOptions = computed(() => {
145
+ return remoteOptions.value || props.options || [];
146
+ });
148
147
  function focusDecorator(onFocus) {
149
148
  return (...args) => {
150
149
  if (isField(field.value)) {
@@ -155,17 +154,17 @@ const script = defineComponent({
155
154
  }
156
155
  return () => {
157
156
  return createVNode(NCascader, {
158
- "value": _value.value,
157
+ "remote": true,
158
+ "checkStrategy": "child",
159
159
  "show": !!show.value,
160
+ "onUpdate:show": updateShow,
161
+ "value": _value.value,
160
162
  "onUpdate:value": updateValue,
161
- "remote": true,
162
163
  "labelField": labelKey.value,
163
164
  "valueField": valueKey.value,
164
165
  "options": parsedOptions.value,
165
- "checkStrategy": "child",
166
166
  "onLoad": fetchData,
167
- "onFocus": focusDecorator(props.onFocus),
168
- "onUpdate:show": updateShow
167
+ "onFocus": focusDecorator(props.onFocus)
169
168
  }, slots);
170
169
  };
171
170
  }
@@ -42,15 +42,6 @@ const script = defineComponent({
42
42
  return 0;
43
43
  return ~~props.maxGroupNum;
44
44
  });
45
- watch(maxGroupNum, (value) => {
46
- if (groupNum.value <= value)
47
- return;
48
- groupNum.value = value;
49
- _values.value.splice(groupNum.value);
50
- emitChange();
51
- }, {
52
- immediate: true
53
- });
54
45
  function add() {
55
46
  groupNum.value++;
56
47
  _values.value.push({});
@@ -61,6 +52,15 @@ const script = defineComponent({
61
52
  _values.value.splice(idx, 1);
62
53
  emitChange();
63
54
  }
55
+ watch(maxGroupNum, (value) => {
56
+ if (groupNum.value <= value)
57
+ return;
58
+ groupNum.value = value;
59
+ _values.value.splice(groupNum.value);
60
+ emitChange();
61
+ }, {
62
+ immediate: true
63
+ });
64
64
  const _values = ref([{}]);
65
65
  function initValues(data) {
66
66
  if (!data)
@@ -60,7 +60,7 @@ const FORM_ITEM = connect(script, mapProps({
60
60
  const feedback = !isVoidField(field) ? field.selfErrors.length ? field.selfErrors.join(",") : void 0 : void 0;
61
61
  return {
62
62
  ...props,
63
- required: field.required,
63
+ required: isVoidField(field) ? void 0 : field.required,
64
64
  class: "form-render__formItem",
65
65
  style: {
66
66
  "--form-item-column": (_a = props.span) != null ? _a : 3
@@ -1,7 +1,9 @@
1
1
  import { AnyObject } from '../../../../../../es/src/types';
2
2
  import { PropType } from 'vue';
3
3
  export declare const RADIO: import("vue").DefineComponent<{
4
- value: {};
4
+ value: {
5
+ type: (NumberConstructor | StringConstructor)[];
6
+ };
5
7
  options: {
6
8
  type: PropType<AnyObject[]>;
7
9
  default: () => never[];
@@ -10,8 +12,11 @@ export declare const RADIO: import("vue").DefineComponent<{
10
12
  type: BooleanConstructor;
11
13
  default: boolean;
12
14
  };
13
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
- value: {};
15
+ onChange: {};
16
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ value: {
18
+ type: (NumberConstructor | StringConstructor)[];
19
+ };
15
20
  options: {
16
21
  type: PropType<AnyObject[]>;
17
22
  default: () => never[];
@@ -20,7 +25,10 @@ export declare const RADIO: import("vue").DefineComponent<{
20
25
  type: BooleanConstructor;
21
26
  default: boolean;
22
27
  };
23
- }>>, {
28
+ onChange: {};
29
+ }>> & {
30
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
31
+ }, {
24
32
  options: AnyObject[];
25
33
  vertical: boolean;
26
34
  }>;
@@ -1,11 +1,13 @@
1
- import { defineComponent, createVNode } from 'vue';
1
+ import { defineComponent, computed, createVNode } from 'vue';
2
2
  import { connect, mapProps } from '@formily/vue';
3
3
  import { NRadioGroup, NSpace, NRadio } from 'naive-ui';
4
4
  import { assignUpdateValue } from '../../utils/index.js';
5
5
 
6
6
  const script = defineComponent({
7
7
  props: {
8
- value: {},
8
+ value: {
9
+ type: [String, Number]
10
+ },
9
11
  options: {
10
12
  type: Array,
11
13
  default: () => []
@@ -13,12 +15,28 @@ const script = defineComponent({
13
15
  vertical: {
14
16
  type: Boolean,
15
17
  default: false
16
- }
18
+ },
19
+ onChange: {}
17
20
  },
18
- setup(props) {
21
+ emits: ["update:value"],
22
+ setup(props, {
23
+ emit
24
+ }) {
25
+ function dangerousTypeTransform(value) {
26
+ return value + "";
27
+ }
28
+ const valueRef = computed({
29
+ get() {
30
+ return dangerousTypeTransform(props.value);
31
+ },
32
+ set(v) {
33
+ emit("update:value", v);
34
+ }
35
+ });
19
36
  return () => {
20
37
  return createVNode(NRadioGroup, {
21
- "value": props.value
38
+ "value": valueRef.value,
39
+ "onUpdate:value": ($event) => valueRef.value = $event
22
40
  }, {
23
41
  default: () => [createVNode(NSpace, {
24
42
  "vertical": props.vertical
@@ -1,7 +1,7 @@
1
- import { defineComponent, ref, inject, computed, watch, createVNode } from 'vue';
1
+ import { defineComponent, ref, computed, inject, watch, createVNode } from 'vue';
2
2
  import { isField } from '@formily/core';
3
3
  import { isEqual, cloneDeep } from 'lodash-es';
4
- import { InjectAsyncQueue, InjectionFormItemDepsCollector, InjectionChangeContextCollector } from '../../constants/index.js';
4
+ import { InjectionChangeContextCollector, InjectAsyncQueue, InjectionFormItemDepsCollector } from '../../constants/index.js';
5
5
  import { assignUpdateValue, traverseDependKey } from '../../utils/index.js';
6
6
  import { connect, mapProps } from '@formily/vue';
7
7
  import { NSelect } from 'naive-ui';
@@ -32,46 +32,52 @@ const script = defineComponent({
32
32
  }) {
33
33
  const remoteOptions = ref(null);
34
34
  const lastSearch = ref("");
35
- const asyncQueue = inject(InjectAsyncQueue);
35
+ const labelKey = computed(() => {
36
+ var _a, _b;
37
+ return (_b = (_a = props.urlConfig) == null ? void 0 : _a.nameKey) != null ? _b : "text";
38
+ });
39
+ const valueKey = computed(() => {
40
+ var _a, _b;
41
+ return (_b = (_a = props.urlConfig) == null ? void 0 : _a.valueKey) != null ? _b : "value";
42
+ });
43
+ const changeContextCollector = inject(InjectionChangeContextCollector);
44
+ function update(v, option) {
45
+ changeContextCollector == null ? void 0 : changeContextCollector.setContext(fieldKey.value, "currentOption", cloneDeep(option));
46
+ emit("update:value", v);
47
+ }
36
48
  const {
37
49
  title,
38
50
  field,
39
51
  fieldKey
40
52
  } = useFormField();
41
- function filterOption(options, searchContent) {
42
- return options.filter((option) => {
43
- return !searchContent || String(option[labelKey.value]).includes(searchContent);
44
- });
45
- }
53
+ const asyncQueue = inject(InjectAsyncQueue);
46
54
  async function fetchData(content) {
47
55
  lastSearch.value = content || "";
48
- if (remoteOptions.value)
49
- return;
50
- const config = props.urlConfig;
51
- if (!config) {
56
+ if (!configFor(props)) {
52
57
  return remoteOptions.value = null;
53
58
  }
54
- try {
55
- remoteOptions.value = await asyncQueue.addAsync({
56
- ...createParams(config, field.value),
57
- key: title.value
58
- });
59
- } catch (e) {
60
- remoteOptions.value = null;
61
- }
62
- function createParams(config2, field2) {
59
+ if (remoteOptions.value)
60
+ return;
61
+ remoteOptions.value = await asyncQueue.addAsync({
62
+ ...createParams(configFor(props), field.value, title.value)
63
+ });
64
+ function createParams(config, field2, key) {
63
65
  const _params = {};
64
- traverseDependKey(config2.dependKey, (dependKey, valueKey2) => {
66
+ traverseDependKey(config.dependKey, (dependKey, valueKey2) => {
65
67
  const _field = field2.query(dependKey).take();
66
68
  if (isField(_field)) {
67
69
  _params[valueKey2] = _field.value;
68
70
  }
69
71
  });
70
72
  return {
71
- ...config2,
72
- params: Object.assign({}, config2.params, _params)
73
+ ...config,
74
+ params: Object.assign({}, config.params, _params),
75
+ key
73
76
  };
74
77
  }
78
+ function configFor(target) {
79
+ return target.urlConfig;
80
+ }
75
81
  }
76
82
  const parsedOptions = computed(() => {
77
83
  if (remoteOptions.value)
@@ -79,44 +85,34 @@ const script = defineComponent({
79
85
  if (!Array.isArray(props.options))
80
86
  return [];
81
87
  return filterOption(props.options, lastSearch.value);
88
+ function filterOption(options, searchContent) {
89
+ return options.filter((option) => {
90
+ return !searchContent || String(option[labelKey.value]).includes(searchContent);
91
+ });
92
+ }
82
93
  });
83
94
  const formItemDepsCollector = inject(InjectionFormItemDepsCollector);
84
95
  watch(() => props.urlConfig, (config, oldConfig) => {
85
96
  if (isEqual(config, oldConfig))
86
97
  return;
87
98
  remoteOptions.value = null;
88
- config && formItemDepsCollector.setDeps(fieldKey.value, config.dependKey || [], async () => {
99
+ if (!config)
100
+ return;
101
+ formItemDepsCollector.setDeps(fieldKey.value, config.dependKey || [], async () => {
89
102
  remoteOptions.value = null;
90
103
  emit("update:value", null);
91
104
  });
92
- config && fetchData();
105
+ props.value && fetchData();
93
106
  }, {
94
107
  immediate: true
95
108
  });
96
109
  watch(() => props.value, (n, o) => {
97
110
  var _a, _b;
98
- if (o == null && n != null) {
99
- fetchData();
100
- }
101
- if (isField(field.value) && field.value.visited) {
102
- (_b = (_a = field.value).validate) == null ? void 0 : _b.call(_a);
103
- }
111
+ o == null && n != null && fetchData();
112
+ isField(field.value) && field.value.visited && ((_b = (_a = field.value).validate) == null ? void 0 : _b.call(_a));
104
113
  }, {
105
114
  immediate: true
106
115
  });
107
- const changeContextCollector = inject(InjectionChangeContextCollector);
108
- function update(v, option) {
109
- changeContextCollector == null ? void 0 : changeContextCollector.setContext(fieldKey.value, "currentOption", cloneDeep(option));
110
- emit("update:value", v);
111
- }
112
- const labelKey = computed(() => {
113
- var _a, _b;
114
- return (_b = (_a = props.urlConfig) == null ? void 0 : _a.nameKey) != null ? _b : "text";
115
- });
116
- const valueKey = computed(() => {
117
- var _a, _b;
118
- return (_b = (_a = props.urlConfig) == null ? void 0 : _a.valueKey) != null ? _b : "value";
119
- });
120
116
  function focusDecorator(onFocus) {
121
117
  return (...args) => {
122
118
  if (isField(field.value)) {
@@ -126,16 +122,16 @@ const script = defineComponent({
126
122
  };
127
123
  }
128
124
  return () => createVNode(NSelect, {
129
- "value": props.value,
130
- "onUpdate:value": update,
131
125
  "remote": true,
132
126
  "filterable": true,
127
+ "value": props.value,
128
+ "onUpdate:value": update,
133
129
  "labelField": labelKey.value,
134
130
  "valueField": valueKey.value,
131
+ "options": parsedOptions.value,
135
132
  "onSearch": fetchData,
136
133
  "onUpdate:show": (show) => show && fetchData(),
137
- "onFocus": focusDecorator(props.onFocus),
138
- "options": parsedOptions.value
134
+ "onFocus": focusDecorator(props.onFocus)
139
135
  }, slots);
140
136
  }
141
137
  });
@@ -1,5 +1,6 @@
1
+ import { AnyObject } from '../../../../../../es/src/types';
1
2
  export declare const TEXT: {
2
- (props: any): JSX.Element;
3
+ (props: AnyObject): JSX.Element;
3
4
  props: {
4
5
  content: {};
5
6
  fieldItem: {};
@@ -7,7 +8,7 @@ export declare const TEXT: {
7
8
  };
8
9
  };
9
10
  export declare const BUTTON: {
10
- (props: any): JSX.Element;
11
+ (props: AnyObject): JSX.Element;
11
12
  props: {
12
13
  onClick: {};
13
14
  fieldItem: {};
@@ -34,7 +34,7 @@ export declare class AsyncQueue<T = any, K = any, R = any> {
34
34
  export declare function useAsyncQueue(): {
35
35
  create: (parallelism?: number) => AsyncQueue<FormAsyncQueueItem, any, {
36
36
  label: string;
37
- value: any;
37
+ value: unknown;
38
38
  }[]>;
39
39
  };
40
40
  export {};
@@ -1,7 +1,7 @@
1
1
  import { FormChangeContext } from '../types';
2
2
  export declare class ContextCollector {
3
3
  private readonly contextMap;
4
- setContext(key: string, prop: keyof FormChangeContext, value: any): void;
4
+ setContext<T extends keyof FormChangeContext>(key: string, prop: T, value: FormChangeContext[T]): void;
5
5
  getContext(key: string): Partial<{
6
6
  currentOption: import("../../../../src/types").AnyObject;
7
7
  }>;
@@ -4,7 +4,7 @@ class ContextCollector {
4
4
  }
5
5
  setContext(key, prop, value) {
6
6
  const context = this.contextMap.get(key) || {};
7
- Reflect.set(context, prop, value);
7
+ context[prop] = value;
8
8
  this.contextMap.set(key, context);
9
9
  }
10
10
  getContext(key) {
@@ -6,9 +6,10 @@ import { fieldKeyEscape, arrayed, createLinebarId, transformDateFormat } from '.
6
6
  function useFieldListAdaptor(collector, uuid) {
7
7
  const { createValidatorSchema } = useFormValidator();
8
8
  const createStandardSchema = (item) => {
9
+ var _a;
9
10
  const result = {
10
11
  name: item.val_key,
11
- type: "string",
12
+ type: (_a = item.fieldType) != null ? _a : "string",
12
13
  title: item.alias || item.name,
13
14
  "x-component": item.html_type,
14
15
  "x-component-props": {
@@ -127,7 +128,6 @@ function useFieldListAdaptor(collector, uuid) {
127
128
  };
128
129
  const createCustomSchema = (item) => {
129
130
  const schema = createStandardSchema(item);
130
- item.fieldType && (schema.type = item.fieldType);
131
131
  Object.assign(schema["x-component-props"], {
132
132
  fieldItem: item
133
133
  });
@@ -1,8 +1,9 @@
1
- import { ArrayAble, Func } from '../../../../../es/src/types';
1
+ import { Func } from '../../../../../es/src/types';
2
+ import { DependKeyType } from '../../../../../es/packages/form-render';
2
3
  export declare class FormItemDepsCollector {
3
4
  private readonly collector;
4
- setDeps(key: string, dependKeys: ArrayAble<string> | Record<string, string> | ArrayAble<Record<'paramName' | 'paramValue', string>>, callback: Func): void;
5
- trigger(dependKey: string, payload?: any): void;
5
+ setDeps(key: string, dependKeys: DependKeyType, callback: Func): void;
6
+ trigger(dependKey: string, payload?: unknown): void;
6
7
  }
7
8
  export declare function useFormItemDeps(): {
8
9
  create: () => FormItemDepsCollector;
@@ -1,7 +1,7 @@
1
- import { Func } from '../../../../../es/src/types';
1
+ import { Func, WithNull } from '../../../../../es/src/types';
2
2
  declare type RequestInstance = Record<string, Func>;
3
3
  export declare function useFormRequest(): {
4
- getHttpInstance: () => RequestInstance | null;
4
+ getHttpInstance: () => WithNull<RequestInstance>;
5
5
  registGlobHttpInstance: (instance: RequestInstance) => void;
6
6
  };
7
7
  export {};