cnhis-design-vue 3.1.14-beta.11.1 → 3.1.14-beta.13
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/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_vue_type_script_setup_true_lang.js +8 -11
- package/es/packages/big-table/src/components/NoData.js +73 -3
- package/es/packages/big-table/src/components/edit-form/edit-separate.js +89 -3
- 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/useEdit.js +2 -3
- 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/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 +316 -3
- package/es/packages/fabric-chart/src/components/PopupTip.js +33 -3
- package/es/packages/field-set/index.js +1 -2
- package/es/packages/field-set/src/FieldSet.js +346 -3
- package/es/packages/form-render/index.d.ts +0 -1
- 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 -1
- package/es/packages/form-render/src/components/renderer/combination.js +2 -3
- 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/info-header/index.js +1 -2
- package/es/packages/info-header/src/HiddenContent.js +65 -3
- package/es/packages/info-header/src/InfoEllipsis.js +42 -3
- package/es/packages/info-header/src/InfoHeader.js +229 -3
- 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-setter/index.js +1 -2
- package/es/packages/shortcut-setter/src/ShortcutSetter.js +38 -3
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +126 -3
- 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/package.json +153 -153
- 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 -316
- 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 -345
- 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 -64
- package/es/packages/info-header/src/InfoEllipsis.vue_vue_type_script_setup_true_lang.js +0 -41
- package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.js +0 -229
- 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
|
@@ -1,4 +1,70 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
const _hoisted_1 = { class: "content" };
|
|
6
|
+
const _hoisted_2 = { class: "content-name" };
|
|
7
|
+
const _hoisted_3 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "content-extra"
|
|
10
|
+
};
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "TimeLine",
|
|
13
|
+
props: {
|
|
14
|
+
items: { default: () => [] }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return openBlock(), createBlock(unref(NTimeline), { class: "c-time-line" }, {
|
|
19
|
+
default: withCtx(() => [
|
|
20
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => {
|
|
21
|
+
return openBlock(), createBlock(unref(NTimelineItem), {
|
|
22
|
+
key: index,
|
|
23
|
+
type: item.type
|
|
24
|
+
}, {
|
|
25
|
+
default: withCtx(() => [
|
|
26
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.subItem, (t, i) => {
|
|
27
|
+
return openBlock(), createBlock(unref(NSpace), {
|
|
28
|
+
key: i,
|
|
29
|
+
vertical: "",
|
|
30
|
+
align: "start"
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [
|
|
33
|
+
createVNode(unref(NButton), {
|
|
34
|
+
strong: "",
|
|
35
|
+
secondary: "",
|
|
36
|
+
type: item.type
|
|
37
|
+
}, {
|
|
38
|
+
default: withCtx(() => [
|
|
39
|
+
createTextVNode(toDisplayString(t.title), 1)
|
|
40
|
+
]),
|
|
41
|
+
_: 2
|
|
42
|
+
}, 1032, ["type"]),
|
|
43
|
+
createElementVNode("div", _hoisted_1, [
|
|
44
|
+
createVNode(unref(NSpace), { justify: "space-between" }, {
|
|
45
|
+
default: withCtx(() => [
|
|
46
|
+
createElementVNode("span", _hoisted_2, toDisplayString(t.name), 1),
|
|
47
|
+
createElementVNode("span", null, toDisplayString(t.time), 1)
|
|
48
|
+
]),
|
|
49
|
+
_: 2
|
|
50
|
+
}, 1024),
|
|
51
|
+
t.extraText ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(t.extraText), 1)) : createCommentVNode("v-if", true),
|
|
52
|
+
createElementVNode("p", null, toDisplayString(t.content), 1)
|
|
53
|
+
])
|
|
54
|
+
]),
|
|
55
|
+
_: 2
|
|
56
|
+
}, 1024);
|
|
57
|
+
}), 128))
|
|
58
|
+
]),
|
|
59
|
+
_: 2
|
|
60
|
+
}, 1032, ["type"]);
|
|
61
|
+
}), 128))
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "TimeLine.vue"]]);
|
|
69
|
+
|
|
70
|
+
export { script as default };
|
|
@@ -1,4 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
const _hoisted_1 = /* @__PURE__ */ createTextVNode(" \u4E0A\u4E00\u9875 ");
|
|
7
|
+
const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u4E0B\u4E00\u9875 ");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "SelectPage",
|
|
10
|
+
props: {
|
|
11
|
+
searchPageConfig: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => ({
|
|
14
|
+
page: 1,
|
|
15
|
+
total: 0,
|
|
16
|
+
hasNextPage: false
|
|
17
|
+
})
|
|
18
|
+
},
|
|
19
|
+
handleSearchChangePage: {
|
|
20
|
+
type: Function,
|
|
21
|
+
default: () => {
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
const _component_n_icon = resolveComponent("n-icon");
|
|
29
|
+
return openBlock(), createElementBlock("div", {
|
|
30
|
+
class: "form-select-btn",
|
|
31
|
+
onMousedown: _cache[2] || (_cache[2] = (e) => e.preventDefault())
|
|
32
|
+
}, [
|
|
33
|
+
createVNode(unref(NButton), {
|
|
34
|
+
disabled: props.searchPageConfig.page <= 1,
|
|
35
|
+
type: "dashed",
|
|
36
|
+
block: "",
|
|
37
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => props.handleSearchChangePage("prev"), ["self", "stop"]))
|
|
38
|
+
}, {
|
|
39
|
+
default: withCtx(() => [
|
|
40
|
+
createVNode(_component_n_icon, { component: unref(ChevronBackOutline) }, null, 8, ["component"]),
|
|
41
|
+
_hoisted_1
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
}, 8, ["disabled"]),
|
|
45
|
+
createVNode(unref(NButton), {
|
|
46
|
+
disabled: +props.searchPageConfig.asyncCount === 1 ? !props.searchPageConfig.hasNextPage : props.searchPageConfig.page >= props.searchPageConfig.total,
|
|
47
|
+
type: "dashed",
|
|
48
|
+
block: "",
|
|
49
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => props.handleSearchChangePage("next"), ["self", "stop"]))
|
|
50
|
+
}, {
|
|
51
|
+
default: withCtx(() => [
|
|
52
|
+
_hoisted_2,
|
|
53
|
+
createVNode(_component_n_icon, { component: unref(ChevronForwardOutline) }, null, 8, ["component"])
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["disabled"])
|
|
57
|
+
], 32);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "SelectPage.vue"]]);
|
|
62
|
+
|
|
63
|
+
export { script as default };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import './SelectPage.js';
|
|
2
|
-
|
|
3
|
-
export { default } from './SelectPage.vue_vue_type_script_setup_true_lang.js';
|
|
1
|
+
import script from './SelectPage.js';
|
|
2
|
+
export { default } from './SelectPage.js';
|
|
@@ -1,4 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, toDisplayString, createCommentVNode, createElementVNode } from 'vue';
|
|
2
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const _hoisted_1 = { key: 0 };
|
|
5
|
+
const _hoisted_2 = ["xlink:href"];
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "SvgIcon",
|
|
8
|
+
props: {
|
|
9
|
+
iconClass: { default: "" },
|
|
10
|
+
title: { default: "" },
|
|
11
|
+
className: null
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const iconName = computed(() => `#icon-${props.iconClass}`);
|
|
16
|
+
const svgClass = computed(() => {
|
|
17
|
+
if (props.className) {
|
|
18
|
+
return "svg-icon " + props.className;
|
|
19
|
+
} else {
|
|
20
|
+
return "svg-icon";
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createElementBlock("svg", mergeProps({
|
|
25
|
+
class: unref(svgClass),
|
|
26
|
+
"aria-hidden": "true"
|
|
27
|
+
}, _ctx.$attrs), [
|
|
28
|
+
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1, toDisplayString(__props.title), 1)) : createCommentVNode("v-if", true),
|
|
29
|
+
createElementVNode("use", { "xlink:href": unref(iconName) }, null, 8, _hoisted_2)
|
|
30
|
+
], 16);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "SvgIcon.vue"]]);
|
|
35
|
+
|
|
36
|
+
export { script as default };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import './SvgIcon.js';
|
|
2
|
-
|
|
3
|
-
export { default } from './SvgIcon.vue_vue_type_script_setup_true_lang.js';
|
|
1
|
+
import script from './SvgIcon.js';
|
|
2
|
+
export { default } from './SvgIcon.js';
|
|
@@ -1,4 +1,76 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
const _hoisted_1 = { class: "text-over-tooltip-components" };
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "TextOverTooltip",
|
|
9
|
+
props: {
|
|
10
|
+
content: null,
|
|
11
|
+
className: null,
|
|
12
|
+
refName: null,
|
|
13
|
+
effect: { default: "dark" },
|
|
14
|
+
placement: { default: "top" },
|
|
15
|
+
tooltipTitle: { default: "" },
|
|
16
|
+
isAlias: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
let isDisabledTooltip = ref(false);
|
|
21
|
+
const curContent = computed(() => {
|
|
22
|
+
let res = props.tooltipTitle || props.content || "";
|
|
23
|
+
if (vexutils.isNumber(res)) {
|
|
24
|
+
return res.toString();
|
|
25
|
+
}
|
|
26
|
+
return res;
|
|
27
|
+
});
|
|
28
|
+
const $refName = ref(null);
|
|
29
|
+
const onMouseOver = (str) => {
|
|
30
|
+
if (props.isAlias) {
|
|
31
|
+
isDisabledTooltip.value = true;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
let parentWidth = $refName.value.parentNode.offsetWidth;
|
|
35
|
+
let contentWidth = $refName.value.offsetWidth;
|
|
36
|
+
isDisabledTooltip.value = contentWidth > parentWidth;
|
|
37
|
+
};
|
|
38
|
+
const onMouseOut = () => {
|
|
39
|
+
isDisabledTooltip.value = false;
|
|
40
|
+
};
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
43
|
+
createVNode(unref(NTooltip), {
|
|
44
|
+
effect: __props.effect,
|
|
45
|
+
show: unref(isDisabledTooltip),
|
|
46
|
+
placement: __props.placement
|
|
47
|
+
}, {
|
|
48
|
+
trigger: withCtx(() => [
|
|
49
|
+
createElementVNode("div", {
|
|
50
|
+
class: normalizeClass(["ellipsis", __props.className]),
|
|
51
|
+
onMouseover: _cache[0] || (_cache[0] = ($event) => onMouseOver(__props.refName)),
|
|
52
|
+
onMouseout: onMouseOut
|
|
53
|
+
}, [
|
|
54
|
+
createElementVNode("i", {
|
|
55
|
+
ref: (el) => {
|
|
56
|
+
if (el)
|
|
57
|
+
$refName.value = el;
|
|
58
|
+
}
|
|
59
|
+
}, [
|
|
60
|
+
renderSlot(_ctx.$slots, "default"),
|
|
61
|
+
createElementVNode("i", null, toDisplayString(__props.content), 1)
|
|
62
|
+
], 512)
|
|
63
|
+
], 34)
|
|
64
|
+
]),
|
|
65
|
+
default: withCtx(() => [
|
|
66
|
+
createTextVNode(" " + toDisplayString(unref(curContent)), 1)
|
|
67
|
+
]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 8, ["effect", "show", "placement"])
|
|
70
|
+
]);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "TextOverTooltip.vue"]]);
|
|
75
|
+
|
|
76
|
+
export { script as default };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import './TextOverTooltip.js';
|
|
2
|
-
|
|
3
|
-
export { default } from './TextOverTooltip.vue_vue_type_script_setup_true_lang.js';
|
|
1
|
+
import script from './TextOverTooltip.js';
|
|
2
|
+
export { default } from './TextOverTooltip.js';
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock } from 'vue';
|
|
2
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "index",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
return (_ctx, _cache) => {
|
|
8
|
+
return openBlock(), createElementBlock("div");
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
|
|
13
|
+
|
|
14
|
+
export { index as default };
|
package/package.json
CHANGED
|
@@ -1,155 +1,155 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
2
|
+
"name": "cnhis-design-vue",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "3.1.14-beta.13",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"module": "es/packages/index.js",
|
|
7
|
+
"main": "es/packages/index.js",
|
|
8
|
+
"types": "es/packages/index.d.ts",
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"es/packages/**/style/*",
|
|
11
|
+
"es/packages/*(.css,.less)"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite --host --port 3200",
|
|
15
|
+
"start": "gulp --require @esbuild-kit/cjs-loader -f build/gulpfile.ts",
|
|
16
|
+
"build": "npm run start",
|
|
17
|
+
"build:doc": "cross-env CUI_DOCS=true vite build",
|
|
18
|
+
"build:doc-local": "vite build",
|
|
19
|
+
"test": "vitest spec",
|
|
20
|
+
"test:resnap": "vitest spec -u",
|
|
21
|
+
"test:coverage": "vitest run --coverage",
|
|
22
|
+
"preview": "vite preview",
|
|
23
|
+
"release": "standard-version",
|
|
24
|
+
"deploy": "sh sync.sh",
|
|
25
|
+
"deploy-w": "sh sync-w.sh",
|
|
26
|
+
"prepare": "husky install",
|
|
27
|
+
"prettier": "prettier --write ./packages ./examples ./build ./plugins ./src"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"naive-ui": "^2.29.0",
|
|
31
|
+
"vue": "^3.2.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@formily/core": "^2.1.9",
|
|
35
|
+
"@formily/vue": "^2.1.9",
|
|
36
|
+
"@highlightjs/vue-plugin": "^2.1.0",
|
|
37
|
+
"@vicons/ionicons5": "^0.12.0",
|
|
38
|
+
"@vueuse/core": "^8.6.0",
|
|
39
|
+
"@vueuse/shared": "^8.6.0",
|
|
40
|
+
"@wangeditor/editor": "^5.1.1",
|
|
41
|
+
"@wangeditor/editor-for-vue": "^5.1.11",
|
|
42
|
+
"axios": "^0.27.2",
|
|
43
|
+
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
44
|
+
"bpmn-js": "^9.2.2",
|
|
45
|
+
"crypto-js": "^4.1.1",
|
|
46
|
+
"highlight.js": "^11.5.1",
|
|
47
|
+
"lodash": "^4.17.21",
|
|
48
|
+
"lodash-es": "^4.17.21",
|
|
49
|
+
"lodash-unified": "^1.0.2",
|
|
50
|
+
"moment": "^2.29.1",
|
|
51
|
+
"naive-ui": "^2.29.0",
|
|
52
|
+
"rimraf": "^3.0.2",
|
|
53
|
+
"spark-md5": "^3.0.2",
|
|
54
|
+
"type-fest": "^2.13.0",
|
|
55
|
+
"v-viewer": "^3.0.10",
|
|
56
|
+
"video.js": "^7.19.2",
|
|
57
|
+
"videojs-contrib-hls": "^5.15.0",
|
|
58
|
+
"viewerjs": "^1.10.5",
|
|
59
|
+
"vue": "^3.2.0",
|
|
60
|
+
"vue-simple-uploader": "^1.0.0-beta.5",
|
|
61
|
+
"vuedraggable": "4.1.0",
|
|
62
|
+
"vxe-table": "4.2.5",
|
|
63
|
+
"xe-utils": "^3.5.4"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@babel/cli": "^7.17.10",
|
|
67
|
+
"@babel/core": "^7.18.2",
|
|
68
|
+
"@babel/preset-env": "^7.18.2",
|
|
69
|
+
"@babel/preset-typescript": "^7.17.12",
|
|
70
|
+
"@commitlint/cli": "^16.1.0",
|
|
71
|
+
"@commitlint/config-conventional": "^16.2.4",
|
|
72
|
+
"@esbuild-kit/cjs-loader": "^2.0.0",
|
|
73
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
74
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
75
|
+
"@rollup/plugin-image": "^2.1.1",
|
|
76
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
77
|
+
"@types/babel__core": "^7.1.19",
|
|
78
|
+
"@types/fs-extra": "^9.0.13",
|
|
79
|
+
"@types/gulp": "^4.0.9",
|
|
80
|
+
"@types/gulp-less": "^0.0.32",
|
|
81
|
+
"@types/lodash-es": "^4.17.6",
|
|
82
|
+
"@types/markdown-it": "^12.2.3",
|
|
83
|
+
"@types/node": "^17.0.38",
|
|
84
|
+
"@types/replacestream": "^4.0.1",
|
|
85
|
+
"@types/vue-router": "^2.0.0",
|
|
86
|
+
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
|
87
|
+
"@typescript-eslint/parser": "^5.30.7",
|
|
88
|
+
"@vitejs/plugin-vue": "^2.3.3",
|
|
89
|
+
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
90
|
+
"@vue/babel-preset-jsx": "^1.2.4",
|
|
91
|
+
"@vue/compiler-sfc": "^3.2.33",
|
|
92
|
+
"@vue/shared": "^3.2.36",
|
|
93
|
+
"autoprefixer": "^10.4.7",
|
|
94
|
+
"axios": "^0.27.2",
|
|
95
|
+
"bpmn-js": "^9.2.2",
|
|
96
|
+
"chalk": "^5.0.1",
|
|
97
|
+
"codesandbox": "^2.2.3",
|
|
98
|
+
"commitlint": "^17.0.3",
|
|
99
|
+
"consola": "^2.15.3",
|
|
100
|
+
"cross-env": "^7.0.3",
|
|
101
|
+
"cssnano": "^5.1.7",
|
|
102
|
+
"esbuild": "^0.14.42",
|
|
103
|
+
"eslint": "^8.7.0",
|
|
104
|
+
"eslint-config-prettier": "^8.3.0",
|
|
105
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
106
|
+
"eslint-plugin-vue": "^8.3.0",
|
|
107
|
+
"gulp": "^4.0.2",
|
|
108
|
+
"gulp-cssimport": "^7.0.0",
|
|
109
|
+
"gulp-less": "^5.0.0",
|
|
110
|
+
"gulp-rename": "^2.0.0",
|
|
111
|
+
"gulp-replace": "^1.1.3",
|
|
112
|
+
"gulp-util": "^3.0.8",
|
|
113
|
+
"heapdump": "^0.3.15",
|
|
114
|
+
"husky": "^7.0.4",
|
|
115
|
+
"less": "^4.1.2",
|
|
116
|
+
"lint-staged": "^13.0.3",
|
|
117
|
+
"markdown-it": "^13.0.1",
|
|
118
|
+
"postcss": "^8.4.14",
|
|
119
|
+
"prettier": "^2.7.1",
|
|
120
|
+
"replacestream": "^4.0.3",
|
|
121
|
+
"rollup": "^2.75.5",
|
|
122
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
123
|
+
"rollup-plugin-esbuild": "^4.9.1",
|
|
124
|
+
"rollup-plugin-external-globals": "^0.6.1",
|
|
125
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
126
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
127
|
+
"rollup-plugin-typescript2": "^0.32.0",
|
|
128
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
129
|
+
"standard-version": "^9.3.2",
|
|
130
|
+
"ts-morph": "^15.1.0",
|
|
131
|
+
"typescript": "4.6.4",
|
|
132
|
+
"vite": "3.0.4",
|
|
133
|
+
"vitest": "^0.16.0",
|
|
134
|
+
"vue-tsc": "^0.29.8"
|
|
135
|
+
},
|
|
136
|
+
"husky": {
|
|
137
|
+
"hooks": {
|
|
138
|
+
"pre-commit": "lint-staged"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"lint-staged": {
|
|
142
|
+
"*.{js,jsx,vue,ts,tsx}": [
|
|
143
|
+
"prettier --write",
|
|
144
|
+
"git add"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"browserslist": [
|
|
148
|
+
"defaults",
|
|
149
|
+
"not ie < 8",
|
|
150
|
+
"last 2 versions",
|
|
151
|
+
"> 1%",
|
|
152
|
+
"iOS 7",
|
|
153
|
+
"last 3 iOS versions"
|
|
154
|
+
]
|
|
155
155
|
}
|