@kp-ui/lowcode-pc-v2 0.0.7 → 0.0.8
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/assets/styles/style.css +8 -4
- package/core/src/components/common/render/usePageContext.js +2 -7
- package/package.json +1 -1
- package/src/components/public/CustomerModal/CustomerModal.vue_vue_type_script_setup_true_lang.js +5 -2
- package/src/render/index.js +1 -1
- package/src/render/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/stats.html +1 -1
package/assets/styles/style.css
CHANGED
|
@@ -529,16 +529,20 @@
|
|
|
529
529
|
.page-template-widget[data-v-dc2a06fa] .addInfoLayout-footer .ant-form-item {
|
|
530
530
|
margin-bottom: 0;
|
|
531
531
|
}
|
|
532
|
-
.layout-render-wrapper[data-v-
|
|
532
|
+
.layout-render-wrapper[data-v-976bc2cb] {
|
|
533
|
+
flex: 1;
|
|
534
|
+
width: 100%;
|
|
535
|
+
height: 100%;
|
|
536
|
+
min-height: 0;
|
|
533
537
|
overflow-y: auto;
|
|
534
538
|
overflow-x: hidden;
|
|
535
|
-
background: var(--
|
|
539
|
+
background: var(--ee95b64a);
|
|
536
540
|
}
|
|
537
|
-
.loading-wrapper[data-v-
|
|
541
|
+
.loading-wrapper[data-v-976bc2cb] {
|
|
538
542
|
min-height: 300px;
|
|
539
543
|
padding: 20px;
|
|
540
544
|
}
|
|
541
|
-
.ant-form .ant-form-item-explain.ant-form-item-explain-connected[data-v-
|
|
545
|
+
.ant-form .ant-form-item-explain.ant-form-item-explain-connected[data-v-976bc2cb] {
|
|
542
546
|
display: none;
|
|
543
547
|
}
|
|
544
548
|
/*$vite$:1*/
|
|
@@ -2,7 +2,7 @@ import { EVENT_TYPE, useEmitter } from "../../../utils/useEmitter.js";
|
|
|
2
2
|
import { useI18n } from "../../../utils/i18n.js";
|
|
3
3
|
import { generateId, insertCustomCssToHead, insertGlobalFunctionsToHtml, removeCustomCssToHead, removeScriptToHead } from "../../../utils/util.js";
|
|
4
4
|
import { useAppRef } from "../../../hooks/useAppRef.js";
|
|
5
|
-
import { computed, nextTick, onMounted, ref,
|
|
5
|
+
import { computed, nextTick, onMounted, ref, watch, watchEffect } from "vue";
|
|
6
6
|
import { useExecFunction, useRef } from "tmgc2-share";
|
|
7
7
|
import { cloneDeep, set } from "lodash-es";
|
|
8
8
|
//#region ../core/src/components/common/render/usePageContext.ts
|
|
@@ -13,7 +13,6 @@ import { cloneDeep, set } from "lodash-es";
|
|
|
13
13
|
*/
|
|
14
14
|
var usePageContext = ({ props }) => {
|
|
15
15
|
const { formJson } = props;
|
|
16
|
-
const dynamicDialogRef = useTemplateRef("dynamicDialogRef");
|
|
17
16
|
const { i18nt } = useI18n();
|
|
18
17
|
const [readModeFlag, setReadMode] = useRef(false);
|
|
19
18
|
const formContextData = ref({});
|
|
@@ -96,10 +95,7 @@ var usePageContext = ({ props }) => {
|
|
|
96
95
|
const getParentPageInstance = () => {
|
|
97
96
|
return props.parentForm;
|
|
98
97
|
};
|
|
99
|
-
const getChildFormRef = () => {
|
|
100
|
-
var _dynamicDialogRef$val;
|
|
101
|
-
return (_dynamicDialogRef$val = dynamicDialogRef.value) === null || _dynamicDialogRef$val === void 0 ? void 0 : _dynamicDialogRef$val.getPageInstance();
|
|
102
|
-
};
|
|
98
|
+
const getChildFormRef = () => {};
|
|
103
99
|
/**
|
|
104
100
|
* 字段值变化事件处理器
|
|
105
101
|
*/
|
|
@@ -202,7 +198,6 @@ var usePageContext = ({ props }) => {
|
|
|
202
198
|
isLoading,
|
|
203
199
|
vfCtx: props.vfCtx,
|
|
204
200
|
formConfig,
|
|
205
|
-
dynamicDialogRef,
|
|
206
201
|
setChildFormRef,
|
|
207
202
|
setDialogOrDrawerRef,
|
|
208
203
|
executeHttp
|
package/package.json
CHANGED
package/src/components/public/CustomerModal/CustomerModal.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -35,7 +35,10 @@ var CustomerModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
35
35
|
};
|
|
36
36
|
});
|
|
37
37
|
const isDisabled = ref(false);
|
|
38
|
-
const { vfdRef, formConfig, getPageJson, isLoading } = useLowcode(
|
|
38
|
+
const { vfdRef, formConfig, getPageJson, isLoading } = useLowcode({
|
|
39
|
+
pageCode: props.formCode,
|
|
40
|
+
type: props.type
|
|
41
|
+
});
|
|
39
42
|
const leftNum = ref(null);
|
|
40
43
|
const modalTitle = computed(() => {
|
|
41
44
|
if (props.title) return props.title;
|
|
@@ -47,7 +50,7 @@ var CustomerModal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
47
50
|
const show = async () => {
|
|
48
51
|
visible.value = true;
|
|
49
52
|
await nextTick();
|
|
50
|
-
await getPageJson(
|
|
53
|
+
await getPageJson();
|
|
51
54
|
};
|
|
52
55
|
const setleftText = (number) => {
|
|
53
56
|
leftNum.value = number;
|
package/src/render/index.js
CHANGED
|
@@ -2,6 +2,6 @@ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export
|
|
|
2
2
|
import index_vue_vue_type_script_setup_true_lang_default from "./index.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/render/index.vue
|
|
5
|
-
var render_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var render_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-976bc2cb"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { render_default as default };
|
|
@@ -28,7 +28,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
28
28
|
parentForm: { default: null }
|
|
29
29
|
},
|
|
30
30
|
setup(__props, { expose: __expose }) {
|
|
31
|
-
useCssVars((_ctx) => ({ "
|
|
31
|
+
useCssVars((_ctx) => ({ "ee95b64a": unref(formConfig).backgroundColor }));
|
|
32
32
|
const debug = computed(() => getLocat().debug === "1");
|
|
33
33
|
const debugVisible = ref(false);
|
|
34
34
|
const props = __props;
|