act-plus 1.1.74 → 1.1.75
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/act-plus.js +1 -1
- package/act-plus.umd.cjs +42 -42
- package/lib/{dialogAddField-b74708cd.js → dialogAddField-524692c9.js} +2 -2
- package/lib/{dialogConfigBtn-e8b91f78.js → dialogConfigBtn-065ba283.js} +2 -2
- package/lib/{dialogSiteComponentsParams-52f9fd71.js → dialogSiteComponentsParams-7ff7cce4.js} +1 -1
- package/lib/{index-75adf68f.js → index-1282fd4f.js} +1 -1
- package/lib/{index-84468803.js → index-3b801428.js} +113 -95
- package/lib/{index-12a36fbd.js → index-606552b9.js} +733 -732
- package/lib/{index-b095ee67.js → index-7a82a0bc.js} +4 -2
- package/lib/{index-e68e500a.js → index-7b611211.js} +164 -148
- package/lib/{index-7ae0f2e6.js → index-8afa0dd5.js} +1 -1
- package/lib/{index-b620f300.js → index-ba5f0e24.js} +1 -1
- package/lib/{index-675a8c72.js → index-c551a79e.js} +1 -1
- package/lib/{index-407dad1d.js → index-f6aef3b6.js} +33 -42
- package/lib/{index-f82d7fb9.js → index-f6b0defb.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as N, watch as O, resolveComponent as u, resolveDirective as T, openBlock as l, createElementBlock as d, withDirectives as j, createBlock as i, mergeProps as D, withCtx as c, createTextVNode as K, toDisplayString as W, unref as f, Fragment as s, renderList as A, renderSlot as w, createCommentVNode as H, nextTick as y } from "vue";
|
|
2
|
-
import { _ as U, u as V } from "./index-
|
|
2
|
+
import { _ as U, u as V } from "./index-606552b9.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const $ = { class: "act-table" }, F = {
|
|
@@ -15,78 +15,69 @@ const $ = { class: "act-table" }, F = {
|
|
|
15
15
|
showSerialNumber: { type: Boolean, default: !0 },
|
|
16
16
|
showPagination: { type: Boolean, default: !0 },
|
|
17
17
|
rowKey: { type: String, default: "id" },
|
|
18
|
-
treeProps: {
|
|
19
|
-
type: Object,
|
|
20
|
-
default: () => ({ children: "children", hasChildren: "hasChildren" })
|
|
21
|
-
},
|
|
18
|
+
treeProps: { type: Object, default: () => ({ children: "children", hasChildren: "hasChildren" }) },
|
|
22
19
|
tableConfig: { type: Object, default: () => ({}) }
|
|
23
20
|
},
|
|
24
|
-
emits: [
|
|
25
|
-
"update:tableQuery",
|
|
26
|
-
"update:selection",
|
|
27
|
-
"refresh",
|
|
28
|
-
"onRowClick",
|
|
29
|
-
"changeExpand"
|
|
30
|
-
],
|
|
21
|
+
emits: ["update:tableQuery", "update:selection", "refresh", "onRowClick", "changeExpand"],
|
|
31
22
|
setup(g, { expose: b, emit: x }) {
|
|
32
|
-
const { t: h } = V(), r = x,
|
|
23
|
+
const { t: h } = V(), r = x, o = g;
|
|
33
24
|
let p = N(null);
|
|
34
|
-
const _ = (t) =>
|
|
25
|
+
const _ = (t) => o.showPagination ? t + 1 + (o.tableQuery.pageIndex - 1) * o.tableQuery.pageSize : t + 1, k = (t) => {
|
|
35
26
|
y(() => {
|
|
36
|
-
|
|
37
|
-
t.includes(o
|
|
27
|
+
o.data.forEach((a) => {
|
|
28
|
+
t.includes(a[o.rowKey]) && p.value.toggleRowSelection(a, !0);
|
|
38
29
|
});
|
|
39
30
|
});
|
|
40
31
|
}, C = (t) => p.value.getSelectionRows();
|
|
41
32
|
O(
|
|
42
|
-
() =>
|
|
43
|
-
(t,
|
|
33
|
+
() => o.selection,
|
|
34
|
+
(t, a) => {
|
|
44
35
|
t && t.length && k(t);
|
|
45
36
|
},
|
|
46
37
|
{ deep: !0, immediate: !0 }
|
|
47
38
|
);
|
|
48
39
|
const S = (t) => {
|
|
49
40
|
r("update:selection", t);
|
|
50
|
-
}, m = (t,
|
|
41
|
+
}, m = (t, a) => {
|
|
51
42
|
t && y(() => {
|
|
52
|
-
|
|
53
|
-
t.includes(n[
|
|
43
|
+
o.data.forEach((n) => {
|
|
44
|
+
t.includes(n[a || o.rowKey]) && p.value.toggleRowSelection(n, !0);
|
|
54
45
|
});
|
|
55
46
|
});
|
|
56
47
|
}, v = (t) => {
|
|
57
|
-
r("update:tableQuery", { ...
|
|
48
|
+
r("update:tableQuery", { ...o.tableQuery, pageSize: t }), r("refresh", []);
|
|
58
49
|
}, z = (t) => {
|
|
59
|
-
r("update:tableQuery", { ...
|
|
60
|
-
}, Q = (t,
|
|
61
|
-
r("onRowClick", t,
|
|
62
|
-
}, R = (t,
|
|
63
|
-
r("changeExpand", t,
|
|
50
|
+
r("update:tableQuery", { ...o.tableQuery, pageIndex: t }), r("refresh", []);
|
|
51
|
+
}, Q = (t, a, n) => {
|
|
52
|
+
r("onRowClick", t, a, n);
|
|
53
|
+
}, R = (t, a) => {
|
|
54
|
+
r("changeExpand", t, a);
|
|
64
55
|
};
|
|
65
|
-
return b({ getSelectionRows: C, updateSelection: m }), (t,
|
|
56
|
+
return b({ getSelectionRows: C, updateSelection: m }), (t, a) => {
|
|
66
57
|
const n = u("el-table-column"), E = u("el-table"), I = u("el-pagination"), P = T("loading");
|
|
67
58
|
return l(), d("div", $, [
|
|
68
59
|
j((l(), i(E, D({
|
|
69
60
|
style: { width: "100%" },
|
|
70
61
|
ref_key: "tableRef",
|
|
71
62
|
ref: p,
|
|
72
|
-
data:
|
|
63
|
+
data: o.data,
|
|
73
64
|
stripe: "",
|
|
74
65
|
border: "",
|
|
75
66
|
"highlight-current-row": "",
|
|
76
|
-
"max-height":
|
|
77
|
-
"row-key":
|
|
67
|
+
"max-height": o.maxHeight,
|
|
68
|
+
"row-key": o.rowKey,
|
|
78
69
|
"default-expand-all": "",
|
|
79
70
|
"tree-props": g.treeProps
|
|
80
|
-
},
|
|
71
|
+
}, o.tableConfig, {
|
|
81
72
|
onSelectionChange: S,
|
|
82
73
|
onRowClick: Q,
|
|
83
74
|
onExpandChange: R
|
|
84
75
|
}), {
|
|
85
76
|
empty: c(() => [
|
|
86
|
-
K(W(
|
|
77
|
+
K(W(o.data.length || o.data.length == 0 ? f(h)("act.noData") : ""), 1)
|
|
87
78
|
]),
|
|
88
79
|
default: c(() => [
|
|
89
|
-
(l(!0), d(s, null, A(
|
|
80
|
+
(l(!0), d(s, null, A(o.headers, (e) => (l(), d(s, {
|
|
90
81
|
key: e.prop
|
|
91
82
|
}, [
|
|
92
83
|
e.isCustomTableHeader ? w(t.$slots, e.prop, { key: 0 }, void 0, !0) : (l(), d(s, { key: 1 }, [
|
|
@@ -136,26 +127,26 @@ const $ = { class: "act-table" }, F = {
|
|
|
136
127
|
]),
|
|
137
128
|
_: 3
|
|
138
129
|
}, 16, ["data", "max-height", "row-key", "tree-props"])), [
|
|
139
|
-
[P,
|
|
130
|
+
[P, o.loading]
|
|
140
131
|
]),
|
|
141
|
-
|
|
132
|
+
o.showPagination ? (l(), i(I, {
|
|
142
133
|
key: 0,
|
|
143
134
|
class: "table-pagination",
|
|
144
|
-
"current-page":
|
|
145
|
-
"onUpdate:currentPage":
|
|
146
|
-
"page-size":
|
|
147
|
-
"onUpdate:pageSize":
|
|
135
|
+
"current-page": o.tableQuery.pageIndex,
|
|
136
|
+
"onUpdate:currentPage": a[0] || (a[0] = (e) => o.tableQuery.pageIndex = e),
|
|
137
|
+
"page-size": o.tableQuery.pageSize,
|
|
138
|
+
"onUpdate:pageSize": a[1] || (a[1] = (e) => o.tableQuery.pageSize = e),
|
|
148
139
|
"page-sizes": [10, 20, 50, 75, 100, 200, 500],
|
|
149
140
|
background: "",
|
|
150
141
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
151
|
-
total:
|
|
142
|
+
total: o.total,
|
|
152
143
|
onSizeChange: v,
|
|
153
144
|
onCurrentChange: z
|
|
154
145
|
}, null, 8, ["current-page", "page-size", "total"])) : H("", !0)
|
|
155
146
|
]);
|
|
156
147
|
};
|
|
157
148
|
}
|
|
158
|
-
}, J = /* @__PURE__ */ U(F, [["__scopeId", "data-v-
|
|
149
|
+
}, J = /* @__PURE__ */ U(F, [["__scopeId", "data-v-d2da0301"]]);
|
|
159
150
|
export {
|
|
160
151
|
J as default
|
|
161
152
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as J, inject as _, computed as K, watch as Q, resolveComponent as g, resolveDirective as U, openBlock as t, createElementBlock as m, Fragment as C, renderList as I, createBlock as s, resolveDynamicComponent as F, unref as d, withCtx as r, withDirectives as k, createCommentVNode as p, createTextVNode as h, toDisplayString as B, createVNode as N } from "vue";
|
|
2
|
-
import { _ as W, u as X, c as Y } from "./index-
|
|
2
|
+
import { _ as W, u as X, c as Y } from "./index-606552b9.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const Z = { class: "header-operate-container" }, ee = {
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.month-range .el-date-range-picker{width:320px}.month-range .el-date-range-picker .el-picker-panel__body{min-width:320px}.month-range .is-left{width:100%}.month-range .el-date-range-picker__header,.month-range .is-right{display:none}.table-link{cursor:pointer;color:#409eff;text-decoration:underline}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-
|
|
1
|
+
.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.month-range .el-date-range-picker{width:320px}.month-range .el-date-range-picker .el-picker-panel__body{min-width:320px}.month-range .is-left{width:100%}.month-range .el-date-range-picker__header,.month-range .is-right{display:none}.table-link{cursor:pointer;color:#409eff;text-decoration:underline}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-71fbc4b9] .el-empty__image{width:100%}.file-image[data-v-71fbc4b9]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-71fbc4b9]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-71fbc4b9]{padding:0;margin:0;border:none}.table-opreate-dropdown[data-v-71fbc4b9]{margin:4px 0 0 8px}.table-btn-more[data-v-71fbc4b9]{width:16px;height:16px}.table-btn-more[data-v-71fbc4b9]:hover{cursor:pointer;opacity:.8}.add-icon-btn[data-v-fa895b16]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-fa895b16]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-fa895b16]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-fa895b16]{cursor:pointer;width:12px;height:12px}.card-header[data-v-8c801481]{display:flex;align-items:center}.card-header -operate[data-v-8c801481]{margin-left:auto}.form-list[data-v-8c801481]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-8c801481]:last-child{border:none}.config-list-operate[data-v-8c801481]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-75e750d2]{display:flex;align-items:center}.card-header-operate[data-v-75e750d2]{margin-left:auto}.form-list[data-v-75e750d2]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-75e750d2]:last-child{border:none}.config-list-operate[data-v-75e750d2]{display:flex;align-items:center;justify-content:flex-end}[data-v-75e750d2] .el-badge__content.is-fixed{transform:translateY(-50%) translate(100%) scale(.7)}.submit-operate[data-v-8fa48448]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-8fa48448]{cursor:pointer;width:20px;height:20px}.page-container[data-v-8dfa8a8a]{position:relative}.page-container .header-operate[data-v-8dfa8a8a]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-8dfa8a8a]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-8dfa8a8a]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-8dfa8a8a]{width:360px;margin:0 24px}.search-module-container[data-v-92d7682c] .el-form-item{margin-bottom:8px}.search-module-container[data-v-92d7682c] .el-select__selection{flex-wrap:nowrap;width:100%}.search-module-container .form-content[data-v-92d7682c]{display:grid;grid-template-columns:repeat(var(--table-query-row),minmax(120px,1fr));gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-92d7682c]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-92d7682c]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-f0dda1b5]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}.header-operate-container .el-btn[data-v-f0dda1b5]{margin:2px}.header-operate-container .header-opreate-dropdown[data-v-f0dda1b5]{margin:4px 0 0 8px}.header-operate-container .header-btn-more[data-v-f0dda1b5]{width:16px;height:16px}.header-operate-container .header-btn-more[data-v-f0dda1b5]:hover{cursor:pointer;opacity:.8}.act-table .table-pagination[data-v-d2da0301]{padding:12px 4px;justify-content:flex-end}.no-config[data-v-4ca7d743]{line-height:32px;font-weight:700}.no-config-field[data-v-4ca7d743]{color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-325d2233]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-325d2233]{display:flex;justify-content:center}.condition-box[data-v-325d2233] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-325d2233]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-325d2233]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-6b2ebaa8]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-6b2ebaa8]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-6b2ebaa8]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.act-code-mirror[data-v-451d513f]{width:100%}.act-code-mirror .format-code-btn[data-v-451d513f]{margin-bottom:4px}
|