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