@gct-paas/core-web 0.1.4-dev.16 → 0.1.4-dev.17
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/dist/BpmnApproval.vue-BQUAB11v.js +1 -0
- package/dist/BpmnBusiness.vue-C5duJF50.js +1 -0
- package/dist/BpmnEnd.vue-BjEcQnG0.js +1 -0
- package/dist/BpmnExclusive.vue-Cx276gAF.js +1 -0
- package/dist/BpmnForm.vue-CF07AB3T.js +1 -0
- package/dist/BpmnJoin.vue-DZgck71H.js +1 -0
- package/dist/BpmnJs.vue-BdKux96j.js +1 -0
- package/dist/BpmnMessage.vue-DABYKBdz.js +1 -0
- package/dist/BpmnParallel.vue-CUi6RogD.js +1 -0
- package/dist/BpmnStart.vue-lvEOgVJW.js +1 -0
- package/dist/NodeFlow.vue-DsiKwCpI.js +1 -0
- package/dist/NodeTools.vue-CKtwcfn2.js +1 -0
- package/dist/NodeTooltips.vue-BuKpNXoA.js +1 -0
- package/dist/enums-DefcbOFc.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/{monaco-editor-CF-NJ0C2.js → monaco-editor-BhuLUOmL.js} +1 -1
- package/dist/node-popover.vue-CnA0OEQf.js +1 -0
- package/dist/useGctBpmn-wMjCfvFc.js +1 -0
- package/dist/{useMonacoEditor-DWGwLehS.js → useMonacoEditor-no1c2RQN.js} +1 -1
- package/es/assets/svg/image-error.svg.mjs +4 -0
- package/es/components/BpmnRuntime/index.d.ts +2 -0
- package/es/components/BpmnRuntime/index.mjs +1 -0
- package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue.d.ts +5 -0
- package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue.mjs +5 -0
- package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue_vue_type_script_setup_true_lang.mjs +83 -0
- package/es/components/I18nSelect/index.d.ts +7 -0
- package/es/components/I18nSelect/index.mjs +7 -0
- package/es/components/I18nSelect/src/i18n-modal.vue.d.ts +21 -0
- package/es/components/I18nSelect/src/i18n-modal.vue.mjs +5 -0
- package/es/components/I18nSelect/src/i18n-modal.vue_vue_type_script_setup_true_lang.mjs +128 -0
- package/es/components/I18nSelect/src/i18n-select-btn.vue.d.ts +17 -0
- package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +7 -0
- package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +116 -0
- package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_style_index_0_scoped_dc8ffb2c_lang.css +58 -0
- package/es/components/I18nSelect/src/i18n-select-container.vue.d.ts +10 -0
- package/es/components/I18nSelect/src/i18n-select-container.vue.mjs +7 -0
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_script_setup_true_name_i18n-select-container_lang.mjs +218 -0
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_style_index_0_scoped_820112ce_lang.css +6 -0
- package/es/components/I18nSelect/src/i18n-select-input-form.vue.d.ts +15 -0
- package/es/components/I18nSelect/src/i18n-select-input-form.vue.mjs +5 -0
- package/es/components/I18nSelect/src/i18n-select-input-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs +56 -0
- package/es/components/I18nSelect/src/i18n-select-input.vue.d.ts +51 -0
- package/es/components/I18nSelect/src/i18n-select-input.vue.mjs +7 -0
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +125 -0
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_style_index_0_scoped_64c5221c_lang.css +3 -0
- package/es/components/I18nSelect/src/i18n-select-modal.vue.d.ts +4 -0
- package/es/components/I18nSelect/src/i18n-select-modal.vue.mjs +5 -0
- package/es/components/I18nSelect/src/i18n-select-modal.vue_vue_type_script_setup_true_lang.mjs +20 -0
- package/es/components/I18nSelect/src/i18n-select-textarea-form.vue.d.ts +15 -0
- package/es/components/I18nSelect/src/i18n-select-textarea-form.vue.mjs +5 -0
- package/es/components/I18nSelect/src/i18n-select-textarea-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs +56 -0
- package/es/components/I18nSelect/src/i18n-select-textarea.vue.d.ts +26 -0
- package/es/components/I18nSelect/src/i18n-select-textarea.vue.mjs +7 -0
- package/es/components/I18nSelect/src/i18n-select-textarea.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +86 -0
- package/es/components/I18nSelect/src/i18n-select-textarea.vue_vue_type_style_index_0_scoped_cd95c416_lang.css +17 -0
- package/es/components/I18nSelect/src/useI18nSelect.d.ts +13 -0
- package/es/components/I18nSelect/src/useI18nSelect.mjs +47 -0
- package/es/components/UserPick/index.d.ts +2 -6
- package/es/components/UserPick/index.mjs +2 -7
- package/es/components/UserPick/src/constants/index.d.ts +5 -0
- package/es/components/UserPick/src/constants/index.mjs +9 -0
- package/es/components/UserPick/src/user-pick.vue.d.ts +1 -1
- package/es/components/UserPick/src/user-pick.vue.mjs +2 -2
- package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +5 -5
- package/es/components/UserPick/src/{user-pick.vue_vue_type_style_index_0_scoped_081b9663_lang.css → user-pick.vue_vue_type_style_index_0_scoped_a49a84da_lang.css} +11 -11
- package/es/components/image-upload/src/components/base-upload.vue.mjs +2 -2
- package/es/components/image-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +4 -4
- package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_17a11419_lang.css +76 -0
- package/es/components/index.d.ts +4 -1
- package/es/components/index.mjs +12 -0
- package/es/components/paas-bpmn-log/components/approval-node.vue.d.ts +12 -0
- package/es/components/paas-bpmn-log/components/approval-node.vue.mjs +7 -0
- package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_script_setup_true_lang.mjs +170 -0
- package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_style_index_0_scoped_a88d7ef9_lang.css +51 -0
- package/es/components/paas-bpmn-log/components/user-list.vue.d.ts +6 -0
- package/es/components/paas-bpmn-log/components/user-list.vue.mjs +7 -0
- package/es/components/paas-bpmn-log/components/user-list.vue_vue_type_script_setup_true_lang.mjs +55 -0
- package/es/components/paas-bpmn-log/components/user-list.vue_vue_type_style_index_0_scoped_27aa2bf0_lang.css +10 -0
- package/es/components/paas-bpmn-log/hooks/useObserver.d.ts +13 -0
- package/es/components/paas-bpmn-log/hooks/useObserver.mjs +46 -0
- package/es/components/paas-bpmn-log/hooks/uselog.d.ts +5 -0
- package/es/components/paas-bpmn-log/hooks/uselog.mjs +17 -0
- package/es/components/paas-bpmn-log/imgs/avatar-default.png.mjs +4 -0
- package/es/components/paas-bpmn-log/paas-bpmn-log.vue.d.ts +23 -0
- package/es/components/paas-bpmn-log/paas-bpmn-log.vue.mjs +7 -0
- package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_script_setup_true_lang.mjs +245 -0
- package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_style_index_0_scoped_c85122b0_lang.css +54 -0
- package/es/index.mjs +16 -6
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +2 -2
- package/package.json +5 -4
- package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_3248e630_lang.css +0 -73
- package/es/loader.mjs +0 -91
- /package/dist/{de_DE-CYotlhMS.js → de_DE-WZ3EB5Ei.js} +0 -0
- /package/dist/{en_US-DjLwq3RF.js → en_US-CsMalKr8.js} +0 -0
- /package/dist/{es_ES-0UhVFVHw.js → es_ES-B9hxIQ3B.js} +0 -0
- /package/dist/{fr_FR-Xgsbf3iG.js → fr_FR-C6_kWsnc.js} +0 -0
- /package/dist/{ja_JP-3aUbzjBv.js → ja_JP-Bh5yjd5R.js} +0 -0
- /package/dist/{pt_PT-BzMPT58e.js → pt_PT-BWSTPDc8.js} +0 -0
- /package/dist/{ru_RU-BRHq1RXx.js → ru_RU-BhsOXNnH.js} +0 -0
- /package/dist/{tr_TR-CPqM558w.js → tr_TR-DFflgWBG.js} +0 -0
- /package/dist/{vi_VN-BOKGrWoY.js → vi_VN-pWDyqq2t.js} +0 -0
- /package/dist/{zh_CN-upOsz50m.js → zh_CN-TmE4LVWm.js} +0 -0
- /package/dist/{zh_TW-jlmatmAz.js → zh_TW-CkLTTF7p.js} +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useModalPickerCom } from "./hooks.mjs";
|
|
2
2
|
import user_item_default from "./components/user-item.vue.mjs";
|
|
3
3
|
import dept_item_default from "./components/dept-item.vue.mjs";
|
|
4
|
-
import "../../../loader.mjs";
|
|
5
|
-
import { PickType } from "../index.mjs";
|
|
6
4
|
import { useModal as useModal$1 } from "../../../modules/global-modal/src/hooks/useModal.mjs";
|
|
7
|
-
import
|
|
5
|
+
import "../../../modules/global-modal/index.mjs";
|
|
6
|
+
import { PickType } from "./constants/index.mjs";
|
|
8
7
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, normalizeClass, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, toRaw, unref, vShow, withCtx, withDirectives } from "vue";
|
|
9
8
|
import { t } from "@gct-paas/core";
|
|
10
9
|
import { Checkbox, Empty, Input, Tree } from "ant-design-vue";
|
|
@@ -154,7 +153,8 @@ var user_pick_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
|
|
|
154
153
|
const _component_ScrollContainer = resolveComponent("ScrollContainer");
|
|
155
154
|
const _component_SearchOutlined = resolveComponent("SearchOutlined");
|
|
156
155
|
const _component_overlayScrollbarsComponent = resolveComponent("overlayScrollbarsComponent");
|
|
157
|
-
|
|
156
|
+
const _component_basic_modal = resolveComponent("basic-modal");
|
|
157
|
+
return openBlock(), createBlock(_component_basic_modal, {
|
|
158
158
|
height: 500,
|
|
159
159
|
title: title.value,
|
|
160
160
|
centered: "",
|
|
@@ -181,7 +181,7 @@ var user_pick_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
|
|
|
181
181
|
onSelect: selectNode,
|
|
182
182
|
onCheck: checkDept
|
|
183
183
|
}, {
|
|
184
|
-
title: withCtx(({
|
|
184
|
+
title: withCtx(({ title_ }) => [_cache[2] || (_cache[2] = createElementVNode("span", { class: "iconfont icon-wenjianjia depticon" }, null, -1)), createTextVNode(" " + toDisplayString(title_), 1)]),
|
|
185
185
|
_: 1
|
|
186
186
|
}, 8, [
|
|
187
187
|
"checked-keys",
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
.dept[data-v-
|
|
1
|
+
.dept[data-v-a49a84da] {
|
|
2
2
|
background-color: #fafafa;
|
|
3
3
|
}
|
|
4
|
-
.main[data-v-
|
|
4
|
+
.main[data-v-a49a84da] {
|
|
5
5
|
height: 100%;
|
|
6
6
|
border: 1px solid #eaeaea;
|
|
7
7
|
}
|
|
8
|
-
.baseborder[data-v-
|
|
8
|
+
.baseborder[data-v-a49a84da] {
|
|
9
9
|
border-style: solid;
|
|
10
10
|
border-color: #eaeaea;
|
|
11
11
|
}
|
|
12
|
-
[data-v-
|
|
12
|
+
[data-v-a49a84da] .ant-tree {
|
|
13
13
|
background-color: transparent;
|
|
14
14
|
}
|
|
15
|
-
[data-v-
|
|
15
|
+
[data-v-a49a84da] .ant-tree .ant-tree-treenode {
|
|
16
16
|
padding: 4px;
|
|
17
17
|
}
|
|
18
|
-
[data-v-
|
|
18
|
+
[data-v-a49a84da] .ant-tree-treenode-selected {
|
|
19
19
|
background: rgba(13, 170, 156, 0.1);
|
|
20
20
|
color: var(--ant-primary-color);
|
|
21
21
|
}
|
|
22
|
-
[data-v-
|
|
22
|
+
[data-v-a49a84da] .ant-tree-node-content-wrapper.ant-tree-node-selected {
|
|
23
23
|
background: transparent;
|
|
24
24
|
color: var(--ant-primary-color);
|
|
25
25
|
}
|
|
26
|
-
[data-v-
|
|
26
|
+
[data-v-a49a84da] .ant-tree-node-content-wrapper:hover {
|
|
27
27
|
background-color: transparent;
|
|
28
28
|
color: var(--ant-primary-color);
|
|
29
29
|
}
|
|
30
|
-
.rows[data-v-
|
|
30
|
+
.rows[data-v-a49a84da] {
|
|
31
31
|
padding: 2px 4px;
|
|
32
32
|
}
|
|
33
|
-
.rows[data-v-
|
|
33
|
+
.rows[data-v-a49a84da]:hover {
|
|
34
34
|
background: rgba(13, 170, 156, 0.1);
|
|
35
35
|
color: var(--ant-primary-color);
|
|
36
36
|
}
|
|
37
|
-
.depticon[data-v-
|
|
37
|
+
.depticon[data-v-a49a84da] {
|
|
38
38
|
color: #fcc12b;
|
|
39
39
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import base_upload_vue_vue_type_script_name_baseUpload_setup_true_lang_default from "./base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs";
|
|
3
|
-
import './base-upload.vue_vue_type_style_index_1_lang.css';import './base-upload.
|
|
3
|
+
import './base-upload.vue_vue_type_style_index_1_lang.css';import './base-upload.vue_vue_type_style_index_0_scoped_17a11419_lang.css';/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
//#region src/components/image-upload/src/components/base-upload.vue
|
|
6
|
-
var base_upload_default = /* @__PURE__ */ _plugin_vue_export_helper_default(base_upload_vue_vue_type_script_name_baseUpload_setup_true_lang_default, [["__scopeId", "data-v-
|
|
6
|
+
var base_upload_default = /* @__PURE__ */ _plugin_vue_export_helper_default(base_upload_vue_vue_type_script_name_baseUpload_setup_true_lang_default, [["__scopeId", "data-v-17a11419"]]);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { base_upload_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { statusEnum } from "../types/index.mjs";
|
|
2
2
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
3
3
|
import { cloneDeep } from "lodash-es";
|
|
4
|
-
import { MaterialEnum, Uploader, t, uuid2 } from "@gct-paas/core";
|
|
4
|
+
import { MaterialEnum, Uploader, VITE_MINIO_PATH, t, uuid2 } from "@gct-paas/core";
|
|
5
5
|
import { message } from "ant-design-vue";
|
|
6
6
|
//#region src/components/image-upload/src/components/base-upload.vue?vue&type=script&name=baseUpload&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = {
|
|
@@ -54,7 +54,7 @@ var base_upload_vue_vue_type_script_name_baseUpload_setup_true_lang_default = /*
|
|
|
54
54
|
});
|
|
55
55
|
watch(() => props.modelValue, async () => {
|
|
56
56
|
const P = (props.modelValue ? props.modelValue.split(",") : []).map(async (url) => {
|
|
57
|
-
const path =
|
|
57
|
+
const path = VITE_MINIO_PATH + url;
|
|
58
58
|
return {
|
|
59
59
|
uid: uuid2(16, 16),
|
|
60
60
|
path,
|
|
@@ -123,7 +123,7 @@ var base_upload_vue_vue_type_script_name_baseUpload_setup_true_lang_default = /*
|
|
|
123
123
|
const path = await Uploader.uploadByFile(file, true, props.modelKey);
|
|
124
124
|
value.value = [...value.value, path];
|
|
125
125
|
findItem = Object.assign(findItem, {
|
|
126
|
-
path:
|
|
126
|
+
path: VITE_MINIO_PATH + path,
|
|
127
127
|
percentNum: 100,
|
|
128
128
|
status: void 0
|
|
129
129
|
});
|
|
@@ -157,7 +157,7 @@ var base_upload_vue_vue_type_script_name_baseUpload_setup_true_lang_default = /*
|
|
|
157
157
|
const _component_close_circle_filled = resolveComponent("close-circle-filled");
|
|
158
158
|
const _component_a_image_preview_group = resolveComponent("a-image-preview-group");
|
|
159
159
|
return openBlock(), createElementBlock(Fragment, null, [withDirectives(createVNode(_component_a_upload_dragger, {
|
|
160
|
-
class: normalizeClass(__props.disabled ? "upload-disabled" : ""),
|
|
160
|
+
class: normalizeClass(["gct-upload-image-dragger", __props.disabled ? "upload-disabled" : ""]),
|
|
161
161
|
style: { "margin": "4px 0" },
|
|
162
162
|
disabled: __props.disabled,
|
|
163
163
|
"custom-request": beforeUploadFn,
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
.icon-tupian-shili[data-v-17a11419] {
|
|
2
|
+
color: var(--ant-primary-color);
|
|
3
|
+
font-size: 56px;
|
|
4
|
+
line-height: 56px;
|
|
5
|
+
}
|
|
6
|
+
[data-v-17a11419] .ant-image-mask {
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
font-size: 18px;
|
|
9
|
+
}
|
|
10
|
+
[data-v-17a11419] .ant-image .ant-image-img {
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
object-fit: contain;
|
|
13
|
+
}
|
|
14
|
+
.img-box[data-v-17a11419] {
|
|
15
|
+
max-height: 268px;
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
}
|
|
18
|
+
.img-box[data-v-17a11419]::-webkit-scrollbar {
|
|
19
|
+
display: block;
|
|
20
|
+
width: 3px;
|
|
21
|
+
}
|
|
22
|
+
.img-box .img-item[data-v-17a11419] {
|
|
23
|
+
position: relative;
|
|
24
|
+
width: 102px;
|
|
25
|
+
height: 102px;
|
|
26
|
+
border: 1px dashed #d9d9d9;
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
background-color: #f7f8fa;
|
|
29
|
+
}
|
|
30
|
+
.img-box .img-item .ant-progress[data-v-17a11419] {
|
|
31
|
+
display: flex;
|
|
32
|
+
position: absolute;
|
|
33
|
+
z-index: 1;
|
|
34
|
+
align-items: center;
|
|
35
|
+
height: 100%;
|
|
36
|
+
padding: 10px;
|
|
37
|
+
border-radius: 4px;
|
|
38
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
39
|
+
}
|
|
40
|
+
.img-box .img-item.material-table-field[data-v-17a11419]:nth-child(4n + 4) {
|
|
41
|
+
margin-right: 0;
|
|
42
|
+
}
|
|
43
|
+
.img-box .img-item .delete-icon-box[data-v-17a11419] {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 0;
|
|
46
|
+
right: 0;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
.img-box .img-item .delete-icon-box .delete-icon[data-v-17a11419] {
|
|
50
|
+
color: rgba(0, 0, 0, 0.56);
|
|
51
|
+
font-size: 24px;
|
|
52
|
+
}
|
|
53
|
+
.img-box .img-item .delete-icon-box .delete-icon[data-v-17a11419]:hover {
|
|
54
|
+
color: rgba(0, 0, 0, 0.65);
|
|
55
|
+
}
|
|
56
|
+
[data-v-17a11419] .ant-upload.ant-upload-drag {
|
|
57
|
+
background: #f7f8fa;
|
|
58
|
+
}
|
|
59
|
+
[data-v-17a11419] .ant-upload.ant-upload-drag.ant-upload-disabled {
|
|
60
|
+
opacity: 1;
|
|
61
|
+
}
|
|
62
|
+
[data-v-17a11419] .ant-upload.ant-upload-drag .ant-upload {
|
|
63
|
+
padding: 40px 0;
|
|
64
|
+
}
|
|
65
|
+
.upload-disabled .icon-tupian-shili[data-v-17a11419] {
|
|
66
|
+
color: #c3c3c3;
|
|
67
|
+
}
|
|
68
|
+
[data-v-17a11419] .ant-upload.ant-upload-drag.upload-disabled p.ant-upload-text {
|
|
69
|
+
color: #c3c3c3;
|
|
70
|
+
}
|
|
71
|
+
[data-v-17a11419] .custom-image-preview.ant-image-mask {
|
|
72
|
+
background: transparent;
|
|
73
|
+
}
|
|
74
|
+
.ant-image-preview-img {
|
|
75
|
+
display: unset;
|
|
76
|
+
}
|
package/es/components/index.d.ts
CHANGED
|
@@ -9,11 +9,14 @@ import { default as CopyModuleKey } from './copy-module-key/copy-module-key.vue'
|
|
|
9
9
|
import { IconNext } from './icon-next';
|
|
10
10
|
import { ImageUpload } from './image-upload';
|
|
11
11
|
import { FieldUpload } from './field-upload';
|
|
12
|
-
|
|
12
|
+
import { default as PaasBpmnLog } from './paas-bpmn-log/paas-bpmn-log.vue';
|
|
13
|
+
export { SvgIcon, AssetsSvgIcon, BaseButton, BasicButton, WuJieContainer, DoubleInput, CopyModuleKey, ImageUpload, FieldUpload, IconNext, PaasBpmnLog, };
|
|
13
14
|
export { CodeEditor } from './code-editor/code-editor';
|
|
14
15
|
export { ViewContainer } from './layout/view-container/view-container';
|
|
15
16
|
export { Vue3GridDndItem } from './vue3-grid-dnd-item/vue3-grid-dnd-item';
|
|
16
17
|
export * from './UserPick';
|
|
18
|
+
export * from './BpmnRuntime';
|
|
19
|
+
export * from './I18nSelect';
|
|
17
20
|
declare const _default: {
|
|
18
21
|
install(app: App): void;
|
|
19
22
|
};
|
package/es/components/index.mjs
CHANGED
|
@@ -10,10 +10,22 @@ import IconNextPicker_default from "./icon-next/src/IconNextPicker.vue.mjs";
|
|
|
10
10
|
import "./icon-next/index.mjs";
|
|
11
11
|
import "./image-upload/index.mjs";
|
|
12
12
|
import "./field-upload/index.mjs";
|
|
13
|
+
import "./paas-bpmn-log/paas-bpmn-log.vue.mjs";
|
|
13
14
|
import "./code-editor/code-editor.mjs";
|
|
14
15
|
import "./layout/view-container/view-container.mjs";
|
|
15
16
|
import "./vue3-grid-dnd-item/vue3-grid-dnd-item.mjs";
|
|
17
|
+
import "./UserPick/src/constants/index.mjs";
|
|
16
18
|
import "./UserPick/index.mjs";
|
|
19
|
+
import "./BpmnRuntime/paas/paas-bpmn-runtime.vue.mjs";
|
|
20
|
+
import "./BpmnRuntime/index.mjs";
|
|
21
|
+
import "./I18nSelect/src/i18n-modal.vue.mjs";
|
|
22
|
+
import "./I18nSelect/src/useI18nSelect.mjs";
|
|
23
|
+
import "./I18nSelect/src/i18n-select-btn.vue.mjs";
|
|
24
|
+
import "./I18nSelect/src/i18n-select-input.vue.mjs";
|
|
25
|
+
import "./I18nSelect/src/i18n-select-input-form.vue.mjs";
|
|
26
|
+
import "./I18nSelect/src/i18n-select-textarea.vue.mjs";
|
|
27
|
+
import "./I18nSelect/src/i18n-select-textarea-form.vue.mjs";
|
|
28
|
+
import "./I18nSelect/index.mjs";
|
|
17
29
|
//#region src/components/index.ts
|
|
18
30
|
var components_default = { install(app) {
|
|
19
31
|
app.component(AssetsSvgIcon.name, AssetsSvgIcon);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data: IObject;
|
|
3
|
+
titleHeight?: number;
|
|
4
|
+
isDesign?: boolean;
|
|
5
|
+
hiddenSignature?: boolean;
|
|
6
|
+
hiddenOpinion?: boolean;
|
|
7
|
+
isCompeleted?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
10
|
+
approvalNodeRef: HTMLDivElement;
|
|
11
|
+
}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import approval_node_vue_vue_type_script_setup_true_lang_default from "./approval-node.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './approval-node.vue_vue_type_style_index_0_scoped_a88d7ef9_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/paas-bpmn-log/components/approval-node.vue
|
|
5
|
+
var approval_node_default = /* @__PURE__ */ _plugin_vue_export_helper_default(approval_node_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a88d7ef9"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { approval_node_default as default };
|
package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_script_setup_true_lang.mjs
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import avatar_default_default from "../imgs/avatar-default.png.mjs";
|
|
2
|
+
import user_list_default from "./user-list.vue.mjs";
|
|
3
|
+
import { approvalObserver } from "../hooks/useObserver.mjs";
|
|
4
|
+
import image_error_default from "../../../assets/svg/image-error.svg.mjs";
|
|
5
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, vShow, watch, withDirectives } from "vue";
|
|
6
|
+
import { ButtonTypeEnum } from "@gct-paas/core";
|
|
7
|
+
//#region src/components/paas-bpmn-log/components/approval-node.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _hoisted_1 = ["title"];
|
|
9
|
+
var _hoisted_2 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "text-[#666666] text-[12px] font-400"
|
|
12
|
+
};
|
|
13
|
+
var _hoisted_3 = { class: "ml4px" };
|
|
14
|
+
var _hoisted_4 = { class: "process-node-content rounded-4px" };
|
|
15
|
+
var _hoisted_5 = { class: "process-node-content-left mr12px" };
|
|
16
|
+
var _hoisted_6 = { class: "avatar-wrap w42px" };
|
|
17
|
+
var _hoisted_7 = { class: "ks-row-center" };
|
|
18
|
+
var _hoisted_8 = ["src"];
|
|
19
|
+
var _hoisted_9 = ["title"];
|
|
20
|
+
var _hoisted_10 = { class: "process-node-content-main ks-col" };
|
|
21
|
+
var _hoisted_11 = { class: "p8px bg-[#FFFFFF] rounded-4px min-h100% pr8px" };
|
|
22
|
+
var _hoisted_12 = { class: "ks-row text-[14px]" };
|
|
23
|
+
var _hoisted_13 = ["title"];
|
|
24
|
+
var _hoisted_14 = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "ks-row text-[#666666] mt8px"
|
|
27
|
+
};
|
|
28
|
+
var _hoisted_15 = { class: "mr2px" };
|
|
29
|
+
var _hoisted_16 = { class: "bg-[#FFFFFF] pr8px process-node-content-right w148px text-right text-[#8F8F8F] ks-column p8px" };
|
|
30
|
+
var _hoisted_17 = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "ks-col ks-row-end justify-end"
|
|
33
|
+
};
|
|
34
|
+
var approval_node_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
35
|
+
__name: "approval-node",
|
|
36
|
+
props: {
|
|
37
|
+
data: {},
|
|
38
|
+
titleHeight: {},
|
|
39
|
+
isDesign: { type: Boolean },
|
|
40
|
+
hiddenSignature: { type: Boolean },
|
|
41
|
+
hiddenOpinion: { type: Boolean },
|
|
42
|
+
isCompeleted: { type: Boolean }
|
|
43
|
+
},
|
|
44
|
+
setup(__props) {
|
|
45
|
+
const props = __props;
|
|
46
|
+
const approvalNodeRef = ref();
|
|
47
|
+
const needSticky = ref(false);
|
|
48
|
+
/** 展开/收起仅本地 UI 状态,禁止直接改 props.data */
|
|
49
|
+
const isExpanded = ref(Boolean(props.data.expand));
|
|
50
|
+
watch(() => props.data.expand, (v) => {
|
|
51
|
+
isExpanded.value = Boolean(v);
|
|
52
|
+
});
|
|
53
|
+
function toggleExpand() {
|
|
54
|
+
isExpanded.value = !isExpanded.value;
|
|
55
|
+
}
|
|
56
|
+
const approvalColor = {
|
|
57
|
+
[ButtonTypeEnum.Approve]: "#309C41",
|
|
58
|
+
[ButtonTypeEnum.Countersign]: "#6931EC",
|
|
59
|
+
[ButtonTypeEnum.Reassign]: "#31B4EC",
|
|
60
|
+
[ButtonTypeEnum.Refuse]: "#DB0000",
|
|
61
|
+
[ButtonTypeEnum.Reject]: "#DB0000"
|
|
62
|
+
};
|
|
63
|
+
const approvedList = computed(() => {
|
|
64
|
+
return props.data.approvalList.filter((e) => e.approval).map((e) => {
|
|
65
|
+
if (e.approval === ButtonTypeEnum.Countersign) e.userList = e.countersignUsers.map((e) => {
|
|
66
|
+
return {
|
|
67
|
+
...e,
|
|
68
|
+
username: e.fullname
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
else if (e.approval === ButtonTypeEnum.Reassign) e.userList = e.reassigner ? [{
|
|
72
|
+
...e.reassigner,
|
|
73
|
+
username: e.reassigner?.fullname
|
|
74
|
+
}] : [];
|
|
75
|
+
try {
|
|
76
|
+
const signature = e.signature ? JSON.parse(e.signature).url : "";
|
|
77
|
+
return {
|
|
78
|
+
...e,
|
|
79
|
+
signature
|
|
80
|
+
};
|
|
81
|
+
} catch (error) {
|
|
82
|
+
return e;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
const approvingData = computed(() => {
|
|
87
|
+
return props.data.approvalList.filter((e) => !e.approval);
|
|
88
|
+
});
|
|
89
|
+
onMounted(() => {
|
|
90
|
+
if (!props.isDesign) approvalObserver(approvalNodeRef, (isNeed) => {
|
|
91
|
+
needSticky.value = isNeed;
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
return (_ctx, _cache) => {
|
|
95
|
+
const _component_up_outlined = resolveComponent("up-outlined");
|
|
96
|
+
const _component_down_outlined = resolveComponent("down-outlined");
|
|
97
|
+
const _component_a_image = resolveComponent("a-image");
|
|
98
|
+
return openBlock(), createElementBlock("div", {
|
|
99
|
+
ref_key: "approvalNodeRef",
|
|
100
|
+
ref: approvalNodeRef
|
|
101
|
+
}, [createElementVNode("div", {
|
|
102
|
+
class: normalizeClass(["process-node-title text-[14px] font-500 mb8px ks-row-middle", [needSticky.value && "sticky-node"]]),
|
|
103
|
+
style: normalizeStyle({
|
|
104
|
+
"--type-color": "#309C41",
|
|
105
|
+
"--sticky-top": `${__props.titleHeight || 0}px`,
|
|
106
|
+
"--status-color": __props.isCompeleted ? "#3168EC" : "#309C41"
|
|
107
|
+
})
|
|
108
|
+
}, [createElementVNode("div", {
|
|
109
|
+
class: "ell ks-col break-all",
|
|
110
|
+
title: __props.data.name
|
|
111
|
+
}, toDisplayString(__props.data.name), 9, _hoisted_1), __props.data.startTime ? (openBlock(), createElementBlock("div", _hoisted_2, [createTextVNode(toDisplayString(__props.data.startTime) + " ", 1), approvedList.value.length > 5 ? (openBlock(), createElementBlock("span", {
|
|
112
|
+
key: 0,
|
|
113
|
+
class: "ml12px text-[var(--ant-primary-color)] cursor-pointer",
|
|
114
|
+
style: {
|
|
115
|
+
"display": "inline-flex",
|
|
116
|
+
"align-items": "center"
|
|
117
|
+
},
|
|
118
|
+
onClick: toggleExpand
|
|
119
|
+
}, [createTextVNode(toDisplayString(isExpanded.value ? _ctx.$t("sys.collapse") : _ctx.$t("sys.unfold")) + " ", 1), createElementVNode("span", _hoisted_3, [isExpanded.value ? (openBlock(), createBlock(_component_up_outlined, { key: 0 })) : (openBlock(), createBlock(_component_down_outlined, { key: 1 }))])])) : createCommentVNode("", true)])) : createCommentVNode("", true)], 6), createElementVNode("div", _hoisted_4, [(openBlock(true), createElementBlock(Fragment, null, renderList(approvedList.value.filter((_e, f) => isExpanded.value || f < 5), (el, j) => {
|
|
120
|
+
return openBlock(), createElementBlock("div", {
|
|
121
|
+
key: j,
|
|
122
|
+
class: "ks-row mb8px bg-[#FBFBFC] p8px"
|
|
123
|
+
}, [
|
|
124
|
+
createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, [createElementVNode("img", {
|
|
125
|
+
src: el.avatar ? "/minio/" + el.avatar : unref(avatar_default_default),
|
|
126
|
+
alt: "",
|
|
127
|
+
width: "32",
|
|
128
|
+
height: "32",
|
|
129
|
+
style: { "border-radius": "50%" }
|
|
130
|
+
}, null, 8, _hoisted_8)]), createElementVNode("div", {
|
|
131
|
+
class: "ell text-[12px] text-[#666666] mt4px text-center break-all",
|
|
132
|
+
title: el.username
|
|
133
|
+
}, toDisplayString(el.username), 9, _hoisted_9)])]),
|
|
134
|
+
createElementVNode("div", _hoisted_10, [createElementVNode("div", _hoisted_11, [
|
|
135
|
+
createElementVNode("div", _hoisted_12, [createElementVNode("div", {
|
|
136
|
+
class: "mr8px",
|
|
137
|
+
style: normalizeStyle({
|
|
138
|
+
wordBreak: "keep-all",
|
|
139
|
+
color: approvalColor[el.approval]
|
|
140
|
+
})
|
|
141
|
+
}, toDisplayString(_ctx.$t(`sys.process.paasBpmnButtonEvent.${el.approval}`)), 5), withDirectives(createElementVNode("div", {
|
|
142
|
+
class: "ell-3 ks-col text-[#666666] break-all",
|
|
143
|
+
title: el.approvalMsg
|
|
144
|
+
}, toDisplayString(el.approvalMsg), 9, _hoisted_13), [[vShow, !__props.hiddenOpinion]])]),
|
|
145
|
+
!__props.hiddenSignature && el.signature ? (openBlock(), createElementBlock("div", _hoisted_14, [createElementVNode("div", _hoisted_15, toDisplayString(_ctx.$t("sys.model.sign")), 1), el.signature ? (openBlock(), createBlock(_component_a_image, {
|
|
146
|
+
key: 0,
|
|
147
|
+
width: 64,
|
|
148
|
+
height: 36,
|
|
149
|
+
src: __props.isDesign ? el.signature : `/minio/${el.signature}`,
|
|
150
|
+
fallback: unref(image_error_default)
|
|
151
|
+
}, null, 8, ["src", "fallback"])) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
152
|
+
el.userList && el.userList?.length ? (openBlock(), createBlock(user_list_default, {
|
|
153
|
+
key: j,
|
|
154
|
+
class: "mt8px",
|
|
155
|
+
data: el.userList
|
|
156
|
+
}, null, 8, ["data"])) : createCommentVNode("", true)
|
|
157
|
+
])]),
|
|
158
|
+
createElementVNode("div", _hoisted_16, [createElementVNode("div", null, toDisplayString(el.endTime), 1), el.duration ? (openBlock(), createElementBlock("div", _hoisted_17, toDisplayString(_ctx.$t("sys.integration.timeConsuming")) + ": " + toDisplayString(el.duration), 1)) : createCommentVNode("", true)])
|
|
159
|
+
]);
|
|
160
|
+
}), 128)), approvingData.value?.length ? (openBlock(), createBlock(user_list_default, {
|
|
161
|
+
key: __props.data.key,
|
|
162
|
+
class: "process-node-content bg-[#FBFBFC] rounded-4px p8px",
|
|
163
|
+
data: approvingData.value,
|
|
164
|
+
"tag-name": _ctx.$t("sys.process.status.approving")
|
|
165
|
+
}, null, 8, ["data", "tag-name"])) : createCommentVNode("", true)])], 512);
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
//#endregion
|
|
170
|
+
export { approval_node_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.process-node + .process-node[data-v-a88d7ef9] {
|
|
2
|
+
margin-top: 28px;
|
|
3
|
+
}
|
|
4
|
+
.process-node-title[data-v-a88d7ef9] {
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
.process-node-title[data-v-a88d7ef9]::before {
|
|
8
|
+
content: ' ';
|
|
9
|
+
display: block;
|
|
10
|
+
width: 6px;
|
|
11
|
+
height: 6px;
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 7px;
|
|
14
|
+
left: -19px;
|
|
15
|
+
background-color: var(--status-color);
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
box-shadow: 0 0 0 2px hsl(from var(--status-color) h s 93%);
|
|
18
|
+
}
|
|
19
|
+
.process-node-title.sticky-node[data-v-a88d7ef9] {
|
|
20
|
+
background-color: #ffffff;
|
|
21
|
+
position: sticky;
|
|
22
|
+
top: var(--sticky-top);
|
|
23
|
+
z-index: 9;
|
|
24
|
+
}
|
|
25
|
+
.ell-3[data-v-a88d7ef9] {
|
|
26
|
+
display: -webkit-inline-box;
|
|
27
|
+
display: -moz-inline-box;
|
|
28
|
+
display: inline-flexbox;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
text-overflow: ellipsis;
|
|
31
|
+
-webkit-line-clamp: 3;
|
|
32
|
+
line-clamp: 3;
|
|
33
|
+
-webkit-box-orient: vertical;
|
|
34
|
+
-moz-box-orient: vertical;
|
|
35
|
+
box-orient: 3;
|
|
36
|
+
}
|
|
37
|
+
.border[data-v-a88d7ef9] {
|
|
38
|
+
border: 1px solid #f0f0f0;
|
|
39
|
+
}
|
|
40
|
+
.user-list[data-v-a88d7ef9] {
|
|
41
|
+
row-gap: 8px;
|
|
42
|
+
}
|
|
43
|
+
.user-list-item[data-v-a88d7ef9] {
|
|
44
|
+
border-radius: 28px;
|
|
45
|
+
margin-right: 16px;
|
|
46
|
+
}
|
|
47
|
+
[data-v-a88d7ef9] .ant-image-img {
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
vertical-align: top;
|
|
51
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data: IObject[];
|
|
3
|
+
tagName?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import user_list_vue_vue_type_script_setup_true_lang_default from "./user-list.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './user-list.vue_vue_type_style_index_0_scoped_27aa2bf0_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/paas-bpmn-log/components/user-list.vue
|
|
5
|
+
var user_list_default = /* @__PURE__ */ _plugin_vue_export_helper_default(user_list_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-27aa2bf0"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { user_list_default as default };
|
package/es/components/paas-bpmn-log/components/user-list.vue_vue_type_script_setup_true_lang.mjs
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import avatar_default_default from "../imgs/avatar-default.png.mjs";
|
|
2
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, renderList, resolveComponent, toDisplayString, unref } from "vue";
|
|
3
|
+
//#region src/components/paas-bpmn-log/components/user-list.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _hoisted_1 = ["src"];
|
|
5
|
+
var _hoisted_2 = ["title"];
|
|
6
|
+
var _hoisted_3 = { class: "rounded-50% border w28px h28px ks-row-center-middle text-[var(--ant-primary-color)]" };
|
|
7
|
+
var _hoisted_4 = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "text-[#3168EC] text-[12px] px4px rounded-4px",
|
|
10
|
+
style: { backgroundColor: "hsl(from #3168EC h s 92%)" }
|
|
11
|
+
};
|
|
12
|
+
var _hoisted_5 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "mt8px primary-gct ks-row"
|
|
15
|
+
};
|
|
16
|
+
var user_list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
17
|
+
__name: "user-list",
|
|
18
|
+
props: {
|
|
19
|
+
data: {},
|
|
20
|
+
tagName: {}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const expand = ref(false);
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
const _component_up_outlined = resolveComponent("up-outlined");
|
|
26
|
+
return openBlock(), createElementBlock("div", null, [createElementVNode("div", {
|
|
27
|
+
class: "user-list ks-row-middle cursor-pointer flex-wrap",
|
|
28
|
+
onClick: _cache[0] || (_cache[0] = ($event) => __props.data.length > 3 && (expand.value = true))
|
|
29
|
+
}, [
|
|
30
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.data?.filter((_e, i) => expand.value || i < 3), (user, u) => {
|
|
31
|
+
return openBlock(), createElementBlock("div", {
|
|
32
|
+
key: u,
|
|
33
|
+
class: "user-list-item border w76px p4px ks-row-middle"
|
|
34
|
+
}, [createElementVNode("img", {
|
|
35
|
+
src: user.avatar ? "/minio/" + user.avatar : unref(avatar_default_default),
|
|
36
|
+
width: "20",
|
|
37
|
+
height: "20",
|
|
38
|
+
style: { "border-radius": "50%" }
|
|
39
|
+
}, null, 8, _hoisted_1), createElementVNode("div", {
|
|
40
|
+
class: "ml8px ell",
|
|
41
|
+
title: user.username,
|
|
42
|
+
style: { "line-height": "20px" }
|
|
43
|
+
}, toDisplayString(user.username), 9, _hoisted_2)]);
|
|
44
|
+
}), 128)),
|
|
45
|
+
__props.data?.length > 3 && !expand.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", _hoisted_3, " +" + toDisplayString(__props.data.length - 3), 1), _cache[2] || (_cache[2] = createElementVNode("div", { class: "text-[#8F8F8F] ml4px mr12px" }, "...", -1))], 64)) : createCommentVNode("", true),
|
|
46
|
+
__props.tagName ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(__props.tagName), 1)) : createCommentVNode("", true)
|
|
47
|
+
]), expand.value ? (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("span", {
|
|
48
|
+
class: "cursor-pointer",
|
|
49
|
+
onClick: _cache[1] || (_cache[1] = ($event) => expand.value = !expand.value)
|
|
50
|
+
}, [createTextVNode(toDisplayString(_ctx.$t("sys.collapse")) + " ", 1), createVNode(_component_up_outlined)])])) : createCommentVNode("", true)]);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { user_list_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 监听最近一个出现滚动条的父盒子高度
|
|
4
|
+
* html HTMLDivElement
|
|
5
|
+
* callback 获取到高度后的回调
|
|
6
|
+
*/
|
|
7
|
+
export declare function parentObserver(html: Ref<HTMLDivElement>, callback: (needSticky: boolean, parentHeight: number, height: number) => void): void;
|
|
8
|
+
/**
|
|
9
|
+
* 监听审批节点的高度
|
|
10
|
+
* html HTMLDivElement
|
|
11
|
+
* callback 获取到高度后的回调
|
|
12
|
+
*/
|
|
13
|
+
export declare function approvalObserver(html: Ref<HTMLDivElement>, callback: (needSticky: boolean, parentHeight: number, height: number) => void): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { onBeforeUnmount, ref } from "vue";
|
|
2
|
+
import { useResizeObserver } from "@vueuse/core";
|
|
3
|
+
//#region src/components/paas-bpmn-log/hooks/useObserver.ts
|
|
4
|
+
var parentHeight = ref();
|
|
5
|
+
var observeMap = ref({});
|
|
6
|
+
function getParentHeight(ele) {
|
|
7
|
+
const p1 = ele?.parentElement;
|
|
8
|
+
const sH = p1?.scrollHeight;
|
|
9
|
+
const pH = p1?.clientHeight;
|
|
10
|
+
if (sH && pH && sH > pH) return p1.clientHeight;
|
|
11
|
+
if (p1) return getParentHeight(p1);
|
|
12
|
+
return 0;
|
|
13
|
+
}
|
|
14
|
+
onBeforeUnmount(() => {
|
|
15
|
+
for (const k in observeMap.value) {
|
|
16
|
+
observeMap.value[k]?.unobserve(k);
|
|
17
|
+
observeMap.value[k]?.disconnect();
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* 监听最近一个出现滚动条的父盒子高度
|
|
22
|
+
* html HTMLDivElement
|
|
23
|
+
* callback 获取到高度后的回调
|
|
24
|
+
*/
|
|
25
|
+
function parentObserver(html, callback) {
|
|
26
|
+
observeMap.value[html.value.toString()] = useResizeObserver(html.value, (entries) => {
|
|
27
|
+
const height = entries[0].target.clientHeight;
|
|
28
|
+
if (!height) return;
|
|
29
|
+
parentHeight.value = getParentHeight(html.value);
|
|
30
|
+
if (callback && typeof callback === "function") callback(height && parentHeight.value && height > parentHeight.value, parentHeight.value, height);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 监听审批节点的高度
|
|
35
|
+
* html HTMLDivElement
|
|
36
|
+
* callback 获取到高度后的回调
|
|
37
|
+
*/
|
|
38
|
+
function approvalObserver(html, callback) {
|
|
39
|
+
observeMap.value[html.value.toString()] = useResizeObserver(html.value, (entries) => {
|
|
40
|
+
const height = entries[0].target.clientHeight;
|
|
41
|
+
if (!height) return;
|
|
42
|
+
if (callback && typeof callback === "function") callback(height && parentHeight.value && height > parentHeight.value, parentHeight.value, height);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { approvalObserver, parentObserver };
|