@gct-paas/render-web 0.1.6-dev.8 → 6.0.0-dev.1
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/README.md +161 -0
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +2 -1
- package/es/Event/Events.d.ts +1 -0
- package/es/Event/Events.mjs +7 -3
- package/es/_virtual/_rolldown/runtime.mjs +13 -0
- package/es/components/base-vxe-table/base-vxe-table.vue.d.ts +80 -0
- package/es/components/base-vxe-table/base-vxe-table.vue.mjs +7 -0
- package/es/components/base-vxe-table/base-vxe-table.vue_vue_type_script_setup_true_name_base-vxe-table_lang.mjs +154 -0
- package/es/components/base-vxe-table/base-vxe-table.vue_vue_type_style_index_0_scoped_bf4b3774_lang.css +10 -0
- package/es/components/base-vxe-table/utils.d.ts +25 -0
- package/es/components/base-vxe-table/utils.mjs +25 -0
- package/es/components/collapse-detail/components/collapse-list.vue.d.ts +24 -0
- package/es/components/collapse-detail/components/collapse-list.vue.mjs +5 -0
- package/es/components/collapse-detail/components/collapse-list.vue_vue_type_script_setup_true_lang.mjs +103 -0
- package/es/components/collapse-detail/components/enum-tag-label.vue.d.ts +6 -0
- package/es/components/collapse-detail/components/enum-tag-label.vue.mjs +5 -0
- package/es/components/collapse-detail/components/enum-tag-label.vue_vue_type_script_setup_true_lang.mjs +61 -0
- package/es/components/collapse-detail/components/instance-status-label.vue.d.ts +34 -0
- package/es/components/collapse-detail/components/instance-status-label.vue.mjs +7 -0
- package/es/components/collapse-detail/components/instance-status-label.vue_vue_type_script_setup_true_lang.mjs +76 -0
- package/es/components/collapse-detail/components/instance-status-label.vue_vue_type_style_index_0_scoped_610b0bb3_lang.css +77 -0
- package/es/components/collapse-detail/components/label-tag.vue.d.ts +6 -0
- package/es/components/collapse-detail/components/label-tag.vue.mjs +7 -0
- package/es/components/collapse-detail/components/label-tag.vue_vue_type_script_setup_true_lang.mjs +34 -0
- package/es/components/collapse-detail/components/label-tag.vue_vue_type_style_index_0_scoped_b25afce5_lang.css +39 -0
- package/es/components/collapse-detail/constants/instance-theme-config.d.ts +64 -0
- package/es/components/collapse-detail/constants/instance-theme-config.mjs +100 -0
- package/es/components/collapse-detail/constants/status.d.ts +36 -0
- package/es/components/collapse-detail/constants/status.mjs +34 -0
- package/es/components/collapse-detail/index.d.ts +3 -0
- package/es/components/collapse-detail/index.mjs +1 -0
- package/es/components/collapse-detail/index.vue.d.ts +37 -0
- package/es/components/collapse-detail/index.vue.mjs +7 -0
- package/es/components/collapse-detail/index.vue_vue_type_script_setup_true_name_collapse-detail_lang.mjs +90 -0
- package/es/components/collapse-detail/index.vue_vue_type_style_index_0_scoped_b4b9903c_lang.css +83 -0
- package/es/components/collapse-detail/typing.d.ts +44 -0
- package/es/components/collapse-detail/typing.mjs +17 -0
- package/es/components/field-search-cascader/field-cascader.vue.d.ts +17 -0
- package/es/components/field-search-cascader/field-cascader.vue.mjs +8 -0
- package/es/components/field-search-cascader/field-cascader.vue_vue_type_script_setup_true_lang.mjs +297 -0
- package/es/components/field-search-cascader/field-cascader.vue_vue_type_style_index_0_scoped_cb5e4d67_lang.css +52 -0
- package/es/components/field-search-cascader/field-cascader.vue_vue_type_style_index_1_lang.css +3 -0
- package/es/components/field-search-cascader/index.d.ts +2 -0
- package/es/components/field-search-cascader/index.mjs +1 -0
- package/es/components/form-component/FieldSelect.css +22 -0
- package/es/components/form-component/FieldSelect.d.ts +9 -0
- package/es/components/form-component/FieldSelect.mjs +19 -8
- package/es/components/form-component/field-label/tag-label.vue.d.ts +1 -0
- package/es/components/form-component/field-label/tag-label.vue.mjs +2 -2
- package/es/components/form-component/field-label/tag-label.vue_vue_type_script_setup_true_name_TagLabel_lang.mjs +15 -13
- package/es/components/form-component/field-label/tag-label.vue_vue_type_style_index_0_scoped_5e1146da_lang.css +18 -0
- package/es/components/form-component/field-label/tag-span.vue.mjs +1 -1
- package/es/components/form-component/field-readonly.vue_vue_type_script_setup_true_lang.mjs +26 -44
- package/es/components/index.d.ts +7 -0
- package/es/components/index.mjs +9 -0
- package/es/components/layouts/basic-page/basic-page.vue.d.ts +30 -0
- package/es/components/layouts/basic-page/basic-page.vue.mjs +7 -0
- package/es/components/layouts/basic-page/basic-page.vue_vue_type_script_setup_true_name_basic-page_lang.mjs +30 -0
- package/es/components/layouts/basic-page/basic-page.vue_vue_type_style_index_0_scoped_23453a1b_lang.css +20 -0
- package/es/components/layouts/basic-page-render/basic-page-render.vue.d.ts +30 -0
- package/es/components/layouts/basic-page-render/basic-page-render.vue.mjs +7 -0
- package/es/components/layouts/basic-page-render/basic-page-render.vue_vue_type_script_setup_true_name_BasicPageRender_lang.mjs +30 -0
- package/es/components/layouts/basic-page-render/basic-page-render.vue_vue_type_style_index_0_scoped_3c6aba55_lang.css +20 -0
- package/es/components/multi-field/multi-field-display.vue.mjs +2 -2
- package/es/components/multi-field/multi-field-display.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/multi-field/{multi-field-display.vue_vue_type_style_index_0_scoped_0f2f02cc_lang.css → multi-field-display.vue_vue_type_style_index_0_scoped_a62c7691_lang.css} +1 -1
- package/es/components/rich-editor/index.d.ts +2 -0
- package/es/components/rich-editor/index.mjs +1 -0
- package/es/components/rich-editor/rich-editor.vue.d.ts +22 -0
- package/es/components/rich-editor/rich-editor.vue.mjs +5 -0
- package/es/components/rich-editor/rich-editor.vue_vue_type_script_setup_true_lang.mjs +150 -0
- package/es/components/rich-editor/style.css +747 -0
- package/es/constants/xlsx-parser.d.ts +15 -0
- package/es/constants/xlsx-parser.mjs +58 -0
- package/es/enums/xlsx-parser.d.ts +293 -0
- package/es/enums/xlsx-parser.mjs +36 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/refCardList.mjs +6 -6
- package/es/hooks/useQuickSearch.d.ts +8 -0
- package/es/hooks/useQuickSearch.mjs +96 -0
- package/es/index.d.ts +3 -0
- package/es/index.mjs +13 -1
- package/es/interface/xlsx-parser/base.d.ts +151 -0
- package/es/interface/xlsx-parser/index.d.ts +246 -0
- package/es/locale/auto-register.d.ts +2 -0
- package/es/locale/auto-register.mjs +31 -0
- package/es/locale/sys/appDesigner.d.ts +11 -0
- package/es/locale/sys/appDesigner.mjs +11 -0
- package/es/locale/sys/bi.d.ts +4 -0
- package/es/locale/sys/bi.mjs +6 -0
- package/es/locale/sys/bpmn.d.ts +10 -0
- package/es/locale/sys/bpmn.mjs +12 -0
- package/es/locale/sys/component.d.ts +15 -0
- package/es/locale/sys/component.mjs +15 -0
- package/es/locale/sys/developer.d.ts +6 -0
- package/es/locale/sys/developer.mjs +6 -0
- package/es/locale/sys/edhr.d.ts +19 -0
- package/es/locale/sys/edhr.mjs +15 -0
- package/es/locale/sys/message.d.ts +4 -0
- package/es/locale/sys/message.mjs +6 -0
- package/es/locale/sys/model.d.ts +34 -0
- package/es/locale/sys/model.mjs +38 -0
- package/es/locale/sys/onlineForm.d.ts +8 -0
- package/es/locale/sys/onlineForm.mjs +12 -0
- package/es/locale/sys/pageDesigner.d.ts +7 -0
- package/es/locale/sys/pageDesigner.mjs +9 -0
- package/es/locale/sys.d.ts +10 -0
- package/es/locale/sys.mjs +14 -0
- package/es/modules/app-mqtt/app-mqtt.interface.d.ts +26 -0
- package/es/modules/app-mqtt/app-mqtt.service.d.ts +73 -0
- package/es/modules/app-mqtt/app-mqtt.service.mjs +134 -0
- package/es/modules/app-mqtt/index.d.ts +2 -0
- package/es/modules/app-mqtt/index.mjs +1 -0
- package/es/plugins/render-card-field/render-card-field.css +171 -0
- package/es/plugins/render-card-field/render-card-field.d.ts +48 -0
- package/es/plugins/render-card-field/render-card-field.mjs +157 -0
- package/es/plugins/render-card-field/render-card-field.provider.d.ts +7 -0
- package/es/plugins/render-card-field/render-card-field.provider.mjs +10 -0
- package/es/plugins/render-card-view-page/render-card-view-page.css +72 -0
- package/es/plugins/render-card-view-page/render-card-view-page.d.ts +33 -0
- package/es/plugins/render-card-view-page/render-card-view-page.mjs +61 -0
- package/es/plugins/render-card-view-page/render-card-view-page.provider.d.ts +7 -0
- package/es/plugins/render-card-view-page/render-card-view-page.provider.mjs +10 -0
- package/es/plugins/render-design-editor/index.d.ts +5 -0
- package/es/plugins/render-design-editor/upload-file/index.d.ts +4 -0
- package/es/plugins/render-design-editor/upload-file/upload-file.d.ts +51 -0
- package/es/plugins/render-design-editor/upload-image/index.d.ts +4 -0
- package/es/plugins/render-design-editor/upload-image/upload-image.d.ts +51 -0
- package/es/plugins/render-design-editor/user-signature/index.d.ts +4 -0
- package/es/plugins/render-design-editor/user-signature/user-signature.d.ts +51 -0
- package/es/setup-app.d.ts +2 -0
- package/es/setup-app.mjs +22 -0
- package/es/types/shims-modules.d.ts +11 -0
- package/es/utils/cell-border.d.ts +73 -0
- package/es/utils/cell-border.mjs +203 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +1 -0
- package/es/utils/xlsx-parser.d.ts +141 -0
- package/es/utils/xlsx-parser.mjs +262 -0
- package/package.json +23 -12
- package/es/components/form-component/field-label/tag-label.vue_vue_type_style_index_0_scoped_6c507fe8_lang.css +0 -15
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.instance-status-wrapper[data-v-610b0bb3] {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: flex-start;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
.instance-status-wrapper.instance-status-label--UNFILLED[data-v-610b0bb3],
|
|
8
|
+
.instance-status-wrapper.instance-status-label--UNRELEASED[data-v-610b0bb3] {
|
|
9
|
+
--color: #de5e5f;
|
|
10
|
+
}
|
|
11
|
+
.instance-status-wrapper.instance-status-label--RUNNING[data-v-610b0bb3],
|
|
12
|
+
.instance-status-wrapper.instance-status-label--running[data-v-610b0bb3],
|
|
13
|
+
.instance-status-wrapper.instance-status-label--RELEASE[data-v-610b0bb3] {
|
|
14
|
+
--color: #026ac8;
|
|
15
|
+
}
|
|
16
|
+
.instance-status-wrapper.instance-status-label--COMPLETED[data-v-610b0bb3],
|
|
17
|
+
.instance-status-wrapper.instance-status-label--finished[data-v-610b0bb3] {
|
|
18
|
+
--color: #309c41;
|
|
19
|
+
}
|
|
20
|
+
.instance-status-wrapper.instance-status-label--ARCHIVED[data-v-610b0bb3],
|
|
21
|
+
.instance-status-wrapper.instance-status-label--IN_AUDIT[data-v-610b0bb3] {
|
|
22
|
+
--color: #dda200;
|
|
23
|
+
}
|
|
24
|
+
.instance-status-wrapper.instance-status-label--EXCEPTION[data-v-610b0bb3] {
|
|
25
|
+
--color: var(--ant-warning-color);
|
|
26
|
+
}
|
|
27
|
+
.instance-status-wrapper.instance-status-label--IN_SUMMARY[data-v-610b0bb3] {
|
|
28
|
+
--color: #ff9442;
|
|
29
|
+
}
|
|
30
|
+
.instance-status-wrapper.instance-status-label--SUMMARIZED[data-v-610b0bb3] {
|
|
31
|
+
--color: #aa78ff;
|
|
32
|
+
}
|
|
33
|
+
.instance-status-wrapper.instance-status-label--static .instance-title[data-v-610b0bb3] {
|
|
34
|
+
color: var(--color, #606266);
|
|
35
|
+
padding: 0;
|
|
36
|
+
}
|
|
37
|
+
.instance-status-wrapper .icon-dot[data-v-610b0bb3] {
|
|
38
|
+
width: 4px;
|
|
39
|
+
height: 4px;
|
|
40
|
+
margin-right: 4px;
|
|
41
|
+
border-radius: 50%;
|
|
42
|
+
background-color: var(--color, transparent);
|
|
43
|
+
}
|
|
44
|
+
.instance-status-wrapper .instance-status-icon[data-v-610b0bb3] {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
height: 32px;
|
|
48
|
+
width: 32px;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
color: #fff;
|
|
51
|
+
background: var(--nocode-iconBgColor);
|
|
52
|
+
border-radius: 2px;
|
|
53
|
+
}
|
|
54
|
+
.instance-status-wrapper .instance-status-icon .iconfont[data-v-610b0bb3] {
|
|
55
|
+
font-size: 18px;
|
|
56
|
+
}
|
|
57
|
+
.instance-status-wrapper .instance-title[data-v-610b0bb3] {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
line-height: 22px;
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
color: var(--nocode-textColor);
|
|
62
|
+
background: var(--nocode-bgColor);
|
|
63
|
+
border-radius: 4px;
|
|
64
|
+
padding: 0 6px;
|
|
65
|
+
}
|
|
66
|
+
.instance-status-wrapper .instance-title.is-custom-class[data-v-610b0bb3] {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: 0;
|
|
69
|
+
right: 0;
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
height: 18px;
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
line-height: 18px;
|
|
76
|
+
border-radius: 0 0 4px 4px;
|
|
77
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LabelTagItem } from '../typing';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
data: LabelTagItem;
|
|
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, {}, HTMLSpanElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import label_tag_vue_vue_type_script_setup_true_lang_default from "./label-tag.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './label-tag.vue_vue_type_style_index_0_scoped_b25afce5_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/collapse-detail/components/label-tag.vue
|
|
5
|
+
var label_tag_default = /* @__PURE__ */ _plugin_vue_export_helper_default(label_tag_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-b25afce5"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { label_tag_default as default };
|
package/es/components/collapse-detail/components/label-tag.vue_vue_type_script_setup_true_lang.mjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, toDisplayString, toRef, useCssVars } from "vue";
|
|
2
|
+
import { TagTypeEnum } from "@gct-paas/core";
|
|
3
|
+
//#region src/components/collapse-detail/components/label-tag.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var label_tag_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "label-tag",
|
|
6
|
+
props: { data: {} },
|
|
7
|
+
setup(__props) {
|
|
8
|
+
useCssVars((_ctx) => ({ "v218ac50d": tagStyleColor.value }));
|
|
9
|
+
const props = __props;
|
|
10
|
+
const showLabel = toRef(() => {
|
|
11
|
+
return props.data.label + "";
|
|
12
|
+
});
|
|
13
|
+
const tagType = toRef(() => {
|
|
14
|
+
return props.data.labelStyle || TagTypeEnum.RADIUS;
|
|
15
|
+
});
|
|
16
|
+
const tagStyleColor = toRef(() => {
|
|
17
|
+
return props.data.labelColor || "#026ac8";
|
|
18
|
+
});
|
|
19
|
+
const getTagClass = toRef(() => {
|
|
20
|
+
return `tag-${tagType.value}`;
|
|
21
|
+
});
|
|
22
|
+
const msgColor = toRef(() => {
|
|
23
|
+
return { color: props.data.valueColor || "#fff" };
|
|
24
|
+
});
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createElementBlock("span", { class: normalizeClass(["tag label-ellipsis", getTagClass.value]) }, [createElementVNode("span", {
|
|
27
|
+
class: "select-text",
|
|
28
|
+
style: normalizeStyle(msgColor.value)
|
|
29
|
+
}, toDisplayString(showLabel.value || "\xA0"), 5)], 2);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { label_tag_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.label-ellipsis[data-v-b25afce5] {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
text-overflow: ellipsis;
|
|
6
|
+
white-space: nowrap;
|
|
7
|
+
vertical-align: middle;
|
|
8
|
+
}
|
|
9
|
+
.tag[data-v-b25afce5] {
|
|
10
|
+
padding: 4px 6px;
|
|
11
|
+
line-height: 1;
|
|
12
|
+
}
|
|
13
|
+
.tag + .tag[data-v-b25afce5] {
|
|
14
|
+
margin-left: 5px;
|
|
15
|
+
}
|
|
16
|
+
.tag-radius[data-v-b25afce5] {
|
|
17
|
+
border-radius: 2px;
|
|
18
|
+
background: var(--v218ac50d);
|
|
19
|
+
}
|
|
20
|
+
.tag-linear_radius[data-v-b25afce5] {
|
|
21
|
+
border: 1px solid var(--v218ac50d);
|
|
22
|
+
border-radius: 2px;
|
|
23
|
+
}
|
|
24
|
+
.tag-big_radius[data-v-b25afce5] {
|
|
25
|
+
border-radius: 100px;
|
|
26
|
+
background: var(--v218ac50d);
|
|
27
|
+
}
|
|
28
|
+
.tag-linear_big_radius[data-v-b25afce5] {
|
|
29
|
+
border: 1px solid var(--v218ac50d);
|
|
30
|
+
border-radius: 100px;
|
|
31
|
+
}
|
|
32
|
+
.tag-dashed_radius[data-v-b25afce5] {
|
|
33
|
+
border: 1px dashed var(--v218ac50d);
|
|
34
|
+
border-radius: 2px;
|
|
35
|
+
}
|
|
36
|
+
.tag-status[data-v-b25afce5] {
|
|
37
|
+
border-radius: 10px 2px 2px;
|
|
38
|
+
background: var(--v218ac50d);
|
|
39
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { FormTypeEnum } from '../typing';
|
|
2
|
+
import { InstanceStatusValue } from './status';
|
|
3
|
+
export declare const useInstanceThemeConfig: ({ formType, dataStatus, instanceStatus, statusType, isFormSummary, }: {
|
|
4
|
+
formType: FormTypeEnum;
|
|
5
|
+
dataStatus: string;
|
|
6
|
+
instanceStatus: InstanceStatusValue;
|
|
7
|
+
statusType?: string;
|
|
8
|
+
isFormSummary?: boolean;
|
|
9
|
+
}) => {
|
|
10
|
+
textColor: string;
|
|
11
|
+
background: string;
|
|
12
|
+
iconBackground: string;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
} | {
|
|
15
|
+
textColor: string;
|
|
16
|
+
background: string;
|
|
17
|
+
iconBackground: string;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
} | {
|
|
20
|
+
textColor: string;
|
|
21
|
+
background: string;
|
|
22
|
+
iconBackground: string;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
} | {
|
|
25
|
+
textColor: string;
|
|
26
|
+
background: string;
|
|
27
|
+
iconBackground: string;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
} | {
|
|
30
|
+
textColor: string;
|
|
31
|
+
background: string;
|
|
32
|
+
iconBackground: string;
|
|
33
|
+
placeholder: string;
|
|
34
|
+
} | {
|
|
35
|
+
textColor: string;
|
|
36
|
+
background: string;
|
|
37
|
+
iconBackground: string;
|
|
38
|
+
placeholder: string;
|
|
39
|
+
} | {
|
|
40
|
+
textColor: string;
|
|
41
|
+
background: string;
|
|
42
|
+
iconBackground: string;
|
|
43
|
+
placeholder: string;
|
|
44
|
+
} | {
|
|
45
|
+
textColor: string;
|
|
46
|
+
background: string;
|
|
47
|
+
iconBackground: string;
|
|
48
|
+
placeholder: string;
|
|
49
|
+
} | {
|
|
50
|
+
textColor: string;
|
|
51
|
+
background: string;
|
|
52
|
+
iconBackground: string;
|
|
53
|
+
placeholder: string;
|
|
54
|
+
} | {
|
|
55
|
+
textColor: string;
|
|
56
|
+
background: string;
|
|
57
|
+
iconBackground: string;
|
|
58
|
+
placeholder: string;
|
|
59
|
+
} | {
|
|
60
|
+
textColor: string;
|
|
61
|
+
background: string;
|
|
62
|
+
iconBackground: string;
|
|
63
|
+
placeholder: string;
|
|
64
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { FormTypeEnum } from "../typing.mjs";
|
|
2
|
+
import { InstanceStatusValues } from "./status.mjs";
|
|
3
|
+
import { t } from "@gct-paas/core";
|
|
4
|
+
//#region src/components/collapse-detail/constants/instance-theme-config.ts
|
|
5
|
+
var commonUtils = { get gctInstanceStatusTheme() {
|
|
6
|
+
return {
|
|
7
|
+
"gct-nocode-instance-status--stash": {
|
|
8
|
+
textColor: "#F77E4A",
|
|
9
|
+
background: "rgba(247,126,74,0.1)",
|
|
10
|
+
iconBackground: "#FFC837",
|
|
11
|
+
placeholder: t("sys.edhr.formInsStatusEnum.STASH")
|
|
12
|
+
},
|
|
13
|
+
"gct-nocode-instance-status--partial-submit": {
|
|
14
|
+
textColor: "#FFAA00",
|
|
15
|
+
background: "rgba(255,170,0,0.1)",
|
|
16
|
+
iconBackground: "#FFD666",
|
|
17
|
+
placeholder: t("sys.appDesigner.approval.button.PartialSubmit")
|
|
18
|
+
},
|
|
19
|
+
"gct-nocode-instance-status--finish": {
|
|
20
|
+
textColor: "#309C41",
|
|
21
|
+
background: "rgba(48,156,65,0.1)",
|
|
22
|
+
iconBackground: "#76DA57",
|
|
23
|
+
placeholder: t("sys.bpmn.flowNodeInstStatus.COMPLETED")
|
|
24
|
+
},
|
|
25
|
+
"gct-nocode-instance-status--abnormal": {
|
|
26
|
+
textColor: "#F54547",
|
|
27
|
+
background: " rgba(245,69,71,0.1)",
|
|
28
|
+
iconBackground: "#FF6776",
|
|
29
|
+
placeholder: t("sys.bpmn.flowNodeInstStatus.EXCEPTION")
|
|
30
|
+
},
|
|
31
|
+
"gct-nocode-instance-status--not-filled": {
|
|
32
|
+
textColor: "#6D82B0",
|
|
33
|
+
background: "#E6EEFF",
|
|
34
|
+
iconBackground: "#B4C8F4",
|
|
35
|
+
placeholder: t("sys.edhr.instanceStatus2DhrEnum.UNFILLED")
|
|
36
|
+
},
|
|
37
|
+
"gct-nocode-instance-status--running": {
|
|
38
|
+
textColor: "#13C2C2",
|
|
39
|
+
background: "rgba(19,194,194,0.1)",
|
|
40
|
+
iconBackground: "#13C2C2",
|
|
41
|
+
placeholder: t("sys.bpmn.bizNodeInstStatus.running")
|
|
42
|
+
},
|
|
43
|
+
"gct-nocode-instance-status--already-filled": {
|
|
44
|
+
textColor: "#026AC8",
|
|
45
|
+
background: " rgba(2,106,200,0.1)",
|
|
46
|
+
iconBackground: "#026AC8",
|
|
47
|
+
placeholder: t("sys.edhr.instanceStatus2DhrEnum.FILLED")
|
|
48
|
+
},
|
|
49
|
+
"gct-nocode-instance-status--invalid": {
|
|
50
|
+
textColor: "#737A87",
|
|
51
|
+
background: "#E5E5E5",
|
|
52
|
+
iconBackground: "#C3C3C3",
|
|
53
|
+
placeholder: t("sys.edhr.dhrLogType.ABANDON")
|
|
54
|
+
},
|
|
55
|
+
"gct-nocode-instance-status--archived": {
|
|
56
|
+
textColor: "#dda200",
|
|
57
|
+
background: "#faf3df",
|
|
58
|
+
iconBackground: "#dda200",
|
|
59
|
+
placeholder: t("sys.edhr.recordBook.archived")
|
|
60
|
+
},
|
|
61
|
+
"gct-nocode-instance-status--tmpl": {
|
|
62
|
+
textColor: "#742fb2",
|
|
63
|
+
background: "#f9f2ff",
|
|
64
|
+
iconBackground: "#742fb2",
|
|
65
|
+
placeholder: t("sys.appDesigner.template")
|
|
66
|
+
},
|
|
67
|
+
"gct-nocode-instance-status--in-audit": {
|
|
68
|
+
textColor: "#FF52C5",
|
|
69
|
+
background: "rgba(255,82,197, 0.1)",
|
|
70
|
+
iconBackground: "#FF52C5",
|
|
71
|
+
placeholder: t("sys.edhr.instanceStatus2FormEnum.IN_AUDIT")
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
} };
|
|
75
|
+
var useInstanceThemeConfig = ({ formType, dataStatus, instanceStatus, statusType = "INST", isFormSummary }) => {
|
|
76
|
+
const getInstanceStatus = () => {
|
|
77
|
+
if (statusType === "TMPL") return "gct-nocode-instance-status--tmpl";
|
|
78
|
+
if (formType === FormTypeEnum.TEXT || formType === FormTypeEnum.VIEW) return "gct-nocode-instance-status--finish";
|
|
79
|
+
if (instanceStatus === InstanceStatusValues.ARCHIVED) return "gct-nocode-instance-status--archived";
|
|
80
|
+
if (instanceStatus === InstanceStatusValues.IN_AUDIT) return "gct-nocode-instance-status--in-audit";
|
|
81
|
+
if (formType === FormTypeEnum.PROCESS || isFormSummary) return {
|
|
82
|
+
[InstanceStatusValues.RUNNING]: "gct-nocode-instance-status--running",
|
|
83
|
+
[InstanceStatusValues.FILLED]: "gct-nocode-instance-status--already-filled",
|
|
84
|
+
[InstanceStatusValues.COMPLETED]: "gct-nocode-instance-status--finish",
|
|
85
|
+
[InstanceStatusValues.ABANDON]: "gct-nocode-instance-status--invalid",
|
|
86
|
+
[InstanceStatusValues.EXCEPTION]: "gct-nocode-instance-status--abnormal",
|
|
87
|
+
[InstanceStatusValues.STASH]: "gct-nocode-instance-status--stash"
|
|
88
|
+
}[instanceStatus] || "gct-nocode-instance-status--not-filled";
|
|
89
|
+
if (formType === FormTypeEnum.BASE || formType === FormTypeEnum.FILE) {
|
|
90
|
+
if (dataStatus === "STASH" || instanceStatus === InstanceStatusValues.STASH) return "gct-nocode-instance-status--stash";
|
|
91
|
+
if (dataStatus) return dataStatus === "SUBMIT" ? instanceStatus === InstanceStatusValues.ABANDON ? "gct-nocode-instance-status--invalid" : "gct-nocode-instance-status--finish" : "gct-nocode-instance-status--not-filled";
|
|
92
|
+
return instanceStatus === InstanceStatusValues.UNFILLED ? "gct-nocode-instance-status--not-filled" : instanceStatus === InstanceStatusValues.ABANDON ? "gct-nocode-instance-status--invalid" : "gct-nocode-instance-status--finish";
|
|
93
|
+
}
|
|
94
|
+
return "gct-nocode-instance-status--not-filled";
|
|
95
|
+
};
|
|
96
|
+
const themeFlag = getInstanceStatus();
|
|
97
|
+
return commonUtils.gctInstanceStatusTheme[themeFlag];
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
export { useInstanceThemeConfig };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** 实例状态集合 */
|
|
2
|
+
export declare const InstanceStatusValues: {
|
|
3
|
+
/** 作废状态 */
|
|
4
|
+
readonly ABANDON: "ABANDON";
|
|
5
|
+
/** 未填报 */
|
|
6
|
+
readonly UNFILLED: "UNFILLED";
|
|
7
|
+
/** 已填报 */
|
|
8
|
+
readonly FILLED: "FILLED";
|
|
9
|
+
/** 已完成 */
|
|
10
|
+
readonly COMPLETED: "COMPLETED";
|
|
11
|
+
/** 进行中 */
|
|
12
|
+
readonly RUNNING: "RUNNING";
|
|
13
|
+
/** 暂存 */
|
|
14
|
+
readonly STASH: "STASH";
|
|
15
|
+
/** 待放行 */
|
|
16
|
+
readonly UNRELEASED: "UNRELEASED";
|
|
17
|
+
/** 放行中 */
|
|
18
|
+
readonly RELEASE: "RELEASE";
|
|
19
|
+
/** 异常 */
|
|
20
|
+
readonly EXCEPTION: "EXCEPTION";
|
|
21
|
+
/** 已封存 */
|
|
22
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
23
|
+
/** 汇总中 */
|
|
24
|
+
readonly IN_SUMMARY: "IN_SUMMARY";
|
|
25
|
+
/** 已汇总 */
|
|
26
|
+
readonly SUMMARIZED: "SUMMARIZED";
|
|
27
|
+
/** 汇总审核中、表单变更审核中 */
|
|
28
|
+
readonly IN_AUDIT: "IN_AUDIT";
|
|
29
|
+
/** 部分提交 */
|
|
30
|
+
readonly PARTIAL_SUBMIT: "PARTIAL_SUBMIT";
|
|
31
|
+
};
|
|
32
|
+
export type InstanceStatusValue = (typeof InstanceStatusValues)[keyof typeof InstanceStatusValues];
|
|
33
|
+
/** eDHR实例状态 */
|
|
34
|
+
export type EdhrInstanceStatus = Extract<InstanceStatusValue, typeof InstanceStatusValues.UNFILLED | typeof InstanceStatusValues.RUNNING | typeof InstanceStatusValues.COMPLETED | typeof InstanceStatusValues.ARCHIVED | typeof InstanceStatusValues.ABANDON | typeof InstanceStatusValues.IN_SUMMARY | typeof InstanceStatusValues.SUMMARIZED | typeof InstanceStatusValues.IN_AUDIT>;
|
|
35
|
+
/** 放行实例状态 */
|
|
36
|
+
export type ReleaseInstanceStatus = Extract<InstanceStatusValue, typeof InstanceStatusValues.UNRELEASED | typeof InstanceStatusValues.RELEASE | typeof InstanceStatusValues.COMPLETED | typeof InstanceStatusValues.EXCEPTION | typeof InstanceStatusValues.ARCHIVED>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region src/components/collapse-detail/constants/status.ts
|
|
2
|
+
/** 实例状态集合 */
|
|
3
|
+
var InstanceStatusValues = {
|
|
4
|
+
/** 作废状态 */
|
|
5
|
+
ABANDON: "ABANDON",
|
|
6
|
+
/** 未填报 */
|
|
7
|
+
UNFILLED: "UNFILLED",
|
|
8
|
+
/** 已填报 */
|
|
9
|
+
FILLED: "FILLED",
|
|
10
|
+
/** 已完成 */
|
|
11
|
+
COMPLETED: "COMPLETED",
|
|
12
|
+
/** 进行中 */
|
|
13
|
+
RUNNING: "RUNNING",
|
|
14
|
+
/** 暂存 */
|
|
15
|
+
STASH: "STASH",
|
|
16
|
+
/** 待放行 */
|
|
17
|
+
UNRELEASED: "UNRELEASED",
|
|
18
|
+
/** 放行中 */
|
|
19
|
+
RELEASE: "RELEASE",
|
|
20
|
+
/** 异常 */
|
|
21
|
+
EXCEPTION: "EXCEPTION",
|
|
22
|
+
/** 已封存 */
|
|
23
|
+
ARCHIVED: "ARCHIVED",
|
|
24
|
+
/** 汇总中 */
|
|
25
|
+
IN_SUMMARY: "IN_SUMMARY",
|
|
26
|
+
/** 已汇总 */
|
|
27
|
+
SUMMARIZED: "SUMMARIZED",
|
|
28
|
+
/** 汇总审核中、表单变更审核中 */
|
|
29
|
+
IN_AUDIT: "IN_AUDIT",
|
|
30
|
+
/** 部分提交 */
|
|
31
|
+
PARTIAL_SUBMIT: "PARTIAL_SUBMIT"
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { InstanceStatusValues };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.vue.mjs";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CollapseItem } from './typing';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
collapseInfo: CollapseItem[];
|
|
4
|
+
column?: number;
|
|
5
|
+
defaultExpand?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Partial<Record<NonNullable<string | symbol>, (_: {
|
|
10
|
+
item: CollapseItem;
|
|
11
|
+
slotData: IObject | undefined;
|
|
12
|
+
}) => any>> & Partial<Record<NonNullable<string | symbol>, (_: {
|
|
13
|
+
item: CollapseItem;
|
|
14
|
+
slotData: IObject | undefined;
|
|
15
|
+
}) => any>> & {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
23
|
+
refreshExpand: () => void;
|
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
"collapse-change": (...args: any[]) => void;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
+
"onCollapse-change"?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
defaultExpand: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
31
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import index_vue_vue_type_script_setup_true_name_collapse_detail_lang_default from "./index.vue_vue_type_script_setup_true_name_collapse-detail_lang.mjs";
|
|
3
|
+
import './index.vue_vue_type_style_index_0_scoped_b4b9903c_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/collapse-detail/index.vue
|
|
5
|
+
var collapse_detail_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_name_collapse_detail_lang_default, [["__scopeId", "data-v-b4b9903c"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { collapse_detail_default as default };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import collapse_list_default from "./components/collapse-list.vue.mjs";
|
|
2
|
+
import { computed, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, onBeforeMount, openBlock, ref, renderList, renderSlot, resolveComponent, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
3
|
+
import { t } from "@gct-paas/core";
|
|
4
|
+
//#region src/components/collapse-detail/index.vue?vue&type=script&setup=true&name=collapse-detail&lang.ts
|
|
5
|
+
var _hoisted_1 = { class: "collapse-detail-wrap" };
|
|
6
|
+
var _hoisted_2 = { class: "header" };
|
|
7
|
+
var _hoisted_3 = { class: "header-title" };
|
|
8
|
+
var _hoisted_4 = { class: "action-wrap" };
|
|
9
|
+
var index_vue_vue_type_script_setup_true_name_collapse_detail_lang_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: {
|
|
12
|
+
collapseInfo: {},
|
|
13
|
+
column: {},
|
|
14
|
+
defaultExpand: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["collapse-change"],
|
|
20
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
|
+
const slots = useSlots();
|
|
22
|
+
const props = __props;
|
|
23
|
+
const emit = __emit;
|
|
24
|
+
const isExpand = ref(true);
|
|
25
|
+
const activeKey = ref("1");
|
|
26
|
+
const col = computed(() => props.column ?? 3);
|
|
27
|
+
const detailInfo = computed(() => {
|
|
28
|
+
return props.collapseInfo.filter((i) => !i.hidden);
|
|
29
|
+
});
|
|
30
|
+
const headerInfo = computed(() => {
|
|
31
|
+
return detailInfo.value.filter((_i, index) => index < col.value);
|
|
32
|
+
});
|
|
33
|
+
const mainInfo = computed(() => {
|
|
34
|
+
return detailInfo.value.filter((_i, index) => index >= col.value);
|
|
35
|
+
});
|
|
36
|
+
const handleCollapseChange = (e) => {
|
|
37
|
+
isExpand.value = !!e[0];
|
|
38
|
+
console.log(e, activeKey.value, isExpand.value);
|
|
39
|
+
emit("collapse-change");
|
|
40
|
+
};
|
|
41
|
+
__expose({ refreshExpand: () => {
|
|
42
|
+
isExpand.value = true;
|
|
43
|
+
activeKey.value = "1";
|
|
44
|
+
} });
|
|
45
|
+
onBeforeMount(() => {
|
|
46
|
+
if (!props.defaultExpand) {
|
|
47
|
+
isExpand.value = false;
|
|
48
|
+
activeKey.value = "";
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
const _component_a_collapse_panel = resolveComponent("a-collapse-panel");
|
|
53
|
+
const _component_a_collapse = resolveComponent("a-collapse");
|
|
54
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_a_collapse, {
|
|
55
|
+
"active-key": activeKey.value,
|
|
56
|
+
"onUpdate:activeKey": _cache[0] || (_cache[0] = ($event) => activeKey.value = $event),
|
|
57
|
+
bordered: false,
|
|
58
|
+
collapsible: "icon",
|
|
59
|
+
style: { "margin-bottom": "20px" },
|
|
60
|
+
onChange: _cache[1] || (_cache[1] = ($event) => handleCollapseChange($event))
|
|
61
|
+
}, {
|
|
62
|
+
default: withCtx(() => [createVNode(_component_a_collapse_panel, { key: "1" }, {
|
|
63
|
+
header: withCtx(() => [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, toDisplayString(unref(t)("sys.appDesigner.basicInformation")), 1), createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])]), createElementVNode("div", { class: normalizeClass(["description", { "desc-expand": isExpand.value }]) }, [createVNode(collapse_list_default, {
|
|
64
|
+
"desc-data": headerInfo.value,
|
|
65
|
+
column: col.value,
|
|
66
|
+
"is-head": true
|
|
67
|
+
}, createSlots({ _: 2 }, [renderList(unref(slots), (_, slotName) => {
|
|
68
|
+
return {
|
|
69
|
+
name: slotName,
|
|
70
|
+
fn: withCtx((slotData) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotData)), void 0, true)])
|
|
71
|
+
};
|
|
72
|
+
})]), 1032, ["desc-data", "column"])], 2)]),
|
|
73
|
+
default: withCtx(() => [createVNode(collapse_list_default, {
|
|
74
|
+
"desc-data": mainInfo.value,
|
|
75
|
+
column: col.value
|
|
76
|
+
}, createSlots({ _: 2 }, [renderList(unref(slots), (_, slotName) => {
|
|
77
|
+
return {
|
|
78
|
+
name: slotName,
|
|
79
|
+
fn: withCtx((slotData) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotData)), void 0, true)])
|
|
80
|
+
};
|
|
81
|
+
})]), 1032, ["desc-data", "column"])]),
|
|
82
|
+
_: 3
|
|
83
|
+
})]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 8, ["active-key"])]);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
//#endregion
|
|
90
|
+
export { index_vue_vue_type_script_setup_true_name_collapse_detail_lang_default as default };
|
package/es/components/collapse-detail/index.vue_vue_type_style_index_0_scoped_b4b9903c_lang.css
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.collapse-detail-wrap[data-v-b4b9903c] .btn-text.ant-btn {
|
|
2
|
+
padding: 4px 12px;
|
|
3
|
+
}
|
|
4
|
+
.collapse-detail-wrap[data-v-b4b9903c] .btn-text.ant-btn > .anticon + span {
|
|
5
|
+
margin-left: 8px;
|
|
6
|
+
}
|
|
7
|
+
.collapse-detail-wrap[data-v-b4b9903c] .ant-collapse > .ant-collapse-item > .ant-collapse-header {
|
|
8
|
+
flex-wrap: wrap;
|
|
9
|
+
padding: 0 !important;
|
|
10
|
+
background-color: #fff;
|
|
11
|
+
}
|
|
12
|
+
.collapse-detail-wrap[data-v-b4b9903c] .ant-collapse > .ant-collapse-item > .ant-collapse-header > div:first-child {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
height: 40px;
|
|
17
|
+
padding-top: 16px;
|
|
18
|
+
}
|
|
19
|
+
.collapse-detail-wrap[data-v-b4b9903c] .ant-collapse-item {
|
|
20
|
+
border-bottom: none;
|
|
21
|
+
}
|
|
22
|
+
.collapse-detail-wrap .header[data-v-b4b9903c] {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex: 1;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
padding-top: 16px;
|
|
28
|
+
padding-bottom: 12px;
|
|
29
|
+
}
|
|
30
|
+
.collapse-detail-wrap .header .header-title[data-v-b4b9903c] {
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
}
|
|
33
|
+
.collapse-detail-wrap .header .action-wrap .ant-btn[data-v-b4b9903c] {
|
|
34
|
+
position: absolute;
|
|
35
|
+
right: 0;
|
|
36
|
+
top: 12px;
|
|
37
|
+
z-index: 9;
|
|
38
|
+
height: 28px;
|
|
39
|
+
line-height: 18px;
|
|
40
|
+
padding: 4px 12px;
|
|
41
|
+
}
|
|
42
|
+
.collapse-detail-wrap .header .action-wrap .ant-btn .iconfont[data-v-b4b9903c] {
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
}
|
|
45
|
+
.collapse-detail-wrap .description[data-v-b4b9903c] {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
padding: 20px 0;
|
|
49
|
+
border-radius: 4px;
|
|
50
|
+
background-color: #f7f8fa;
|
|
51
|
+
}
|
|
52
|
+
.collapse-detail-wrap .description.desc-expand[data-v-b4b9903c] {
|
|
53
|
+
border-bottom-right-radius: 0;
|
|
54
|
+
border-bottom-left-radius: 0;
|
|
55
|
+
}
|
|
56
|
+
.collapse-detail-wrap .description .item[data-v-b4b9903c] {
|
|
57
|
+
padding: 0 20px;
|
|
58
|
+
}
|
|
59
|
+
.collapse-detail-wrap .description[data-v-b4b9903c] .ant-descriptions-row td {
|
|
60
|
+
padding-bottom: 0;
|
|
61
|
+
}
|
|
62
|
+
.collapse-detail-wrap[data-v-b4b9903c] .ant-collapse.ant-collapse-borderless {
|
|
63
|
+
background: transparent;
|
|
64
|
+
}
|
|
65
|
+
.collapse-detail-wrap[data-v-b4b9903c] .ant-collapse.ant-collapse-borderless .ant-collapse-item .ant-collapse-content {
|
|
66
|
+
border-radius: 0 0 4px 4px;
|
|
67
|
+
background-color: #f7f8fa;
|
|
68
|
+
}
|
|
69
|
+
.collapse-detail-wrap[data-v-b4b9903c] .ant-collapse.ant-collapse-borderless .ant-collapse-item .ant-collapse-content .ant-collapse-content-box {
|
|
70
|
+
padding: 0 20px !important;
|
|
71
|
+
}
|
|
72
|
+
.collapse-detail-wrap[data-v-b4b9903c] .ant-descriptions-item-container .ant-descriptions-item-label {
|
|
73
|
+
color: #797a7d;
|
|
74
|
+
}
|
|
75
|
+
.collapse-detail-wrap .desc-area[data-v-b4b9903c] {
|
|
76
|
+
color: #333;
|
|
77
|
+
font-family: PingFangSC-Regular, 'PingFang SC';
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
}
|
|
81
|
+
.collapse-detail-wrap .desc-area[data-v-b4b9903c] .ant-descriptions-row td {
|
|
82
|
+
padding-bottom: 20px;
|
|
83
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface TagItem {
|
|
2
|
+
name: string;
|
|
3
|
+
key: string | number;
|
|
4
|
+
color?: string;
|
|
5
|
+
customColor?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CollapseItem {
|
|
8
|
+
label: string;
|
|
9
|
+
name: string;
|
|
10
|
+
key?: string;
|
|
11
|
+
hasTag?: boolean;
|
|
12
|
+
isCopy?: boolean;
|
|
13
|
+
render?: string;
|
|
14
|
+
tagList?: TagItem[];
|
|
15
|
+
ellipsis?: boolean;
|
|
16
|
+
hidden?: boolean;
|
|
17
|
+
handle?: Fn;
|
|
18
|
+
span?: number;
|
|
19
|
+
useSlot?: boolean;
|
|
20
|
+
slotName?: string;
|
|
21
|
+
slotData?: IObject;
|
|
22
|
+
model: string;
|
|
23
|
+
}
|
|
24
|
+
export interface LabelTagItem {
|
|
25
|
+
key: string;
|
|
26
|
+
value: string;
|
|
27
|
+
label: string;
|
|
28
|
+
labelStyle: string;
|
|
29
|
+
labelColor: string;
|
|
30
|
+
valueColor: string;
|
|
31
|
+
}
|
|
32
|
+
/** 表单类型 */
|
|
33
|
+
export declare enum FormTypeEnum {
|
|
34
|
+
/** 基础表单 */
|
|
35
|
+
BASE = "BASE",
|
|
36
|
+
/** 流程表单 */
|
|
37
|
+
PROCESS = "PROCESS",
|
|
38
|
+
/** 视图表单 */
|
|
39
|
+
VIEW = "VIEW",
|
|
40
|
+
/** 文本表单 */
|
|
41
|
+
TEXT = "TEXT",
|
|
42
|
+
/** 文件表单 */
|
|
43
|
+
FILE = "FILE"
|
|
44
|
+
}
|