@fecp/designer 5.5.105 → 5.5.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_virtual/exceljs.min.mjs +7 -0
- package/es/_virtual/exceljs.min2.mjs +4 -0
- package/es/designer/package.json.mjs +1 -1
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer.css +126 -95
- package/es/node_modules/@vxe-ui/plugin-export-xlsx/es/index.esm.mjs +809 -0
- package/es/node_modules/exceljs/dist/exceljs.min.mjs +23129 -0
- package/es/packages/mobile/node_modules/vant/es/tag/Tag.mjs +80 -0
- package/es/packages/mobile/node_modules/vant/es/tag/index.mjs +8 -0
- package/es/packages/mobile/src/components/custom/approvalList/ApprovalCard.vue.mjs +139 -0
- package/es/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.mjs +116 -300
- package/es/packages/vue/index.mjs +6 -1
- package/es/packages/vue/src/components/layout/Layout.vue.mjs +8 -3
- package/es/packages/vue/src/components/table/Table.vue.mjs +125 -4
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +6 -115
- package/lib/_virtual/exceljs.min.js +7 -0
- package/lib/_virtual/exceljs.min2.js +4 -0
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer.css +126 -95
- package/lib/node_modules/@vxe-ui/plugin-export-xlsx/es/index.esm.js +809 -0
- package/lib/node_modules/exceljs/dist/exceljs.min.js +23129 -0
- package/lib/packages/mobile/node_modules/vant/es/tag/Tag.js +80 -0
- package/lib/packages/mobile/node_modules/vant/es/tag/index.js +7 -0
- package/lib/packages/mobile/src/components/custom/approvalList/ApprovalCard.vue.js +139 -0
- package/lib/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.js +119 -303
- package/lib/packages/vue/index.js +5 -0
- package/lib/packages/vue/src/components/layout/Layout.vue.js +8 -3
- package/lib/packages/vue/src/components/table/Table.vue.js +125 -4
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +6 -115
- package/package.json +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const Vue = require("vue");
|
|
4
|
+
const index = require("../icon/index.js");
|
|
5
|
+
const props = require("../utils/props.js");
|
|
6
|
+
const create = require("../utils/create.js");
|
|
7
|
+
const constant = require("../utils/constant.js");
|
|
8
|
+
const [name, bem] = create.createNamespace("tag");
|
|
9
|
+
const tagProps = {
|
|
10
|
+
size: String,
|
|
11
|
+
mark: Boolean,
|
|
12
|
+
show: props.truthProp,
|
|
13
|
+
type: props.makeStringProp("default"),
|
|
14
|
+
color: String,
|
|
15
|
+
plain: Boolean,
|
|
16
|
+
round: Boolean,
|
|
17
|
+
textColor: String,
|
|
18
|
+
closeable: Boolean
|
|
19
|
+
};
|
|
20
|
+
var stdin_default = Vue.defineComponent({
|
|
21
|
+
name,
|
|
22
|
+
props: tagProps,
|
|
23
|
+
emits: ["close"],
|
|
24
|
+
setup(props2, {
|
|
25
|
+
slots,
|
|
26
|
+
emit
|
|
27
|
+
}) {
|
|
28
|
+
const onClose = (event) => {
|
|
29
|
+
event.stopPropagation();
|
|
30
|
+
emit("close", event);
|
|
31
|
+
};
|
|
32
|
+
const getStyle = () => {
|
|
33
|
+
if (props2.plain) {
|
|
34
|
+
return {
|
|
35
|
+
color: props2.textColor || props2.color,
|
|
36
|
+
borderColor: props2.color
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
color: props2.textColor,
|
|
41
|
+
background: props2.color
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
const renderTag = () => {
|
|
45
|
+
var _a;
|
|
46
|
+
const {
|
|
47
|
+
type,
|
|
48
|
+
mark,
|
|
49
|
+
plain,
|
|
50
|
+
round,
|
|
51
|
+
size,
|
|
52
|
+
closeable
|
|
53
|
+
} = props2;
|
|
54
|
+
const classes = {
|
|
55
|
+
mark,
|
|
56
|
+
plain,
|
|
57
|
+
round
|
|
58
|
+
};
|
|
59
|
+
if (size) {
|
|
60
|
+
classes[size] = size;
|
|
61
|
+
}
|
|
62
|
+
const CloseIcon = closeable && Vue.createVNode(index.Icon, {
|
|
63
|
+
"name": "cross",
|
|
64
|
+
"class": [bem("close"), constant.HAPTICS_FEEDBACK],
|
|
65
|
+
"onClick": onClose
|
|
66
|
+
}, null);
|
|
67
|
+
return Vue.createVNode("span", {
|
|
68
|
+
"style": getStyle(),
|
|
69
|
+
"class": bem([classes, type])
|
|
70
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
|
71
|
+
};
|
|
72
|
+
return () => Vue.createVNode(Vue.Transition, {
|
|
73
|
+
"name": props2.closeable ? "van-fade" : void 0
|
|
74
|
+
}, {
|
|
75
|
+
default: () => [props2.show ? renderTag() : null]
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
exports.default = stdin_default;
|
|
80
|
+
exports.tagProps = tagProps;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const Tag$1 = require("./Tag.js");
|
|
4
|
+
const withInstall = require("../utils/with-install.js");
|
|
5
|
+
const Tag = withInstall.withInstall(Tag$1.default);
|
|
6
|
+
exports.tagProps = Tag$1.tagProps;
|
|
7
|
+
exports.Tag = Tag;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
;/* empty css */
|
|
5
|
+
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
|
+
const Vue = require("vue");
|
|
10
|
+
;/* empty css */
|
|
11
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
12
|
+
const index = require("../../../../node_modules/vant/es/tag/index.js");
|
|
13
|
+
const index$1 = require("../../../../node_modules/vant/es/icon/index.js");
|
|
14
|
+
const index$2 = require("../../../../node_modules/vant/es/button/index.js");
|
|
15
|
+
const _hoisted_1 = { class: "fec-card" };
|
|
16
|
+
const _hoisted_2 = { class: "fec-card-header" };
|
|
17
|
+
const _hoisted_3 = { class: "fec-card-title-wrap" };
|
|
18
|
+
const _hoisted_4 = { class: "fec-card-title" };
|
|
19
|
+
const _hoisted_5 = { class: "fec-card-body" };
|
|
20
|
+
const _hoisted_6 = { class: "fec-card-message" };
|
|
21
|
+
const _hoisted_7 = { class: "fec-card-footer" };
|
|
22
|
+
const _hoisted_8 = { class: "fec-card-time" };
|
|
23
|
+
const _hoisted_9 = { class: "fec-card-actions" };
|
|
24
|
+
const _sfc_main = {
|
|
25
|
+
__name: "ApprovalCard",
|
|
26
|
+
props: {
|
|
27
|
+
item: {
|
|
28
|
+
type: Object,
|
|
29
|
+
required: true
|
|
30
|
+
},
|
|
31
|
+
type: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 0
|
|
34
|
+
// 0:待办 1:已办 2:抄送
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
emits: ["view", "approve", "revoke"],
|
|
38
|
+
setup(__props) {
|
|
39
|
+
function formatTime(timeStr) {
|
|
40
|
+
if (!timeStr) return "";
|
|
41
|
+
const time = new Date(timeStr.replace(/-/g, "/"));
|
|
42
|
+
if (isNaN(time.getTime())) return timeStr;
|
|
43
|
+
const now = /* @__PURE__ */ new Date();
|
|
44
|
+
const diff = now - time;
|
|
45
|
+
const oneDay = 24 * 60 * 60 * 1e3;
|
|
46
|
+
if (diff > oneDay) {
|
|
47
|
+
return timeStr;
|
|
48
|
+
}
|
|
49
|
+
const hours = Math.floor(diff / (60 * 60 * 1e3));
|
|
50
|
+
if (hours >= 1) {
|
|
51
|
+
return `${hours}小时前`;
|
|
52
|
+
}
|
|
53
|
+
const minutes = Math.floor(diff / (60 * 1e3));
|
|
54
|
+
if (minutes >= 1) {
|
|
55
|
+
return `${minutes}分钟前`;
|
|
56
|
+
}
|
|
57
|
+
return "刚刚";
|
|
58
|
+
}
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
const _component_van_tag = index.Tag;
|
|
61
|
+
const _component_van_icon = index$1.Icon;
|
|
62
|
+
const _component_van_button = index$2.Button;
|
|
63
|
+
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
64
|
+
Vue.createElementVNode("div", _hoisted_2, [
|
|
65
|
+
Vue.createElementVNode("div", _hoisted_3, [
|
|
66
|
+
Vue.createElementVNode("span", _hoisted_4, Vue.toDisplayString(__props.item.taskName), 1),
|
|
67
|
+
__props.item.busTypeName ? (Vue.openBlock(), Vue.createBlock(_component_van_tag, {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: "fec-card-bus-type",
|
|
70
|
+
size: "small",
|
|
71
|
+
round: ""
|
|
72
|
+
}, {
|
|
73
|
+
default: Vue.withCtx(() => [
|
|
74
|
+
Vue.createTextVNode(Vue.toDisplayString(__props.item.busTypeName), 1)
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
})) : Vue.createCommentVNode("", true)
|
|
78
|
+
]),
|
|
79
|
+
Vue.createElementVNode("span", {
|
|
80
|
+
class: "fec-card-status",
|
|
81
|
+
style: Vue.normalizeStyle({ background: __props.item.statusColor || "#fa8c16" })
|
|
82
|
+
}, [
|
|
83
|
+
Vue.createVNode(_component_van_icon, {
|
|
84
|
+
name: __props.item.statusIcon || "clock-o",
|
|
85
|
+
size: "12"
|
|
86
|
+
}, null, 8, ["name"]),
|
|
87
|
+
Vue.createTextVNode(" " + Vue.toDisplayString(__props.item.statusText || "待处理"), 1)
|
|
88
|
+
], 4)
|
|
89
|
+
]),
|
|
90
|
+
Vue.createElementVNode("div", _hoisted_5, [
|
|
91
|
+
Vue.createElementVNode("div", _hoisted_6, Vue.toDisplayString(__props.item.taskDescription), 1)
|
|
92
|
+
]),
|
|
93
|
+
Vue.createElementVNode("div", _hoisted_7, [
|
|
94
|
+
Vue.createElementVNode("span", _hoisted_8, Vue.toDisplayString(formatTime(__props.item.taskCreateDateTime)), 1),
|
|
95
|
+
Vue.createElementVNode("div", _hoisted_9, [
|
|
96
|
+
Vue.createVNode(_component_van_button, {
|
|
97
|
+
plain: "",
|
|
98
|
+
hairline: "",
|
|
99
|
+
round: "",
|
|
100
|
+
size: "small",
|
|
101
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("view", __props.item))
|
|
102
|
+
}, {
|
|
103
|
+
default: Vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
104
|
+
Vue.createTextVNode(" 查看 ")
|
|
105
|
+
])),
|
|
106
|
+
_: 1
|
|
107
|
+
}),
|
|
108
|
+
__props.type == 0 ? (Vue.openBlock(), Vue.createBlock(_component_van_button, {
|
|
109
|
+
key: 0,
|
|
110
|
+
type: "primary",
|
|
111
|
+
round: "",
|
|
112
|
+
size: "small",
|
|
113
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("approve", __props.item))
|
|
114
|
+
}, {
|
|
115
|
+
default: Vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
116
|
+
Vue.createTextVNode(" 同意 ")
|
|
117
|
+
])),
|
|
118
|
+
_: 1
|
|
119
|
+
})) : Vue.createCommentVNode("", true),
|
|
120
|
+
__props.type == 1 ? (Vue.openBlock(), Vue.createBlock(_component_van_button, {
|
|
121
|
+
key: 1,
|
|
122
|
+
type: "warning",
|
|
123
|
+
round: "",
|
|
124
|
+
size: "small",
|
|
125
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("revoke", __props.item))
|
|
126
|
+
}, {
|
|
127
|
+
default: Vue.withCtx(() => _cache[5] || (_cache[5] = [
|
|
128
|
+
Vue.createTextVNode(" 撤销 ")
|
|
129
|
+
])),
|
|
130
|
+
_: 1
|
|
131
|
+
})) : Vue.createCommentVNode("", true)
|
|
132
|
+
])
|
|
133
|
+
])
|
|
134
|
+
]);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const ApprovalCard = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-8bbf96c9"]]);
|
|
139
|
+
exports.default = ApprovalCard;
|