cnhis-design-vue 3.1.39-beta.7 → 3.1.39-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.
- package/es/components/form-render/index.js +2 -2
- package/es/components/form-render/src/components/renderer/select.js +26 -8
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -3
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +53 -13
- package/es/components/form-render/src/utils/index.d.ts +2 -4
- package/es/components/form-render/src/utils/index.js +1 -15
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +4 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +6 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -1
- package/es/components/index.js +2 -2
- package/package.json +2 -2
|
@@ -15,8 +15,8 @@ export { FormItemDepsCollector, useFormItemDeps } from './src/hooks/useFormItemD
|
|
|
15
15
|
export { useAnchor } from './src/hooks/useAnchor.js';
|
|
16
16
|
export { useFormContext } from './src/hooks/useFormContext.js';
|
|
17
17
|
export { useCommonInjection, useSelectOptionProps } from './src/hooks/useCommonInjection.js';
|
|
18
|
-
export { useAutographOptions, useRecommendOptions, useUrlConfigOptions } from './src/hooks/useFormRenderOptions.js';
|
|
19
|
-
export { combineExtendKey, createInputSlot, createSlot, createUrlConfigParams, formRenderLog, injectOrProvide, isNestedFieldType, isNestedType,
|
|
18
|
+
export { optionMatcherCache, useAutographOptions, useRecommendOptions, useUrlConfigOptions } from './src/hooks/useFormRenderOptions.js';
|
|
19
|
+
export { combineExtendKey, createInputSlot, createSlot, createUrlConfigParams, formRenderLog, injectOrProvide, isNestedFieldType, isNestedType, keywordMatcher, mergeDeepProperties, parseNumberFromMaybeString, presetRequestHandler, splitExtendKey, validateMessageParser } from './src/utils/index.js';
|
|
20
20
|
export * from '@formily/core';
|
|
21
21
|
export { businessDateParser, isIdCard, isMobile, parseAge2Birthday, parseAgeFromContext, parseBirthday, parseIdCard, transformDateFormat } from './src/utils/business.js';
|
|
22
22
|
export { findNextWidget, queryDecorator, queryInput } from './src/utils/dom.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, computed, inject, createVNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { useDebounceFn } from '@vueuse/core';
|
|
3
|
+
import { cloneDeep, isString } from 'lodash-es';
|
|
3
4
|
import { useCommonInjection, useSelectOptionProps } from '../../hooks/useCommonInjection.js';
|
|
4
5
|
import { InjectionChangeContextCollector } from '../../constants/index.js';
|
|
5
6
|
import '../../../../../shared/utils/index.js';
|
|
6
7
|
import '../../../index.js';
|
|
7
8
|
import '../../utils/index.js';
|
|
8
9
|
import { useFormField } from '../../hooks/useFormField.js';
|
|
9
|
-
import '@vueuse/core';
|
|
10
10
|
import '../../../../../shared/utils/tapable/SyncHook.js';
|
|
11
11
|
import '../../../../../shared/utils/tapable/SyncBailHook.js';
|
|
12
12
|
import '../../../../../shared/utils/tapable/SyncWaterfallHook.js';
|
|
@@ -23,7 +23,7 @@ import 'date-fns';
|
|
|
23
23
|
import { connect, mapProps } from '@formily/vue';
|
|
24
24
|
import '@vue/shared';
|
|
25
25
|
import './index.js';
|
|
26
|
-
import { useUrlConfigOptions, useAutographOptions, useRecommendOptions } from '../../hooks/useFormRenderOptions.js';
|
|
26
|
+
import { useUrlConfigOptions, useAutographOptions, useRecommendOptions, optionMatcherCache } from '../../hooks/useFormRenderOptions.js';
|
|
27
27
|
import { NSelect } from 'naive-ui';
|
|
28
28
|
import { createVisitedSetter, assignUpdateValue, assignClearBindVisited } from '../../utils/schema.js';
|
|
29
29
|
|
|
@@ -101,7 +101,7 @@ const script = defineComponent({
|
|
|
101
101
|
getRecommend,
|
|
102
102
|
postRecommend,
|
|
103
103
|
sortedOptions
|
|
104
|
-
} = useRecommendOptions(props, options, emit, valueKey);
|
|
104
|
+
} = useRecommendOptions(props, options, emit, labelKey, valueKey);
|
|
105
105
|
const {
|
|
106
106
|
field,
|
|
107
107
|
fieldKey
|
|
@@ -115,10 +115,10 @@ const script = defineComponent({
|
|
|
115
115
|
return sortedOptions.value.find((option) => option[valueKey.value] === v2);
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
|
|
118
|
+
const fetchData = useDebounceFn(async (content = "") => {
|
|
119
119
|
fetchOptions(content);
|
|
120
|
-
getRecommend();
|
|
121
|
-
}
|
|
120
|
+
getRecommend(content);
|
|
121
|
+
}, 400);
|
|
122
122
|
const {
|
|
123
123
|
injectValueValidate,
|
|
124
124
|
injectValueWatchFromEmpty,
|
|
@@ -131,6 +131,23 @@ const script = defineComponent({
|
|
|
131
131
|
menuProps,
|
|
132
132
|
nodeProps
|
|
133
133
|
} = useSelectOptionProps();
|
|
134
|
+
function renderLabel(option) {
|
|
135
|
+
const label = option[labelKey.value];
|
|
136
|
+
if (!label || !isString(label))
|
|
137
|
+
return "";
|
|
138
|
+
const renderLabels = optionMatcherCache.get(option);
|
|
139
|
+
if (!renderLabels)
|
|
140
|
+
return label;
|
|
141
|
+
return createVNode("section", null, [renderLabels.map((chars, idx) => {
|
|
142
|
+
if (idx === 0 || !chars)
|
|
143
|
+
return null;
|
|
144
|
+
return createVNode("span", {
|
|
145
|
+
"style": {
|
|
146
|
+
color: idx % 2 === 0 ? "var(--n-option-text-color-active)" : ""
|
|
147
|
+
}
|
|
148
|
+
}, [chars]);
|
|
149
|
+
})]);
|
|
150
|
+
}
|
|
134
151
|
return () => createVNode(NSelect, {
|
|
135
152
|
"key": key.value,
|
|
136
153
|
"remote": true,
|
|
@@ -144,7 +161,8 @@ const script = defineComponent({
|
|
|
144
161
|
"options": sortedOptions.value,
|
|
145
162
|
"onSearch": fetchData,
|
|
146
163
|
"onUpdate:show": (show) => show && fetchData(),
|
|
147
|
-
"onFocus": createVisitedSetter(field)
|
|
164
|
+
"onFocus": createVisitedSetter(field),
|
|
165
|
+
"renderLabel": renderLabel
|
|
148
166
|
}, slots);
|
|
149
167
|
}
|
|
150
168
|
});
|
|
@@ -12,4 +12,4 @@ export { FormItemDepsCollector, useFormItemDeps } from './useFormItemDeps.js';
|
|
|
12
12
|
export { useAnchor } from './useAnchor.js';
|
|
13
13
|
export { useFormContext } from './useFormContext.js';
|
|
14
14
|
export { useCommonInjection, useSelectOptionProps } from './useCommonInjection.js';
|
|
15
|
-
export { useAutographOptions, useRecommendOptions, useUrlConfigOptions } from './useFormRenderOptions.js';
|
|
15
|
+
export { optionMatcherCache, useAutographOptions, useRecommendOptions, useUrlConfigOptions } from './useFormRenderOptions.js';
|
|
@@ -2,6 +2,7 @@ import { AnyObject, Func } from '../../../../../es/shared/types';
|
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
import { FormWordbook, RecommendIds, UrlConfig } from '../../../../../es/components/form-render';
|
|
4
4
|
import { RecommendItem } from '../../../../../es/components/recommend-search/src/types';
|
|
5
|
+
export declare const optionMatcherCache: WeakMap<AnyObject, string[]>;
|
|
5
6
|
export declare function useRecommendOptions(props: {
|
|
6
7
|
recommend: boolean;
|
|
7
8
|
commonList?: RecommendItem[];
|
|
@@ -9,10 +10,10 @@ export declare function useRecommendOptions(props: {
|
|
|
9
10
|
getRecommendInfo?: () => RecommendIds;
|
|
10
11
|
recommendCache: boolean;
|
|
11
12
|
recommendNum: number;
|
|
12
|
-
}, options: Ref<AnyObject[]>, emit: Func, valueKey: Ref<string>): {
|
|
13
|
+
}, options: Ref<AnyObject[]>, emit: Func, labelKey: Ref<string>, valueKey: Ref<string>): {
|
|
13
14
|
postRecommend: (value: unknown) => Promise<void>;
|
|
14
|
-
getRecommend: () => Promise<void>;
|
|
15
|
-
sortedOptions: import("vue").ComputedRef<
|
|
15
|
+
getRecommend: (content?: string) => Promise<void>;
|
|
16
|
+
sortedOptions: import("vue").ComputedRef<AnyObject[]>;
|
|
16
17
|
};
|
|
17
18
|
export declare function useUrlConfigOptions(props: {
|
|
18
19
|
urlConfig?: UrlConfig;
|
|
@@ -4,7 +4,7 @@ import { isString, isEqual, omit, isFunction } from 'lodash-es';
|
|
|
4
4
|
import { computed, inject, ref, watch } from 'vue';
|
|
5
5
|
import '../../index.js';
|
|
6
6
|
import { InjectionAsyncQueue, InjectionFormItemDepsCollector } from '../constants/index.js';
|
|
7
|
-
import { createUrlConfigParams, formRenderLog,
|
|
7
|
+
import { createUrlConfigParams, formRenderLog, keywordMatcher } from '../utils/index.js';
|
|
8
8
|
import { useFormField } from './useFormField.js';
|
|
9
9
|
import { useFormRequest } from './useFormRequest.js';
|
|
10
10
|
|
|
@@ -21,9 +21,44 @@ function createPropRef(props, key) {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
const optionMatcherCache = /* @__PURE__ */ new WeakMap();
|
|
25
|
+
const searchContentMatcherCache = /* @__PURE__ */ new Map();
|
|
26
|
+
function useSearchContent() {
|
|
27
|
+
const searchContent = ref();
|
|
28
|
+
const searchContentMatcher = computed(() => {
|
|
29
|
+
if (!searchContent.value)
|
|
30
|
+
return /./;
|
|
31
|
+
return new RegExp(
|
|
32
|
+
`(.*)${searchContent.value.split("").map((char) => `(${char})`).join("(.*)")}(.*)`
|
|
33
|
+
);
|
|
34
|
+
});
|
|
35
|
+
function filter(option, labelKey) {
|
|
36
|
+
if (!searchContent.value)
|
|
37
|
+
return true;
|
|
38
|
+
const label = option ? option[labelKey] : "";
|
|
39
|
+
if (!isString(label))
|
|
40
|
+
return false;
|
|
41
|
+
const cacheObj = searchContentMatcherCache.get(searchContent.value) || {};
|
|
42
|
+
const matched = Reflect.has(cacheObj, label) ? cacheObj[label] : label.match(searchContentMatcher.value);
|
|
43
|
+
cacheObj[label] = matched;
|
|
44
|
+
searchContentMatcherCache.set(searchContent.value, cacheObj);
|
|
45
|
+
if (matched) {
|
|
46
|
+
optionMatcherCache.set(option, matched);
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
return keywordMatcher(label, option.keyword);
|
|
50
|
+
}
|
|
51
|
+
function optionSearchFilter(options, _labelKey) {
|
|
52
|
+
if (!searchContent.value)
|
|
53
|
+
return options;
|
|
54
|
+
return options.filter((option) => filter(option, _labelKey));
|
|
55
|
+
}
|
|
56
|
+
return { searchContent, searchContentMatcher, optionSearchFilter };
|
|
57
|
+
}
|
|
58
|
+
function useRecommendOptions(props, options, emit, labelKey, valueKey) {
|
|
25
59
|
const commonListRef = createPropRef(props, "commonList");
|
|
26
60
|
const recentListRef = createPropRef(props, "recentList");
|
|
61
|
+
const { searchContent, optionSearchFilter } = useSearchContent();
|
|
27
62
|
function getRecommendOption(item) {
|
|
28
63
|
return jsonParse(item.itemObj);
|
|
29
64
|
}
|
|
@@ -44,7 +79,11 @@ function useRecommendOptions(props, options, emit, valueKey) {
|
|
|
44
79
|
return item[valueKey.value] !== option[valueKey.value];
|
|
45
80
|
}
|
|
46
81
|
});
|
|
47
|
-
return [
|
|
82
|
+
return [
|
|
83
|
+
...optionSearchFilter(commonOptions.value, labelKey.value),
|
|
84
|
+
...optionSearchFilter(recentOptions.value, labelKey.value),
|
|
85
|
+
...optionWithoutRecommend
|
|
86
|
+
];
|
|
48
87
|
});
|
|
49
88
|
const { getRecommendRequestInfo, getHttpInstance } = useFormRequest();
|
|
50
89
|
function getRecommendConfig(type) {
|
|
@@ -55,9 +94,10 @@ function useRecommendOptions(props, options, emit, valueKey) {
|
|
|
55
94
|
}
|
|
56
95
|
const { fieldKey } = useFormField();
|
|
57
96
|
const asyncQueue = inject(InjectionAsyncQueue);
|
|
58
|
-
async function getRecommend() {
|
|
97
|
+
async function getRecommend(content) {
|
|
59
98
|
if (!props.recommend)
|
|
60
99
|
return;
|
|
100
|
+
searchContent.value = content;
|
|
61
101
|
if (commonListRef.value && recentListRef.value && props.recommendCache)
|
|
62
102
|
return;
|
|
63
103
|
const list = await asyncQueue.addAsync(createParams(fieldKey.value, props.recommendCache));
|
|
@@ -125,11 +165,11 @@ function useUrlConfigOptions(props, valueRef) {
|
|
|
125
165
|
var _a, _b;
|
|
126
166
|
return (_b = (_a = props.urlConfig) == null ? void 0 : _a.valueKey) != null ? _b : "value";
|
|
127
167
|
});
|
|
168
|
+
const { searchContent, optionSearchFilter } = useSearchContent();
|
|
128
169
|
const remoteOptions = ref(null);
|
|
129
|
-
const lastSearch = ref("");
|
|
130
170
|
const { field, fieldKey } = useFormField();
|
|
131
171
|
const fetchData = useDebounceFn(async function(content) {
|
|
132
|
-
|
|
172
|
+
searchContent.value = content || "";
|
|
133
173
|
if (!props.urlConfig) {
|
|
134
174
|
return remoteOptions.value = null;
|
|
135
175
|
}
|
|
@@ -147,10 +187,10 @@ function useUrlConfigOptions(props, valueRef) {
|
|
|
147
187
|
}, 300);
|
|
148
188
|
const options = computed(() => {
|
|
149
189
|
if (remoteOptions.value)
|
|
150
|
-
return
|
|
190
|
+
return optionSearchFilter(remoteOptions.value, labelKey.value);
|
|
151
191
|
if (!Array.isArray(props.options))
|
|
152
192
|
return [];
|
|
153
|
-
return
|
|
193
|
+
return optionSearchFilter(props.options, labelKey.value);
|
|
154
194
|
});
|
|
155
195
|
const formItemDepsCollector = inject(InjectionFormItemDepsCollector);
|
|
156
196
|
watch(
|
|
@@ -183,12 +223,12 @@ function useAutographOptions(props, valueRef) {
|
|
|
183
223
|
var _a, _b;
|
|
184
224
|
return (_b = (_a = props.wordbook) == null ? void 0 : _a.value_key) != null ? _b : "value";
|
|
185
225
|
});
|
|
226
|
+
const { searchContent, optionSearchFilter } = useSearchContent();
|
|
186
227
|
const remoteOptions = ref(null);
|
|
187
|
-
const lastSearch = ref("");
|
|
188
228
|
const { fieldKey } = useFormField();
|
|
189
229
|
const { getSearchRequestInfo } = useFormRequest();
|
|
190
230
|
const fetchData = useDebounceFn(async function(content) {
|
|
191
|
-
|
|
231
|
+
searchContent.value = content || "";
|
|
192
232
|
if (!props.autograph || !props.wordbook) {
|
|
193
233
|
return remoteOptions.value = null;
|
|
194
234
|
}
|
|
@@ -211,10 +251,10 @@ function useAutographOptions(props, valueRef) {
|
|
|
211
251
|
}, 300);
|
|
212
252
|
const options = computed(() => {
|
|
213
253
|
if (remoteOptions.value)
|
|
214
|
-
return
|
|
254
|
+
return optionSearchFilter(remoteOptions.value, labelKey.value);
|
|
215
255
|
if (!Array.isArray(props.options))
|
|
216
256
|
return [];
|
|
217
|
-
return
|
|
257
|
+
return optionSearchFilter(props.options, labelKey.value);
|
|
218
258
|
});
|
|
219
259
|
watch(
|
|
220
260
|
() => props.wordbook,
|
|
@@ -231,4 +271,4 @@ function useAutographOptions(props, valueRef) {
|
|
|
231
271
|
return { labelKey, valueKey, options, fetchData };
|
|
232
272
|
}
|
|
233
273
|
|
|
234
|
-
export { useAutographOptions, useRecommendOptions, useUrlConfigOptions };
|
|
274
|
+
export { optionMatcherCache, useAutographOptions, useRecommendOptions, useUrlConfigOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject, ArrayAble
|
|
1
|
+
import { AnyObject, ArrayAble } from '../../../../../es/shared/types';
|
|
2
2
|
import { GeneralField } from '@formily/core';
|
|
3
3
|
import { FunctionalComponent, InjectionKey, VNode } from 'vue';
|
|
4
4
|
import { FieldItem, UrlConfig } from '../types';
|
|
@@ -14,9 +14,7 @@ export declare function createSlot(renderer: unknown, props: AnyObject, defaultR
|
|
|
14
14
|
};
|
|
15
15
|
export declare function createInputSlot(props: AnyObject, defaultRenderer?: (v: unknown) => unknown[]): import("vue").ComputedRef<Record<string, FunctionalComponent<{}, {}>>>;
|
|
16
16
|
export declare function presetRequestHandler(res: unknown): AnyObject[];
|
|
17
|
-
export declare
|
|
18
|
-
keyword?: string;
|
|
19
|
-
}): AnyObject[];
|
|
17
|
+
export declare const keywordMatcher: import("@vueuse/core").UseMemoizedFn<boolean, [text: unknown, keyword: unknown]>;
|
|
20
18
|
export declare function validateMessageParser(message: string, fieldItem: Omit<FieldItem, 'reactions'>): string;
|
|
21
19
|
export declare function combineExtendKey(fieldList: FieldItem[], values: AnyObject): AnyObject;
|
|
22
20
|
export declare function splitExtendKey(fieldList: FieldItem[], values: AnyObject): AnyObject;
|
|
@@ -138,20 +138,6 @@ const keywordMatcher = useMemoize(function(text, keyword) {
|
|
|
138
138
|
}, "");
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
function optionMatcherWithKeyword(options, input, key, matcherOption = {
|
|
142
|
-
keyword: "keyword"
|
|
143
|
-
}) {
|
|
144
|
-
if (!input)
|
|
145
|
-
return options;
|
|
146
|
-
return options.filter((option) => {
|
|
147
|
-
if (!isString(keyFor(option)))
|
|
148
|
-
return;
|
|
149
|
-
return keyFor(option).includes(input) || matcherOption.keyword && keywordMatcher(input, option[matcherOption.keyword]);
|
|
150
|
-
});
|
|
151
|
-
function keyFor(option) {
|
|
152
|
-
return option[key];
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
141
|
function validateMessageParser(message, fieldItem) {
|
|
156
142
|
if (!isString(message) || !message)
|
|
157
143
|
return "";
|
|
@@ -252,4 +238,4 @@ async function createUrlConfigParams({
|
|
|
252
238
|
};
|
|
253
239
|
}
|
|
254
240
|
|
|
255
|
-
export { combineExtendKey, createInputSlot, createSlot, createUrlConfigParams, formRenderLog, injectOrProvide, isNestedFieldType, isNestedType,
|
|
241
|
+
export { combineExtendKey, createInputSlot, createSlot, createUrlConfigParams, formRenderLog, injectOrProvide, isNestedFieldType, isNestedType, keywordMatcher, mergeDeepProperties, parseNumberFromMaybeString, presetRequestHandler, splitExtendKey, validateMessageParser };
|
|
@@ -22,7 +22,10 @@ function dateRendererPlugin() {
|
|
|
22
22
|
}) => {
|
|
23
23
|
return [createVNode(EditDate, mergeProps({
|
|
24
24
|
"value": row[column.field],
|
|
25
|
-
"onUpdate:value": ($event) => row[column.field] = $event
|
|
25
|
+
"onUpdate:value": ($event) => row[column.field] = $event,
|
|
26
|
+
"isStartDate": fieldItem.isStartDate,
|
|
27
|
+
"isEndDate": fieldItem.isEndDate,
|
|
28
|
+
"connectField": fieldItem.connectField
|
|
26
29
|
}, fieldItem.componentProps, {
|
|
27
30
|
"column": column,
|
|
28
31
|
"row": row,
|
package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js
CHANGED
|
@@ -69,7 +69,7 @@ function numberRendererPlugin() {
|
|
|
69
69
|
return [createVNode(IhoTableInputNumber, mergeProps({
|
|
70
70
|
"value": row[column.field],
|
|
71
71
|
"onUpdate:value": ($event) => row[column.field] = $event
|
|
72
|
-
}, fieldItem.componentProps
|
|
72
|
+
}, config, fieldItem.componentProps), null)];
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
}
|
|
@@ -42,14 +42,15 @@ function separateRendererPlugins() {
|
|
|
42
42
|
row,
|
|
43
43
|
emitFormClick
|
|
44
44
|
}) => {
|
|
45
|
-
var _a;
|
|
45
|
+
var _a, _b, _c;
|
|
46
46
|
const uuid = inject(InjectionIhoTableUUID);
|
|
47
47
|
const separateRow = getSeparateRowData(uuid, row);
|
|
48
48
|
const height = getRowHeight();
|
|
49
49
|
const slots = {};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
let separateSlot = (_b = (_a = fieldItem.componentProps) == null ? void 0 : _a.separateSlot) != null ? _b : fieldItem.separateSlot;
|
|
51
|
+
if (separateSlot) {
|
|
52
|
+
separateSlot = toRaw(separateSlot);
|
|
53
|
+
slots.menu = isFunction(separateSlot) ? separateSlot : isObject(separateSlot) ? (props) => h(separateSlot, props) : void 0;
|
|
53
54
|
}
|
|
54
55
|
return [createVNode(EditSeparate, {
|
|
55
56
|
"value": row[column.field],
|
|
@@ -58,7 +59,7 @@ function separateRendererPlugins() {
|
|
|
58
59
|
"height": height,
|
|
59
60
|
"column": column,
|
|
60
61
|
"row": row,
|
|
61
|
-
"display-content": (
|
|
62
|
+
"display-content": (_c = separateRow == null ? void 0 : separateRow.separateData) == null ? void 0 : _c[column.field],
|
|
62
63
|
"onClick": emitFormClick
|
|
63
64
|
}, slots)];
|
|
64
65
|
})
|
package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js
CHANGED
|
@@ -40,7 +40,7 @@ function timeRendererPlugin() {
|
|
|
40
40
|
return [createVNode(NTimePicker, mergeProps({
|
|
41
41
|
"formattedValue": row[column.field],
|
|
42
42
|
"onUpdate:formattedValue": ($event) => row[column.field] = $event
|
|
43
|
-
}, fieldItem.componentProps
|
|
43
|
+
}, config, fieldItem.componentProps), null)];
|
|
44
44
|
})
|
|
45
45
|
});
|
|
46
46
|
}
|
package/es/components/index.js
CHANGED
|
@@ -59,11 +59,11 @@ export { FormItemDepsCollector, useFormItemDeps } from './form-render/src/hooks/
|
|
|
59
59
|
export { useAnchor } from './form-render/src/hooks/useAnchor.js';
|
|
60
60
|
export { useFormContext } from './form-render/src/hooks/useFormContext.js';
|
|
61
61
|
export { useCommonInjection, useSelectOptionProps } from './form-render/src/hooks/useCommonInjection.js';
|
|
62
|
-
export { useAutographOptions, useRecommendOptions, useUrlConfigOptions } from './form-render/src/hooks/useFormRenderOptions.js';
|
|
62
|
+
export { optionMatcherCache, useAutographOptions, useRecommendOptions, useUrlConfigOptions } from './form-render/src/hooks/useFormRenderOptions.js';
|
|
63
63
|
export { businessDateParser, isIdCard, isMobile, parseAge2Birthday, parseAgeFromContext, parseBirthday, parseIdCard, transformDateFormat } from './form-render/src/utils/business.js';
|
|
64
64
|
export { findNextWidget, queryDecorator, queryInput } from './form-render/src/utils/dom.js';
|
|
65
65
|
export { assignClearBindVisited, assignUpdateValue, assignValueBindKey, createLinebarId, createObjSchema, createVisitedSetter, dotEscape, fieldKeyEscape, getParentLinebar, traverseDependKey, traverseSchema } from './form-render/src/utils/schema.js';
|
|
66
|
-
export { combineExtendKey, createInputSlot, createSlot, createUrlConfigParams, formRenderLog, injectOrProvide, isNestedFieldType, isNestedType,
|
|
66
|
+
export { combineExtendKey, createInputSlot, createSlot, createUrlConfigParams, formRenderLog, injectOrProvide, isNestedFieldType, isNestedType, keywordMatcher, mergeDeepProperties, parseNumberFromMaybeString, presetRequestHandler, splitExtendKey, validateMessageParser } from './form-render/src/utils/index.js';
|
|
67
67
|
export * from '@formily/core';
|
|
68
68
|
export { GlobalShortcutProvider, ShortcutManager, useShortcuts } from './shortcut-provider/src/hooks/useShortcuts.js';
|
|
69
69
|
export { useShortcutSignature } from './shortcut-provider/src/hooks/useShortcutSignature.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.39-beta.
|
|
3
|
+
"version": "3.1.39-beta.8",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "bbaab716c36de7d6818ef5b575fb8584db89a22c"
|
|
65
65
|
}
|