super-page-runtime 2.2.40 → 2.2.42
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/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +5 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +25 -17
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +3 -3
- package/dist/es/style.css +29 -1
- package/package.json +2 -2
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./card-runtime.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-e830dee4"]]);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
t as default
|
|
4
7
|
};
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
2
|
-
import { ElCard as
|
|
3
|
-
import { SuperIcon as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as n, nextTick as i, resolveComponent as r, createBlock as l, openBlock as s, unref as u, normalizeClass as a, normalizeStyle as p, createSlots as c, withCtx as f, createElementBlock as g, createCommentVNode as m, Fragment as y, renderList as d, createElementVNode as x, createTextVNode as v, toDisplayString as C } from "vue";
|
|
2
|
+
import { ElCard as b } from "element-plus";
|
|
3
|
+
import { SuperIcon as h } from "agilebuilder-ui";
|
|
4
|
+
import { ArrowUp as k, ArrowDown as S } from "@element-plus/icons-vue";
|
|
5
|
+
import j from "../../object-render.vue.js";
|
|
6
|
+
import { $t as T } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
|
|
8
|
+
const _ = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
const w = e2;
|
|
11
|
+
w.configure.items || (w.configure.items = []);
|
|
12
|
+
const R = t(() => {
|
|
13
|
+
var _a2;
|
|
14
|
+
return [true, void 0].includes((_a2 = w.configure.props) == null ? void 0 : _a2.isCollapse);
|
|
15
|
+
}), z = o(null), D = o(!((_a = w.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = w.configure.props) == null ? void 0 : _b.isCollapseShow)), q = w.configure.runtime ? w.configure.runtime : {}, A = q.style, B = q.class, E = q.headerStyle, F = q.contentStyle, G = () => R.value && (D.value = !D.value);
|
|
16
|
+
return n(() => {
|
|
17
|
+
i(() => {
|
|
18
|
+
V(null, w.pageContext, w.configure, { componentRef: z.value, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
|
|
14
19
|
});
|
|
15
|
-
}),
|
|
16
|
-
|
|
17
|
-
} }), (e3, t2) =>
|
|
20
|
+
}), _2({ test: function() {
|
|
21
|
+
w.configure.props.title = "teee";
|
|
22
|
+
} }), (e3, t2) => {
|
|
23
|
+
const o2 = r("el-button");
|
|
24
|
+
return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p([u(A), { "margin-top": "20px" }]), "data-collapse": String(D.value), class: a(["yx-card-box-main", u(B)]) }, c({ default: f(() => [D.value ? (s(), g("div", { key: 0, class: "yx-card-box-context", style: p(u(F)) }, [(s(true), g(y, null, d(e3.configure.items, (t3, o3) => (s(), l(j, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)) : m("", true)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: f(() => [x("div", { class: "yx-card-box-header", onClick: G }, [x("div", { class: "yx-card-box-title", style: p(u(E)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : m("", true), v(" " + C(u(T)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(o2, { key: 0, type: "text", icon: D.value ? u(k) : u(S), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : m("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
|
|
25
|
+
};
|
|
18
26
|
} });
|
|
19
27
|
export {
|
|
20
|
-
|
|
28
|
+
_ as default
|
|
21
29
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as o, onMounted as i, nextTick as a, onUnmounted as n, createBlock as l, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as o, onMounted as i, nextTick as a, onUnmounted as n, createBlock as l, createElementBlock as u, openBlock as s, withCtx as f, createElementVNode as r, normalizeStyle as p, normalizeClass as g, unref as d, Fragment as v, renderList as c } from "vue";
|
|
2
2
|
import m from "../../object-render.vue.js";
|
|
3
3
|
import { handleAfterInitEvent as x } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import y from "../fixed/YxAffix.vue.js";
|
|
@@ -6,7 +6,7 @@ import C from "../fixed/FixedBox.vue.js";
|
|
|
6
6
|
const b = { "data-v": "1.0.0", class: "amb-widget-tools-parent" }, k = { "data-v": "1.0.0", class: "amb-widget-tools-parent" }, w = { key: 2, "data-v": "1.0.0", class: "amb-widget-tools-parent" }, _ = e({ __name: "tools-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
7
|
const _2 = e2, j = t(null), R = _2.configure.runtime ?? {}, h = R.class, A = o(() => _2.configure.props), F = o(() => {
|
|
8
8
|
const { gap: e3 } = A.value ?? {};
|
|
9
|
-
return { ...e3 ? { gap: `${e3}px` } : {}, ...R.style ?? {} };
|
|
9
|
+
return { backgroundColor: "#fff", ...e3 ? { gap: `${e3}px` } : {}, ...R.style ?? {} };
|
|
10
10
|
}), B = o(() => {
|
|
11
11
|
var _a, _b, _c;
|
|
12
12
|
return !![(_a = A.value) == null ? void 0 : _a.isAffix, (_b = A.value) == null ? void 0 : _b.isFixed].every((e3) => void 0 === e3) || ((_c = A.value) == null ? void 0 : _c.isAffix);
|
|
@@ -25,7 +25,7 @@ const b = { "data-v": "1.0.0", class: "amb-widget-tools-parent" }, k = { "data-v
|
|
|
25
25
|
x(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
26
26
|
});
|
|
27
27
|
}), n(() => {
|
|
28
|
-
}), (e3, t2) => D.value ? (
|
|
28
|
+
}), (e3, t2) => D.value ? (s(), l(C, { key: 0, position: Y.value, offset: $.value }, { default: f(() => [r("div", b, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", d(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(s(true), u(v, null, c(_2.configure.items, (e4) => (s(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)])]), _: 1 }, 8, ["position", "offset"])) : B.value ? (s(), l(y, { key: 1, position: Y.value, offset: $.value }, { default: f(() => [r("div", k, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", d(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(s(true), u(v, null, c(_2.configure.items, (e4) => (s(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)])]), _: 1 }, 8, ["position", "offset"])) : (s(), u("div", w, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", d(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(s(true), u(v, null, c(_2.configure.items, (e4) => (s(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)]));
|
|
29
29
|
} });
|
|
30
30
|
export {
|
|
31
31
|
_ as default
|
package/dist/es/style.css
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
|
-
.
|
|
1
|
+
.yx-card-box-main[data-v-e830dee4] > .el-card__header {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.yx-card-box-main[data-v-e830dee4] > .el-card__header .yx-card-box-header {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 15px;
|
|
10
|
+
}
|
|
11
|
+
.yx-card-box-main[data-v-e830dee4] > .el-card__header .yx-card-box-header .yx-card-box-title {
|
|
12
|
+
position: relative;
|
|
13
|
+
z-index: 2;
|
|
14
|
+
}
|
|
15
|
+
.yx-card-box-main[data-v-e830dee4] > .el-card__header .yx-card-box-header::after {
|
|
16
|
+
content: " ";
|
|
17
|
+
position: absolute;
|
|
18
|
+
left: 0;
|
|
19
|
+
top: 0;
|
|
20
|
+
bottom: 0;
|
|
21
|
+
right: 0;
|
|
22
|
+
z-index: 0;
|
|
23
|
+
}
|
|
24
|
+
.yx-card-box-main[data-v-e830dee4] > .el-card__header .yx-card-box-header .yx-card-box-title {
|
|
25
|
+
flex: 1 1 auto;
|
|
26
|
+
}
|
|
27
|
+
.yx-card-box-main[data-v-e830dee4][data-collapse=false] > .el-card__body {
|
|
28
|
+
display: none;
|
|
29
|
+
}.vue-affix-placeholder {
|
|
2
30
|
display: block;
|
|
3
31
|
visibility: hidden;
|
|
4
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.42",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
50
50
|
"@vue/test-utils": "^2.4.4",
|
|
51
|
-
"agilebuilder-ui": "1.1.
|
|
51
|
+
"agilebuilder-ui": "1.1.14",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|