cnhis-design-vue 3.1.14-beta.9 → 3.1.14
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/_virtual/plugin-vue_export-helper.js +9 -0
- package/es/node_modules/@formily/path/esm/contexts.js +22 -0
- package/es/node_modules/@formily/path/esm/destructor.js +124 -0
- package/es/node_modules/@formily/path/esm/index.js +579 -0
- package/es/node_modules/@formily/path/esm/matcher.js +199 -0
- package/es/node_modules/@formily/path/esm/parser.js +402 -0
- package/es/node_modules/@formily/path/esm/shared.js +73 -0
- package/es/node_modules/@formily/path/esm/tokenizer.js +287 -0
- package/es/node_modules/@formily/path/esm/tokens.js +240 -0
- package/es/node_modules/@formily/path/esm/types.js +17 -0
- package/es/packages/big-table/index.d.ts +13 -0
- package/es/packages/big-table/index.js +1 -2
- package/es/packages/big-table/src/BigTable.js +5 -3
- package/es/packages/big-table/src/BigTable.vue.d.ts +18 -12
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +15 -15
- package/es/packages/big-table/src/bigTableProps.d.ts +4 -0
- package/es/packages/big-table/src/bigTableProps.js +1 -0
- package/es/packages/big-table/src/components/NoData.js +73 -3
- package/es/packages/big-table/src/components/edit-form/edit-input.js +15 -4
- package/es/packages/big-table/src/components/edit-form/edit-separate.js +89 -3
- package/es/packages/big-table/src/components/edit-form/edit-time.d.ts +43 -0
- package/es/packages/big-table/src/components/edit-form/edit-time.js +52 -0
- package/es/packages/big-table/src/components/input-button.js +34 -3
- package/es/packages/big-table/src/components/separate.js +29 -3
- package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +34 -5
- package/es/packages/big-table/src/hooks/useEdit.d.ts +42 -0
- package/es/packages/big-table/src/hooks/useEdit.js +4 -3
- package/es/packages/big-table/src/utils.js +1 -0
- package/es/packages/big-table/style/index.css +133 -0
- package/es/packages/bpmn-workflow/index.js +1 -2
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.js +253 -3
- package/es/packages/button-print/index.js +1 -2
- package/es/packages/button-print/src/ButtonPrint.js +5 -3
- package/es/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +6 -7
- package/es/packages/button-print/src/components/IdentityVerification.js +129 -3
- package/es/packages/button-print/src/utils/print.d.ts +1 -1
- package/es/packages/button-print/src/utils/print.js +4 -4
- package/es/packages/chunk-upload/index.js +1 -1
- package/es/packages/chunk-upload/src/chunk-upload-new.js +474 -3
- package/es/packages/chunk-upload/src/vod-chunk-upload/index.js +2 -3
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js +328 -3
- package/es/packages/chunk-upload/src/vod-upload-modal.js +3 -4
- package/es/packages/drag-layout/index.js +1 -2
- package/es/packages/drag-layout/src/DragFormLeftItem.js +123 -3
- package/es/packages/drag-layout/src/DragFormRightItem.js +268 -3
- package/es/packages/drag-layout/src/DragLayout.js +658 -3
- package/es/packages/fabric-chart/index.js +1 -2
- package/es/packages/fabric-chart/src/FabricChart.js +315 -3
- package/es/packages/fabric-chart/src/components/PopupTip.js +33 -3
- package/es/packages/fabric-chart/src/hooks/useCenter.js +41 -25
- package/es/packages/fabric-chart/src/hooks/useEvent.js +9 -7
- package/es/packages/fabric-chart/src/hooks/useLeft.js +15 -4
- package/es/packages/field-set/index.d.ts +2509 -5166
- package/es/packages/field-set/index.js +1 -2
- package/es/packages/field-set/src/FieldSet.js +346 -3
- package/es/packages/field-set/src/FieldSet.vue.d.ts +2492 -5169
- package/es/packages/form-render/index.d.ts +0 -2
- package/es/packages/form-render/index.js +2 -3
- package/es/packages/form-render/src/FormRender.js +188 -3
- package/es/packages/form-render/src/FormRender.vue.d.ts +0 -2
- package/es/packages/form-render/src/components/renderer/cascader.d.ts +6 -6
- package/es/packages/form-render/src/components/renderer/cascader.js +72 -80
- package/es/packages/form-render/src/components/renderer/combination.d.ts +6 -0
- package/es/packages/form-render/src/components/renderer/combination.js +55 -19
- package/es/packages/form-render/src/components/renderer/formItem.js +1 -1
- package/es/packages/form-render/src/components/renderer/radio.d.ts +12 -4
- package/es/packages/form-render/src/components/renderer/radio.js +23 -5
- package/es/packages/form-render/src/components/renderer/select.js +51 -58
- package/es/packages/form-render/src/components/renderer/simpleComponent.d.ts +17 -2
- package/es/packages/form-render/src/components/renderer/simpleComponent.js +16 -14
- package/es/packages/form-render/src/hooks/useAsyncQueue.d.ts +1 -1
- package/es/packages/form-render/src/hooks/useAsyncQueue.js +1 -1
- package/es/packages/form-render/src/hooks/useChangeContext.d.ts +1 -1
- package/es/packages/form-render/src/hooks/useChangeContext.js +1 -1
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +8 -7
- package/es/packages/form-render/src/hooks/useFormItemDeps.d.ts +3 -2
- package/es/packages/form-render/src/hooks/useFormItemDeps.js +5 -6
- package/es/packages/form-render/src/hooks/useFormRequest.d.ts +2 -2
- package/es/packages/form-render/src/types/fieldItem.d.ts +123 -35
- package/es/packages/form-render/src/types/index.d.ts +4 -2
- package/es/packages/form-render/src/utils/index.d.ts +3 -6
- package/es/packages/form-table/index.js +1 -2
- package/es/packages/form-table/src/FormTable.js +475 -3
- package/es/packages/form-table/src/components/index.js +28 -42
- package/es/packages/form-table/src/components/table-age.js +232 -3
- package/es/packages/form-table/src/components/table-date-picker.js +176 -3
- package/es/packages/form-table/src/components/table-digital.js +138 -3
- package/es/packages/form-table/src/components/table-input-password.js +138 -3
- package/es/packages/form-table/src/components/table-input.js +124 -3
- package/es/packages/form-table/src/components/table-month-picker.js +100 -3
- package/es/packages/form-table/src/components/table-search-more.js +5 -3
- package/es/packages/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/form-table/src/components/table-search.js +5 -3
- package/es/packages/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/form-table/src/components/table-select-multiple.js +161 -3
- package/es/packages/form-table/src/components/table-select.js +156 -3
- package/es/packages/form-table/src/components/table-textarea.js +154 -3
- package/es/packages/form-table/src/components/table-time-picker.js +146 -3
- package/es/packages/form-table/src/components/table-tree-select.js +282 -3
- package/es/packages/form-table/src/components/text-over-tooltip.js +63 -3
- package/es/packages/index.css +136 -0
- package/es/packages/info-header/index.d.ts +1373 -354
- package/es/packages/info-header/index.js +1 -2
- package/es/packages/info-header/src/HiddenContent.js +65 -3
- package/es/packages/info-header/src/HiddenContent.vue.d.ts +689 -178
- package/es/packages/info-header/src/InfoEllipsis.js +43 -0
- package/es/packages/info-header/src/InfoEllipsis.vue.d.ts +833 -0
- package/es/packages/info-header/src/InfoHeader.js +229 -3
- package/es/packages/info-header/src/InfoHeader.vue.d.ts +1373 -354
- package/es/packages/info-header/style/index.css +3 -0
- package/es/packages/map/index.js +1 -2
- package/es/packages/map/src/Map.js +337 -3
- package/es/packages/scale-view/index.js +1 -2
- package/es/packages/scale-view/src/ScaleView.js +418 -3
- package/es/packages/scale-view/src/components/AnswerParse.js +79 -3
- package/es/packages/scale-view/src/components/EvaluateCountdown.js +108 -3
- package/es/packages/scale-view/src/components/EvaluatePage.js +140 -3
- package/es/packages/scale-view/src/components/LoadingCom.js +17 -5
- package/es/packages/scale-view/src/components/NoData.js +73 -3
- package/es/packages/scale-view/src/components/formitem/r-cascader.js +3 -3
- package/es/packages/scale-view/src/components/formitem/r-select.js +3 -3
- package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.js +78 -3
- package/es/packages/select-label/index.js +3 -5
- package/es/packages/select-label/src/LabelFormContent.js +441 -3
- package/es/packages/select-label/src/SelectLabel.js +5 -3
- package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +5 -21
- package/es/packages/select-label/src/components/label-classify.js +128 -3
- package/es/packages/select-person/index.js +1 -2
- package/es/packages/select-person/src/SearchTree.js +5 -3
- package/es/packages/select-person/src/SearchTree.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/packages/select-person/src/SelectPerson.js +5 -3
- package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +4 -5
- package/es/packages/shortcut-provider/index.js +1 -2
- package/es/packages/shortcut-provider/src/ShortcutProvider.js +33 -3
- package/es/packages/shortcut-provider/src/types/index.d.ts +11 -9
- package/es/packages/shortcut-provider/src/utils/index.js +5 -5
- package/es/packages/shortcut-setter/index.d.ts +3247 -1486
- package/es/packages/shortcut-setter/index.js +1 -2
- package/es/packages/shortcut-setter/src/ShortcutSetter.js +42 -3
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +3247 -1486
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +139 -3
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +1700 -1661
- package/es/packages/steps-wheel/index.js +1 -2
- package/es/packages/steps-wheel/src/StepsWheel.js +264 -3
- package/es/packages/time-line/index.js +1 -2
- package/es/packages/time-line/src/TimeLine.js +69 -3
- package/es/src/components/SelectPage/SelectPage.js +62 -3
- package/es/src/components/SelectPage/index.js +2 -3
- package/es/src/components/SvgIcon/SvgIcon.js +35 -3
- package/es/src/components/SvgIcon/index.js +2 -3
- package/es/src/components/TextOverTooltip/TextOverTooltip.js +75 -3
- package/es/src/components/TextOverTooltip/index.js +2 -3
- package/es/src/components/player-vod/index.js +13 -3
- package/es/src/utils/anime.d.ts +1 -1
- package/package.json +1 -1
- package/es/packages/big-table/src/components/NoData.vue_vue_type_script_setup_true_lang.js +0 -72
- package/es/packages/big-table/src/components/edit-form/edit-separate.vue_vue_type_script_setup_true_lang.js +0 -89
- package/es/packages/big-table/src/components/input-button.vue_vue_type_script_setup_true_lang.js +0 -33
- package/es/packages/big-table/src/components/separate.vue_vue_type_script_setup_true_lang.js +0 -28
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.vue_vue_type_script_setup_true_lang.js +0 -252
- package/es/packages/button-print/src/components/IdentityVerification.vue_vue_type_script_setup_true_lang.js +0 -128
- package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.js +0 -473
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue_vue_type_script_setup_true_lang.js +0 -327
- package/es/packages/drag-layout/src/DragFormLeftItem.vue_vue_type_script_setup_true_lang.js +0 -122
- package/es/packages/drag-layout/src/DragFormRightItem.vue_vue_type_script_setup_true_lang.js +0 -267
- package/es/packages/drag-layout/src/DragLayout.vue_vue_type_script_setup_true_lang.js +0 -659
- package/es/packages/fabric-chart/src/FabricChart.vue_vue_type_script_setup_true_lang.js +0 -315
- package/es/packages/fabric-chart/src/components/PopupTip.vue_vue_type_script_setup_true_lang.js +0 -32
- package/es/packages/field-set/src/FieldSet.vue_vue_type_script_setup_true_lang.js +0 -22
- package/es/packages/field-set/src/NewFieldSet.js +0 -4
- package/es/packages/field-set/src/NewFieldSet.vue.d.ts +0 -2607
- package/es/packages/field-set/src/NewFieldSet.vue_vue_type_script_setup_true_lang.js +0 -299
- package/es/packages/field-set/src/OldFieldSet.js +0 -4
- package/es/packages/field-set/src/OldFieldSet.vue.d.ts +0 -2610
- package/es/packages/field-set/src/OldFieldSet.vue_vue_type_script_setup_true_lang.js +0 -330
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.js +0 -187
- package/es/packages/form-table/src/FormTable.vue_vue_type_script_setup_true_lang.js +0 -474
- package/es/packages/form-table/src/components/table-age.vue_vue_type_script_setup_true_lang.js +0 -232
- package/es/packages/form-table/src/components/table-date-picker.vue_vue_type_script_setup_true_lang.js +0 -175
- package/es/packages/form-table/src/components/table-digital.vue_vue_type_script_setup_true_lang.js +0 -138
- package/es/packages/form-table/src/components/table-input-password.vue_vue_type_script_setup_true_lang.js +0 -138
- package/es/packages/form-table/src/components/table-input.vue_vue_type_script_setup_true_lang.js +0 -124
- package/es/packages/form-table/src/components/table-month-picker.vue_vue_type_script_setup_true_lang.js +0 -99
- package/es/packages/form-table/src/components/table-select-multiple.vue_vue_type_script_setup_true_lang.js +0 -160
- package/es/packages/form-table/src/components/table-select.vue_vue_type_script_setup_true_lang.js +0 -155
- package/es/packages/form-table/src/components/table-textarea.vue_vue_type_script_setup_true_lang.js +0 -153
- package/es/packages/form-table/src/components/table-time-picker.vue_vue_type_script_setup_true_lang.js +0 -145
- package/es/packages/form-table/src/components/table-tree-select.vue_vue_type_script_setup_true_lang.js +0 -281
- package/es/packages/form-table/src/components/text-over-tooltip.vue_vue_type_script_setup_true_lang.js +0 -62
- package/es/packages/info-header/src/HiddenContent.vue_vue_type_script_setup_true_lang.js +0 -66
- package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.js +0 -233
- package/es/packages/map/src/Map.vue_vue_type_script_setup_true_lang.js +0 -336
- package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.js +0 -422
- package/es/packages/scale-view/src/components/AnswerParse.vue_vue_type_script_setup_true_lang.js +0 -78
- package/es/packages/scale-view/src/components/EvaluateCountdown.vue_vue_type_script_setup_true_lang.js +0 -107
- package/es/packages/scale-view/src/components/EvaluatePage.vue_vue_type_script_setup_true_lang.js +0 -139
- package/es/packages/scale-view/src/components/LoadingCom.vue_vue_type_template_id_413329b0_lang.js +0 -16
- package/es/packages/scale-view/src/components/NoData.vue_vue_type_script_setup_true_lang.js +0 -72
- package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js +0 -77
- package/es/packages/select-label/src/LabelFormContent.vue_vue_type_script_setup_true_lang.js +0 -441
- package/es/packages/select-label/src/components/label-classify.vue_vue_type_script_setup_true_lang.js +0 -127
- package/es/packages/shortcut-provider/src/ShortcutProvider.vue_vue_type_script_setup_true_lang.js +0 -32
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue_vue_type_script_setup_true_lang.js +0 -38
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue_vue_type_script_setup_true_lang.js +0 -125
- package/es/packages/steps-wheel/src/StepsWheel.vue_vue_type_script_setup_true_lang.js +0 -263
- package/es/packages/time-line/src/TimeLine.vue_vue_type_script_setup_true_lang.js +0 -68
- package/es/src/components/SelectPage/SelectPage.vue_vue_type_script_setup_true_lang.js +0 -61
- package/es/src/components/SvgIcon/SvgIcon.vue_vue_type_script_setup_true_lang.js +0 -34
- package/es/src/components/TextOverTooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js +0 -74
- package/es/src/components/player-vod/index.vue_vue_type_script_setup_true_lang.js +0 -12
package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, openBlock, createElementBlock, createVNode, unref, withModifiers, createElementVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
-
import { debounce, isString } from 'lodash-es';
|
|
3
|
-
import { useMessage, NInput, NButton, NPopconfirm } from 'naive-ui';
|
|
4
|
-
import { useShortcuts } from '../../../packages/shortcut-provider';
|
|
5
|
-
import { transformKey2DisplaySignature, getDisplaySignature } from '../../../packages/shortcut-provider/src/utils';
|
|
6
|
-
import { ShortcutInputState } from '../../../packages/shortcut-setter/constant';
|
|
7
|
-
|
|
8
|
-
const _hoisted_1 = { class: "shortcut-setter-item__wrapper" };
|
|
9
|
-
const _hoisted_2 = { class: "shortcut-setter-item__operation" };
|
|
10
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
|
|
11
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode(" \u786E\u8BA4\u91CD\u7F6E\u5FEB\u6377\u952E\u5417 ");
|
|
12
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "ShortcutSetterItem",
|
|
14
|
-
props: {
|
|
15
|
-
glob: { type: Boolean, required: false },
|
|
16
|
-
value: { type: null, required: true },
|
|
17
|
-
onChange: { type: null, required: true },
|
|
18
|
-
onFocus: { type: null, required: true },
|
|
19
|
-
fieldItem: { type: null, required: true }
|
|
20
|
-
},
|
|
21
|
-
setup(__props) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
const { query, update, updateState } = useShortcuts(props.glob);
|
|
24
|
-
const shortcutItem = computed(() => {
|
|
25
|
-
return query(props.fieldItem.val_key);
|
|
26
|
-
});
|
|
27
|
-
const disabledState = computed(() => {
|
|
28
|
-
var _a;
|
|
29
|
-
return !!((_a = shortcutItem.value) == null ? void 0 : _a.disabled);
|
|
30
|
-
});
|
|
31
|
-
const currentSetShortcut = computed(() => {
|
|
32
|
-
var _a, _b;
|
|
33
|
-
return transformKey2DisplaySignature((_b = (_a = shortcutItem.value) == null ? void 0 : _a.currentKeySignature) != null ? _b : "");
|
|
34
|
-
});
|
|
35
|
-
const state = ref(ShortcutInputState.STATIC);
|
|
36
|
-
const currentEditShortcut = ref("");
|
|
37
|
-
const showContent = computed(() => {
|
|
38
|
-
return state.value === ShortcutInputState.STATIC ? currentSetShortcut.value : currentEditShortcut.value;
|
|
39
|
-
});
|
|
40
|
-
function onInputFocus() {
|
|
41
|
-
state.value = ShortcutInputState.EDIT;
|
|
42
|
-
}
|
|
43
|
-
const inputRef = ref();
|
|
44
|
-
function onInputBlur() {
|
|
45
|
-
var _a;
|
|
46
|
-
state.value = ShortcutInputState.STATIC;
|
|
47
|
-
currentEditShortcut.value = "";
|
|
48
|
-
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
|
49
|
-
}
|
|
50
|
-
const onInputKeyDown = debounce((event) => {
|
|
51
|
-
currentEditShortcut.value = getDisplaySignature(event);
|
|
52
|
-
}, 200, { leading: true, trailing: false });
|
|
53
|
-
const $message = useMessage();
|
|
54
|
-
function updateDecorator(fn, afterUpdate) {
|
|
55
|
-
try {
|
|
56
|
-
fn();
|
|
57
|
-
} catch (e) {
|
|
58
|
-
isString(e) && $message.error(e);
|
|
59
|
-
currentEditShortcut.value = "";
|
|
60
|
-
} finally {
|
|
61
|
-
afterUpdate == null ? void 0 : afterUpdate();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
const onInputKeyUp = debounce((event) => {
|
|
65
|
-
updateDecorator(() => update(props.fieldItem.val_key, event), () => event.target.blur());
|
|
66
|
-
}, 200, { leading: true, trailing: false });
|
|
67
|
-
function onStop() {
|
|
68
|
-
if (!shortcutItem.value)
|
|
69
|
-
return;
|
|
70
|
-
updateDecorator(() => updateState(props.fieldItem.val_key, !disabledState.value), onInputBlur);
|
|
71
|
-
}
|
|
72
|
-
function onReset() {
|
|
73
|
-
if (!shortcutItem.value)
|
|
74
|
-
return;
|
|
75
|
-
updateDecorator(() => update(props.fieldItem.val_key, shortcutItem.value.defaultShortcut), onInputBlur);
|
|
76
|
-
}
|
|
77
|
-
return (_ctx, _cache) => {
|
|
78
|
-
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
79
|
-
createVNode(unref(NInput), {
|
|
80
|
-
ref_key: "inputRef",
|
|
81
|
-
ref: inputRef,
|
|
82
|
-
disabled: unref(disabledState),
|
|
83
|
-
value: unref(showContent),
|
|
84
|
-
onFocus: onInputFocus,
|
|
85
|
-
onBlur: onInputBlur,
|
|
86
|
-
onKeydown: withModifiers(unref(onInputKeyDown), ["prevent", "stop"]),
|
|
87
|
-
onKeyup: withModifiers(unref(onInputKeyUp), ["prevent", "stop"])
|
|
88
|
-
}, null, 8, ["disabled", "value", "onKeydown", "onKeyup"]),
|
|
89
|
-
createElementVNode("section", _hoisted_2, [
|
|
90
|
-
createVNode(unref(NButton), {
|
|
91
|
-
text: "",
|
|
92
|
-
onClick: onStop,
|
|
93
|
-
type: unref(disabledState) ? "info" : "warning"
|
|
94
|
-
}, {
|
|
95
|
-
default: withCtx(() => [
|
|
96
|
-
createTextVNode(toDisplayString(unref(disabledState) ? "\u542F\u7528" : "\u7981\u7528"), 1)
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
}, 8, ["type"]),
|
|
100
|
-
createVNode(unref(NPopconfirm), { onPositiveClick: onReset }, {
|
|
101
|
-
trigger: withCtx(() => [
|
|
102
|
-
createVNode(unref(NButton), {
|
|
103
|
-
disabled: unref(disabledState),
|
|
104
|
-
text: "",
|
|
105
|
-
onClick: onInputBlur,
|
|
106
|
-
type: "info"
|
|
107
|
-
}, {
|
|
108
|
-
default: withCtx(() => [
|
|
109
|
-
_hoisted_3
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
}, 8, ["disabled"])
|
|
113
|
-
]),
|
|
114
|
-
default: withCtx(() => [
|
|
115
|
-
_hoisted_4
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
})
|
|
119
|
-
])
|
|
120
|
-
]);
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
export { script as default };
|
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, createCommentVNode, renderSlot, toDisplayString, createBlock, unref, normalizeStyle, withCtx, withDirectives, vShow, createTextVNode } from 'vue';
|
|
2
|
-
import { NTooltip } from 'naive-ui';
|
|
3
|
-
|
|
4
|
-
const _hoisted_1 = { class: "stepOut" };
|
|
5
|
-
const _hoisted_2 = { style: { "list-style": "none" } };
|
|
6
|
-
const _hoisted_3 = ["title"];
|
|
7
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("ul", { class: "nodeTipContent" }, [
|
|
8
|
-
/* @__PURE__ */ createElementVNode("li", null, [
|
|
9
|
-
/* @__PURE__ */ createElementVNode("p", null, [
|
|
10
|
-
/* @__PURE__ */ createElementVNode("span", { style: { "margin-right": "10px" } }, "(1)"),
|
|
11
|
-
/* @__PURE__ */ createTextVNode(" 2022-07-30 14:15:12 ")
|
|
12
|
-
]),
|
|
13
|
-
/* @__PURE__ */ createElementVNode("p", null, "\u5468\u8001\u5E08"),
|
|
14
|
-
/* @__PURE__ */ createElementVNode("p", null, "\u6B65\u9AA4\u6761\u63D0\u793A"),
|
|
15
|
-
/* @__PURE__ */ createElementVNode("p", null, "\u54B1\u8FD9\u662F\u6D4B\u8BD5\u6848\u4F8B,\u8BF7\u4F7F\u7528\u63D2\u69FD\uFF1A#nodeTipBox \u81EA\u5B9A\u4E49")
|
|
16
|
-
]),
|
|
17
|
-
/* @__PURE__ */ createElementVNode("li", null, [
|
|
18
|
-
/* @__PURE__ */ createElementVNode("p", null, [
|
|
19
|
-
/* @__PURE__ */ createElementVNode("span", { style: { "margin-right": "10px" } }, "(2)"),
|
|
20
|
-
/* @__PURE__ */ createTextVNode(" 2022-07-30 14:15:12 ")
|
|
21
|
-
]),
|
|
22
|
-
/* @__PURE__ */ createElementVNode("p", null, "\u5468\u8001\u5E08"),
|
|
23
|
-
/* @__PURE__ */ createElementVNode("p", null, "\u6B65\u9AA4\u6761\u63D0\u793A"),
|
|
24
|
-
/* @__PURE__ */ createElementVNode("p", null, "\u54B1\u8FD9\u662F\u4E2A\u6D4B\u8BD5\u6848\u4F8B,\u8BF7\u4F7F\u7528\u63D2\u69FD\uFF1A#nodeTipBox \u81EA\u5B9A\u4E49")
|
|
25
|
-
])
|
|
26
|
-
], -1);
|
|
27
|
-
const _hoisted_5 = { class: "stepBottomBox" };
|
|
28
|
-
const _hoisted_6 = ["title"];
|
|
29
|
-
const _hoisted_7 = ["title"];
|
|
30
|
-
const _hoisted_8 = { class: "statusTime" };
|
|
31
|
-
const _hoisted_9 = { key: 1 };
|
|
32
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
33
|
-
__name: "StepsWheel",
|
|
34
|
-
props: {
|
|
35
|
-
stepInfo: {
|
|
36
|
-
type: Object,
|
|
37
|
-
default: () => {
|
|
38
|
-
return {
|
|
39
|
-
list: [],
|
|
40
|
-
cols: 6
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
currentStep: {
|
|
45
|
-
type: Number,
|
|
46
|
-
default: 1
|
|
47
|
-
},
|
|
48
|
-
toolTipShow: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: true
|
|
51
|
-
},
|
|
52
|
-
lastNodeRender: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: false
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
setup(__props) {
|
|
58
|
-
const props = __props;
|
|
59
|
-
const nodeRowCount = computed(() => {
|
|
60
|
-
return Math.ceil(stepInfoList.value.length / props.stepInfo.cols);
|
|
61
|
-
});
|
|
62
|
-
const lastNodeRenderShow = computed(() => {
|
|
63
|
-
return props.lastNodeRender;
|
|
64
|
-
});
|
|
65
|
-
const stepInfoList = ref([]);
|
|
66
|
-
const handleNode = (nodeList, cols) => {
|
|
67
|
-
let length = nodeList.length + 1;
|
|
68
|
-
let rows = Math.ceil(length / cols);
|
|
69
|
-
let sort = true;
|
|
70
|
-
let arr = new Array();
|
|
71
|
-
for (var i = 0; i < rows; i++) {
|
|
72
|
-
arr[i] = new Array(cols);
|
|
73
|
-
arr[i].fill(null);
|
|
74
|
-
}
|
|
75
|
-
let x = 0, y = 0;
|
|
76
|
-
for (let i2 = 1; i2 < length; i2++) {
|
|
77
|
-
arr[x][y] = Object.assign(nodeList[i2 - 1], {
|
|
78
|
-
nodeIndex: i2,
|
|
79
|
-
rowIndex: x + 1
|
|
80
|
-
});
|
|
81
|
-
if (sort) {
|
|
82
|
-
if (i2 % cols != 0) {
|
|
83
|
-
y++;
|
|
84
|
-
} else {
|
|
85
|
-
sort = !sort;
|
|
86
|
-
x++;
|
|
87
|
-
}
|
|
88
|
-
} else {
|
|
89
|
-
if (i2 % cols != 0) {
|
|
90
|
-
y--;
|
|
91
|
-
} else {
|
|
92
|
-
sort = !sort;
|
|
93
|
-
x++;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
let list = [];
|
|
98
|
-
arr.map((v) => {
|
|
99
|
-
v.map((a, i2) => a && (a.sort = i2));
|
|
100
|
-
v[0] && (v[0].nodeType = "frist");
|
|
101
|
-
v[v.length - 1] && (v[v.length - 1].nodeType = "last");
|
|
102
|
-
list = [...list, ...v];
|
|
103
|
-
});
|
|
104
|
-
stepInfoList.value = list;
|
|
105
|
-
};
|
|
106
|
-
const lineCircleLeft = (stepItem) => {
|
|
107
|
-
return stepItem.rowIndex % 2 == 0 && stepItem.nodeType == "frist";
|
|
108
|
-
};
|
|
109
|
-
const lineCircleRight = (stepItem) => {
|
|
110
|
-
return stepItem.rowIndex % 2 != 0 && stepItem.nodeType == "last";
|
|
111
|
-
};
|
|
112
|
-
const lineActiveShow = (stepItem, index) => {
|
|
113
|
-
if (stepItem.rowIndex % 2 == 0) {
|
|
114
|
-
return props.currentStep >= index + (props.stepInfo.cols - 2 * stepItem.sort);
|
|
115
|
-
} else {
|
|
116
|
-
return props.currentStep >= index + 2;
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
const format2DArray = (baseArray, cols) => {
|
|
120
|
-
let len = baseArray.length;
|
|
121
|
-
let lineNum = len % cols === 0 ? len / cols : Math.floor(len / cols + 1);
|
|
122
|
-
let res = [];
|
|
123
|
-
for (let i = 0; i < lineNum; i++) {
|
|
124
|
-
let temp = baseArray.slice(i * cols, i * cols + cols);
|
|
125
|
-
res.push(temp);
|
|
126
|
-
}
|
|
127
|
-
return res;
|
|
128
|
-
};
|
|
129
|
-
const lastLineHidden = (index) => {
|
|
130
|
-
const { cols } = props.stepInfo;
|
|
131
|
-
let arr = format2DArray(stepInfoList.value, cols);
|
|
132
|
-
let lastRow = arr[arr.length - 1].filter((v) => v);
|
|
133
|
-
if (nodeRowCount.value % 2 == 0) {
|
|
134
|
-
return index != lastRow[lastRow.length - 1].nodeIndex - (props.stepInfo.cols - 2 * lastRow[lastRow.length - 1].sort);
|
|
135
|
-
} else {
|
|
136
|
-
return index != lastRow[lastRow.length - 1].nodeIndex - 1;
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
const handleFinishLastNodeCss = (index) => {
|
|
140
|
-
const { cols } = props.stepInfo;
|
|
141
|
-
let arr = format2DArray(stepInfoList.value, cols);
|
|
142
|
-
let lastRow = arr[arr.length - 1].filter((v) => v);
|
|
143
|
-
if (nodeRowCount.value % 2 == 0) {
|
|
144
|
-
return lastNodeRenderShow.value && index == lastRow[lastRow.length - 1].nodeIndex - (props.stepInfo.cols - 2 * lastRow[lastRow.length - 1].sort);
|
|
145
|
-
} else {
|
|
146
|
-
return lastNodeRenderShow.value && index == lastRow[lastRow.length - 1].nodeIndex - 1;
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
const handleFinishLastNodeLine = (index) => {
|
|
150
|
-
const { cols } = props.stepInfo;
|
|
151
|
-
let arr = format2DArray(stepInfoList.value, cols);
|
|
152
|
-
let lastRow = arr[arr.length - 1].filter((v) => v);
|
|
153
|
-
if (nodeRowCount.value % 2 == 0) {
|
|
154
|
-
return lastNodeRenderShow.value && index == lastRow[lastRow.length - 1].nodeIndex - (props.stepInfo.cols - 2 * lastRow[lastRow.length - 1].sort) - 1;
|
|
155
|
-
} else {
|
|
156
|
-
return lastNodeRenderShow.value && index == lastRow[lastRow.length - 1].nodeIndex - 2;
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
watch(() => props.stepInfo, (val) => {
|
|
160
|
-
var _a;
|
|
161
|
-
if ((_a = val == null ? void 0 : val.list) == null ? void 0 : _a.length) {
|
|
162
|
-
handleNode(val.list, val.cols);
|
|
163
|
-
}
|
|
164
|
-
}, { immediate: true, deep: true });
|
|
165
|
-
return (_ctx, _cache) => {
|
|
166
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
167
|
-
createElementVNode("ul", _hoisted_2, [
|
|
168
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(stepInfoList.value, (stepItem, index) => {
|
|
169
|
-
return openBlock(), createElementBlock("li", {
|
|
170
|
-
class: normalizeClass(["stepItem", { [`stepItem_${index + 1}`]: true, [`${stepItem == null ? void 0 : stepItem.stepId}`]: (stepItem == null ? void 0 : stepItem.stepId) ? true : false }]),
|
|
171
|
-
key: (stepItem == null ? void 0 : stepItem.stepId) || index
|
|
172
|
-
}, [
|
|
173
|
-
stepItem ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
174
|
-
createCommentVNode(" \u6B65\u9AA4\u5934\u90E8\u4FE1\u606F "),
|
|
175
|
-
createElementVNode("div", {
|
|
176
|
-
class: normalizeClass(["stepTopBox", { finished: handleFinishLastNodeCss(index) }])
|
|
177
|
-
}, [
|
|
178
|
-
renderSlot(_ctx.$slots, "stepTopBox", {}, () => [
|
|
179
|
-
createElementVNode("span", {
|
|
180
|
-
title: stepItem.title
|
|
181
|
-
}, toDisplayString(stepItem.title), 9, _hoisted_3)
|
|
182
|
-
])
|
|
183
|
-
], 2),
|
|
184
|
-
createCommentVNode(" \u6B65\u9AA4\u6761\u7684\u8282\u70B9\uFF0C\u6B64\u5904\u4E3A\u5706\u5708 "),
|
|
185
|
-
__props.toolTipShow ? (openBlock(), createBlock(unref(NTooltip), {
|
|
186
|
-
key: 0,
|
|
187
|
-
placement: "top",
|
|
188
|
-
"show-arrow": true,
|
|
189
|
-
trigger: "hover",
|
|
190
|
-
style: normalizeStyle({ opacity: "0.88" })
|
|
191
|
-
}, {
|
|
192
|
-
trigger: withCtx(() => [
|
|
193
|
-
createElementVNode("div", {
|
|
194
|
-
class: normalizeClass(["icon", {
|
|
195
|
-
active: __props.currentStep >= stepItem.nodeIndex,
|
|
196
|
-
finished: handleFinishLastNodeCss(index)
|
|
197
|
-
}])
|
|
198
|
-
}, null, 2)
|
|
199
|
-
]),
|
|
200
|
-
default: withCtx(() => [
|
|
201
|
-
renderSlot(_ctx.$slots, "nodeTipBox", {
|
|
202
|
-
stepId: stepItem.stepId
|
|
203
|
-
}, () => [
|
|
204
|
-
_hoisted_4
|
|
205
|
-
])
|
|
206
|
-
]),
|
|
207
|
-
_: 2
|
|
208
|
-
}, 1032, ["style"])) : (openBlock(), createElementBlock("div", {
|
|
209
|
-
key: 1,
|
|
210
|
-
class: normalizeClass(["icon", {
|
|
211
|
-
active: __props.currentStep >= stepItem.nodeIndex,
|
|
212
|
-
finished: handleFinishLastNodeCss(index)
|
|
213
|
-
}])
|
|
214
|
-
}, null, 2)),
|
|
215
|
-
createCommentVNode(" \u6B65\u9AA4\u6761\u8FDE\u63A5\u7EBF\uFF0C\u52A8\u6001\u663E\u793A "),
|
|
216
|
-
stepItem.nodeType !== "last" ? withDirectives((openBlock(), createElementBlock("div", {
|
|
217
|
-
key: 2,
|
|
218
|
-
class: normalizeClass(["line", {
|
|
219
|
-
lineActive: lineActiveShow(stepItem, index),
|
|
220
|
-
finished: handleFinishLastNodeLine(index)
|
|
221
|
-
}])
|
|
222
|
-
}, null, 2)), [
|
|
223
|
-
[vShow, lastLineHidden(index)]
|
|
224
|
-
]) : createCommentVNode("v-if", true),
|
|
225
|
-
createCommentVNode(" \u6B65\u9AA4\u6761\u5F2F\u66F2\u8FDE\u7EBF\uFF0C\u52A8\u6001\u6E32\u67D3 "),
|
|
226
|
-
lineCircleLeft(stepItem) || lineCircleRight(stepItem) ? (openBlock(), createElementBlock("div", {
|
|
227
|
-
key: 3,
|
|
228
|
-
class: normalizeClass({
|
|
229
|
-
lineCircleActive: __props.currentStep > stepItem.nodeIndex,
|
|
230
|
-
lineCircleRight: lineCircleRight(stepItem),
|
|
231
|
-
lineCircleLeft: lineCircleLeft(stepItem)
|
|
232
|
-
})
|
|
233
|
-
}, null, 2)) : createCommentVNode("v-if", true),
|
|
234
|
-
createCommentVNode(" \u6B65\u9AA4\u5E95\u90E8\u4FE1\u606F "),
|
|
235
|
-
createElementVNode("div", _hoisted_5, [
|
|
236
|
-
renderSlot(_ctx.$slots, "stepBottomBox", {}, () => [
|
|
237
|
-
createCommentVNode(" \u6B65\u9AA4\u540D\u79F0 "),
|
|
238
|
-
createElementVNode("p", {
|
|
239
|
-
class: normalizeClass(["stepLabel", { labelFinsh: handleFinishLastNodeCss(index) }]),
|
|
240
|
-
title: stepItem.label
|
|
241
|
-
}, toDisplayString(stepItem.label), 11, _hoisted_6),
|
|
242
|
-
withDirectives(createElementVNode("p", {
|
|
243
|
-
class: "stepExtra",
|
|
244
|
-
title: stepItem.person
|
|
245
|
-
}, toDisplayString(stepItem.person), 9, _hoisted_7), [
|
|
246
|
-
[vShow, stepItem.person]
|
|
247
|
-
]),
|
|
248
|
-
createCommentVNode(" \u6B65\u9AA4\u65F6\u95F4 "),
|
|
249
|
-
createElementVNode("p", _hoisted_8, toDisplayString(stepItem.statusTime), 1)
|
|
250
|
-
])
|
|
251
|
-
])
|
|
252
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
253
|
-
createCommentVNode("null\u5143\u7D20\u5360\u4F4D")
|
|
254
|
-
]))
|
|
255
|
-
], 2);
|
|
256
|
-
}), 128))
|
|
257
|
-
])
|
|
258
|
-
]);
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
export { script as default };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, createVNode, createTextVNode, toDisplayString, createElementVNode, createCommentVNode } from 'vue';
|
|
2
|
-
import { NTimeline, NTimelineItem, NSpace, NButton } from 'naive-ui';
|
|
3
|
-
|
|
4
|
-
const _hoisted_1 = { class: "content" };
|
|
5
|
-
const _hoisted_2 = { class: "content-name" };
|
|
6
|
-
const _hoisted_3 = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "content-extra"
|
|
9
|
-
};
|
|
10
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
11
|
-
__name: "TimeLine",
|
|
12
|
-
props: {
|
|
13
|
-
items: { type: Array, required: false, default: () => [] }
|
|
14
|
-
},
|
|
15
|
-
setup(__props) {
|
|
16
|
-
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(NTimeline), { class: "c-time-line" }, {
|
|
18
|
-
default: withCtx(() => [
|
|
19
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => {
|
|
20
|
-
return openBlock(), createBlock(unref(NTimelineItem), {
|
|
21
|
-
key: index,
|
|
22
|
-
type: item.type
|
|
23
|
-
}, {
|
|
24
|
-
default: withCtx(() => [
|
|
25
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.subItem, (t, i) => {
|
|
26
|
-
return openBlock(), createBlock(unref(NSpace), {
|
|
27
|
-
key: i,
|
|
28
|
-
vertical: "",
|
|
29
|
-
align: "start"
|
|
30
|
-
}, {
|
|
31
|
-
default: withCtx(() => [
|
|
32
|
-
createVNode(unref(NButton), {
|
|
33
|
-
strong: "",
|
|
34
|
-
secondary: "",
|
|
35
|
-
type: item.type
|
|
36
|
-
}, {
|
|
37
|
-
default: withCtx(() => [
|
|
38
|
-
createTextVNode(toDisplayString(t.title), 1)
|
|
39
|
-
]),
|
|
40
|
-
_: 2
|
|
41
|
-
}, 1032, ["type"]),
|
|
42
|
-
createElementVNode("div", _hoisted_1, [
|
|
43
|
-
createVNode(unref(NSpace), { justify: "space-between" }, {
|
|
44
|
-
default: withCtx(() => [
|
|
45
|
-
createElementVNode("span", _hoisted_2, toDisplayString(t.name), 1),
|
|
46
|
-
createElementVNode("span", null, toDisplayString(t.time), 1)
|
|
47
|
-
]),
|
|
48
|
-
_: 2
|
|
49
|
-
}, 1024),
|
|
50
|
-
t.extraText ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(t.extraText), 1)) : createCommentVNode("v-if", true),
|
|
51
|
-
createElementVNode("p", null, toDisplayString(t.content), 1)
|
|
52
|
-
])
|
|
53
|
-
]),
|
|
54
|
-
_: 2
|
|
55
|
-
}, 1024);
|
|
56
|
-
}), 128))
|
|
57
|
-
]),
|
|
58
|
-
_: 2
|
|
59
|
-
}, 1032, ["type"]);
|
|
60
|
-
}), 128))
|
|
61
|
-
]),
|
|
62
|
-
_: 1
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
export { script as default };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, createVNode, unref, withModifiers, withCtx, createTextVNode } from 'vue';
|
|
2
|
-
import { NButton } from 'naive-ui';
|
|
3
|
-
import { ChevronBackOutline, ChevronForwardOutline } from '@vicons/ionicons5';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = /* @__PURE__ */ createTextVNode(" \u4E0A\u4E00\u9875 ");
|
|
6
|
-
const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u4E0B\u4E00\u9875 ");
|
|
7
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "SelectPage",
|
|
9
|
-
props: {
|
|
10
|
-
searchPageConfig: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default: () => ({
|
|
13
|
-
page: 1,
|
|
14
|
-
total: 0,
|
|
15
|
-
hasNextPage: false
|
|
16
|
-
})
|
|
17
|
-
},
|
|
18
|
-
handleSearchChangePage: {
|
|
19
|
-
type: Function,
|
|
20
|
-
default: () => {
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
setup(__props) {
|
|
25
|
-
const props = __props;
|
|
26
|
-
return (_ctx, _cache) => {
|
|
27
|
-
const _component_n_icon = resolveComponent("n-icon");
|
|
28
|
-
return openBlock(), createElementBlock("div", {
|
|
29
|
-
class: "form-select-btn",
|
|
30
|
-
onMousedown: _cache[2] || (_cache[2] = (e) => e.preventDefault())
|
|
31
|
-
}, [
|
|
32
|
-
createVNode(unref(NButton), {
|
|
33
|
-
disabled: props.searchPageConfig.page <= 1,
|
|
34
|
-
type: "dashed",
|
|
35
|
-
block: "",
|
|
36
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => props.handleSearchChangePage("prev"), ["self", "stop"]))
|
|
37
|
-
}, {
|
|
38
|
-
default: withCtx(() => [
|
|
39
|
-
createVNode(_component_n_icon, { component: unref(ChevronBackOutline) }, null, 8, ["component"]),
|
|
40
|
-
_hoisted_1
|
|
41
|
-
]),
|
|
42
|
-
_: 1
|
|
43
|
-
}, 8, ["disabled"]),
|
|
44
|
-
createVNode(unref(NButton), {
|
|
45
|
-
disabled: +props.searchPageConfig.asyncCount === 1 ? !props.searchPageConfig.hasNextPage : props.searchPageConfig.page >= props.searchPageConfig.total,
|
|
46
|
-
type: "dashed",
|
|
47
|
-
block: "",
|
|
48
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => props.handleSearchChangePage("next"), ["self", "stop"]))
|
|
49
|
-
}, {
|
|
50
|
-
default: withCtx(() => [
|
|
51
|
-
_hoisted_2,
|
|
52
|
-
createVNode(_component_n_icon, { component: unref(ChevronForwardOutline) }, null, 8, ["component"])
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["disabled"])
|
|
56
|
-
], 32);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
export { script as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, toDisplayString, createCommentVNode, createElementVNode } from 'vue';
|
|
2
|
-
|
|
3
|
-
const _hoisted_1 = { key: 0 };
|
|
4
|
-
const _hoisted_2 = ["xlink:href"];
|
|
5
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "SvgIcon",
|
|
7
|
-
props: {
|
|
8
|
-
iconClass: { type: String, required: true, default: "" },
|
|
9
|
-
title: { type: String, required: false, default: "" },
|
|
10
|
-
className: { type: String, required: false }
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
const props = __props;
|
|
14
|
-
const iconName = computed(() => `#icon-${props.iconClass}`);
|
|
15
|
-
const svgClass = computed(() => {
|
|
16
|
-
if (props.className) {
|
|
17
|
-
return "svg-icon " + props.className;
|
|
18
|
-
} else {
|
|
19
|
-
return "svg-icon";
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
return (_ctx, _cache) => {
|
|
23
|
-
return openBlock(), createElementBlock("svg", mergeProps({
|
|
24
|
-
class: unref(svgClass),
|
|
25
|
-
"aria-hidden": "true"
|
|
26
|
-
}, _ctx.$attrs), [
|
|
27
|
-
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1, toDisplayString(__props.title), 1)) : createCommentVNode("v-if", true),
|
|
28
|
-
createElementVNode("use", { "xlink:href": unref(iconName) }, null, 8, _hoisted_2)
|
|
29
|
-
], 16);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export { script as default };
|
package/es/src/components/TextOverTooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, normalizeClass, renderSlot, toDisplayString, createTextVNode } from 'vue';
|
|
2
|
-
import { NTooltip } from 'naive-ui';
|
|
3
|
-
import vexutils from '../../../src/utils/vexutils';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = { class: "text-over-tooltip-components" };
|
|
6
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "TextOverTooltip",
|
|
8
|
-
props: {
|
|
9
|
-
content: { type: [String, Number], required: false },
|
|
10
|
-
className: { type: String, required: false },
|
|
11
|
-
refName: { type: String, required: false },
|
|
12
|
-
effect: { type: String, required: false, default: "dark" },
|
|
13
|
-
placement: { type: String, required: false, default: "top" },
|
|
14
|
-
tooltipTitle: { type: [String, Number], required: false, default: "" },
|
|
15
|
-
isAlias: { type: Boolean, required: false }
|
|
16
|
-
},
|
|
17
|
-
setup(__props) {
|
|
18
|
-
const props = __props;
|
|
19
|
-
let isDisabledTooltip = ref(false);
|
|
20
|
-
const curContent = computed(() => {
|
|
21
|
-
let res = props.tooltipTitle || props.content || "";
|
|
22
|
-
if (vexutils.isNumber(res)) {
|
|
23
|
-
return res.toString();
|
|
24
|
-
}
|
|
25
|
-
return res;
|
|
26
|
-
});
|
|
27
|
-
const $refName = ref(null);
|
|
28
|
-
const onMouseOver = (str) => {
|
|
29
|
-
if (props.isAlias) {
|
|
30
|
-
isDisabledTooltip.value = true;
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
let parentWidth = $refName.value.parentNode.offsetWidth;
|
|
34
|
-
let contentWidth = $refName.value.offsetWidth;
|
|
35
|
-
isDisabledTooltip.value = contentWidth > parentWidth;
|
|
36
|
-
};
|
|
37
|
-
const onMouseOut = () => {
|
|
38
|
-
isDisabledTooltip.value = false;
|
|
39
|
-
};
|
|
40
|
-
return (_ctx, _cache) => {
|
|
41
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
42
|
-
createVNode(unref(NTooltip), {
|
|
43
|
-
effect: __props.effect,
|
|
44
|
-
show: unref(isDisabledTooltip),
|
|
45
|
-
placement: __props.placement
|
|
46
|
-
}, {
|
|
47
|
-
trigger: withCtx(() => [
|
|
48
|
-
createElementVNode("div", {
|
|
49
|
-
class: normalizeClass(["ellipsis", __props.className]),
|
|
50
|
-
onMouseover: _cache[0] || (_cache[0] = ($event) => onMouseOver(__props.refName)),
|
|
51
|
-
onMouseout: onMouseOut
|
|
52
|
-
}, [
|
|
53
|
-
createElementVNode("i", {
|
|
54
|
-
ref: (el) => {
|
|
55
|
-
if (el)
|
|
56
|
-
$refName.value = el;
|
|
57
|
-
}
|
|
58
|
-
}, [
|
|
59
|
-
renderSlot(_ctx.$slots, "default"),
|
|
60
|
-
createElementVNode("i", null, toDisplayString(__props.content), 1)
|
|
61
|
-
], 512)
|
|
62
|
-
], 34)
|
|
63
|
-
]),
|
|
64
|
-
default: withCtx(() => [
|
|
65
|
-
createTextVNode(" " + toDisplayString(unref(curContent)), 1)
|
|
66
|
-
]),
|
|
67
|
-
_: 3
|
|
68
|
-
}, 8, ["effect", "show", "placement"])
|
|
69
|
-
]);
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
export { script as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock } from 'vue';
|
|
2
|
-
|
|
3
|
-
var script = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "index",
|
|
5
|
-
setup(__props) {
|
|
6
|
-
return (_ctx, _cache) => {
|
|
7
|
-
return openBlock(), createElementBlock("div");
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export { script as default };
|