cnhis-design-vue 3.1.14-beta.11 → 3.1.14-beta.12
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/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/form-render/index.d.ts +0 -1
- package/es/packages/form-render/src/FormRender.vue.d.ts +0 -1
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.js +3 -2
- package/package.json +1 -1
@@ -357,14 +357,14 @@ var script = /* @__PURE__ */ defineComponent({
|
|
357
357
|
};
|
358
358
|
const initCRM = async (formatListResult) => {
|
359
359
|
var _a;
|
360
|
-
state.formatList = formatListResult ? formatFormatList(formatListResult.obj) : [];
|
361
360
|
console.log("formatListResult", formatListResult);
|
361
|
+
state.formatList = formatListResult ? formatFormatList(formatListResult.obj) : [];
|
362
362
|
state.currentFormatId = getDefaultFormatId(state.formatList, "defaultFlag");
|
363
|
-
setOptions();
|
364
363
|
if (!state.currentFormatId) {
|
365
364
|
$message.error("\u83B7\u53D6\u6253\u5370\u683C\u5F0F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01");
|
366
365
|
return requestError();
|
367
366
|
}
|
367
|
+
setOptions();
|
368
368
|
if (!state.currentFormatId) {
|
369
369
|
requestError();
|
370
370
|
return;
|
@@ -410,7 +410,6 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{
|
|
410
410
|
formHeight: import("vue").ComputedRef<any>;
|
411
411
|
scrollTo: (id: string) => Promise<void>;
|
412
412
|
onScroll: () => void;
|
413
|
-
bindInfo: (info: import("../../../es/src/types").AnyObject) => import("../../../es/src/types").AnyObject;
|
414
413
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("./src/types").FieldItem[]) => Promise<{
|
415
414
|
widgetElement: HTMLInputElement | null | undefined;
|
416
415
|
widgetElementList: HTMLInputElement[];
|
@@ -410,7 +410,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
410
410
|
formHeight: import("vue").ComputedRef<any>;
|
411
411
|
scrollTo: (id: string) => Promise<void>;
|
412
412
|
onScroll: () => void;
|
413
|
-
bindInfo: (info: AnyObject) => AnyObject;
|
414
413
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: FieldItem[]) => Promise<{
|
415
414
|
widgetElement: HTMLInputElement | null | undefined;
|
416
415
|
widgetElementList: HTMLInputElement[];
|
@@ -75,12 +75,6 @@ var script = /* @__PURE__ */ defineComponent({
|
|
75
75
|
});
|
76
76
|
const { currentAnchor, scrollbarRef, generateAnchorList, anchorIdList, formHeight, scrollTo, onScroll } = useAnchor(props, formItemDepsCollector);
|
77
77
|
watch(parsedSchema, generateAnchorList, { immediate: true });
|
78
|
-
function bindInfo(info) {
|
79
|
-
info.title = formModel.query(info.path).get("title");
|
80
|
-
info.decoratorElement = queryDecorator(info.path, scrollbarRef.value, formUUID);
|
81
|
-
Object.assign(info, queryInput(info.decoratorElement));
|
82
|
-
return info;
|
83
|
-
}
|
84
78
|
async function queryWidget(key, wrapperElement, fieldList) {
|
85
79
|
if (!scrollbarRef.value)
|
86
80
|
return createResult();
|
@@ -102,6 +96,12 @@ var script = /* @__PURE__ */ defineComponent({
|
|
102
96
|
return formModel.validate(path).catch((err) => {
|
103
97
|
return Promise.reject(Array.isArray(err) ? err.map(bindInfo) : err);
|
104
98
|
});
|
99
|
+
function bindInfo(info) {
|
100
|
+
info.title = formModel.query(info.path).get("title");
|
101
|
+
info.decoratorElement = queryDecorator(info.path, scrollbarRef.value, formUUID);
|
102
|
+
Object.assign(info, queryInput(info.decoratorElement));
|
103
|
+
return info;
|
104
|
+
}
|
105
105
|
},
|
106
106
|
getFormValues() {
|
107
107
|
return formModel.getFormState().values;
|
@@ -2,9 +2,10 @@ import { defineComponent, ref, nextTick, onMounted, watch, openBlock, createElem
|
|
2
2
|
import { NTag, NDescriptions, NDescriptionsItem } from 'naive-ui';
|
3
3
|
import { useThrottleFn, useEventListener } from '@vueuse/core';
|
4
4
|
import SlotRender from '../../../src/components/SlotRender';
|
5
|
-
import
|
5
|
+
import './InfoEllipsis.js';
|
6
6
|
import './HiddenContent.js';
|
7
7
|
import script$1 from './HiddenContent.vue_vue_type_script_setup_true_lang.js';
|
8
|
+
import script$2 from './InfoEllipsis.vue_vue_type_script_setup_true_lang.js';
|
8
9
|
|
9
10
|
const _hoisted_1 = { class: "c-info-header__operation" };
|
10
11
|
const _hoisted_2 = {
|
@@ -177,7 +178,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
177
178
|
tip: item.tip,
|
178
179
|
"content-style": getDescriptionItemStyle(item),
|
179
180
|
width: descriptionWidthList.value[index]
|
180
|
-
}, null, 8, ["content", "tip", "content-style", "width"])) : (openBlock(), createBlock(
|
181
|
+
}, null, 8, ["content", "tip", "content-style", "width"])) : (openBlock(), createBlock(script$2, {
|
181
182
|
key: 2,
|
182
183
|
"content-style": getEllipsisStyle(index, item),
|
183
184
|
content: item[__props.valueField],
|