super-page-runtime 2.1.50-temp1 → 2.1.54
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/page-expose-util.js +110 -3
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +7 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +14 -0
- package/dist/es/components/runtime/utils/common-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/common-util.js +4 -0
- package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/event-util.js +14 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +5 -2
- package/dist/es/components/runtime/utils/events/validator-util.js +25 -5
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +1 -0
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +18 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +25 -5
- package/dist/es/components/runtime/utils/page-init-util.js +5 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +2 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +64 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +83 -20
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +102 -35
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +7 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +7 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +49 -26
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +18 -8
- package/dist/es/components/runtime/views/super-page.vue.js +2 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, renderList, createElementVNode } from "vue";
|
|
2
2
|
import { getVariableValue, setVariableValue, getOptionDatasFromPage, queryOptionDatasources, autoSetAfterSelect } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -16,6 +16,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
const props = __props;
|
|
17
17
|
const entity = props.pageContext.entity ? props.pageContext.entity : {};
|
|
18
18
|
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
19
|
+
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
20
|
+
const runtimeStyle = runtimeInfo.style;
|
|
21
|
+
const runtimeClass = runtimeInfo.class;
|
|
22
|
+
const headerStyle = runtimeInfo.headerStyle;
|
|
23
|
+
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
24
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
19
25
|
const dynamicModelMethod = computed({
|
|
20
26
|
get() {
|
|
21
27
|
let val = getVariableValue(entity, dynamicFields);
|
|
@@ -23,20 +29,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
29
|
if (val !== void 0 && val !== null) {
|
|
24
30
|
val = val + "";
|
|
25
31
|
}
|
|
32
|
+
if (designProperty.value.multiple) {
|
|
33
|
+
if (val) {
|
|
34
|
+
val = val.split(",");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
26
37
|
console.log("select组件----dynamicModelMethod---get222--val", val);
|
|
27
38
|
return val;
|
|
28
39
|
},
|
|
29
40
|
set(value) {
|
|
41
|
+
if (designProperty.value.multiple) {
|
|
42
|
+
if (value && value.length > 0) {
|
|
43
|
+
value = value.join(",");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
30
46
|
console.log("select组件----dynamicModelMethod---set--value", value);
|
|
31
47
|
setVariableValue(entity, dynamicFields, value);
|
|
32
48
|
}
|
|
33
49
|
});
|
|
34
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
35
|
-
const runtimeStyle = runtimeInfo.style;
|
|
36
|
-
const runtimeClass = runtimeInfo.class;
|
|
37
|
-
const headerStyle = runtimeInfo.headerStyle;
|
|
38
|
-
const titleExceedStyle = runtimeInfo.titleExceedStyle;
|
|
39
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
40
50
|
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
41
51
|
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
42
52
|
if (cacheOptions.length > 0) {
|
|
@@ -156,7 +166,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
156
166
|
console.log("updateOptions", newOptions);
|
|
157
167
|
}
|
|
158
168
|
onMounted(() => {
|
|
159
|
-
console.log("select
|
|
169
|
+
console.log("select-----onMounted");
|
|
160
170
|
});
|
|
161
171
|
__expose({
|
|
162
172
|
updateOptions
|
|
@@ -359,7 +359,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
359
359
|
if (!_selectFile_.value) {
|
|
360
360
|
return;
|
|
361
361
|
}
|
|
362
|
-
if (_selectFile_.value.value === "" || _selectFile_.value.value === null)
|
|
362
|
+
if (_selectFile_.value.value === "" || _selectFile_.value.value === null)
|
|
363
|
+
return;
|
|
363
364
|
const fileObj = _selectFile_.value.files[0];
|
|
364
365
|
if (fileObj) {
|
|
365
366
|
_selectFile_.value.value = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.54",
|
|
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.0.
|
|
51
|
+
"agilebuilder-ui": "1.0.87",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|