super-page-runtime 2.0.19 → 2.0.25
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/utils/api/api-util.js +18 -16
- package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +206 -0
- package/dist/es/components/runtime/utils/assemblys-config.js +16 -7
- package/dist/es/components/runtime/utils/common-util.d.ts +2 -2
- package/dist/es/components/runtime/utils/common-util.js +8 -12
- package/dist/es/components/runtime/utils/events/event-util.d.ts +14 -0
- package/dist/es/components/runtime/utils/events/event-util.js +101 -32
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +189 -133
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
- package/dist/es/components/runtime/utils/form/scan-util.js +191 -0
- package/dist/es/components/runtime/utils/global-refs.js +12 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +20 -4
- package/dist/es/components/runtime/utils/page-init-util.js +9 -15
- package/dist/es/components/runtime/utils/table-utils.js +4 -5
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +207 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +99 -68
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +24 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +96 -26
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/super-page.vue.js +18 -7
- package/package.json +3 -2
- package/dist/lib/_virtual/AttributeMap.js +0 -4
- package/dist/lib/_virtual/Delta.js +0 -4
- package/dist/lib/_virtual/Op.js +0 -4
- package/dist/lib/_virtual/OpIterator.js +0 -4
- package/dist/lib/_virtual/__vite-browser-external.js +0 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/lib/_virtual/dayjs.min.js +0 -4
- package/dist/lib/_virtual/index.js +0 -4
- package/dist/lib/_virtual/index2.js +0 -4
- package/dist/lib/_virtual/index3.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme1.js +0 -7
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.js +0 -7
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.js +0 -7
- package/dist/lib/components/runtime/index.d.ts +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
- package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
- package/dist/lib/components/runtime/utils/common-util.js +0 -94
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/eventBus.js +0 -10
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
- package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
- package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
- package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/global-refs.js +0 -65
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
- package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store-util.js +0 -17
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/store.js +0 -3
- package/dist/lib/components/runtime/utils/table-utils.js +0 -24
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
- package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.d.ts +0 -8
- package/dist/lib/index.js +0 -15
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const Vue = require("vue");
|
|
3
|
-
const objectRender_vue_vue_type_script_setup_true_lang = require("../../object-render.vue.js");
|
|
4
|
-
const superUi = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js");
|
|
5
|
-
require("../../../../utils/global-refs.js");
|
|
6
|
-
const index = require("../../../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/tabs/index.js");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
8
|
-
__name: "tabs-runtime",
|
|
9
|
-
props: {
|
|
10
|
-
pageContext: {},
|
|
11
|
-
configure: {}
|
|
12
|
-
},
|
|
13
|
-
setup(__props) {
|
|
14
|
-
const props = __props;
|
|
15
|
-
const activeName = props.configure.props.defaultOpen ? props.configure.props.defaultOpen : 1;
|
|
16
|
-
const thisRef = Vue.ref(null);
|
|
17
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
18
|
-
const runtimeStyle = runtimeInfo.style;
|
|
19
|
-
const runtimeClass = runtimeInfo.class;
|
|
20
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
21
|
-
return (_ctx, _cache) => {
|
|
22
|
-
return Vue.openBlock(), Vue.createBlock(Vue.unref(index.ElTabs), {
|
|
23
|
-
ref_key: "thisRef",
|
|
24
|
-
ref: thisRef,
|
|
25
|
-
modelValue: Vue.unref(activeName),
|
|
26
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.isRef(activeName) ? activeName.value = $event : null),
|
|
27
|
-
type: _ctx.configure.props.cardType,
|
|
28
|
-
"tab-position": _ctx.configure.props.tabPosition,
|
|
29
|
-
style: Vue.normalizeStyle(Vue.unref(runtimeStyle)),
|
|
30
|
-
class: Vue.normalizeClass(Vue.unref(runtimeClass))
|
|
31
|
-
}, {
|
|
32
|
-
default: Vue.withCtx(() => [
|
|
33
|
-
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(_ctx.configure.items, (item, index$1) => {
|
|
34
|
-
return Vue.openBlock(), Vue.createBlock(Vue.unref(index.ElTabPane), {
|
|
35
|
-
label: item.label,
|
|
36
|
-
name: item.index
|
|
37
|
-
}, {
|
|
38
|
-
label: Vue.withCtx(() => [
|
|
39
|
-
item.iconType && item.iconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
|
|
40
|
-
key: 0,
|
|
41
|
-
iconType: item.iconType,
|
|
42
|
-
iconValue: item.iconValue,
|
|
43
|
-
style: { "margin-right": "2px" }
|
|
44
|
-
}, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
|
|
45
|
-
Vue.createElementVNode("span", {
|
|
46
|
-
style: Vue.normalizeStyle(Vue.unref(headerStyle))
|
|
47
|
-
}, Vue.toDisplayString(item.label), 5)
|
|
48
|
-
]),
|
|
49
|
-
default: Vue.withCtx(() => [
|
|
50
|
-
Vue.createElementVNode("div", null, [
|
|
51
|
-
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(item.items, (element, itemIndex) => {
|
|
52
|
-
return Vue.openBlock(), Vue.createBlock(objectRender_vue_vue_type_script_setup_true_lang, {
|
|
53
|
-
key: element.uuid,
|
|
54
|
-
pageContext: _ctx.pageContext,
|
|
55
|
-
configure: element
|
|
56
|
-
}, null, 8, ["pageContext", "configure"]);
|
|
57
|
-
}), 128))
|
|
58
|
-
])
|
|
59
|
-
]),
|
|
60
|
-
_: 2
|
|
61
|
-
}, 1032, ["label", "name"]);
|
|
62
|
-
}), 256))
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
}, 8, ["modelValue", "type", "tab-position", "style", "class"]);
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
module.exports = _sfc_main;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const Vue = require("vue");
|
|
3
|
-
const objectRender_vue_vue_type_script_setup_true_lang = require("../../object-render.vue.js");
|
|
4
|
-
require("../../../../utils/global-refs.js");
|
|
5
|
-
const _hoisted_1 = { class: "amb-widget-tools-parent" };
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
7
|
-
__name: "tools-runtime",
|
|
8
|
-
props: {
|
|
9
|
-
pageContext: {},
|
|
10
|
-
configure: {}
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
const props = __props;
|
|
14
|
-
const thisRef = Vue.ref(null);
|
|
15
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
16
|
-
const runtimeStyle = Vue.ref(runtimeInfo.style ? runtimeInfo.style : {});
|
|
17
|
-
const runtimeClass = runtimeInfo.class;
|
|
18
|
-
Vue.onMounted(() => {
|
|
19
|
-
if (thisRef.value && thisRef.value.parentNode) {
|
|
20
|
-
const resizeObserver2 = new ResizeObserver((entries) => {
|
|
21
|
-
for (let entry of entries) {
|
|
22
|
-
}
|
|
23
|
-
caculatePositionStyle();
|
|
24
|
-
});
|
|
25
|
-
resizeObserver2.observe(thisRef.value.parentNode);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
Vue.onUnmounted(() => {
|
|
29
|
-
});
|
|
30
|
-
function caculatePositionStyle() {
|
|
31
|
-
if (thisRef.value && thisRef.value.parentNode) {
|
|
32
|
-
const thisProps = props.configure.props;
|
|
33
|
-
const position = thisProps.position;
|
|
34
|
-
if (position == "top1" || position == "bottom1") {
|
|
35
|
-
const tempStyle = {};
|
|
36
|
-
tempStyle["position"] = "fixed !important";
|
|
37
|
-
tempStyle["z-index"] = "1";
|
|
38
|
-
const contentObj = [thisRef.value.parentNode];
|
|
39
|
-
if (contentObj && contentObj.length > 0) {
|
|
40
|
-
const contentRec = contentObj[0].getBoundingClientRect();
|
|
41
|
-
if (position == "top") {
|
|
42
|
-
tempStyle["top"] = contentRec.top + "px";
|
|
43
|
-
}
|
|
44
|
-
if (position == "bottom") {
|
|
45
|
-
tempStyle["bottom"] = "10px";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
const parentRec = thisRef.value.parentNode.getBoundingClientRect();
|
|
49
|
-
console.log("parentRec", parentRec);
|
|
50
|
-
tempStyle["width"] = parentRec.width - 25 + "px";
|
|
51
|
-
Object.assign(runtimeStyle.value, tempStyle);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return (_ctx, _cache) => {
|
|
56
|
-
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
57
|
-
Vue.createElementVNode("div", {
|
|
58
|
-
class: Vue.normalizeClass(["amb-widget-container-tool amb-widget-tools", Vue.unref(runtimeClass)]),
|
|
59
|
-
style: Vue.normalizeStyle(runtimeStyle.value),
|
|
60
|
-
ref_key: "thisRef",
|
|
61
|
-
ref: thisRef
|
|
62
|
-
}, [
|
|
63
|
-
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(_ctx.configure.items, (element, itemIndex) => {
|
|
64
|
-
return Vue.openBlock(), Vue.createBlock(objectRender_vue_vue_type_script_setup_true_lang, {
|
|
65
|
-
key: element.uuid,
|
|
66
|
-
pageContext: _ctx.pageContext,
|
|
67
|
-
configure: element
|
|
68
|
-
}, null, 8, ["pageContext", "configure"]);
|
|
69
|
-
}), 128))
|
|
70
|
-
], 6)
|
|
71
|
-
]);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
module.exports = _sfc_main;
|