cnhis-design-vue 3.1.14-beta.11.2 → 3.1.14-beta.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/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/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/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/useLeft.js +15 -4
- 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/index.css +133 -0
- 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/global.d.ts +8 -8
- 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 -65
- 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 -230
- 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
|
@@ -3,8 +3,7 @@ import { safeComponentRegister } from '../../src/utils';
|
|
|
3
3
|
import { loadVxeTable } from '../../src/utils/loadVxe';
|
|
4
4
|
import { expandXEUtils } from '../../src/utils/utilExpand';
|
|
5
5
|
import { CGrid } from '../../packages/index';
|
|
6
|
-
import './src/BigTable.js';
|
|
7
|
-
import script from './src/BigTable.vue_vue_type_script_setup_true_lang.js';
|
|
6
|
+
import script from './src/BigTable.js';
|
|
8
7
|
export { useColumnConfigAdaptor } from './src/hooks/useColumnConfigAdaptor.js';
|
|
9
8
|
|
|
10
9
|
const BigTable = script;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import _sfc_main from './BigTable.vue_vue_type_script_setup_true_lang.js';
|
|
2
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
3
3
|
|
|
4
|
-
script
|
|
4
|
+
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "BigTable.vue"]]);
|
|
5
|
+
|
|
6
|
+
export { script as default };
|
|
@@ -11,20 +11,17 @@ import { useNestTable } from './hooks/useNestTable.js';
|
|
|
11
11
|
import { useEdit, comps } from './hooks/useEdit.js';
|
|
12
12
|
import { useEvent } from './hooks/useEvent.js';
|
|
13
13
|
import { SettingsSharp, CaretDown, CaretForward, CopyOutline, SyncOutline } from '@vicons/ionicons5';
|
|
14
|
-
import './components/NoData.js';
|
|
14
|
+
import NoData from './components/NoData.js';
|
|
15
15
|
import TextOverTooltip from '../../../src/components/TextOverTooltip';
|
|
16
16
|
import SvgIcon from '../../../src/components/SvgIcon';
|
|
17
17
|
import { useMessage, NIcon, NTooltip, NCheckbox, NCheckboxGroup, NGrid, NGi, NSpace, NButton, NPopconfirm, NProgress, NDropdown, NSwitch, NPopover } from 'naive-ui';
|
|
18
18
|
import CGrid from '../../../packages/grid';
|
|
19
19
|
import vexutils from '../../../src/utils/vexutils';
|
|
20
20
|
import { handleTableHeight, setTableConfig, handleGroupColums, treeToList, checkMethod, setTreeGroupTitle, handleName, generateEditRender, handlerInitSearchItem, getEvaluate, getMapVal, getCandidateComponents, getageShowType, isLink, showFilter, reScrollFilterWrap, hideFilterWrap, mergeConObjFn, setDefaultFormData, handleImgArr, handleImgSrc, modalDetailImage, handleQrCodeContent, getInlineEditBtn, isCopy, setVisibleCheckAllWrap, handleTableImageSize, visibleMethod, getRowStyle, getFooterGroup, flattenRow, intersectRow, removeCheckedDisabledRows } from './utils.js';
|
|
21
|
-
import './components/input-button.js';
|
|
22
|
-
import './components/separate.js';
|
|
21
|
+
import InputButtonScript from './components/input-button.js';
|
|
22
|
+
import Separate from './components/separate.js';
|
|
23
23
|
import xb_big from '../../../src/assets/img/xb_big';
|
|
24
24
|
import qr from '../../../src/assets/img/qr';
|
|
25
|
-
import script$1 from './components/NoData.vue_vue_type_script_setup_true_lang.js';
|
|
26
|
-
import script$2 from './components/input-button.vue_vue_type_script_setup_true_lang.js';
|
|
27
|
-
import script$3 from './components/separate.vue_vue_type_script_setup_true_lang.js';
|
|
28
25
|
|
|
29
26
|
const _hoisted_1 = {
|
|
30
27
|
key: 0,
|
|
@@ -42,7 +39,7 @@ const _hoisted_6 = {
|
|
|
42
39
|
function _isSlot(s) {
|
|
43
40
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
44
41
|
}
|
|
45
|
-
var
|
|
42
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
43
|
__name: "BigTable",
|
|
47
44
|
props: bigTableProps,
|
|
48
45
|
emits: bigTableEmits,
|
|
@@ -55,7 +52,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
55
52
|
let _beforeSearchConvert = [];
|
|
56
53
|
let addInlineEditPrimaryKey = "";
|
|
57
54
|
const GROUP_TITLE_KEY = "group-show-title";
|
|
58
|
-
const InputButton =
|
|
55
|
+
const InputButton = InputButtonScript;
|
|
59
56
|
const $message = useMessage();
|
|
60
57
|
const xGrid = ref({});
|
|
61
58
|
const copyState = vexutils.clone(bigTableState, true);
|
|
@@ -472,7 +469,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
472
469
|
if (!isEdit || item.columnName === "operatorColumn" || !item.isEdit) {
|
|
473
470
|
return formatter(params, item);
|
|
474
471
|
} else if (item.formType === "separate") {
|
|
475
|
-
const SeparateComponent =
|
|
472
|
+
const SeparateComponent = Separate;
|
|
476
473
|
return createVNode(SeparateComponent, {
|
|
477
474
|
"row": params.row,
|
|
478
475
|
"col": item
|
|
@@ -2362,7 +2359,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2362
2359
|
}), {
|
|
2363
2360
|
empty: withCtx(() => [state.isShowEmpty ? renderSlot(_ctx.$slots, "empty", {
|
|
2364
2361
|
key: 0
|
|
2365
|
-
}, () => [createVNode(
|
|
2362
|
+
}, () => [createVNode(NoData, {
|
|
2366
2363
|
"no-data-img": props.emptyItems.noDataImg,
|
|
2367
2364
|
"no-data-tip": props.emptyItems.noDataTip,
|
|
2368
2365
|
"show-img": !props.isNestTable
|
|
@@ -2424,4 +2421,4 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2424
2421
|
}
|
|
2425
2422
|
});
|
|
2426
2423
|
|
|
2427
|
-
export {
|
|
2424
|
+
export { _sfc_main as default };
|
|
@@ -1,4 +1,74 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, toDisplayString } from 'vue';
|
|
2
|
+
import noData from '../../../../src/assets/img/nodata';
|
|
3
|
+
import noPermission from '../../../../src/assets/img/no-permission';
|
|
4
|
+
import failure from '../../../../src/assets/img/failure';
|
|
5
|
+
import notfound from '../../../../src/assets/img/notfound';
|
|
6
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
3
7
|
|
|
4
|
-
|
|
8
|
+
const _hoisted_1 = { class: "no-data-tip NoData-page" };
|
|
9
|
+
const _hoisted_2 = ["src"];
|
|
10
|
+
const _hoisted_3 = { key: 1 };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "NoData",
|
|
13
|
+
props: {
|
|
14
|
+
noDataTip: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "\u6682\u65E0\u6570\u636E"
|
|
17
|
+
},
|
|
18
|
+
noDataImg: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "nodata"
|
|
21
|
+
},
|
|
22
|
+
showImg: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const imgStr = computed(() => {
|
|
30
|
+
let str = null;
|
|
31
|
+
switch (props.noDataImg) {
|
|
32
|
+
case "no-permission":
|
|
33
|
+
str = noPermission;
|
|
34
|
+
break;
|
|
35
|
+
case "failure":
|
|
36
|
+
str = failure;
|
|
37
|
+
break;
|
|
38
|
+
case "nodata":
|
|
39
|
+
str = noData;
|
|
40
|
+
break;
|
|
41
|
+
default:
|
|
42
|
+
str = notfound;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
return str;
|
|
46
|
+
});
|
|
47
|
+
const handleDesc = computed(() => {
|
|
48
|
+
let res = "";
|
|
49
|
+
switch (props.noDataImg) {
|
|
50
|
+
case "no-permission":
|
|
51
|
+
res = "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
|
|
52
|
+
break;
|
|
53
|
+
case "failure":
|
|
54
|
+
res = "\u8BF7\u7A0D\u540E\u518D\u8BD5";
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
return res;
|
|
58
|
+
});
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
61
|
+
__props.showImg ? (openBlock(), createElementBlock("img", {
|
|
62
|
+
key: 0,
|
|
63
|
+
src: unref(imgStr),
|
|
64
|
+
alt: ""
|
|
65
|
+
}, null, 8, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
66
|
+
createElementVNode("p", null, toDisplayString(__props.noDataTip), 1),
|
|
67
|
+
unref(handleDesc) ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(unref(handleDesc)), 1)) : createCommentVNode("v-if", true)
|
|
68
|
+
]);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
var NoData = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "NoData.vue"]]);
|
|
73
|
+
|
|
74
|
+
export { NoData as default };
|
|
@@ -1,4 +1,90 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, withModifiers } from 'vue';
|
|
2
|
+
import SlotRender from '../../../../../src/components/SlotRender';
|
|
3
|
+
import { cloneDeep, isObject, isArray } from 'lodash-es';
|
|
4
|
+
import { NPopover, NInput } from 'naive-ui';
|
|
5
|
+
import { useSeparateMap } from '../../../../../packages/big-table/src/hooks/useSeparateRow';
|
|
6
|
+
import Separate from '../separate.js';
|
|
7
|
+
import _export_sfc from '../../../../../_virtual/plugin-vue_export-helper.js';
|
|
3
8
|
|
|
4
|
-
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "edit-separate",
|
|
11
|
+
props: {
|
|
12
|
+
col: { type: Object, required: true },
|
|
13
|
+
row: { type: Object, required: true },
|
|
14
|
+
index: { type: Number, required: true }
|
|
15
|
+
},
|
|
16
|
+
emits: ["formChange"],
|
|
17
|
+
setup(__props, { emit }) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const popoverRef = ref();
|
|
20
|
+
const editContent = ref();
|
|
21
|
+
const { getRowData } = useSeparateMap();
|
|
22
|
+
function updateShow(show) {
|
|
23
|
+
const target = getRowData(props.row);
|
|
24
|
+
if (!target)
|
|
25
|
+
return;
|
|
26
|
+
if (show) {
|
|
27
|
+
editContent.value = cloneDeep(target.row[props.col.field]);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const old = target.row[props.col.field];
|
|
31
|
+
if (!target)
|
|
32
|
+
return;
|
|
33
|
+
if (!isObject(editContent.value) && !isArray(editContent.value)) {
|
|
34
|
+
if (old === editContent.value)
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
target.rawRow[props.col.field] = editContent.value;
|
|
38
|
+
emit("formChange", {
|
|
39
|
+
value: editContent.value,
|
|
40
|
+
row: target.row,
|
|
41
|
+
column: props.col,
|
|
42
|
+
index: target.index
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const style = {
|
|
46
|
+
border: "1px solid #f5f5f5",
|
|
47
|
+
padding: "4px 0 4px 4px",
|
|
48
|
+
background: "white",
|
|
49
|
+
"border-radius": "4px"
|
|
50
|
+
};
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return openBlock(), createBlock(unref(NPopover), {
|
|
53
|
+
ref_key: "popoverRef",
|
|
54
|
+
ref: popoverRef,
|
|
55
|
+
trigger: "click",
|
|
56
|
+
"show-arrow": false,
|
|
57
|
+
"onUpdate:show": updateShow
|
|
58
|
+
}, {
|
|
59
|
+
trigger: withCtx(() => [
|
|
60
|
+
createVNode(Separate, {
|
|
61
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
62
|
+
}, ["stop"])),
|
|
63
|
+
style,
|
|
64
|
+
col: __props.col,
|
|
65
|
+
row: __props.row
|
|
66
|
+
}, null, 8, ["col", "row"])
|
|
67
|
+
]),
|
|
68
|
+
default: withCtx(() => [
|
|
69
|
+
__props.col.separateSlot ? (openBlock(), createBlock(unref(SlotRender), {
|
|
70
|
+
key: 0,
|
|
71
|
+
renderer: __props.col.separateSlot,
|
|
72
|
+
value: editContent.value,
|
|
73
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => editContent.value = $event),
|
|
74
|
+
col: __props.col,
|
|
75
|
+
row: __props.row
|
|
76
|
+
}, null, 8, ["renderer", "value", "col", "row"])) : (openBlock(), createBlock(unref(NInput), {
|
|
77
|
+
key: 1,
|
|
78
|
+
value: editContent.value,
|
|
79
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => editContent.value = $event),
|
|
80
|
+
type: "textarea"
|
|
81
|
+
}, null, 8, ["value"]))
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 512);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
var EditSeparate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "edit-separate.vue"]]);
|
|
89
|
+
|
|
90
|
+
export { EditSeparate as default };
|
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, createTextVNode } from 'vue';
|
|
2
|
+
import { NInput, NButton } from 'naive-ui';
|
|
3
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u641C\u7D22");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "input-button",
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const content = ref("");
|
|
10
|
+
return (_ctx, _cache) => {
|
|
11
|
+
return openBlock(), createBlock(unref(NInput), {
|
|
12
|
+
value: content.value,
|
|
13
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => content.value = $event),
|
|
14
|
+
placeholder: "\u5B57\u6BB5\u641C\u7D22",
|
|
15
|
+
class: "check-seach-input"
|
|
16
|
+
}, {
|
|
17
|
+
suffix: withCtx(() => [
|
|
18
|
+
createVNode(unref(NButton), {
|
|
19
|
+
text: "",
|
|
20
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("trigger", content.value))
|
|
21
|
+
}, {
|
|
22
|
+
default: withCtx(() => [
|
|
23
|
+
_hoisted_1
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
})
|
|
27
|
+
]),
|
|
28
|
+
_: 1
|
|
29
|
+
}, 8, ["value"]);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
var InputButtonScript = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input-button.vue"]]);
|
|
34
|
+
|
|
35
|
+
export { InputButtonScript as default };
|
|
@@ -1,4 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createTextVNode, toDisplayString, unref, createElementVNode } from 'vue';
|
|
2
|
+
import { useSeparateMap } from '../../../../packages/big-table/src/hooks/useSeparateRow';
|
|
3
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
const _hoisted_1 = { class: "big-table__separate" };
|
|
6
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "big-table__separatePlaceholder" }, "p", -1);
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "separate",
|
|
9
|
+
props: {
|
|
10
|
+
col: { type: Object, required: true },
|
|
11
|
+
row: { type: Object, required: true }
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const { separateDataMap } = useSeparateMap();
|
|
16
|
+
const displayContent = computed(() => {
|
|
17
|
+
const target = separateDataMap.value.get(props.row);
|
|
18
|
+
return target ? target.separateData[props.col.field] : "";
|
|
19
|
+
});
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
22
|
+
createTextVNode(toDisplayString(unref(displayContent)) + " ", 1),
|
|
23
|
+
_hoisted_2
|
|
24
|
+
]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
var Separate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "separate.vue"]]);
|
|
29
|
+
|
|
30
|
+
export { Separate as default };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import EditInput from '../components/edit-form/edit-input.js';
|
|
2
2
|
import EditSelect from '../components/edit-form/edit-select.js';
|
|
3
3
|
import EditDate from '../components/edit-form/edit-date.js';
|
|
4
|
-
import '../components/edit-form/edit-separate.js';
|
|
5
|
-
import script from '../components/edit-form/edit-separate.vue_vue_type_script_setup_true_lang.js';
|
|
4
|
+
import EditSeparate from '../components/edit-form/edit-separate.js';
|
|
6
5
|
|
|
7
6
|
const comps = {
|
|
8
7
|
input: EditInput,
|
|
9
8
|
number: EditInput,
|
|
10
9
|
select: EditSelect,
|
|
11
10
|
date: EditDate,
|
|
12
|
-
separate:
|
|
11
|
+
separate: EditSeparate
|
|
13
12
|
};
|
|
14
13
|
const useEdit = (props, state, emit, xGrid) => {
|
|
15
14
|
const initEditTable = async () => {
|
|
@@ -389,12 +389,145 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
389
389
|
}
|
|
390
390
|
.custom-big-table .domPropsInnerHTML-span {
|
|
391
391
|
height: 100%;
|
|
392
|
+
/* 老版图标样式 */
|
|
392
393
|
}
|
|
393
394
|
.custom-big-table .domPropsInnerHTML-span img {
|
|
394
395
|
display: inline-block;
|
|
395
396
|
height: var(--tableImageHeight);
|
|
396
397
|
width: var(--tableImageWidth);
|
|
397
398
|
}
|
|
399
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-red {
|
|
400
|
+
width: 8px;
|
|
401
|
+
height: 8px;
|
|
402
|
+
-webkit-border-radius: 50%;
|
|
403
|
+
-moz-border-radius: 50%;
|
|
404
|
+
border-radius: 50%;
|
|
405
|
+
background: red;
|
|
406
|
+
display: inline-block;
|
|
407
|
+
margin-right: 6px;
|
|
408
|
+
box-shadow: 0px 2px 4px 0px rgba(255, 0, 0, 0.5);
|
|
409
|
+
}
|
|
410
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-blue {
|
|
411
|
+
width: 8px;
|
|
412
|
+
height: 8px;
|
|
413
|
+
-webkit-border-radius: 50%;
|
|
414
|
+
-moz-border-radius: 50%;
|
|
415
|
+
border-radius: 50%;
|
|
416
|
+
background: blue;
|
|
417
|
+
display: inline-block;
|
|
418
|
+
margin-right: 6px;
|
|
419
|
+
box-shadow: 0px 2px 4px 0px rgba(0, 0, 255, 0.5);
|
|
420
|
+
}
|
|
421
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-green {
|
|
422
|
+
width: 8px;
|
|
423
|
+
height: 8px;
|
|
424
|
+
-webkit-border-radius: 50%;
|
|
425
|
+
-moz-border-radius: 50%;
|
|
426
|
+
border-radius: 50%;
|
|
427
|
+
background: green;
|
|
428
|
+
display: inline-block;
|
|
429
|
+
margin-right: 6px;
|
|
430
|
+
box-shadow: 0px 2px 4px 0px rgba(0, 128, 0, 0.5);
|
|
431
|
+
}
|
|
432
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-gray {
|
|
433
|
+
width: 8px;
|
|
434
|
+
height: 8px;
|
|
435
|
+
-webkit-border-radius: 50%;
|
|
436
|
+
-moz-border-radius: 50%;
|
|
437
|
+
border-radius: 50%;
|
|
438
|
+
background: gray;
|
|
439
|
+
display: inline-block;
|
|
440
|
+
margin-right: 6px;
|
|
441
|
+
box-shadow: 0px 2px 4px 0px rgba(128, 128, 128, 0.5);
|
|
442
|
+
}
|
|
443
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow {
|
|
444
|
+
width: 8px;
|
|
445
|
+
height: 8px;
|
|
446
|
+
-webkit-border-radius: 50%;
|
|
447
|
+
-moz-border-radius: 50%;
|
|
448
|
+
border-radius: 50%;
|
|
449
|
+
background: yellow;
|
|
450
|
+
display: inline-block;
|
|
451
|
+
margin-right: 6px;
|
|
452
|
+
box-shadow: 0px 2px 4px 0px rgba(255, 255, 0, 0.5);
|
|
453
|
+
}
|
|
454
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved {
|
|
455
|
+
width: 8px;
|
|
456
|
+
height: 8px;
|
|
457
|
+
-webkit-border-radius: 50%;
|
|
458
|
+
-moz-border-radius: 50%;
|
|
459
|
+
border-radius: 50%;
|
|
460
|
+
background: #36be8c;
|
|
461
|
+
display: inline-block;
|
|
462
|
+
margin-right: 6px;
|
|
463
|
+
box-shadow: 0px 2px 4px 0px rgba(54, 190, 140, 0.5);
|
|
464
|
+
}
|
|
465
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu {
|
|
466
|
+
width: 8px;
|
|
467
|
+
height: 8px;
|
|
468
|
+
-webkit-border-radius: 50%;
|
|
469
|
+
-moz-border-radius: 50%;
|
|
470
|
+
border-radius: 50%;
|
|
471
|
+
background: #42d0f6;
|
|
472
|
+
display: inline-block;
|
|
473
|
+
margin-right: 6px;
|
|
474
|
+
box-shadow: 0px 2px 4px 0px rgba(66, 208, 246, 0.5);
|
|
475
|
+
}
|
|
476
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-close {
|
|
477
|
+
width: 8px;
|
|
478
|
+
height: 8px;
|
|
479
|
+
-webkit-border-radius: 50%;
|
|
480
|
+
-moz-border-radius: 50%;
|
|
481
|
+
border-radius: 50%;
|
|
482
|
+
background: #718391;
|
|
483
|
+
display: inline-block;
|
|
484
|
+
margin-right: 6px;
|
|
485
|
+
box-shadow: 0px 2px 4px 0px rgba(113, 131, 145, 0.5);
|
|
486
|
+
}
|
|
487
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-audit {
|
|
488
|
+
width: 8px;
|
|
489
|
+
height: 8px;
|
|
490
|
+
-webkit-border-radius: 50%;
|
|
491
|
+
-moz-border-radius: 50%;
|
|
492
|
+
border-radius: 50%;
|
|
493
|
+
background: #f4ba32;
|
|
494
|
+
display: inline-block;
|
|
495
|
+
margin-right: 6px;
|
|
496
|
+
box-shadow: 0px 2px 4px 0px rgba(244, 186, 50, 0.5);
|
|
497
|
+
}
|
|
498
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-design {
|
|
499
|
+
width: 8px;
|
|
500
|
+
height: 8px;
|
|
501
|
+
-webkit-border-radius: 50%;
|
|
502
|
+
-moz-border-radius: 50%;
|
|
503
|
+
border-radius: 50%;
|
|
504
|
+
background: #927ce1;
|
|
505
|
+
display: inline-block;
|
|
506
|
+
margin-right: 6px;
|
|
507
|
+
box-shadow: 0px 2px 4px 0px rgba(146, 124, 225, 0.5);
|
|
508
|
+
}
|
|
509
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-develop {
|
|
510
|
+
width: 8px;
|
|
511
|
+
height: 8px;
|
|
512
|
+
-webkit-border-radius: 50%;
|
|
513
|
+
-moz-border-radius: 50%;
|
|
514
|
+
border-radius: 50%;
|
|
515
|
+
background: #4eb0ef;
|
|
516
|
+
display: inline-block;
|
|
517
|
+
margin-right: 6px;
|
|
518
|
+
box-shadow: 0px 2px 4px 0px rgba(78, 176, 239, 0.5);
|
|
519
|
+
}
|
|
520
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-develop-complete {
|
|
521
|
+
width: 8px;
|
|
522
|
+
height: 8px;
|
|
523
|
+
-webkit-border-radius: 50%;
|
|
524
|
+
-moz-border-radius: 50%;
|
|
525
|
+
border-radius: 50%;
|
|
526
|
+
background: #6381f9;
|
|
527
|
+
display: inline-block;
|
|
528
|
+
margin-right: 6px;
|
|
529
|
+
box-shadow: 0px 2px 4px 0px rgba(99, 129, 249, 0.5);
|
|
530
|
+
}
|
|
398
531
|
.no-data-tip {
|
|
399
532
|
display: flex;
|
|
400
533
|
flex-direction: column;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { COMPONENT_NAMESPACE } from '../../src/global/variable';
|
|
2
2
|
import { safeComponentRegister } from '../../src/utils';
|
|
3
|
-
import './src/BpmnWorkflow.js';
|
|
4
|
-
import script from './src/BpmnWorkflow.vue_vue_type_script_setup_true_lang.js';
|
|
3
|
+
import script from './src/BpmnWorkflow.js';
|
|
5
4
|
|
|
6
5
|
const BpmnWorkflow = script;
|
|
7
6
|
BpmnWorkflow.install = function(app) {
|