cnhis-design-vue 3.1.31-beta.0 → 3.1.31-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +76 -79
- package/es/components/button-print/index.js +2 -2
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +76 -79
- 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} +47 -85
- package/es/components/button-print/src/components/{edit.vue.d.ts → EditFormat.vue.d.ts} +61 -54
- package/es/components/button-print/src/components/EditFormat.vue.js +173 -0
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +76 -64
- package/es/components/button-print/src/components/{IdentityVerification.js → IdentityVerification.vue.js} +22 -10
- package/es/components/button-print/src/components/Preview.vue.d.ts +41 -0
- package/es/components/button-print/src/components/Preview.vue.js +6 -0
- package/es/components/button-print/src/components/Preview.vue2.js +67 -0
- package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
- package/es/components/button-print/src/utils/browserPrint.js +6 -3
- package/es/components/button-print/src/utils/dialog.d.ts +6 -2
- package/es/components/button-print/src/utils/dialog.js +69 -25
- package/es/components/button-print/src/utils/index.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +7 -3
- package/es/components/button-print/src/utils/print.js +51 -4
- 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/hooks/useCenter.js +5 -6
- package/es/components/fabric-chart/src/hooks/useGrid.js +3 -3
- package/es/components/fabric-chart/src/interface.d.ts +1 -1
- 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/checkbox.js +3 -5
- package/es/components/form-render/src/components/renderer/index.js +2 -0
- 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/recommendSelect.d.ts +131 -0
- package/es/components/form-render/src/components/renderer/recommendSelect.js +213 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +0 -1
- package/es/components/form-render/src/components/renderer/select.js +3 -5
- package/es/components/form-render/src/hooks/useAsyncQueue.js +2 -1
- package/es/components/form-render/src/hooks/useAutographOptions.js +5 -7
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +3 -2
- package/es/components/form-render/src/hooks/useBusinessBinding.js +20 -17
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +7 -0
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +8 -1
- package/es/components/form-render/src/hooks/useFormRequest.js +24 -1
- 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/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +160 -102
- package/es/components/iho-table/index.js +1 -2
- package/es/components/iho-table/src/IhoTable.vue.d.ts +160 -102
- package/es/components/iho-table/src/{IhoTable.js → IhoTable.vue.js} +2 -1
- package/es/components/iho-table/src/components/IhoTableColumn.js +14 -11
- package/es/components/iho-table/src/constants/index.d.ts +5 -3
- package/es/components/iho-table/src/constants/index.js +5 -3
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +64 -5
- package/es/components/iho-table/src/hooks/tapHooks/index.js +17 -9
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +5 -3
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +3 -2
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterPlugin/{filter.js → filter.vue.js} +1 -0
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +14 -12
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +32 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +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 +10 -12
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +11 -15
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +17 -24
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +11 -13
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{editSeparate.js → editSeparate.vue.js} +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +9 -12
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +13 -17
- package/es/components/iho-table/src/types/index.d.ts +6 -6
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -1
- package/es/components/iho-table/src/utils/index.d.ts +12 -2
- package/es/components/iho-table/src/utils/index.js +33 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +6 -3
- 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 +146 -78
- package/es/components/keyboard/index.js +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +155 -78
- package/es/components/keyboard/src/Keyboard.vue.js +149 -0
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +6 -4
- package/es/components/keyboard/src/components/{InputNumber.js → InputNumber.vue.js} +0 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +118 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.js +206 -0
- 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 +813 -0
- package/es/components/recommend-search/index.js +10 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +815 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.js +62 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +119 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +148 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +303 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +103 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +63 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +104 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +350 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +156 -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/search-cascader/src/components/SearchMenu.js +3 -3
- 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/es/shared/utils/index.d.ts +1 -1
- package/es/shared/utils/index.js +3 -3
- package/package.json +2 -2
- package/es/components/button-print/src/components/edit.js +0 -142
- package/es/components/fabric-chart/index.d.ts +0 -207
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +0 -208
- package/es/components/keyboard/src/Keyboard.js +0 -285
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, createVNode, mergeProps, unref, isRef, withCtx, createElementVNode, Fragment, renderList, toDisplayString, renderSlot } from 'vue';
|
|
2
|
+
import { useMemoize, useVModel, useVirtualList } from '@vueuse/core';
|
|
3
|
+
import { isObject } from 'lodash-es';
|
|
4
|
+
import RecommendMenu from './RecommendMenu.vue.js';
|
|
5
|
+
import BaseSearch from './BaseSearch.vue.js';
|
|
6
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
7
|
+
|
|
8
|
+
const _hoisted_1 = { class: "recommend-search" };
|
|
9
|
+
const _hoisted_2 = ["onClick"];
|
|
10
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("section", { class: "recommend-search__empty" }, "\u6682\u65E0\u6570\u636E", -1);
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "RecommendSelect",
|
|
13
|
+
props: {
|
|
14
|
+
value: { type: [String, Number] },
|
|
15
|
+
labelKey: { type: String, default: "label" },
|
|
16
|
+
valueKey: { type: String, default: "value" },
|
|
17
|
+
placeholder: { type: String, default: "\u8BF7\u9009\u62E9" },
|
|
18
|
+
editPlaceholder: { type: String, default: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22" },
|
|
19
|
+
options: { type: Array, default: () => [] },
|
|
20
|
+
commonList: { type: Array, default: () => [] },
|
|
21
|
+
recentList: { type: Array, default: () => [] },
|
|
22
|
+
recommendDeletable: { type: Boolean, default: true }
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:value", "search", "delete", "choose", "clear", "openMenu", "closeMenu"],
|
|
25
|
+
setup(__props, { emit: emits }) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const showRef = ref(false);
|
|
28
|
+
const displayPlaceholder = computed(() => {
|
|
29
|
+
return showRef.value ? props.editPlaceholder : props.placeholder;
|
|
30
|
+
});
|
|
31
|
+
const currentOption = ref();
|
|
32
|
+
const jsonParse = useMemoize(
|
|
33
|
+
(value) => {
|
|
34
|
+
try {
|
|
35
|
+
return JSON.parse(value);
|
|
36
|
+
} catch (e) {
|
|
37
|
+
return {};
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{ getKey: (value) => value }
|
|
41
|
+
);
|
|
42
|
+
function getValue(item) {
|
|
43
|
+
const option = jsonParse(item.itemObj);
|
|
44
|
+
return isObject(option) ? option[props.valueKey] : null;
|
|
45
|
+
}
|
|
46
|
+
function getDisplayValue(item) {
|
|
47
|
+
if (isObject(item)) {
|
|
48
|
+
const option = jsonParse(item.itemObj);
|
|
49
|
+
return isObject(option) ? option[props.labelKey] : "";
|
|
50
|
+
}
|
|
51
|
+
let result = "";
|
|
52
|
+
[...props.options, currentOption.value].find((option) => {
|
|
53
|
+
if (!isObject(option) || option[props.valueKey] !== item)
|
|
54
|
+
return;
|
|
55
|
+
result = option[props.labelKey];
|
|
56
|
+
return true;
|
|
57
|
+
});
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
const baseSearchRef = ref();
|
|
61
|
+
const valueRef = useVModel(props, "value", emits);
|
|
62
|
+
const parsedOptions = computed(() => {
|
|
63
|
+
return props.options.filter((option) => {
|
|
64
|
+
return props.commonList.every(notInList) && props.recentList.every(notInList);
|
|
65
|
+
function notInList(item) {
|
|
66
|
+
return jsonParse(item.itemObj)[props.valueKey] !== option[props.valueKey];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
function search(value = "") {
|
|
71
|
+
emits("search", value);
|
|
72
|
+
}
|
|
73
|
+
function onOpenMenu() {
|
|
74
|
+
search();
|
|
75
|
+
emits("openMenu");
|
|
76
|
+
}
|
|
77
|
+
function onCloseMenu() {
|
|
78
|
+
emits("closeMenu");
|
|
79
|
+
}
|
|
80
|
+
function onClear() {
|
|
81
|
+
valueRef.value = null;
|
|
82
|
+
emits("clear");
|
|
83
|
+
}
|
|
84
|
+
function emitChoose(value, type) {
|
|
85
|
+
emits("choose", { type, value, option: { ...currentOption.value } });
|
|
86
|
+
}
|
|
87
|
+
function onChooseRecommend({ type, value }) {
|
|
88
|
+
var _a;
|
|
89
|
+
const _value = getValue(value);
|
|
90
|
+
valueRef.value = _value;
|
|
91
|
+
(_a = baseSearchRef.value) == null ? void 0 : _a.closeMenu();
|
|
92
|
+
currentOption.value = jsonParse(value.itemObj);
|
|
93
|
+
emitChoose(_value, type);
|
|
94
|
+
}
|
|
95
|
+
function onChooseOption(option) {
|
|
96
|
+
var _a;
|
|
97
|
+
if (!isObject(option))
|
|
98
|
+
return;
|
|
99
|
+
valueRef.value = option[props.valueKey];
|
|
100
|
+
(_a = baseSearchRef.value) == null ? void 0 : _a.closeMenu();
|
|
101
|
+
currentOption.value = option;
|
|
102
|
+
emitChoose(option[props.valueKey]);
|
|
103
|
+
}
|
|
104
|
+
const { list, wrapperProps, containerProps } = useVirtualList(parsedOptions, { itemHeight: 32, overscan: 5 });
|
|
105
|
+
return (_ctx, _cache) => {
|
|
106
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
107
|
+
createVNode(BaseSearch, mergeProps({
|
|
108
|
+
ref_key: "baseSearchRef",
|
|
109
|
+
ref: baseSearchRef,
|
|
110
|
+
value: unref(valueRef),
|
|
111
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(valueRef) ? valueRef.value = $event : null),
|
|
112
|
+
show: showRef.value,
|
|
113
|
+
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => showRef.value = $event),
|
|
114
|
+
"display-value": getDisplayValue(unref(valueRef)),
|
|
115
|
+
placeholder: unref(displayPlaceholder),
|
|
116
|
+
onOpenMenu,
|
|
117
|
+
onCloseMenu,
|
|
118
|
+
onSearch: search,
|
|
119
|
+
onClear
|
|
120
|
+
}, _ctx.$attrs), {
|
|
121
|
+
menu: withCtx(() => [
|
|
122
|
+
createVNode(RecommendMenu, {
|
|
123
|
+
"get-display-value": getDisplayValue,
|
|
124
|
+
"common-list": __props.commonList,
|
|
125
|
+
"recent-list": __props.recentList,
|
|
126
|
+
deletable: __props.recommendDeletable,
|
|
127
|
+
onDelete: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("delete", $event)),
|
|
128
|
+
onChoose: onChooseRecommend
|
|
129
|
+
}, null, 8, ["common-list", "recent-list", "deletable"]),
|
|
130
|
+
unref(parsedOptions).length ? (openBlock(), createElementBlock("section", mergeProps({
|
|
131
|
+
key: 0,
|
|
132
|
+
class: "recommend-search__optionContainer",
|
|
133
|
+
style: { "height": "256px" }
|
|
134
|
+
}, unref(containerProps)), [
|
|
135
|
+
createElementVNode("section", mergeProps({ class: "recommend-search__optionWrapper" }, unref(wrapperProps)), [
|
|
136
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), (option) => {
|
|
137
|
+
return openBlock(), createElementBlock("div", {
|
|
138
|
+
onClick: ($event) => onChooseOption(option.data),
|
|
139
|
+
key: option.data[__props.valueKey],
|
|
140
|
+
class: "recommend-search__option"
|
|
141
|
+
}, toDisplayString(option.data[__props.labelKey]), 9, _hoisted_2);
|
|
142
|
+
}), 128))
|
|
143
|
+
], 16)
|
|
144
|
+
], 16)) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
|
|
145
|
+
_hoisted_3
|
|
146
|
+
])
|
|
147
|
+
]),
|
|
148
|
+
_: 3
|
|
149
|
+
}, 16, ["value", "show", "display-value", "placeholder"])
|
|
150
|
+
]);
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
var RecommendSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "RecommendSelect.vue"]]);
|
|
155
|
+
|
|
156
|
+
export { RecommendSelect as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.recommend-search__menuRecommendList{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.recommend-search__menuRecommendList .n-tag{cursor:pointer}.recommend-search__recentRecommend{margin-bottom:8px}.recommend-search__recentRecommend>header{align-items:center;color:rgba(0,0,0,.4);display:flex;justify-content:space-between}.recommend-search__recentRecommend>header .n-icon:hover{color:rgba(0,0,0,.6);cursor:pointer}.recommend-search__commonRecommend{margin-bottom:8px}.recommend-search__commonRecommend>header{align-items:center;color:rgba(0,0,0,.4);display:flex;justify-content:space-between}.recommend-search__commonRecommend>header .n-icon:hover{color:rgba(0,0,0,.6);cursor:pointer}.recommend-search__option{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:32px;padding:0 8px}.recommend-search__option:hover{background:rgba(0,0,0,.03)}.recommend-search__optionContainer{border:1px solid rgba(0,0,0,.1);border-radius:4px}.recommend-search__empty{align-items:center;color:rgba(0,0,0,.3);display:flex;height:100px;justify-content:center}
|
|
@@ -2,7 +2,7 @@ import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
3
|
import { loadViewer } from '../../shared/utils/loadViewer.js';
|
|
4
4
|
import '../../shared/utils/utilExpand.js';
|
|
5
|
-
import script from './src/ScaleView.js';
|
|
5
|
+
import script from './src/ScaleView.vue.js';
|
|
6
6
|
import scriptRadio from './src/components/formitem/r-radio.js';
|
|
7
7
|
import scriptCheckbox from './src/components/formitem/r-checkbox.js';
|
|
8
8
|
import scriptSelect from './src/components/formitem/r-select.js';
|
|
@@ -7,11 +7,11 @@ import { ScaleViewInit } from './hooks/scaleview-init.js';
|
|
|
7
7
|
import { ScaleViewSubmit } from './hooks/scaleview-submit.js';
|
|
8
8
|
import { handleQueryParams, isCollection, isEvaluation } from './utils/judge-types.js';
|
|
9
9
|
import { useEvent } from './hooks/use-event.js';
|
|
10
|
-
import NoData from './components/NoData.js';
|
|
11
|
-
import script$1 from '../../../shared/components/SvgIcon/SvgIcon.js';
|
|
12
|
-
import EvaluateCountdown from './components/EvaluateCountdown.js';
|
|
13
|
-
import EvaluatePage from './components/EvaluatePage.js';
|
|
14
|
-
import AnswerParse from './components/AnswerParse.js';
|
|
10
|
+
import NoData from './components/NoData.vue.js';
|
|
11
|
+
import script$1 from '../../../shared/components/SvgIcon/SvgIcon.vue.js';
|
|
12
|
+
import EvaluateCountdown from './components/EvaluateCountdown.vue.js';
|
|
13
|
+
import EvaluatePage from './components/EvaluatePage.vue.js';
|
|
14
|
+
import AnswerParse from './components/AnswerParse.vue.js';
|
|
15
15
|
import ScaleScore from './components/ScaleScore.js';
|
|
16
16
|
import { useDialog, useMessage, NForm, NFormItem, NButton } from 'naive-ui';
|
|
17
17
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createVNode, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
|
-
import script from '../../../../shared/components/SvgIcon/SvgIcon.js';
|
|
2
|
+
import script from '../../../../shared/components/SvgIcon/SvgIcon.vue.js';
|
|
3
3
|
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
4
4
|
|
|
5
5
|
const _hoisted_1 = { class: "answer-res-wrap" };
|
package/es/components/scale-view/src/components/{EvaluateCountdown.js → EvaluateCountdown.vue.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, reactive, onMounted, watch, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, createVNode, createCommentVNode, createTextVNode } from 'vue';
|
|
2
2
|
import { useEvaluate } from '../hooks/use-evaluate.js';
|
|
3
3
|
import moment from 'moment';
|
|
4
|
-
import script from '../../../../shared/components/SvgIcon/SvgIcon.js';
|
|
4
|
+
import script from '../../../../shared/components/SvgIcon/SvgIcon.vue.js';
|
|
5
5
|
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
6
6
|
|
|
7
7
|
const _hoisted_1 = { class: "answered-wrap" };
|
|
File without changes
|
|
File without changes
|
package/es/components/{big-table/src/components/NoData.js → scale-view/src/components/NoData.vue.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, toDisplayString } from 'vue';
|
|
2
|
-
import noData from '../../../../shared/assets/img/nodata.js';
|
|
3
|
-
import noPermission from '../../../../shared/assets/img/no-permission.js';
|
|
4
|
-
import failure from '../../../../shared/assets/img/failure.js';
|
|
5
|
-
import notfound from '../../../../shared/assets/img/notfound.js';
|
|
2
|
+
import noData from '../../../../shared/assets/img/nodata.png.js';
|
|
3
|
+
import noPermission from '../../../../shared/assets/img/no-permission.png.js';
|
|
4
|
+
import failure from '../../../../shared/assets/img/failure.png.js';
|
|
5
|
+
import notfound from '../../../../shared/assets/img/notfound.png.js';
|
|
6
6
|
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
7
7
|
|
|
8
8
|
const _hoisted_1 = { class: "no-data-tip NoData-page" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, reactive, createVNode, resolveComponent } from 'vue';
|
|
2
2
|
import { NCascader, NEmpty } from 'naive-ui';
|
|
3
|
-
import LoadingCom from '../LoadingCom.js';
|
|
3
|
+
import LoadingCom from '../LoadingCom.vue.js';
|
|
4
4
|
|
|
5
5
|
var RCascader = defineComponent({
|
|
6
6
|
name: "RCascader",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, reactive, computed, watch, createVNode, resolveComponent } from 'vue';
|
|
2
2
|
import { NSelect, NEmpty } from 'naive-ui';
|
|
3
|
-
import LoadingCom from '../LoadingCom.js';
|
|
3
|
+
import LoadingCom from '../LoadingCom.vue.js';
|
|
4
4
|
|
|
5
5
|
var scriptSelect = defineComponent({
|
|
6
6
|
name: "RSelect",
|
|
@@ -9,7 +9,7 @@ import RCollection from '../components/formitem/r-collection.js';
|
|
|
9
9
|
import RAddress from '../components/formitem/r-address.js';
|
|
10
10
|
import RUpload from '../components/formitem/r-upload.js';
|
|
11
11
|
import RMap from '../components/formitem/r-map.js';
|
|
12
|
-
import script from '../../../vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js';
|
|
12
|
+
import script from '../../../vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js';
|
|
13
13
|
import SelectLabel from '../../../select-label/index.js';
|
|
14
14
|
import RSign from '../components/formitem/r-sign.js';
|
|
15
15
|
|
|
@@ -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/SearchCascader.js';
|
|
3
|
+
import script from './src/SearchCascader.vue.js';
|
|
4
4
|
|
|
5
5
|
const SearchCascader = script;
|
|
6
6
|
SearchCascader.install = function(app) {
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, inject, createVNode, withModifiers, ref, createTextVNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { traverse } from '../../../../shared/utils/index.js';
|
|
3
3
|
import { Reload, ChevronForward } from '@vicons/ionicons5';
|
|
4
4
|
import { NOOP } from '@vue/shared';
|
|
5
5
|
import { useVirtualList } from '@vueuse/core';
|
|
@@ -102,14 +102,14 @@ const SearchMenuList = defineComponent({
|
|
|
102
102
|
"title": item.data[props.labelKey]
|
|
103
103
|
}, [createVNode("div", {
|
|
104
104
|
"class": "search-cascader__optionText"
|
|
105
|
-
}, [
|
|
105
|
+
}, [showCheckbox.value ? createVNode(NCheckbox, {
|
|
106
106
|
"style": {
|
|
107
107
|
marginRight: "8px"
|
|
108
108
|
},
|
|
109
109
|
"checked": isChecked(item.data),
|
|
110
110
|
"onClick": withModifiers(NOOP, ["stop"]),
|
|
111
111
|
"onUpdateChecked": (v) => v && updateValue(item.data)
|
|
112
|
-
}, null)
|
|
112
|
+
}, null) : null, item.data[props.labelKey]]), loadingNode.value === item.data ? createVNode(Reload, {
|
|
113
113
|
"class": "rotate"
|
|
114
114
|
}, null) : item.data.isLeaf ? null : createVNode(ChevronForward, null, null)]);
|
|
115
115
|
})])]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/SelectLabel.js';
|
|
4
|
-
import scriptFormContent from './src/LabelFormContent.js';
|
|
3
|
+
import script from './src/SelectLabel.vue.js';
|
|
4
|
+
import scriptFormContent from './src/LabelFormContent.vue.js';
|
|
5
5
|
|
|
6
6
|
const SelectLabel = script;
|
|
7
7
|
const LabelFormContent = scriptFormContent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, computed, watch, openBlock, createElementBlock, unref, createCommentVNode, withDirectives, createElementVNode, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, normalizeClass, vShow, nextTick } from 'vue';
|
|
2
2
|
import { useMessage, NTabs, NTabPane, NAnchor, NAnchorLink } from 'naive-ui';
|
|
3
|
-
import labelClassify from './components/label-classify.js';
|
|
3
|
+
import labelClassify from './components/label-classify.vue.js';
|
|
4
4
|
import { handleLabelColor } from '../../../shared/utils/vexutils.js';
|
|
5
5
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
6
6
|
import XEUtils from 'xe-utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _sfc_main from './SelectLabel.
|
|
1
|
+
import _sfc_main from './SelectLabel.vue2.js';
|
|
2
2
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
3
|
|
|
4
4
|
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "SelectLabel.vue"]]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, computed, onMounted, watch, openBlock, createElementBlock, Fragment, createElementVNode, createVNode, unref, withCtx, renderList, createBlock, normalizeStyle, toDisplayString, withDirectives, normalizeClass, createTextVNode, vShow, createCommentVNode, mergeProps, nextTick } from 'vue';
|
|
2
2
|
import { NSpace, NTag, NTooltip, NIcon, NModal } from 'naive-ui';
|
|
3
3
|
import { AddCircleOutline } from '@vicons/ionicons5';
|
|
4
|
-
import script from '../../../shared/components/SvgIcon/SvgIcon.js';
|
|
5
|
-
import scriptFormContent from './LabelFormContent.js';
|
|
4
|
+
import script from '../../../shared/components/SvgIcon/SvgIcon.vue.js';
|
|
5
|
+
import scriptFormContent from './LabelFormContent.vue.js';
|
|
6
6
|
import { handleLabelColor } from '../../../shared/utils/vexutils.js';
|
|
7
7
|
import XEUtils from 'xe-utils';
|
|
8
8
|
|
package/es/components/select-label/src/components/{label-classify.js → label-classify.vue.js}
RENAMED
|
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/SelectPerson.js';
|
|
3
|
+
import script from './src/SelectPerson.vue.js';
|
|
4
4
|
|
|
5
5
|
const SelectPerson = script;
|
|
6
6
|
SelectPerson.install = function(app) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _sfc_main from './SelectPerson.
|
|
1
|
+
import _sfc_main from './SelectPerson.vue2.js';
|
|
2
2
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
3
|
|
|
4
4
|
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "SelectPerson.vue"]]);
|
|
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/ShortcutProvider.js';
|
|
3
|
+
import script from './src/ShortcutProvider.vue.js';
|
|
4
4
|
export { GlobalShortcutProvider, ShortcutManager, useShortcuts } from './src/hooks/useShortcuts.js';
|
|
5
5
|
export { useShortcutSignature } from './src/hooks/useShortcutSignature.js';
|
|
6
6
|
|
|
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/ShortcutSetter.js';
|
|
3
|
+
import script from './src/ShortcutSetter.vue.js';
|
|
4
4
|
|
|
5
5
|
const ShortcutSetter = script;
|
|
6
6
|
ShortcutSetter.install = function(app) {
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, watch, openBlock, createBlock, unref }
|
|
|
2
2
|
import { isEqual, cloneDeep } from 'lodash-es';
|
|
3
3
|
import '../../shortcut-provider/index.js';
|
|
4
4
|
import { normalizeSignatureInfo, isInvalidSignature, getDisplaySignature } from '../../shortcut-provider/src/utils/index.js';
|
|
5
|
-
import ShortcutSetterItem from './ShortcutSetterItem.js';
|
|
5
|
+
import ShortcutSetterItem from './ShortcutSetterItem.vue.js';
|
|
6
6
|
import FormRender from '../../form-render/index.js';
|
|
7
7
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
8
8
|
import { GlobalShortcutProvider, useShortcuts } from '../../shortcut-provider/src/hooks/useShortcuts.js';
|
package/es/components/shortcut-setter/src/{ShortcutSetterItem.js → ShortcutSetterItem.vue.js}
RENAMED
|
File without changes
|
|
@@ -63,12 +63,15 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
63
63
|
stepItemRef: any;
|
|
64
64
|
countBoxWidth: import("vue").ComputedRef<string>;
|
|
65
65
|
stepInfoList: import("vue").Ref<any[]>;
|
|
66
|
+
stepInfoArray: import("vue").Ref<any[]>;
|
|
66
67
|
handleNode: (nodeList: any[], cols: number) => void;
|
|
68
|
+
fillBoxShow: (item: any) => any;
|
|
67
69
|
lineCircleLeft: (stepItem: any) => boolean;
|
|
68
70
|
lineCircleRight: (stepItem: any) => boolean;
|
|
69
71
|
lineActiveShow: (stepItem: any, index: number) => boolean;
|
|
70
72
|
format2DArray: (baseArray: any[], cols: number) => never[];
|
|
71
73
|
lastLineHidden: (index: number) => boolean;
|
|
74
|
+
isLastNode: (index: number) => boolean;
|
|
72
75
|
handleFinishLastNodeCss: (index: number) => boolean;
|
|
73
76
|
handleFinishLastNodeLine: (index: number, type?: string | undefined) => boolean;
|
|
74
77
|
NTooltip: any;
|
|
@@ -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/StepsWheel.js';
|
|
3
|
+
import script from './src/StepsWheel.vue.js';
|
|
4
4
|
|
|
5
5
|
const StepsWheel = script;
|
|
6
6
|
StepsWheel.install = function(app) {
|
|
@@ -62,12 +62,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
62
|
stepItemRef: any;
|
|
63
63
|
countBoxWidth: import("vue").ComputedRef<string>;
|
|
64
64
|
stepInfoList: import("vue").Ref<any[]>;
|
|
65
|
+
stepInfoArray: import("vue").Ref<any[]>;
|
|
65
66
|
handleNode: (nodeList: any[], cols: number) => void;
|
|
67
|
+
fillBoxShow: (item: any) => any;
|
|
66
68
|
lineCircleLeft: (stepItem: any) => boolean;
|
|
67
69
|
lineCircleRight: (stepItem: any) => boolean;
|
|
68
70
|
lineActiveShow: (stepItem: any, index: number) => boolean;
|
|
69
71
|
format2DArray: (baseArray: any[], cols: number) => never[];
|
|
70
72
|
lastLineHidden: (index: number) => boolean;
|
|
73
|
+
isLastNode: (index: number) => boolean;
|
|
71
74
|
handleFinishLastNodeCss: (index: number) => boolean;
|
|
72
75
|
handleFinishLastNodeLine: (index: number, type?: string) => boolean;
|
|
73
76
|
NTooltip: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, toRefs, ref, watch, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createElementVNode, Fragment, renderList, createCommentVNode, renderSlot, toDisplayString, createBlock, withCtx,
|
|
1
|
+
import { defineComponent, computed, toRefs, ref, watch, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createElementVNode, Fragment, renderList, createCommentVNode, withDirectives, renderSlot, toDisplayString, vShow, createBlock, withCtx, createVNode, createTextVNode } from 'vue';
|
|
2
2
|
import { NTooltip, NEmpty } from 'naive-ui';
|
|
3
3
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
4
4
|
|
|
@@ -26,8 +26,13 @@ const _hoisted_3 = /* @__PURE__ */ createElementVNode("ul", { class: "nodeTipCon
|
|
|
26
26
|
], -1);
|
|
27
27
|
const _hoisted_4 = ["title"];
|
|
28
28
|
const _hoisted_5 = ["title"];
|
|
29
|
-
const _hoisted_6 =
|
|
30
|
-
const _hoisted_7 = {
|
|
29
|
+
const _hoisted_6 = ["title"];
|
|
30
|
+
const _hoisted_7 = {
|
|
31
|
+
key: 0,
|
|
32
|
+
style: { "height": "48px" }
|
|
33
|
+
};
|
|
34
|
+
const _hoisted_8 = { key: 1 };
|
|
35
|
+
const _hoisted_9 = { key: 1 };
|
|
31
36
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
32
37
|
__name: "StepsWheel",
|
|
33
38
|
props: {
|
|
@@ -83,6 +88,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
88
|
return `${width}px`;
|
|
84
89
|
});
|
|
85
90
|
const stepInfoList = ref([]);
|
|
91
|
+
const stepInfoArray = ref([]);
|
|
86
92
|
const handleNode = (nodeList, cols) => {
|
|
87
93
|
let length = nodeList.length + 1;
|
|
88
94
|
let rows = Math.ceil(nodeList.length / cols);
|
|
@@ -122,6 +128,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
128
|
list = [...list, ...v];
|
|
123
129
|
});
|
|
124
130
|
stepInfoList.value = list;
|
|
131
|
+
stepInfoArray.value = arr;
|
|
132
|
+
};
|
|
133
|
+
const fillBoxShow = (item) => {
|
|
134
|
+
if (stepInfoArray.value.length && item.rowIndex <= stepInfoArray.value.length - 1) {
|
|
135
|
+
return stepInfoArray.value[item.rowIndex].some((v) => v.title);
|
|
136
|
+
}
|
|
137
|
+
return false;
|
|
125
138
|
};
|
|
126
139
|
const lineCircleLeft = (stepItem) => {
|
|
127
140
|
const { list = [] } = props.stepInfo;
|
|
@@ -158,6 +171,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
158
171
|
return index != lastRow[lastRow.length - 1].nodeIndex - 1;
|
|
159
172
|
}
|
|
160
173
|
};
|
|
174
|
+
const isLastNode = (index) => {
|
|
175
|
+
const { cols } = props.stepInfo;
|
|
176
|
+
let arr = format2DArray(stepInfoList.value, cols);
|
|
177
|
+
let lastRow = arr[arr.length - 1].filter((v) => v);
|
|
178
|
+
if (nodeRowCount.value % 2 == 0) {
|
|
179
|
+
return index == lastRow[0].nodeIndex - (cols - 2 * lastRow[0].sort);
|
|
180
|
+
} else {
|
|
181
|
+
return index == lastRow[lastRow.length - 1].nodeIndex - 1;
|
|
182
|
+
}
|
|
183
|
+
};
|
|
161
184
|
const handleFinishLastNodeCss = (index) => {
|
|
162
185
|
const { cols } = props.stepInfo;
|
|
163
186
|
let arr = format2DArray(stepInfoList.value, cols);
|
|
@@ -214,7 +237,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
214
237
|
}, [
|
|
215
238
|
stepItem ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
216
239
|
createCommentVNode(" \u6B65\u9AA4\u5934\u90E8\u4FE1\u606F "),
|
|
217
|
-
createElementVNode("div", {
|
|
240
|
+
withDirectives(createElementVNode("div", {
|
|
218
241
|
class: normalizeClass(["stepTopBox", {
|
|
219
242
|
finished: handleFinishLastNodeCss(index),
|
|
220
243
|
stepTopBox_right: __props.placement === "right",
|
|
@@ -226,7 +249,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
226
249
|
title: stepItem.title
|
|
227
250
|
}, toDisplayString(stepItem.title), 9, _hoisted_2)
|
|
228
251
|
])
|
|
229
|
-
], 2),
|
|
252
|
+
], 2), [
|
|
253
|
+
[vShow, stepItem.title]
|
|
254
|
+
]),
|
|
230
255
|
createCommentVNode(" \u6B65\u9AA4\u6761\u7684\u8282\u70B9\uFF0C\u6B64\u5904\u4E3A\u5706\u5708 "),
|
|
231
256
|
__props.toolTipShow ? (openBlock(), createBlock(unref(NTooltip), {
|
|
232
257
|
key: 0,
|
|
@@ -312,21 +337,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
312
337
|
[vShow, stepItem.person]
|
|
313
338
|
]),
|
|
314
339
|
createCommentVNode(" \u6B65\u9AA4\u65F6\u95F4 "),
|
|
315
|
-
withDirectives(createElementVNode("p", {
|
|
340
|
+
withDirectives(createElementVNode("p", {
|
|
341
|
+
class: "statusTime",
|
|
342
|
+
title: stepItem.statusTime
|
|
343
|
+
}, toDisplayString(stepItem.statusTime), 9, _hoisted_6), [
|
|
316
344
|
[vShow, stepItem.statusTime]
|
|
317
345
|
])
|
|
318
346
|
], 2)
|
|
319
347
|
])
|
|
320
348
|
], 2)
|
|
321
|
-
])
|
|
349
|
+
]),
|
|
350
|
+
fillBoxShow(stepItem) || isLastNode(index) ? (openBlock(), createElementBlock("div", _hoisted_7)) : createCommentVNode("v-if", true)
|
|
322
351
|
], 2)
|
|
323
|
-
], 64)) : (openBlock(), createElementBlock("div",
|
|
352
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
324
353
|
createCommentVNode("null\u5143\u7D20\u5360\u4F4D")
|
|
325
354
|
]))
|
|
326
355
|
], 2);
|
|
327
356
|
}), 128))
|
|
328
357
|
])
|
|
329
|
-
], 2)) : (openBlock(), createElementBlock("div",
|
|
358
|
+
], 2)) : (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
330
359
|
createVNode(unref(NEmpty), { description: unref(noDataMsg) }, null, 8, ["description"])
|
|
331
360
|
]))
|
|
332
361
|
], 4);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.step-wheel-box{font-family:PingFangSC-Medium,PingFang SC;font-size:16px;font-weight:500;height:100%;overflow:hidden;width:100%}.step-wheel-box .stepOut{display:flex;justify-content:center}.step-wheel-box .stepOut .stepItem{float:left;font-family:SimSun;font-size:16px;
|
|
1
|
+
.step-wheel-box{font-family:PingFangSC-Medium,PingFang SC;font-size:16px;font-weight:500;height:100%;overflow:hidden;width:100%}.step-wheel-box .stepOut{display:flex;justify-content:center}.step-wheel-box .stepOut .stepItem{float:left;font-family:SimSun;font-size:16px;min-width:73px;position:relative;text-align:center;top:48px;width:15%}.step-wheel-box .stepOut .stepItem .lineCircleRight{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:0 dashed rgba(3,2,2,.4)!important;border-radius:0 25px 25px 0;border-right:1px dashed rgba(3,2,2,.4);border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:55%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementRight{width:100%}.step-wheel-box .stepOut .stepItem .lineCircleLeft{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:1px dashed rgba(3,2,2,.4);border-radius:25px 0 0 25px;border-right:0 dashed rgba(3,2,2,.4)!important;border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:15%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementLeft{left:-55%;width:100%}.step-wheel-box .stepOut .stepItem .lineCircleActive{border:1px solid #2563f4}.step-wheel-box .stepOut .stepItem .lineCircleFinished{border:1px solid #5dc055}.step-wheel-box .stepOut .stepItem .icon{background:#969696;border-radius:50%;height:13px;margin:0 auto;position:relative;width:13px;z-index:888}.step-wheel-box .stepOut .stepItem .active{background-color:#2563f4}.step-wheel-box .stepOut .stepItem .finished{background-color:#5dc055!important;border-color:#5dc055!important;color:#fff!important}.step-wheel-box .stepOut .stepItem .labelFinsh{color:#5dc055!important}.step-wheel-box .stepOut .stepItem .line{border-bottom:1px dashed rgba(3,2,2,.4);left:55%;position:absolute;top:6px;width:90%;z-index:111}.step-wheel-box .stepOut .stepItem .lineActive{border-bottom:1px solid #2563f4}.step-wheel-box .stepOut .stepItem .stepTopBox{background:rgba(110,153,255,.11);border-radius:4px;color:#2563f4;cursor:pointer;height:40px;left:50%;line-height:40px;max-width:70%;min-width:73px;overflow:hidden;padding:0 5px;position:absolute;text-overflow:ellipsis;top:-48px;transform:translateX(-50%);white-space:nowrap}.step-wheel-box .stepOut .stepItem .stepTopBox_right{transform:translateX(-10%)}.step-wheel-box .stepOut .stepItem .stepTopBox_left{transform:translateX(-90%)}.step-wheel-box .stepOut .stepItem .stepBottomBox{align-items:center;cursor:pointer;display:flex;flex-direction:column;min-width:73px;overflow:hidden;padding:8px 0;width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox{align-items:center;display:flex;flex-direction:column;height:calc(100% - 27px);width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .stepBottomDefaultBox{align-items:center}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox_right{align-items:flex-start;left:45%;position:relative}.step-wheel-box .stepOut .stepItem .stepBottomBox_left{align-items:flex-end;left:-45%;position:relative}.step-wheel-box .stepOut .stepItem .stepLabel{color:#212121;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.step-wheel-box .stepOut .stepItem .stepLabel_right{text-align:left}.step-wheel-box .stepOut .stepItem .stepLabel_left{text-align:right}.step-wheel-box .stepOut .stepItem .stepExtra{border:1px solid #cacaca;border-radius:4px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:95%}.step-wheel-box .stepOut .stepItem .statusTime{color:rgba(0,0,0,.6);font-size:14px;font-weight:400;margin:0;width:95%}.placementRight{left:-1%;position:relative}.placementLeft{left:10%;position:relative}.nodeTipContent{margin:0;max-height:200px;max-width:400px;overflow:auto;padding:0;text-align:center}.nodeTipContent li{list-style:none;margin-bottom:5px}.nodeTipContent li p{margin:0}
|
|
@@ -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/TimeLine.js';
|
|
3
|
+
import script from './src/TimeLine.vue.js';
|
|
4
4
|
|
|
5
5
|
const TimeLine = script;
|
|
6
6
|
TimeLine.install = function(app) {
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
|
-
import script from './src/vod-chunk-upload/vod-chunk-upload.js';
|
|
2
|
+
import script from './src/vod-chunk-upload/vod-chunk-upload.vue.js';
|
|
3
3
|
import uploader from 'vue-simple-uploader';
|
|
4
4
|
import 'vue-simple-uploader/dist/style.css';
|
|
5
5
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import script from './vod-chunk-upload.js';
|
|
2
|
-
export { default } from './vod-chunk-upload.js';
|
|
1
|
+
import script from './vod-chunk-upload.vue.js';
|
|
2
|
+
export { default } from './vod-chunk-upload.vue.js';
|