cnhis-design-vue 3.1.31-beta.6 → 3.1.31-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/big-table/index.js +1 -1
- package/es/components/big-table/src/{BigTable.js → BigTable.vue.js} +1 -1
- package/es/components/big-table/src/{BigTable.vue_vue_type_script_setup_true_lang.js → BigTable.vue2.js} +6 -6
- package/es/components/{scale-view/src/components/NoData.js → big-table/src/components/NoData.vue.js} +4 -4
- package/es/components/big-table/src/components/edit-form/{edit-separate.js → edit-separate.vue.js} +1 -1
- package/es/components/big-table/src/components/{input-button.js → input-button.vue.js} +0 -0
- package/es/components/big-table/src/components/{separate.js → separate.vue.js} +0 -0
- package/es/components/big-table/src/hooks/useEdit.js +1 -1
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/bpmn-workflow/index.js +1 -1
- package/es/components/bpmn-workflow/src/{BpmnWorkflow.js → BpmnWorkflow.vue.js} +0 -0
- package/es/components/button-print/index.d.ts +64 -45
- package/es/components/button-print/index.js +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +64 -45
- package/es/components/button-print/src/{ButtonPrint.js → ButtonPrint.vue.js} +1 -1
- package/es/components/button-print/src/{ButtonPrint.vue_vue_type_script_setup_true_lang.js → ButtonPrint.vue2.js} +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +65 -46
- package/es/components/button-print/src/components/EditFormat.vue.js +173 -0
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +64 -45
- package/es/components/button-print/src/components/{IdentityVerification.js → IdentityVerification.vue.js} +8 -5
- package/es/components/button-print/src/components/{Preview.js → Preview.vue.js} +1 -1
- package/es/components/button-print/src/components/{Preview.vue_vue_type_script_setup_true_lang.js → Preview.vue2.js} +0 -0
- package/es/components/button-print/src/utils/dialog.js +2 -2
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/drag-layout/index.js +1 -1
- package/es/components/drag-layout/src/{DragFormLeftItem.js → DragFormLeftItem.vue.js} +0 -0
- package/es/components/drag-layout/src/{DragFormRightItem.js → DragFormRightItem.vue.js} +0 -0
- package/es/components/drag-layout/src/{DragLayout.js → DragLayout.vue.js} +2 -2
- package/es/components/fabric-chart/index.js +1 -1
- package/es/components/fabric-chart/src/{FabricChart.js → FabricChart.vue.js} +1 -1
- package/es/components/fabric-chart/src/components/{PopupTip.js → PopupTip.vue.js} +0 -0
- package/es/components/fabric-chart/src/utils/index.js +0 -1
- package/es/components/field-set/index.js +1 -1
- package/es/components/field-set/src/{FieldSet.js → FieldSet.vue.js} +0 -0
- package/es/components/form-config/index.js +1 -1
- package/es/components/form-config/src/{FormConfig.js → FormConfig.vue.js} +3 -3
- package/es/components/form-config/src/components/{FormConfigCreator.js → FormConfigCreator.vue.js} +0 -0
- package/es/components/form-config/src/components/{FormConfigDragDisplay.js → FormConfigDragDisplay.vue.js} +0 -0
- package/es/components/form-config/src/components/{FormConfigEdit.js → FormConfigEdit.vue.js} +0 -0
- package/es/components/form-config/src/components/index.js +6 -6
- package/es/components/form-config/src/components/renderer/{CloseButton.js → CloseButton.vue.js} +0 -0
- package/es/components/form-config/src/components/renderer/{ComplexNode.js → ComplexNode.vue.js} +2 -2
- package/es/components/form-config/src/components/renderer/{DefaultNode.js → DefaultNode.vue.js} +1 -1
- package/es/components/form-config/src/components/renderer/index.js +3 -3
- package/es/components/form-config/src/hooks/usePresetRenderer.js +2 -2
- package/es/components/form-render/index.js +2 -2
- package/es/components/form-render/src/{FormRender.js → FormRender.vue.js} +0 -0
- package/es/components/form-render/src/{FormRenderWrapper.js → FormRenderWrapper.vue.js} +1 -1
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/{FormCollapse.js → FormCollapse.vue.js} +0 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +3 -3
- package/es/components/form-render/src/hooks/useAutographOptions.js +2 -2
- package/es/components/form-render/src/utils/index.d.ts +2 -2
- package/es/components/form-render/src/utils/index.js +27 -3
- package/es/components/iho-table/index.js +1 -2
- package/es/components/iho-table/src/{IhoTable.js → IhoTable.vue.js} +0 -0
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +3 -1
- package/es/components/iho-table/src/plugins/filterPlugin/{filter.js → filter.vue.js} +0 -0
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/{editDate.js → editDate.vue.js} +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{editSeparate.js → editSeparate.vue.js} +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +5 -2
- package/es/components/info-header/index.js +1 -1
- package/es/components/info-header/src/{HiddenContent.js → HiddenContent.vue.js} +1 -1
- package/es/components/info-header/src/{InfoEllipsis.js → InfoEllipsis.vue.js} +0 -0
- package/es/components/info-header/src/{InfoHeader.js → InfoHeader.vue.js} +2 -2
- package/es/components/keyboard/index.d.ts +26 -16
- package/es/components/keyboard/index.js +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +27 -8
- package/es/components/keyboard/src/{Keyboard.js → Keyboard.vue.js} +9 -3
- package/es/components/keyboard/src/components/{InputNumber.js → InputNumber.vue.js} +0 -0
- package/es/components/keyboard/src/components/{NumberPanel.js → NumberPanel.vue.js} +1 -1
- package/es/components/map/index.js +1 -1
- package/es/components/map/src/{Map.js → Map.vue.js} +0 -0
- package/es/components/recommend-search/index.d.ts +280 -0
- package/es/components/recommend-search/index.js +10 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +280 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.js +35 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +128 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +153 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +257 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +94 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +52 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +94 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +2 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +125 -0
- package/es/components/recommend-search/src/constant/index.d.ts +4 -0
- package/es/components/recommend-search/src/constant/index.js +7 -0
- package/es/components/recommend-search/src/types/index.d.ts +9 -0
- package/es/components/recommend-search/src/types/index.js +1 -0
- package/es/components/recommend-search/style/index.css +1 -0
- package/es/components/scale-view/index.js +1 -1
- package/es/components/scale-view/src/{ScaleView.js → ScaleView.vue.js} +5 -5
- package/es/components/scale-view/src/components/{AnswerParse.js → AnswerParse.vue.js} +1 -1
- package/es/components/scale-view/src/components/{EvaluateCountdown.js → EvaluateCountdown.vue.js} +1 -1
- package/es/components/scale-view/src/components/{EvaluatePage.js → EvaluatePage.vue.js} +0 -0
- package/es/components/scale-view/src/components/{LoadingCom.js → LoadingCom.vue.js} +0 -0
- package/es/components/{big-table/src/components/NoData.js → scale-view/src/components/NoData.vue.js} +4 -4
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.js +1 -1
- package/es/components/search-cascader/index.js +1 -1
- package/es/components/search-cascader/src/{SearchCascader.js → SearchCascader.vue.js} +0 -0
- package/es/components/select-label/index.js +2 -2
- package/es/components/select-label/src/{LabelFormContent.js → LabelFormContent.vue.js} +1 -1
- package/es/components/select-label/src/{SelectLabel.js → SelectLabel.vue.js} +1 -1
- package/es/components/select-label/src/{SelectLabel.vue_vue_type_script_setup_true_lang.js → SelectLabel.vue2.js} +2 -2
- package/es/components/select-label/src/components/{label-classify.js → label-classify.vue.js} +0 -0
- package/es/components/select-person/index.js +1 -1
- package/es/components/select-person/src/{SelectPerson.js → SelectPerson.vue.js} +1 -1
- package/es/components/select-person/src/{SelectPerson.vue_vue_type_script_setup_true_lang.js → SelectPerson.vue2.js} +0 -0
- package/es/components/shortcut-provider/index.js +1 -1
- package/es/components/shortcut-provider/src/{ShortcutProvider.js → ShortcutProvider.vue.js} +0 -0
- package/es/components/shortcut-setter/index.js +1 -1
- package/es/components/shortcut-setter/src/{ShortcutSetter.js → ShortcutSetter.vue.js} +1 -1
- package/es/components/shortcut-setter/src/{ShortcutSetterItem.js → ShortcutSetterItem.vue.js} +0 -0
- package/es/components/steps-wheel/index.d.ts +3 -0
- package/es/components/steps-wheel/index.js +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +3 -0
- package/es/components/steps-wheel/src/{StepsWheel.js → StepsWheel.vue.js} +38 -9
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/time-line/index.js +1 -1
- package/es/components/time-line/src/{TimeLine.js → TimeLine.vue.js} +0 -0
- package/es/components/vod-chunk-upload/index.js +1 -1
- package/es/components/vod-chunk-upload/src/{chunk-upload-new.js → chunk-upload-new.vue.js} +0 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +2 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/{vod-chunk-upload.js → vod-chunk-upload.vue.js} +3 -3
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
- package/es/shared/assets/img/failure.js +1 -3
- package/es/shared/assets/img/failure.png.js +3 -0
- package/es/shared/assets/img/no-permission.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +3 -0
- package/es/shared/assets/img/nodata.js +1 -3
- package/es/shared/assets/img/nodata.png.js +3 -0
- package/es/shared/assets/img/notfound.js +1 -3
- package/es/shared/assets/img/notfound.png.js +3 -0
- package/es/shared/assets/img/qr.js +1 -3
- package/es/shared/assets/img/qr.png.js +3 -0
- package/es/shared/assets/img/success.js +1 -3
- package/es/shared/assets/img/success.png.js +3 -0
- package/es/shared/assets/img/video.js +1 -3
- package/es/shared/assets/img/video.png.js +3 -0
- package/es/shared/assets/img/video_default_cover.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +3 -0
- package/es/shared/assets/img/xb_big.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +3 -0
- package/es/shared/assets/img/xb_small.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +3 -0
- package/es/shared/components/SelectPage/{SelectPage.js → SelectPage.vue.js} +0 -0
- package/es/shared/components/SelectPage/index.js +2 -2
- package/es/shared/components/SvgIcon/{SvgIcon.js → SvgIcon.vue.js} +0 -0
- package/es/shared/components/SvgIcon/index.js +2 -2
- package/es/shared/components/TextOverTooltip/{TextOverTooltip.js → TextOverTooltip.vue.js} +0 -0
- package/es/shared/components/TextOverTooltip/index.js +2 -2
- package/es/shared/components/no-data/{NoData.js → NoData.vue.js} +4 -4
- package/es/shared/components/no-data/index.js +2 -2
- package/package.json +2 -2
- package/es/components/button-print/src/components/EditFormat.js +0 -153
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, createTextVNode } from 'vue';
|
|
2
|
+
import { useMessage, NForm, NFormItem, NSpace, NUpload, NUploadDragger, NIcon, NText, NP } from 'naive-ui';
|
|
3
|
+
import { Archive } from '@vicons/ionicons5';
|
|
4
|
+
import axios from 'axios';
|
|
5
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
6
|
+
|
|
7
|
+
const _hoisted_1 = { style: { "margin-bottom": "12px" } };
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "EditFormat",
|
|
10
|
+
props: {
|
|
11
|
+
formatId: null,
|
|
12
|
+
token: null
|
|
13
|
+
},
|
|
14
|
+
setup(__props, { expose }) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const PROTOCOL = window.location.protocol;
|
|
17
|
+
const HOST = window.location.host;
|
|
18
|
+
const BASEURL = `${PROTOCOL}//${HOST}/bi-api`;
|
|
19
|
+
const SAVEIREPORT = `${BASEURL}/reprot/print/open/client/saveIReportFormat`;
|
|
20
|
+
const QUERYFILELIST = `${BASEURL}/reprot/print/open/client/getIReportFiles`;
|
|
21
|
+
const DELETEFILE = `${BASEURL}/reprot/print/open/client/delIReportFiles`;
|
|
22
|
+
const instance = axios.create({});
|
|
23
|
+
const $message = useMessage();
|
|
24
|
+
const fileList = ref([]);
|
|
25
|
+
queryFileList();
|
|
26
|
+
function queryFileList() {
|
|
27
|
+
var _a;
|
|
28
|
+
instance.get(`${QUERYFILELIST}?formatId=${(_a = props.formatId) == null ? void 0 : _a.split("_")[1]}&authorizationKey=${props.token}`).then(({ data }) => {
|
|
29
|
+
(data.list || []).forEach((file) => {
|
|
30
|
+
fileList.value.push({
|
|
31
|
+
id: Date.now().toString(),
|
|
32
|
+
name: file,
|
|
33
|
+
status: "finished"
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function onRemove(options) {
|
|
39
|
+
return new Promise((resolve, reject) => {
|
|
40
|
+
var _a;
|
|
41
|
+
instance.get(
|
|
42
|
+
`${DELETEFILE}?formatId=${(_a = props.formatId) == null ? void 0 : _a.split("_")[1]}&authorizationKey=${props.token}&fileName=${options.file.name}`
|
|
43
|
+
).then(({ data }) => {
|
|
44
|
+
if ((data == null ? void 0 : data.result) !== "SUCCESS") {
|
|
45
|
+
$message.error((data == null ? void 0 : data.resultMsg) || "\u5220\u9664\u6587\u4EF6\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01");
|
|
46
|
+
reject();
|
|
47
|
+
} else {
|
|
48
|
+
$message.success("\u5220\u9664\u6587\u4EF6\u6210\u529F\uFF01");
|
|
49
|
+
resolve("SUCCESS");
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function submit(datas) {
|
|
55
|
+
return new Promise((resolve, reject) => {
|
|
56
|
+
if (!validateFormat()) {
|
|
57
|
+
$message.warning("\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2Ajrxml\u6587\u4EF6\u548C\u4E00\u4E2Ajasper\u6587\u4EF6\uFF01");
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const files = fileList.value.filter((file) => file.file);
|
|
61
|
+
if (files.length === 0) {
|
|
62
|
+
$message.warning("\u672C\u6B21\u65E0\u65B0\u6587\u4EF6\u589E\u52A0\uFF0C\u8BF7\u5148\u6DFB\u52A0\u65B0\u6587\u4EF6\uFF01");
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const params = new FormData();
|
|
66
|
+
Object.keys(datas).forEach((v) => {
|
|
67
|
+
params.append(v, datas[v]);
|
|
68
|
+
});
|
|
69
|
+
fileList.value.forEach((file) => {
|
|
70
|
+
file.file && params.append("files", file.file);
|
|
71
|
+
});
|
|
72
|
+
instance.post(SAVEIREPORT, params, {
|
|
73
|
+
headers: {
|
|
74
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
75
|
+
}
|
|
76
|
+
}).then(({ data }) => {
|
|
77
|
+
if ((data == null ? void 0 : data.result) !== "SUCCESS") {
|
|
78
|
+
$message.error((data == null ? void 0 : data.resultMsg) || "\u4E0A\u4F20\u6587\u4EF6\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01");
|
|
79
|
+
reject();
|
|
80
|
+
} else {
|
|
81
|
+
resolve("SUCCESS");
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function validateFormat() {
|
|
87
|
+
if (fileList.value.length < 2)
|
|
88
|
+
return false;
|
|
89
|
+
let isJrxml = false;
|
|
90
|
+
let isJasper = false;
|
|
91
|
+
const rExt = /\.([^.]+)$/;
|
|
92
|
+
fileList.value.forEach((file) => {
|
|
93
|
+
var _a;
|
|
94
|
+
const name = ((_a = file.file) == null ? void 0 : _a.name) || file.name || "";
|
|
95
|
+
const ext = rExt.exec(name) ? RegExp.$1.toLowerCase() : "";
|
|
96
|
+
if (ext && ".jrxml".includes(ext))
|
|
97
|
+
isJrxml = true;
|
|
98
|
+
if (ext && ".jasper".includes(ext))
|
|
99
|
+
isJasper = true;
|
|
100
|
+
});
|
|
101
|
+
if (isJrxml && isJasper)
|
|
102
|
+
return true;
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
expose({
|
|
106
|
+
submit
|
|
107
|
+
});
|
|
108
|
+
return (_ctx, _cache) => {
|
|
109
|
+
return openBlock(), createBlock(unref(NForm), {
|
|
110
|
+
"label-placement": "left",
|
|
111
|
+
"label-width": 75
|
|
112
|
+
}, {
|
|
113
|
+
default: withCtx(() => [
|
|
114
|
+
createVNode(unref(NFormItem), {
|
|
115
|
+
label: "\u683C\u5F0F\u6587\u4EF6:",
|
|
116
|
+
path: "file"
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createVNode(unref(NSpace), { vertical: "" }, {
|
|
120
|
+
default: withCtx(() => [
|
|
121
|
+
createVNode(unref(NUpload), {
|
|
122
|
+
multiple: "",
|
|
123
|
+
"directory-dnd": "",
|
|
124
|
+
"file-list": fileList.value,
|
|
125
|
+
"onUpdate:file-list": _cache[0] || (_cache[0] = ($event) => fileList.value = $event),
|
|
126
|
+
onRemove
|
|
127
|
+
}, {
|
|
128
|
+
default: withCtx(() => [
|
|
129
|
+
createVNode(unref(NUploadDragger), null, {
|
|
130
|
+
default: withCtx(() => [
|
|
131
|
+
createElementVNode("div", _hoisted_1, [
|
|
132
|
+
createVNode(unref(NIcon), {
|
|
133
|
+
size: "36",
|
|
134
|
+
depth: 3,
|
|
135
|
+
component: unref(Archive)
|
|
136
|
+
}, null, 8, ["component"])
|
|
137
|
+
]),
|
|
138
|
+
createVNode(unref(NText), { style: { "font-size": "12px" } }, {
|
|
139
|
+
default: withCtx(() => [
|
|
140
|
+
createTextVNode("\u70B9\u51FB\u6216\u8005\u62D6\u52A8\u6587\u4EF6\u5230\u8BE5\u533A\u57DF\u6765\u4E0A\u4F20")
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}),
|
|
144
|
+
createVNode(unref(NP), {
|
|
145
|
+
depth: "3",
|
|
146
|
+
style: { "margin": "5px 0 0 0", "font-size": "13px" }
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [
|
|
149
|
+
createTextVNode("\u81F3\u5C11\u5305\u542B\u4E00\u4E2Ajxml\u6587\u4EF6\u548C\u4E00\u4E2Ajasper\u6587\u4EF6")
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
})
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
})
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, ["file-list"])
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
})
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
})
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
var EditFormat = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "EditFormat.vue"]]);
|
|
172
|
+
|
|
173
|
+
export { EditFormat as default };
|
|
@@ -358,59 +358,69 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
358
358
|
readonly ignorePathChange: boolean;
|
|
359
359
|
}>;
|
|
360
360
|
NInput: any;
|
|
361
|
-
EditFormat: import("vue").DefineComponent<{
|
|
361
|
+
EditFormat: import("vue").DefineComponent<{
|
|
362
|
+
formatId: {
|
|
363
|
+
type: StringConstructor;
|
|
364
|
+
required: false;
|
|
365
|
+
};
|
|
366
|
+
token: {
|
|
367
|
+
type: StringConstructor;
|
|
368
|
+
required: true;
|
|
369
|
+
};
|
|
370
|
+
}, {
|
|
362
371
|
PROTOCOL: string;
|
|
363
372
|
HOST: string;
|
|
373
|
+
BASEURL: string;
|
|
364
374
|
SAVEIREPORT: string;
|
|
375
|
+
QUERYFILELIST: string;
|
|
376
|
+
DELETEFILE: string;
|
|
365
377
|
instance: import("axios").AxiosInstance;
|
|
366
378
|
$message: import("naive-ui").MessageApi;
|
|
379
|
+
props: {
|
|
380
|
+
formatId?: string | undefined;
|
|
381
|
+
token: string;
|
|
382
|
+
};
|
|
367
383
|
fileList: import("vue").Ref<{
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
type?: string | null | undefined;
|
|
401
|
-
fullPath?: string | null | undefined;
|
|
402
|
-
}[];
|
|
384
|
+
id: string;
|
|
385
|
+
name: string;
|
|
386
|
+
batchId?: string | null | undefined;
|
|
387
|
+
percentage?: number | null | undefined;
|
|
388
|
+
status: "error" | "pending" | "uploading" | "finished" | "removed";
|
|
389
|
+
url?: string | null | undefined;
|
|
390
|
+
file?: {
|
|
391
|
+
readonly lastModified: number;
|
|
392
|
+
readonly name: string;
|
|
393
|
+
readonly webkitRelativePath: string;
|
|
394
|
+
readonly size: number;
|
|
395
|
+
readonly type: string;
|
|
396
|
+
arrayBuffer: {
|
|
397
|
+
(): Promise<ArrayBuffer>;
|
|
398
|
+
(): Promise<ArrayBuffer>;
|
|
399
|
+
};
|
|
400
|
+
slice: {
|
|
401
|
+
(start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
|
|
402
|
+
(start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
|
|
403
|
+
};
|
|
404
|
+
stream: {
|
|
405
|
+
(): ReadableStream<Uint8Array>;
|
|
406
|
+
(): NodeJS.ReadableStream;
|
|
407
|
+
};
|
|
408
|
+
text: {
|
|
409
|
+
(): Promise<string>;
|
|
410
|
+
(): Promise<string>;
|
|
411
|
+
};
|
|
412
|
+
} | null | undefined;
|
|
413
|
+
thumbnailUrl?: string | null | undefined;
|
|
414
|
+
type?: string | null | undefined;
|
|
415
|
+
fullPath?: string | null | undefined;
|
|
403
416
|
}[]>;
|
|
404
|
-
|
|
405
|
-
|
|
417
|
+
queryFileList: () => void;
|
|
418
|
+
onRemove: (options: {
|
|
406
419
|
file: import("naive-ui").UploadFileInfo;
|
|
407
420
|
fileList: import("naive-ui").UploadFileInfo[];
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
fileList: import("naive-ui").UploadFileInfo[];
|
|
412
|
-
}) => Promise<boolean>;
|
|
413
|
-
validateFormat: (file: import("naive-ui").UploadFileInfo, format: string) => boolean;
|
|
421
|
+
}) => Promise<unknown>;
|
|
422
|
+
submit: (datas: import("../../../../shared/types").AnyObject) => Promise<unknown>;
|
|
423
|
+
validateFormat: () => boolean;
|
|
414
424
|
NForm: any;
|
|
415
425
|
NFormItem: import("vue").DefineComponent<{
|
|
416
426
|
readonly label: StringConstructor;
|
|
@@ -1578,7 +1588,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1578
1588
|
}>;
|
|
1579
1589
|
NSpace: any;
|
|
1580
1590
|
Archive: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1581
|
-
},
|
|
1591
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1592
|
+
formatId: {
|
|
1593
|
+
type: StringConstructor;
|
|
1594
|
+
required: false;
|
|
1595
|
+
};
|
|
1596
|
+
token: {
|
|
1597
|
+
type: StringConstructor;
|
|
1598
|
+
required: true;
|
|
1599
|
+
};
|
|
1600
|
+
}>>, {}>;
|
|
1582
1601
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue")[], "close" | "success" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1583
1602
|
verifyUser: {
|
|
1584
1603
|
type: FunctionConstructor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, watch, openBlock, createBlock, unref, normalizeStyle, withCtx, createElementVNode, mergeProps, createVNode, createTextVNode } from 'vue';
|
|
2
2
|
import { useMessage, NModal, NForm, NFormItem, NInput, NButton } from 'naive-ui';
|
|
3
|
-
import EditFormat from './EditFormat.js';
|
|
3
|
+
import EditFormat from './EditFormat.vue.js';
|
|
4
4
|
import '../utils/print.js';
|
|
5
5
|
import { isIReport } from '../utils/browserPrint.js';
|
|
6
6
|
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
@@ -71,12 +71,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
73
|
const submitEditFile = async () => {
|
|
74
|
-
var _a;
|
|
74
|
+
var _a, _b;
|
|
75
75
|
try {
|
|
76
76
|
loading.value = true;
|
|
77
|
-
const data = await ((
|
|
77
|
+
const data = await ((_b = editFormRef.value) == null ? void 0 : _b.submit({
|
|
78
78
|
authorizationKey: token.value,
|
|
79
|
-
id: props.formatId,
|
|
79
|
+
id: (_a = props.formatId) == null ? void 0 : _a.split("_")[1],
|
|
80
80
|
templateId: props.templateId,
|
|
81
81
|
datasourceName: null,
|
|
82
82
|
dataSourceId: null
|
|
@@ -117,7 +117,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
117
117
|
key: 0,
|
|
118
118
|
ref_key: "editFormRef",
|
|
119
119
|
ref: editFormRef
|
|
120
|
-
}, _ctx.$attrs
|
|
120
|
+
}, _ctx.$attrs, {
|
|
121
|
+
formatId: __props.formatId,
|
|
122
|
+
token: token.value
|
|
123
|
+
}), null, 16, ["formatId", "token"])) : (openBlock(), createBlock(unref(NForm), {
|
|
121
124
|
key: 1,
|
|
122
125
|
class: "login-form-button-print",
|
|
123
126
|
ref_key: "formRef",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _sfc_main from './Preview.
|
|
1
|
+
import _sfc_main from './Preview.vue2.js';
|
|
2
2
|
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
3
3
|
|
|
4
4
|
var Preview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "Preview.vue"]]);
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, render, createVNode, withCtx, nextTick, defineComponent, provide } from 'vue';
|
|
2
|
-
import IdentityVerification from '../components/IdentityVerification.js';
|
|
3
|
-
import Preview from '../components/Preview.js';
|
|
2
|
+
import IdentityVerification from '../components/IdentityVerification.vue.js';
|
|
3
|
+
import Preview from '../components/Preview.vue.js';
|
|
4
4
|
|
|
5
5
|
class IdentityVerificationDialog {
|
|
6
6
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dropdown-button{border-color:#d5d5d5!important;color:#212121}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}.c-button-print-modal .n-form-item-feedback-wrapper{display:none}.c-button-preview-modal{max-width:none}.c-button-preview-modal .n-dialog__content{height:98%}
|
|
1
|
+
.dropdown-button{border-color:#d5d5d5!important;color:#212121}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}.c-button-print-modal .n-form-item-feedback-wrapper{display:none}.n-dialog.n-modal.c-button-preview-modal{max-width:none}.n-dialog.n-modal.c-button-preview-modal .n-dialog__content{height:98%}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
3
|
import '../../shared/utils/utilExpand.js';
|
|
4
|
-
import script from './src/DragLayout.js';
|
|
4
|
+
import script from './src/DragLayout.vue.js';
|
|
5
5
|
|
|
6
6
|
const DragLayout = script;
|
|
7
7
|
DragLayout.install = function(app) {
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, computed, onMounted, nextTick, watch, openBlock, createElementBlock, createCommentVNode, createElementVNode, createVNode, unref, withCtx, renderSlot, createTextVNode, normalizeStyle, normalizeClass, createBlock, Fragment, withDirectives, vShow, vModelCheckbox } from 'vue';
|
|
2
2
|
import { NButton, NModal, NForm, NGrid, NFormItemGi, NInput, NSelect, NCheckbox, NInputNumber } from 'naive-ui';
|
|
3
3
|
import draggableComponent from '../../../shared/components/VueDraggable/src/vuedraggable.js';
|
|
4
|
-
import DragFormLeftItem from './DragFormLeftItem.js';
|
|
5
|
-
import DragFormRightItem from './DragFormRightItem.js';
|
|
4
|
+
import DragFormLeftItem from './DragFormLeftItem.vue.js';
|
|
5
|
+
import DragFormRightItem from './DragFormRightItem.vue.js';
|
|
6
6
|
import XEUtils from 'xe-utils';
|
|
7
7
|
import 'moment';
|
|
8
8
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/FabricChart.js';
|
|
3
|
+
import script from './src/FabricChart.vue.js';
|
|
4
4
|
|
|
5
5
|
const FabricChart = script;
|
|
6
6
|
FabricChart.install = function(app) {
|
|
@@ -9,7 +9,7 @@ import { useCenter } from './hooks/useCenter.js';
|
|
|
9
9
|
import { useBottom } from './hooks/useBottom.js';
|
|
10
10
|
import { useOther } from './hooks/useOther.js';
|
|
11
11
|
import { useEvent, useCanvasEvent } from './hooks/useEvent.js';
|
|
12
|
-
import PopupTip from './components/PopupTip.js';
|
|
12
|
+
import PopupTip from './components/PopupTip.vue.js';
|
|
13
13
|
import PopupMenu from './components/PopupMenu.js';
|
|
14
14
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
15
15
|
|
|
File without changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
|
2
1
|
var fabric = fabric || { version: "5.2.1" };
|
|
3
2
|
if (typeof document !== "undefined" && typeof window !== "undefined") {
|
|
4
3
|
if (document instanceof (typeof HTMLDocument !== "undefined" ? HTMLDocument : Document)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/FieldSet.js';
|
|
3
|
+
import script from './src/FieldSet.vue.js';
|
|
4
4
|
|
|
5
5
|
const FieldSet = script;
|
|
6
6
|
FieldSet.install = function(app) {
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/FormConfig.js';
|
|
3
|
+
import script from './src/FormConfig.vue.js';
|
|
4
4
|
|
|
5
5
|
const FormConfig = script;
|
|
6
6
|
FormConfig.install = function(app) {
|
|
@@ -2,9 +2,9 @@ import { defineComponent, ref, provide, toRaw, openBlock, createElementBlock, no
|
|
|
2
2
|
import { uuidGenerator } from '../../../shared/utils/index.js';
|
|
3
3
|
import { cloneDeep, isFunction } from 'lodash-es';
|
|
4
4
|
import draggableComponent from '../../../shared/components/VueDraggable/src/vuedraggable.js';
|
|
5
|
-
import FormConfigCreator from './components/FormConfigCreator.js';
|
|
6
|
-
import FormConfigDragDisplay from './components/FormConfigDragDisplay.js';
|
|
7
|
-
import FormConfigEdit from './components/FormConfigEdit.js';
|
|
5
|
+
import FormConfigCreator from './components/FormConfigCreator.vue.js';
|
|
6
|
+
import FormConfigDragDisplay from './components/FormConfigDragDisplay.vue.js';
|
|
7
|
+
import FormConfigEdit from './components/FormConfigEdit.vue.js';
|
|
8
8
|
import FormConfigMaterialItem from './components/FormConfigMaterialItem.js';
|
|
9
9
|
import { useDataNormalize } from './hooks/useDataNormalize.js';
|
|
10
10
|
import { InjectionFieldList, InjectionMaterialList, InjectionActiveFieldItem, FORM_CONFIG_GROUP } from './constants/index.js';
|
package/es/components/form-config/src/components/{FormConfigCreator.js → FormConfigCreator.vue.js}
RENAMED
|
File without changes
|
|
File without changes
|
package/es/components/form-config/src/components/{FormConfigEdit.js → FormConfigEdit.vue.js}
RENAMED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as FormConfigCreator } from './FormConfigCreator.js';
|
|
2
|
-
export { default as FormConfigEdit } from './FormConfigEdit.js';
|
|
3
|
-
export { default as FormConfigDragDisplay } from './FormConfigDragDisplay.js';
|
|
4
|
-
export { default as CloseButton } from './renderer/CloseButton.js';
|
|
5
|
-
export { default as ComplexNode } from './renderer/ComplexNode.js';
|
|
6
|
-
export { default as DefaultNode } from './renderer/DefaultNode.js';
|
|
1
|
+
export { default as FormConfigCreator } from './FormConfigCreator.vue.js';
|
|
2
|
+
export { default as FormConfigEdit } from './FormConfigEdit.vue.js';
|
|
3
|
+
export { default as FormConfigDragDisplay } from './FormConfigDragDisplay.vue.js';
|
|
4
|
+
export { default as CloseButton } from './renderer/CloseButton.vue.js';
|
|
5
|
+
export { default as ComplexNode } from './renderer/ComplexNode.vue.js';
|
|
6
|
+
export { default as DefaultNode } from './renderer/DefaultNode.vue.js';
|
package/es/components/form-config/src/components/renderer/{CloseButton.js → CloseButton.vue.js}
RENAMED
|
File without changes
|
package/es/components/form-config/src/components/renderer/{ComplexNode.js → ComplexNode.vue.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, openBlock, createElementBlock, createElementVNode, mergeProps, unref, withModifiers, createTextVNode, toDisplayString, createVNode } from 'vue';
|
|
2
|
-
import FormConfigDragDisplay from '../FormConfigDragDisplay.js';
|
|
3
|
-
import CloseButton from './CloseButton.js';
|
|
2
|
+
import FormConfigDragDisplay from '../FormConfigDragDisplay.vue.js';
|
|
3
|
+
import CloseButton from './CloseButton.vue.js';
|
|
4
4
|
import { InjectionActiveFieldItem } from '../../constants/index.js';
|
|
5
5
|
import { bindHover } from '../../utils/index.js';
|
|
6
6
|
import _export_sfc from '../../../../../_virtual/plugin-vue_export-helper.js';
|
package/es/components/form-config/src/components/renderer/{DefaultNode.js → DefaultNode.vue.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, openBlock, createBlock, unref, mergeProps, withModifiers, withCtx, createVNode, normalizeClass, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { NButton, NEllipsis } from 'naive-ui';
|
|
3
|
-
import CloseButton from './CloseButton.js';
|
|
3
|
+
import CloseButton from './CloseButton.vue.js';
|
|
4
4
|
import { InjectionActiveFieldItem, WidgetTextMap } from '../../constants/index.js';
|
|
5
5
|
import { bindHover } from '../../utils/index.js';
|
|
6
6
|
import _export_sfc from '../../../../../_virtual/plugin-vue_export-helper.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as CloseButton } from './CloseButton.js';
|
|
2
|
-
export { default as ComplexNode } from './ComplexNode.js';
|
|
3
|
-
export { default as DefaultNode } from './DefaultNode.js';
|
|
1
|
+
export { default as CloseButton } from './CloseButton.vue.js';
|
|
2
|
+
export { default as ComplexNode } from './ComplexNode.vue.js';
|
|
3
|
+
export { default as DefaultNode } from './DefaultNode.vue.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isString, isArray, isFunction } from 'lodash-es';
|
|
2
2
|
import { computed } from 'vue';
|
|
3
|
-
import ComplexNode from '../components/renderer/ComplexNode.js';
|
|
4
|
-
import DefaultNode from '../components/renderer/DefaultNode.js';
|
|
3
|
+
import ComplexNode from '../components/renderer/ComplexNode.vue.js';
|
|
4
|
+
import DefaultNode from '../components/renderer/DefaultNode.vue.js';
|
|
5
5
|
|
|
6
6
|
function usePresetRenderer() {
|
|
7
7
|
const renderDefaultNode = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/FormRenderWrapper.js';
|
|
3
|
+
import script from './src/FormRenderWrapper.vue.js';
|
|
4
4
|
export { useFieldListAdaptor } from './src/hooks/useFieldListAdaptor.js';
|
|
5
5
|
export { useFormRequest } from './src/hooks/useFormRequest.js';
|
|
6
6
|
export { useCommonLog } from './src/hooks/useCommonLog.js';
|
|
@@ -16,7 +16,7 @@ export { useAnchor } from './src/hooks/useAnchor.js';
|
|
|
16
16
|
export { useAutographOptions } from './src/hooks/useAutographOptions.js';
|
|
17
17
|
export { useFormContext } from './src/hooks/useFormContext.js';
|
|
18
18
|
export { useCommonInjection, useSelectOptionProps } from './src/hooks/useCommonInjection.js';
|
|
19
|
-
export { combineExtendKey, createInputSlot, createSlot, createUrlConfigParams, formRenderLog, injectOrProvide, isNestedFieldType, isNestedType, mergeDeepProperties,
|
|
19
|
+
export { combineExtendKey, createInputSlot, createSlot, createUrlConfigParams, formRenderLog, injectOrProvide, isNestedFieldType, isNestedType, mergeDeepProperties, optionMatcherWithKeyword, parseNumberFromMaybeString, presetRequestHandler, splitExtendKey, validateMessageParser } from './src/utils/index.js';
|
|
20
20
|
export * from '@formily/core';
|
|
21
21
|
export { businessDateParser, isIdCard, isMobile, parseAge2Birthday, parseAge2FromContext, parseBirthday, parseIdCard, transformDateFormat } from './src/utils/business.js';
|
|
22
22
|
export { findNextWidget, queryDecorator, queryInput } from './src/utils/dom.js';
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, openBlock, createBlock, nextTick } from 'vue';
|
|
2
|
-
import FormRender from './FormRender.js';
|
|
2
|
+
import FormRender from './FormRender.vue.js';
|
|
3
3
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
4
4
|
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -8,7 +8,7 @@ import { formRenderLog, mergeDeepProperties } from '../../../utils/index.js';
|
|
|
8
8
|
import { connect, mapProps } from '@formily/vue';
|
|
9
9
|
import { useDebounceFn, isObject } from '@vueuse/core';
|
|
10
10
|
import { NButton, NIcon } from 'naive-ui';
|
|
11
|
-
import FormRender from '../../../FormRender.js';
|
|
11
|
+
import FormRender from '../../../FormRender.vue.js';
|
|
12
12
|
import { assignUpdateValue } from '../../../utils/schema.js';
|
|
13
13
|
|
|
14
14
|
const script = defineComponent({
|
|
@@ -7,7 +7,7 @@ import { useCommonInjection } from '../../hooks/useCommonInjection.js';
|
|
|
7
7
|
import { formRenderLog } from '../../utils/index.js';
|
|
8
8
|
import { connect, mapProps } from '@formily/vue';
|
|
9
9
|
import SearchCascader from '../../../../search-cascader/index.js';
|
|
10
|
-
import script$1 from '../../../../../shared/components/no-data/NoData.js';
|
|
10
|
+
import script$1 from '../../../../../shared/components/no-data/NoData.vue.js';
|
|
11
11
|
import { visitedDecorator, assignUpdateValue } from '../../utils/schema.js';
|
|
12
12
|
import { useFormField } from '../../hooks/useFormField.js';
|
|
13
13
|
import { useFormRequest } from '../../hooks/useFormRequest.js';
|
|
File without changes
|
|
@@ -5,7 +5,7 @@ import { useCommonInjection, useSelectOptionProps } from '../../hooks/useCommonI
|
|
|
5
5
|
import { InjectionAsyncQueue, InjectionChangeContextCollector, InjectionFormItemDepsCollector } from '../../constants/index.js';
|
|
6
6
|
import '../../../../../shared/utils/index.js';
|
|
7
7
|
import '../../../index.js';
|
|
8
|
-
import { createUrlConfigParams, formRenderLog,
|
|
8
|
+
import { createUrlConfigParams, formRenderLog, optionMatcherWithKeyword } from '../../utils/index.js';
|
|
9
9
|
import { useFormField } from '../../hooks/useFormField.js';
|
|
10
10
|
import '../../../../../shared/utils/tapable/SyncHook.js';
|
|
11
11
|
import '../../../../../shared/utils/tapable/SyncBailHook.js';
|
|
@@ -91,10 +91,10 @@ const script = defineComponent({
|
|
|
91
91
|
}, 300);
|
|
92
92
|
const parsedOptions = computed(() => {
|
|
93
93
|
if (remoteOptions.value)
|
|
94
|
-
return
|
|
94
|
+
return optionMatcherWithKeyword(remoteOptions.value, lastSearch.value, labelKey.value);
|
|
95
95
|
if (!Array.isArray(props.options))
|
|
96
96
|
return [];
|
|
97
|
-
return
|
|
97
|
+
return optionMatcherWithKeyword(props.options, lastSearch.value, labelKey.value);
|
|
98
98
|
});
|
|
99
99
|
const changeContextCollector = inject(InjectionChangeContextCollector);
|
|
100
100
|
changeContextCollector.setContext(fieldKey.value, (v) => {
|
|
@@ -3,7 +3,7 @@ import { isString, isEqual } from 'lodash-es';
|
|
|
3
3
|
import { getCurrentInstance, inject, computed, ref, watch } from 'vue';
|
|
4
4
|
import '../../index.js';
|
|
5
5
|
import { InjectionAsyncQueue } from '../constants/index.js';
|
|
6
|
-
import { formRenderLog,
|
|
6
|
+
import { formRenderLog, optionMatcherWithKeyword } from '../utils/index.js';
|
|
7
7
|
import { useFormField } from './useFormField.js';
|
|
8
8
|
import { useFormRequest } from './useFormRequest.js';
|
|
9
9
|
|
|
@@ -50,7 +50,7 @@ function useAutographOptions(props, valueRef) {
|
|
|
50
50
|
}, 300);
|
|
51
51
|
const options = computed(() => {
|
|
52
52
|
var _a;
|
|
53
|
-
return remoteOptions.value ?
|
|
53
|
+
return remoteOptions.value ? optionMatcherWithKeyword(remoteOptions.value, lastSearch.value, labelKey.value) : (_a = props.options) != null ? _a : [];
|
|
54
54
|
});
|
|
55
55
|
watch(
|
|
56
56
|
() => props.wordbook,
|