@gct-paas/render-web 6.0.0-dev.32 → 6.0.0-dev.34
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/index.min.css +1 -1
- package/dist/loader.esm.min.js +2 -2
- package/es/Event/Events.d.ts +3 -2
- package/es/Event/modeling-traceability/assets/empty.png.mjs +4 -0
- package/es/Event/modeling-traceability/components/expression-condition.vue.d.ts +5 -0
- package/es/Event/modeling-traceability/components/expression-condition.vue.mjs +5 -0
- package/es/Event/modeling-traceability/components/expression-condition.vue_vue_type_script_setup_true_lang.mjs +22 -0
- package/es/Event/modeling-traceability/components/file-cell.vue.d.ts +5 -0
- package/es/Event/modeling-traceability/components/file-cell.vue.mjs +7 -0
- package/es/Event/modeling-traceability/components/file-cell.vue_vue_type_script_setup_true_lang.mjs +81 -0
- package/es/Event/modeling-traceability/components/file-cell.vue_vue_type_style_index_0_scoped_104536e3_lang.css +74 -0
- package/es/Event/modeling-traceability/components/image-cell.vue.d.ts +5 -0
- package/es/Event/modeling-traceability/components/image-cell.vue.mjs +7 -0
- package/es/Event/modeling-traceability/components/image-cell.vue_vue_type_script_setup_true_lang.mjs +83 -0
- package/es/Event/modeling-traceability/components/image-cell.vue_vue_type_style_index_0_scoped_1b5cd3ef_lang.css +86 -0
- package/es/Event/modeling-traceability/components/serial-rule.vue.d.ts +5 -0
- package/es/Event/modeling-traceability/components/serial-rule.vue.mjs +5 -0
- package/es/Event/modeling-traceability/components/serial-rule.vue_vue_type_script_setup_true_lang.mjs +47 -0
- package/es/Event/modeling-traceability/components/signature-cell.vue.d.ts +5 -0
- package/es/Event/modeling-traceability/components/signature-cell.vue.mjs +7 -0
- package/es/Event/modeling-traceability/components/signature-cell.vue_vue_type_script_setup_true_lang.mjs +79 -0
- package/es/Event/modeling-traceability/components/signature-cell.vue_vue_type_style_index_0_scoped_c9ef9bd9_lang.css +83 -0
- package/es/Event/modeling-traceability/components/trace-table.vue.d.ts +7 -0
- package/es/Event/modeling-traceability/components/trace-table.vue.mjs +7 -0
- package/es/Event/modeling-traceability/components/trace-table.vue_vue_type_script_setup_true_lang.mjs +158 -0
- package/es/Event/modeling-traceability/components/trace-table.vue_vue_type_style_index_0_scoped_a3754f9c_lang.css +67 -0
- package/es/Event/modeling-traceability/index.d.ts +15 -0
- package/es/Event/modeling-traceability/index.mjs +40 -0
- package/es/Event/modeling-traceability/modeling-trace-template.vue.mjs +8 -0
- package/es/Event/modeling-traceability/modeling-trace-template.vue_vue_type_script_setup_true_lang.mjs +610 -0
- package/es/Event/modeling-traceability/modeling-trace-template.vue_vue_type_style_index_0_scoped_3663bfcb_lang.css +176 -0
- package/es/Event/modeling-traceability/modeling-trace-template.vue_vue_type_style_index_1_lang.css +20 -0
- package/es/components/form-component/field-label/tag-label.vue_vue_type_script_setup_true_name_TagLabel_lang.mjs +1 -1
- package/es/components/layouts/basic-page/basic-page.vue.mjs +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +3 -1
- package/es/locale/sys/appDesigner.d.ts +5 -0
- package/es/locale/sys/appDesigner.mjs +5 -0
- package/es/locale/sys/component.d.ts +3 -0
- package/es/locale/sys/component.mjs +13 -10
- package/es/locale/sys/model.d.ts +2 -0
- package/es/locale/sys/model.mjs +2 -0
- package/es/locale/sys/pageDesigner.d.ts +3 -0
- package/es/locale/sys/pageDesigner.mjs +3 -0
- package/es/locale/sys.d.ts +2 -0
- package/es/locale/sys.mjs +3 -1
- package/package.json +15 -12
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.more[data-v-c9ef9bd9] {
|
|
66
|
+
width: 35px;
|
|
67
|
+
margin-left: 4px;
|
|
68
|
+
color: var(--ant-primary-color);
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
}
|
|
71
|
+
.file-list__item[data-v-c9ef9bd9] {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
margin-right: 8px;
|
|
77
|
+
}
|
|
78
|
+
.file-list__item-name[data-v-c9ef9bd9] {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
81
|
+
.list[data-v-c9ef9bd9] {
|
|
82
|
+
flex-wrap: wrap;
|
|
83
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
dataSourse?: IObject[];
|
|
3
|
+
type: string;
|
|
4
|
+
isMain: boolean;
|
|
5
|
+
};
|
|
6
|
+
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, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import trace_table_vue_vue_type_script_setup_true_lang_default from "./trace-table.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './trace-table.vue_vue_type_style_index_0_scoped_a3754f9c_lang.css';/* empty css */
|
|
4
|
+
//#region src/Event/modeling-traceability/components/trace-table.vue
|
|
5
|
+
var trace_table_default = /* @__PURE__ */ _plugin_vue_export_helper_default(trace_table_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a3754f9c"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { trace_table_default as default };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import expression_condition_default from "./expression-condition.vue.mjs";
|
|
2
|
+
import file_cell_default from "./file-cell.vue.mjs";
|
|
3
|
+
import image_cell_default from "./image-cell.vue.mjs";
|
|
4
|
+
import serial_rule_default from "./serial-rule.vue.mjs";
|
|
5
|
+
import signature_cell_default from "./signature-cell.vue.mjs";
|
|
6
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, ref, toDisplayString, unref, withCtx } from "vue";
|
|
7
|
+
import { FIELD_TYPE, t, useNamespace } from "@gct-paas/core";
|
|
8
|
+
import { BasicTable } from "@gct-paas/v-ben";
|
|
9
|
+
//#region src/Event/modeling-traceability/components/trace-table.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var trace_table_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "trace-table",
|
|
12
|
+
props: {
|
|
13
|
+
dataSourse: {},
|
|
14
|
+
type: {},
|
|
15
|
+
isMain: { type: Boolean }
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
const ns = useNamespace("modeling-trace");
|
|
19
|
+
const displayValue = _gct.store.getEmptyDisplay;
|
|
20
|
+
const props = __props;
|
|
21
|
+
const operationTypeMap = new Map([
|
|
22
|
+
["update", t("sys.edit")],
|
|
23
|
+
["insert", t("sys.new")],
|
|
24
|
+
["deleted", t("sys.delText")]
|
|
25
|
+
]);
|
|
26
|
+
const enumField = [
|
|
27
|
+
FIELD_TYPE.E_DHR_TEMPLATE,
|
|
28
|
+
FIELD_TYPE.ONLINE_FORM_TEMPLATE,
|
|
29
|
+
FIELD_TYPE.LABEL_TEMPLATE_REF,
|
|
30
|
+
FIELD_TYPE.DOCUMENT_TEMPLATE,
|
|
31
|
+
FIELD_TYPE.REF,
|
|
32
|
+
FIELD_TYPE.REF_MULTI,
|
|
33
|
+
FIELD_TYPE.RDO_REF,
|
|
34
|
+
FIELD_TYPE.TRANSACTION,
|
|
35
|
+
FIELD_TYPE.USER,
|
|
36
|
+
FIELD_TYPE.USER_MULTI,
|
|
37
|
+
FIELD_TYPE.PRINTER,
|
|
38
|
+
FIELD_TYPE.ORG,
|
|
39
|
+
FIELD_TYPE.ORG_MULTI,
|
|
40
|
+
FIELD_TYPE.ENUM,
|
|
41
|
+
FIELD_TYPE.MESSAGE_TMPL
|
|
42
|
+
];
|
|
43
|
+
const newColumns = ref([
|
|
44
|
+
{
|
|
45
|
+
title: t("序号"),
|
|
46
|
+
dataIndex: "index",
|
|
47
|
+
key: "index",
|
|
48
|
+
width: 60,
|
|
49
|
+
customCell: (_) => {
|
|
50
|
+
return { rowSpan: _.recordIdRowSpan };
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
title: t("sys.appDesigner.operationType"),
|
|
55
|
+
dataIndex: "operationType",
|
|
56
|
+
key: "operationType",
|
|
57
|
+
width: props.type === "deleted" ? 330 : 100,
|
|
58
|
+
customCell: (_) => {
|
|
59
|
+
return { rowSpan: _.recordIdRowSpan };
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
title: t("sys.model.data") + "ID",
|
|
64
|
+
dataIndex: "recordId",
|
|
65
|
+
key: "recordId",
|
|
66
|
+
width: props.type === "deleted" ? 330 : 100,
|
|
67
|
+
customCell: (_) => {
|
|
68
|
+
return { rowSpan: _.recordIdRowSpan };
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
title: t("sys.appDesigner.detailData"),
|
|
73
|
+
dataIndex: "detailData",
|
|
74
|
+
key: "detailData",
|
|
75
|
+
width: props.type === "deleted" ? props.isMain ? 400 : 350 : props.isMain ? 150 : 100,
|
|
76
|
+
customCell: (_) => {
|
|
77
|
+
return { rowSpan: _.detailDataRowSpan };
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
title: t("sys.model.fieldName"),
|
|
82
|
+
dataIndex: "fieldName",
|
|
83
|
+
key: "fieldName",
|
|
84
|
+
width: 150,
|
|
85
|
+
ellipsis: true
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: t("sys.pageDesigner.oldData"),
|
|
89
|
+
dataIndex: "oldData",
|
|
90
|
+
key: "oldData",
|
|
91
|
+
width: 280
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
title: t("sys.pageDesigner.newData"),
|
|
95
|
+
dataIndex: "newData",
|
|
96
|
+
key: "newData",
|
|
97
|
+
width: 280
|
|
98
|
+
}
|
|
99
|
+
]);
|
|
100
|
+
const getColumns = (type) => {
|
|
101
|
+
if (type === "deleted") return newColumns.value.filter((_, idx) => {
|
|
102
|
+
return idx < 4;
|
|
103
|
+
});
|
|
104
|
+
else return newColumns.value;
|
|
105
|
+
};
|
|
106
|
+
return (_ctx, _cache) => {
|
|
107
|
+
return __props.dataSourse ? (openBlock(), createBlock(unref(BasicTable), {
|
|
108
|
+
key: 0,
|
|
109
|
+
columns: getColumns(props.type),
|
|
110
|
+
"data-source": __props.dataSourse,
|
|
111
|
+
pagination: false,
|
|
112
|
+
size: "small",
|
|
113
|
+
class: normalizeClass(unref(ns).e("trace-table")),
|
|
114
|
+
"show-index-column": false,
|
|
115
|
+
scroll: { y: "max-content" }
|
|
116
|
+
}, {
|
|
117
|
+
bodyCell: withCtx(({ column, record }) => [record.fieldType === unref(FIELD_TYPE).IMAGE && (column.key === "newData" || column.key === "oldData") ? (openBlock(), createBlock(image_cell_default, {
|
|
118
|
+
key: 0,
|
|
119
|
+
"file-list": record[column.key]
|
|
120
|
+
}, null, 8, ["file-list"])) : record.fieldType === unref(FIELD_TYPE).ATTACHMENT && (column.key === "newData" || column.key === "oldData") ? (openBlock(), createBlock(file_cell_default, {
|
|
121
|
+
key: 1,
|
|
122
|
+
"file-list": record[column.key]
|
|
123
|
+
}, null, 8, ["file-list"])) : record.fieldType === unref(FIELD_TYPE).SERIALRULE && (column.key === "newData" || column.key === "oldData") ? (openBlock(), createBlock(serial_rule_default, {
|
|
124
|
+
key: 2,
|
|
125
|
+
"rule-config": record[column.key]
|
|
126
|
+
}, null, 8, ["rule-config"])) : record.fieldType === unref(FIELD_TYPE).EXPRESSION_CONDITION && (column.key === "newData" || column.key === "oldData") ? (openBlock(), createBlock(expression_condition_default, {
|
|
127
|
+
key: 3,
|
|
128
|
+
"condition-config": record[column.key]
|
|
129
|
+
}, null, 8, ["condition-config"])) : record.fieldType === unref(FIELD_TYPE).SIGNATURE && (column.key === "newData" || column.key === "oldData") ? (openBlock(), createBlock(signature_cell_default, {
|
|
130
|
+
key: 4,
|
|
131
|
+
"file-list": record[column.key]
|
|
132
|
+
}, null, 8, ["file-list"])) : column.key === "operationType" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [createTextVNode(toDisplayString(unref(operationTypeMap).get(record[column.key])), 1)], 64)) : enumField.includes(record.fieldType) && column.key === "newData" ? (openBlock(), createElementBlock("div", {
|
|
133
|
+
key: 6,
|
|
134
|
+
class: normalizeClass(unref(ns).e("wrap"))
|
|
135
|
+
}, toDisplayString(record.newDict && record.newDict.length ? record.newDict.join(",") : record.newData ? record.newData : unref(displayValue)), 3)) : enumField.includes(record.fieldType) && column.key === "oldData" ? (openBlock(), createElementBlock("div", {
|
|
136
|
+
key: 7,
|
|
137
|
+
class: normalizeClass(unref(ns).e("wrap"))
|
|
138
|
+
}, toDisplayString(record.oldDict && record.oldDict.length ? record.oldDict.join(",") : record.oldData ? record.oldData : unref(displayValue)), 3)) : record.fieldType == unref(FIELD_TYPE).ENUM_MULTI && column.key === "oldData" ? (openBlock(), createElementBlock("div", {
|
|
139
|
+
key: 8,
|
|
140
|
+
class: normalizeClass(unref(ns).e("wrap"))
|
|
141
|
+
}, toDisplayString(record.oldDict && record.oldDict.length ? record.oldDict.join(",") : record.oldData ? record.oldData.replaceAll("|", ",") : unref(displayValue)), 3)) : record.fieldType == unref(FIELD_TYPE).ENUM_MULTI && column.key === "newData" ? (openBlock(), createElementBlock("div", {
|
|
142
|
+
key: 9,
|
|
143
|
+
class: normalizeClass(unref(ns).e("wrap"))
|
|
144
|
+
}, toDisplayString(record.newDict && record.newDict.length ? record.newDict.join(",") : record.newData ? record.newData.replaceAll("|", ",") : unref(displayValue)), 3)) : column.key !== "fieldName" ? (openBlock(), createElementBlock("div", {
|
|
145
|
+
key: 10,
|
|
146
|
+
class: normalizeClass(unref(ns).e("wrap"))
|
|
147
|
+
}, toDisplayString(record[column.key] === false ? record[column.key].toString() : record[column.key] || unref(displayValue)), 3)) : (openBlock(), createElementBlock(Fragment, { key: 11 }, [createTextVNode(toDisplayString(record[column.key] || unref(displayValue)), 1)], 64))]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 8, [
|
|
150
|
+
"columns",
|
|
151
|
+
"data-source",
|
|
152
|
+
"class"
|
|
153
|
+
])) : createCommentVNode("", true);
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
//#endregion
|
|
158
|
+
export { trace_table_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-modeling-trace__wrap[data-v-a3754f9c] {
|
|
66
|
+
white-space: wrap;
|
|
67
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ModalInstance } from '@gct-paas/render';
|
|
2
|
+
import { default as ModelingTraceTemplate } from './modeling-trace-template.vue';
|
|
3
|
+
export interface ModelingTraceabilityOptions {
|
|
4
|
+
id: string;
|
|
5
|
+
modelKey: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
}
|
|
8
|
+
declare class ModelingTraceabilityModal {
|
|
9
|
+
static instanceCache: Record<string, ModalInstance>;
|
|
10
|
+
static create({ id, modelKey, title }: ModelingTraceabilityOptions): void;
|
|
11
|
+
static getInstance(options: ModelingTraceabilityOptions): ModalInstance;
|
|
12
|
+
static remove(): void;
|
|
13
|
+
}
|
|
14
|
+
export declare const modelingTraceability: typeof ModelingTraceabilityModal.getInstance;
|
|
15
|
+
export { ModelingTraceTemplate };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import modeling_trace_template_default from "./modeling-trace-template.vue.mjs";
|
|
2
|
+
import { createVNode, render } from "vue";
|
|
3
|
+
import { OverlayContainer } from "@gct-paas/core";
|
|
4
|
+
//#region src/Event/modeling-traceability/index.ts
|
|
5
|
+
var ModelingTraceabilityModal = class {
|
|
6
|
+
static instanceCache = {};
|
|
7
|
+
static create({ id, modelKey, title }) {
|
|
8
|
+
if (!this.instanceCache[id]) {
|
|
9
|
+
const container = document.createElement("div");
|
|
10
|
+
const vm = createVNode(modeling_trace_template_default, {
|
|
11
|
+
id,
|
|
12
|
+
modelKey,
|
|
13
|
+
title,
|
|
14
|
+
destroyVm: () => {
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
render(null, container);
|
|
17
|
+
this.instanceCache[id] = null;
|
|
18
|
+
}, 300);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
const app = OverlayContainer.createVueApp(vm);
|
|
22
|
+
this.instanceCache[id] = app.mount(container);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
static getInstance(options) {
|
|
26
|
+
this.create(options);
|
|
27
|
+
return this.instanceCache[options.id];
|
|
28
|
+
}
|
|
29
|
+
static remove() {
|
|
30
|
+
Object.values(this.instanceCache).forEach((vm) => {
|
|
31
|
+
if (vm) vm.close();
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var modelingTraceability = ModelingTraceabilityModal.getInstance.bind(ModelingTraceabilityModal);
|
|
36
|
+
_gct.router.afterEach(() => {
|
|
37
|
+
ModelingTraceabilityModal.remove();
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { modelingTraceability };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import modeling_trace_template_vue_vue_type_script_setup_true_lang_default from "./modeling-trace-template.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './modeling-trace-template.vue_vue_type_style_index_1_lang.css';import './modeling-trace-template.vue_vue_type_style_index_0_scoped_3663bfcb_lang.css';/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
//#region src/Event/modeling-traceability/modeling-trace-template.vue
|
|
6
|
+
var modeling_trace_template_default = /* @__PURE__ */ _plugin_vue_export_helper_default(modeling_trace_template_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-3663bfcb"]]);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { modeling_trace_template_default as default };
|