@fecp/designer 5.4.26 → 5.4.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/designer/package.json.mjs +1 -1
- package/es/designer.css +91 -12
- package/es/packages/vue/index.mjs +2 -0
- package/es/packages/vue/src/components/all.mjs +6 -0
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +3 -2
- package/es/packages/vue/src/components/dialog/customDialog/CustomDialog.vue.mjs +172 -0
- package/es/packages/vue/src/components/dialog/customDialog/index.mjs +7 -0
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +5 -5
- package/es/packages/vue/src/components/layout/Layout.vue.mjs +81 -0
- package/es/packages/vue/src/components/layout/index.mjs +9 -0
- package/es/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.mjs +162 -0
- package/es/packages/vue/src/components/layout/layoutCard/index.mjs +7 -0
- package/es/packages/vue/src/directive/layout.mjs +28 -0
- package/es/packages/vue/src/utils/datasource.mjs +2 -2
- package/es/packages/vue/src/utils/formulajs/calculate.mjs +23 -8
- package/lib/designer/package.json.js +1 -1
- package/lib/designer.css +91 -12
- package/lib/packages/vue/index.js +7 -5
- package/lib/packages/vue/src/components/all.js +6 -0
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +3 -2
- package/lib/packages/vue/src/components/dialog/customDialog/CustomDialog.vue.js +172 -0
- package/lib/packages/vue/src/components/dialog/customDialog/index.js +7 -0
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +5 -5
- package/lib/packages/vue/src/components/layout/Layout.vue.js +81 -0
- package/lib/packages/vue/src/components/layout/index.js +9 -0
- package/lib/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.js +162 -0
- package/lib/packages/vue/src/components/layout/layoutCard/index.js +7 -0
- package/lib/packages/vue/src/directive/layout.js +28 -0
- package/lib/packages/vue/src/utils/datasource.js +2 -2
- package/lib/packages/vue/src/utils/formulajs/calculate.js +23 -8
- package/package.json +1 -1
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import "../../../../../../node_modules/element-plus/es/index.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { computed, ref, watch, nextTick, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, createBlock, createCommentVNode, normalizeStyle, normalizeClass, toDisplayString, unref, withCtx, createTextVNode, renderSlot, isRef, resolveDynamicComponent, normalizeProps, mergeProps } from "vue";
|
|
5
|
+
import { ArrowRight as arrow_right_default } from "../../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
6
|
+
import { customDialog } from "../../dialog/customDialog/index.mjs";
|
|
7
|
+
import api from "../../../api/index.mjs";
|
|
8
|
+
import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
|
|
9
|
+
import { Form } from "../../forms/form/index.mjs";
|
|
10
|
+
import { Table } from "../../table/index.mjs";
|
|
11
|
+
/* empty css */
|
|
12
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
13
|
+
import { ElButton } from "../../../../../../node_modules/element-plus/es/components/button/index.mjs";
|
|
14
|
+
import { ElIcon } from "../../../../../../node_modules/element-plus/es/components/icon/index.mjs";
|
|
15
|
+
const _hoisted_1 = { class: "fec-layout-card" };
|
|
16
|
+
const _hoisted_2 = { class: "header" };
|
|
17
|
+
const _hoisted_3 = { class: "title" };
|
|
18
|
+
const _hoisted_4 = { class: "content" };
|
|
19
|
+
const _sfc_main = {
|
|
20
|
+
__name: "LayoutCard",
|
|
21
|
+
props: {
|
|
22
|
+
//标题
|
|
23
|
+
title: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
//图标
|
|
28
|
+
icon: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "icon-authorization"
|
|
31
|
+
},
|
|
32
|
+
//图标背景色
|
|
33
|
+
iconColor: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "#4fbdc1"
|
|
36
|
+
},
|
|
37
|
+
morePageRoute: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: ""
|
|
40
|
+
},
|
|
41
|
+
morePageTemplateKey: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: ""
|
|
44
|
+
},
|
|
45
|
+
morePageParams: {
|
|
46
|
+
type: Object,
|
|
47
|
+
default: {}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
setup(__props) {
|
|
51
|
+
const props = __props;
|
|
52
|
+
const ctx = getCurrentVueInstance();
|
|
53
|
+
const isMoreBtn = computed(() => {
|
|
54
|
+
return props.morePageRoute || props.morePageTemplateKey;
|
|
55
|
+
});
|
|
56
|
+
const dialogVisible = ref(false);
|
|
57
|
+
const currentComponent = ref(null);
|
|
58
|
+
const currentParams = ref(props.morePageParams);
|
|
59
|
+
const flag = ref(true);
|
|
60
|
+
watch(currentParams, () => {
|
|
61
|
+
if (props.morePageRoute && Object.keys(currentParams).length > 0) {
|
|
62
|
+
flag.value = false;
|
|
63
|
+
nextTick(() => {
|
|
64
|
+
flag.value = true;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
function moreClick() {
|
|
69
|
+
if (props.morePageRoute) {
|
|
70
|
+
loadComponentByPath(props.morePageRoute);
|
|
71
|
+
dialogVisible.value = true;
|
|
72
|
+
} else if (props.morePageTemplateKey) {
|
|
73
|
+
api.findByTemplateKey(ctx.$http, {
|
|
74
|
+
templateKey: props.morePageTemplateKey,
|
|
75
|
+
timestamp: Date.now(),
|
|
76
|
+
templateVersion: "v5"
|
|
77
|
+
}).then((res) => {
|
|
78
|
+
const data = JSON.parse(res);
|
|
79
|
+
if (data.formMode) {
|
|
80
|
+
currentComponent.value = Form;
|
|
81
|
+
} else {
|
|
82
|
+
currentComponent.value = Table;
|
|
83
|
+
}
|
|
84
|
+
currentParams.value.initOption = data;
|
|
85
|
+
currentParams.value.isDialog = true;
|
|
86
|
+
dialogVisible.value = true;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function loadComponentByPath(path) {
|
|
91
|
+
const route = ctx.$router.getRoutes().find((item) => item.path === path);
|
|
92
|
+
if (!route) return;
|
|
93
|
+
const comp = route.components.default;
|
|
94
|
+
if (!comp) return;
|
|
95
|
+
if (typeof comp === "function") {
|
|
96
|
+
comp().then((module) => {
|
|
97
|
+
currentComponent.value = module.default;
|
|
98
|
+
});
|
|
99
|
+
} else {
|
|
100
|
+
currentComponent.value = comp;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return (_ctx, _cache) => {
|
|
104
|
+
const _component_el_icon = ElIcon;
|
|
105
|
+
const _component_el_button = ElButton;
|
|
106
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
107
|
+
createElementVNode("div", _hoisted_1, [
|
|
108
|
+
createElementVNode("div", _hoisted_2, [
|
|
109
|
+
createElementVNode("div", _hoisted_3, [
|
|
110
|
+
__props.title ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
111
|
+
createElementVNode("i", {
|
|
112
|
+
class: normalizeClass("icon iconfont " + __props.icon),
|
|
113
|
+
style: normalizeStyle("background-color:" + __props.iconColor)
|
|
114
|
+
}, null, 6),
|
|
115
|
+
createElementVNode("span", null, toDisplayString(__props.title), 1)
|
|
116
|
+
], 64)) : createCommentVNode("", true)
|
|
117
|
+
]),
|
|
118
|
+
unref(isMoreBtn) ? (openBlock(), createBlock(_component_el_button, {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: "moreBtn",
|
|
121
|
+
type: "primary",
|
|
122
|
+
link: "",
|
|
123
|
+
onClick: moreClick
|
|
124
|
+
}, {
|
|
125
|
+
default: withCtx(() => [
|
|
126
|
+
_cache[1] || (_cache[1] = createTextVNode("更多信息")),
|
|
127
|
+
createVNode(_component_el_icon, null, {
|
|
128
|
+
default: withCtx(() => [
|
|
129
|
+
createVNode(unref(arrow_right_default))
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
})
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
})) : createCommentVNode("", true)
|
|
136
|
+
]),
|
|
137
|
+
createElementVNode("div", _hoisted_4, [
|
|
138
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
139
|
+
])
|
|
140
|
+
]),
|
|
141
|
+
createVNode(unref(customDialog), {
|
|
142
|
+
modelValue: unref(dialogVisible),
|
|
143
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null),
|
|
144
|
+
width: "80%",
|
|
145
|
+
height: "100%",
|
|
146
|
+
query: "",
|
|
147
|
+
"append-to-body": "",
|
|
148
|
+
title: __props.title
|
|
149
|
+
}, {
|
|
150
|
+
default: withCtx(() => [
|
|
151
|
+
unref(flag) && unref(currentComponent) ? (openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), normalizeProps(mergeProps({ key: 0 }, unref(currentParams))), null, 16)) : createCommentVNode("", true)
|
|
152
|
+
]),
|
|
153
|
+
_: 1
|
|
154
|
+
}, 8, ["modelValue", "title"])
|
|
155
|
+
], 64);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
const _LayoutCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3ce25014"]]);
|
|
160
|
+
export {
|
|
161
|
+
_LayoutCard as default
|
|
162
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const layout = {
|
|
2
|
+
mounted(el, binding, vnode, prevVnode) {
|
|
3
|
+
if (el.parentElement.className.indexOf("h-main") != -1) {
|
|
4
|
+
document.querySelector(".h-main").setAttribute(
|
|
5
|
+
"style",
|
|
6
|
+
"background-color:transparent;padding:0px;border:0px;"
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
if (el.parentElement.className.indexOf("root-main") != -1) {
|
|
10
|
+
document.querySelector(".root-main").setAttribute(
|
|
11
|
+
"style",
|
|
12
|
+
"background-color:transparent;padding:0px;border:0px;"
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
if (el.parentElement.parentElement.className.indexOf("el-dialog__body") != -1) {
|
|
16
|
+
el.parentElement.parentElement.setAttribute(
|
|
17
|
+
"style",
|
|
18
|
+
"background-color:#F7F7F7;"
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
layout.install = function(Vue) {
|
|
24
|
+
Vue.directive("fec-layout", layout);
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
layout as default
|
|
28
|
+
};
|
|
@@ -182,7 +182,7 @@ class DataSourceManager {
|
|
|
182
182
|
const responseMessage = response.message;
|
|
183
183
|
if (this.pagination) {
|
|
184
184
|
this.data.list = (responseData == null ? void 0 : responseData.records) || responseData;
|
|
185
|
-
this.data.total = (responseData == null ? void 0 : responseData.total) || responseData.length;
|
|
185
|
+
this.data.total = (responseData == null ? void 0 : responseData.total) || (responseData == null ? void 0 : responseData.length);
|
|
186
186
|
} else {
|
|
187
187
|
this.data = responseData;
|
|
188
188
|
}
|
|
@@ -200,7 +200,7 @@ class DataSourceManager {
|
|
|
200
200
|
const responseData = response;
|
|
201
201
|
if (this.pagination) {
|
|
202
202
|
this.data.list = (responseData == null ? void 0 : responseData.records) || responseData;
|
|
203
|
-
this.data.total = (responseData == null ? void 0 : responseData.total) || responseData.length;
|
|
203
|
+
this.data.total = (responseData == null ? void 0 : responseData.total) || (responseData == null ? void 0 : responseData.length);
|
|
204
204
|
} else {
|
|
205
205
|
this.data = responseData;
|
|
206
206
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import functionCore from "./functionCore.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
function calculate(params) {
|
|
4
|
-
const { text, marks = [], value = {} } = params;
|
|
4
|
+
const { text, marks = [], value = {}, fieldsList = [] } = params;
|
|
5
5
|
if (!text) return new Error("非法公式");
|
|
6
6
|
try {
|
|
7
7
|
let str = text;
|
|
@@ -23,15 +23,30 @@ function calculate(params) {
|
|
|
23
23
|
const [key, subKey] = enCode.split(".");
|
|
24
24
|
if (value[key]) data = value[key].map((o) => o[subKey]);
|
|
25
25
|
}
|
|
26
|
-
if (data
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
if (!data) {
|
|
27
|
+
const fieldItem = fieldsList.find((item2) => item2.fieldName == enCode);
|
|
28
|
+
if (fieldItem) {
|
|
29
|
+
switch (fieldItem.fieldType) {
|
|
30
|
+
case "number":
|
|
31
|
+
data = 0;
|
|
32
|
+
break;
|
|
33
|
+
case "switch":
|
|
34
|
+
data = false;
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
data = "";
|
|
38
|
+
}
|
|
39
|
+
} else {
|
|
40
|
+
throw new Error("字段:" + item.fieldName + " 未定义");
|
|
29
41
|
}
|
|
30
|
-
const actualStart = startIndex + offset;
|
|
31
|
-
const actualEnd = endIndex + offset;
|
|
32
|
-
str = str.slice(0, actualStart) + data.toString() + str.slice(actualEnd);
|
|
33
|
-
offset += data.toString().length - (endIndex - startIndex);
|
|
34
42
|
}
|
|
43
|
+
if (typeof data != "string") {
|
|
44
|
+
data = JSON.stringify(data);
|
|
45
|
+
}
|
|
46
|
+
const actualStart = startIndex + offset;
|
|
47
|
+
const actualEnd = endIndex + offset;
|
|
48
|
+
str = str.slice(0, actualStart) + data.toString() + str.slice(actualEnd);
|
|
49
|
+
offset += data.toString().length - (endIndex - startIndex);
|
|
35
50
|
}
|
|
36
51
|
const result = functionCore.executeFunction(str);
|
|
37
52
|
return result;
|
package/lib/designer.css
CHANGED
|
@@ -5708,18 +5708,18 @@ body,
|
|
|
5708
5708
|
:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
|
|
5709
5709
|
:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
|
5710
5710
|
:root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
|
|
5711
|
-
.dialog-header-content[data-v-
|
|
5711
|
+
.dialog-header-content[data-v-9cd09319] {
|
|
5712
5712
|
font-size: 16px;
|
|
5713
5713
|
font-weight: 600;
|
|
5714
5714
|
color: #303133;
|
|
5715
5715
|
}
|
|
5716
|
-
.dialog-content-wrapper[data-v-
|
|
5716
|
+
.dialog-content-wrapper[data-v-9cd09319] {
|
|
5717
5717
|
min-height: 500px;
|
|
5718
5718
|
flex-grow: 1;
|
|
5719
5719
|
display: flex;
|
|
5720
5720
|
flex-direction: column;
|
|
5721
5721
|
}
|
|
5722
|
-
.empty-content[data-v-
|
|
5722
|
+
.empty-content[data-v-9cd09319] {
|
|
5723
5723
|
display: flex;
|
|
5724
5724
|
align-items: center;
|
|
5725
5725
|
justify-content: center;
|
|
@@ -5727,13 +5727,13 @@ body,
|
|
|
5727
5727
|
color: #909399;
|
|
5728
5728
|
font-size: 14px;
|
|
5729
5729
|
}
|
|
5730
|
-
.component-error[data-v-
|
|
5730
|
+
.component-error[data-v-9cd09319] {
|
|
5731
5731
|
padding: 40px 20px;
|
|
5732
5732
|
text-align: center;
|
|
5733
5733
|
color: #f56c6c;
|
|
5734
5734
|
font-size: 14px;
|
|
5735
5735
|
}
|
|
5736
|
-
.fec-dialog-table[data-v-
|
|
5736
|
+
.fec-dialog-table[data-v-9cd09319] .table-pagination {
|
|
5737
5737
|
padding: 8px 0 0 0;
|
|
5738
5738
|
}.text-field-wrapper[data-v-185ddd14] {
|
|
5739
5739
|
width: 100%;
|
|
@@ -5904,27 +5904,27 @@ body,
|
|
|
5904
5904
|
width: 80px;
|
|
5905
5905
|
font-size: var(--el-font-size-extra-small);
|
|
5906
5906
|
}
|
|
5907
|
-
.fec-form[data-v-
|
|
5907
|
+
.fec-form[data-v-4eb26904] {
|
|
5908
5908
|
height: 100%;
|
|
5909
5909
|
}
|
|
5910
|
-
[data-v-
|
|
5910
|
+
[data-v-4eb26904] .vgl-item {
|
|
5911
5911
|
transition: none;
|
|
5912
5912
|
}
|
|
5913
|
-
[data-v-
|
|
5913
|
+
[data-v-4eb26904] .vgl-item > .el-form-item {
|
|
5914
5914
|
width: 100%;
|
|
5915
5915
|
padding: 12px 8px 0 8px;
|
|
5916
5916
|
height: calc(100% - 15px);
|
|
5917
5917
|
display: flex;
|
|
5918
5918
|
}
|
|
5919
|
-
[data-v-
|
|
5919
|
+
[data-v-4eb26904] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5920
5920
|
flex-direction: column;
|
|
5921
5921
|
}
|
|
5922
|
-
[data-v-
|
|
5922
|
+
[data-v-4eb26904] .vgl-item > .el-form-item .el-form-item__label {
|
|
5923
5923
|
line-height: 20px;
|
|
5924
5924
|
display: flex;
|
|
5925
5925
|
align-items: center;
|
|
5926
5926
|
}
|
|
5927
|
-
[data-v-
|
|
5927
|
+
[data-v-4eb26904] .vgl-item > .el-container {
|
|
5928
5928
|
height: auto !important;
|
|
5929
5929
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5930
5930
|
display: inline-block;
|
|
@@ -6253,7 +6253,86 @@ body,
|
|
|
6253
6253
|
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-body--column .c--title {
|
|
6254
6254
|
height: 40px !important;
|
|
6255
6255
|
min-height: 40px !important;
|
|
6256
|
-
}
|
|
6256
|
+
}
|
|
6257
|
+
.custom-dialog {
|
|
6258
|
+
min-height: 50% !important;
|
|
6259
|
+
height: auto;
|
|
6260
|
+
max-height: 90% !important;
|
|
6261
|
+
padding: 0 !important;
|
|
6262
|
+
}
|
|
6263
|
+
.fec-layout-row[data-v-bb40b3aa] {
|
|
6264
|
+
width: 100%;
|
|
6265
|
+
height: 100%;
|
|
6266
|
+
}
|
|
6267
|
+
.fec-layout-row[data-v-bb40b3aa] .el-col {
|
|
6268
|
+
height: 100%;
|
|
6269
|
+
}
|
|
6270
|
+
.fec-layout-row[data-v-bb40b3aa] .el-col .el-scrollbar__bar {
|
|
6271
|
+
display: none;
|
|
6272
|
+
}
|
|
6273
|
+
.grid-content[data-v-bb40b3aa] {
|
|
6274
|
+
border-radius: 9px 9px 4px 4px;
|
|
6275
|
+
background-color: #fff;
|
|
6276
|
+
position: relative;
|
|
6277
|
+
height: 100%;
|
|
6278
|
+
/* padding: 16px; */
|
|
6279
|
+
overflow: hidden;
|
|
6280
|
+
/* .layout-content {
|
|
6281
|
+
padding: 16px 16px 16px 16px;
|
|
6282
|
+
} */
|
|
6283
|
+
}
|
|
6284
|
+
.grid-content-statistics[data-v-bb40b3aa] {
|
|
6285
|
+
height: 100%;
|
|
6286
|
+
display: flex;
|
|
6287
|
+
flex-direction: column;
|
|
6288
|
+
/* .card-content {
|
|
6289
|
+
display: flex;
|
|
6290
|
+
flex-direction: column;
|
|
6291
|
+
height: 100%;
|
|
6292
|
+
} */
|
|
6293
|
+
}
|
|
6294
|
+
.grid-content-statistics[data-v-bb40b3aa] .fec-layout-card:last-child {
|
|
6295
|
+
margin-bottom: 0 !important;
|
|
6296
|
+
flex: 1;
|
|
6297
|
+
}
|
|
6298
|
+
.fec-layout-card[data-v-3ce25014] {
|
|
6299
|
+
margin-bottom: 8px;
|
|
6300
|
+
border-radius: 4px;
|
|
6301
|
+
background-color: #fff;
|
|
6302
|
+
padding: 16px;
|
|
6303
|
+
display: flex;
|
|
6304
|
+
flex-direction: column;
|
|
6305
|
+
}
|
|
6306
|
+
.fec-layout-card .header[data-v-3ce25014] {
|
|
6307
|
+
display: flex;
|
|
6308
|
+
align-items: center;
|
|
6309
|
+
justify-content: space-between;
|
|
6310
|
+
}
|
|
6311
|
+
.fec-layout-card .header .title[data-v-3ce25014] {
|
|
6312
|
+
display: flex;
|
|
6313
|
+
align-items: center;
|
|
6314
|
+
}
|
|
6315
|
+
.fec-layout-card .header .title .icon[data-v-3ce25014] {
|
|
6316
|
+
color: #fff;
|
|
6317
|
+
width: 30px;
|
|
6318
|
+
height: 30px;
|
|
6319
|
+
display: block;
|
|
6320
|
+
border-radius: 4px;
|
|
6321
|
+
text-align: center;
|
|
6322
|
+
line-height: 30px;
|
|
6323
|
+
font-size: 20px;
|
|
6324
|
+
margin-right: 12px;
|
|
6325
|
+
}
|
|
6326
|
+
.fec-layout-card .header .title > span[data-v-3ce25014] {
|
|
6327
|
+
font-size: 17px;
|
|
6328
|
+
font-weight: bold;
|
|
6329
|
+
color: #1a1a1a;
|
|
6330
|
+
}
|
|
6331
|
+
.fec-layout-card .content[data-v-3ce25014] {
|
|
6332
|
+
flex-grow: 1;
|
|
6333
|
+
padding-top: 12px;
|
|
6334
|
+
}
|
|
6335
|
+
:root,:host{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-value-font-size: inherit;--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: inherit}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);font-size:var(--van-cell-value-font-size);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}
|
|
6257
6336
|
:root,:host{--van-cell-group-background: var(--van-background-2);--van-cell-group-title-color: var(--van-text-color-2);--van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md);--van-cell-group-title-font-size: var(--van-font-size-md);--van-cell-group-title-line-height: 16px;--van-cell-group-inset-padding: 0 var(--van-padding-md);--van-cell-group-inset-radius: var(--van-radius-lg);--van-cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)}.van-cell-group{background:var(--van-cell-group-background)}.van-cell-group--inset{margin:var(--van-cell-group-inset-padding);border-radius:var(--van-cell-group-inset-radius);overflow:hidden}.van-cell-group__title{padding:var(--van-cell-group-title-padding);color:var(--van-cell-group-title-color);font-size:var(--van-cell-group-title-font-size);line-height:var(--van-cell-group-title-line-height)}.van-cell-group__title--inset{padding:var(--van-cell-group-inset-title-padding)}
|
|
6258
6337
|
.van-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
|
|
6259
6338
|
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const all = require("./src/components/all.js");
|
|
4
|
-
const index$
|
|
4
|
+
const index$u = require("../mobile/index.js");
|
|
5
5
|
const zhCn = require("../../node_modules/element-plus/es/locale/lang/zh-cn.js");
|
|
6
|
-
const index$
|
|
6
|
+
const index$v = require("../../node_modules/element-plus/es/index.js");
|
|
7
7
|
const components = require("../../node_modules/vxe-pc-ui/es/components.js");
|
|
8
8
|
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
|
+
const layout = require("./src/directive/layout.js");
|
|
10
11
|
const fecVue = {
|
|
11
12
|
install: (app) => {
|
|
12
13
|
for (let c in all) {
|
|
13
14
|
app.use(all[c]);
|
|
14
15
|
}
|
|
15
|
-
for (let c in index$
|
|
16
|
+
for (let c in index$u) {
|
|
16
17
|
if (c.startsWith("Mobile")) {
|
|
17
|
-
app.use(index$
|
|
18
|
+
app.use(index$u[c]);
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
app.use(index$
|
|
21
|
+
app.use(index$v.default, {
|
|
21
22
|
locale: zhCn.default
|
|
22
23
|
});
|
|
23
24
|
app.use(components);
|
|
25
|
+
app.use(layout.default);
|
|
24
26
|
}
|
|
25
27
|
};
|
|
26
28
|
exports.default = fecVue;
|
|
@@ -27,6 +27,9 @@ const index$n = require("./bus/document/index.js");
|
|
|
27
27
|
const index$o = require("./details/header/index.js");
|
|
28
28
|
const index$p = require("./details/footer/index.js");
|
|
29
29
|
const index$q = require("./details/main/index.js");
|
|
30
|
+
const index$r = require("./dialog/customDialog/index.js");
|
|
31
|
+
const index$s = require("./layout/index.js");
|
|
32
|
+
const index$t = require("./layout/layoutCard/index.js");
|
|
30
33
|
exports.Table = index.Table;
|
|
31
34
|
exports.Form = index$1.Form;
|
|
32
35
|
exports.Text = index$2.Text;
|
|
@@ -54,3 +57,6 @@ exports.Document = index$n.Document;
|
|
|
54
57
|
exports.header = index$o.header;
|
|
55
58
|
exports.footer = index$p.footer;
|
|
56
59
|
exports.main = index$q.main;
|
|
60
|
+
exports.customDialog = index$r.customDialog;
|
|
61
|
+
exports.Layout = index$s.Layout;
|
|
62
|
+
exports.LayoutCard = index$t.LayoutCard;
|
|
@@ -182,7 +182,8 @@ const _sfc_main = {
|
|
|
182
182
|
const calcResult = calculate.calculate({
|
|
183
183
|
text: displayFormat == null ? void 0 : displayFormat.text,
|
|
184
184
|
marks: [],
|
|
185
|
-
value: row
|
|
185
|
+
value: row,
|
|
186
|
+
fieldsList: props.fieldsList
|
|
186
187
|
});
|
|
187
188
|
return calcResult;
|
|
188
189
|
});
|
|
@@ -447,5 +448,5 @@ const _sfc_main = {
|
|
|
447
448
|
};
|
|
448
449
|
}
|
|
449
450
|
};
|
|
450
|
-
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
451
|
+
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-9cd09319"]]);
|
|
451
452
|
exports.default = DialogRenderer;
|