@kp-ui/lowcode-pc-v2 0.0.3 → 0.0.5
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 +38 -9
- package/core/src/components/common/render/usePageContext.js +3 -3
- package/core/src/hooks/useLowcode.js +1 -1
- package/core/src/hooks/useWebMCP.js +2 -2
- package/install.js +1 -0
- package/package.json +36 -36
- package/src/render/index.js +1 -1
- package/src/render/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/src/widgets/base/time/index.js +1 -1
- package/src/widgets/base/time/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/stats.html +1 -1
package/assets/styles/style.css
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/* 全局css变量 */
|
|
2
|
+
.primary-color {
|
|
3
|
+
color: var(--ant-primary-color);
|
|
4
|
+
}
|
|
5
|
+
.auto-full-width > div {
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
.background-opacity {
|
|
9
|
+
background: var(--ant-primary-4);
|
|
10
|
+
}
|
|
11
|
+
.form-widget-list .ghost {
|
|
12
|
+
content: '';
|
|
13
|
+
font-size: 0;
|
|
14
|
+
height: 3px;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
background: var(--ant-primary-4);
|
|
17
|
+
border: 2px solid var(--ant-primary-4);
|
|
18
|
+
outline-width: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
/* 滚动条样式 end */
|
|
23
|
+
.button-text-highlight.ant-btn {
|
|
24
|
+
font-weight: bold;
|
|
25
|
+
color: var(--ant-primary-color);
|
|
26
|
+
}
|
|
27
|
+
.custom-divider.ant-divider {
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
margin: 5px;
|
|
30
|
+
}
|
|
31
|
+
.field-wrapper .full-width-input {
|
|
32
|
+
width: 100% !important;
|
|
33
|
+
}
|
|
34
|
+
@tailwind components;
|
|
35
|
+
@tailwind utilities;
|
|
1
36
|
/* 调试面板样式 */
|
|
2
37
|
.debug-panel[data-v-db68aa3b] {
|
|
3
38
|
position: absolute;
|
|
@@ -358,14 +393,8 @@
|
|
|
358
393
|
overflow-y: auto;
|
|
359
394
|
}.readonly-mode-time-range[data-v-a6cdcc75] .ant-picker {
|
|
360
395
|
display: none;
|
|
361
|
-
}.readonly-mode-time[data-v-
|
|
396
|
+
}.readonly-mode-time[data-v-7b5d160f] .ant-picker {
|
|
362
397
|
display: none;
|
|
363
|
-
}
|
|
364
|
-
.auto-full-width[data-v-887d6c03] {
|
|
365
|
-
width: 100%;
|
|
366
|
-
}
|
|
367
|
-
.auto-full-width[data-v-887d6c03] .ant-picker {
|
|
368
|
-
width: 100% !important;
|
|
369
398
|
}.vf-box-widget[data-v-d52cfec5] {
|
|
370
399
|
width: 100%;
|
|
371
400
|
}
|
|
@@ -461,11 +490,11 @@
|
|
|
461
490
|
.page-template-widget[data-v-dc2a06fa] .addInfoLayout-footer .ant-form-item {
|
|
462
491
|
margin-bottom: 0;
|
|
463
492
|
}
|
|
464
|
-
.loading-wrapper[data-v-
|
|
493
|
+
.loading-wrapper[data-v-039c10e2] {
|
|
465
494
|
min-height: 300px;
|
|
466
495
|
padding: 20px;
|
|
467
496
|
}
|
|
468
|
-
.ant-form .ant-form-item-explain.ant-form-item-explain-connected[data-v-
|
|
497
|
+
.ant-form .ant-form-item-explain.ant-form-item-explain-connected[data-v-039c10e2] {
|
|
469
498
|
display: none;
|
|
470
499
|
}
|
|
471
500
|
/*$vite$:1*/
|
|
@@ -55,7 +55,7 @@ var usePageContext = ({ props }) => {
|
|
|
55
55
|
/**
|
|
56
56
|
* 设置表单JSON数据
|
|
57
57
|
*/
|
|
58
|
-
const
|
|
58
|
+
const setPageJson = async (json) => {
|
|
59
59
|
formJsonObj.value = json || {
|
|
60
60
|
widgetList: [],
|
|
61
61
|
formConfig: {}
|
|
@@ -174,7 +174,7 @@ var usePageContext = ({ props }) => {
|
|
|
174
174
|
return await execHttpFunction(fn, params);
|
|
175
175
|
};
|
|
176
176
|
onMounted(() => {
|
|
177
|
-
if (formJson)
|
|
177
|
+
if (formJson) setPageJson(formJson);
|
|
178
178
|
fieldChangeEventHandler();
|
|
179
179
|
});
|
|
180
180
|
const expose = {
|
|
@@ -192,7 +192,7 @@ var usePageContext = ({ props }) => {
|
|
|
192
192
|
getChildFormRef,
|
|
193
193
|
setPageData,
|
|
194
194
|
setReadMode,
|
|
195
|
-
|
|
195
|
+
setPageJson,
|
|
196
196
|
setLoading,
|
|
197
197
|
formDataModel,
|
|
198
198
|
setFiledValue,
|
|
@@ -57,7 +57,7 @@ var useLowcode = (options = {}) => {
|
|
|
57
57
|
}
|
|
58
58
|
isLoading.value = false;
|
|
59
59
|
formConfig.value = json.formConfig;
|
|
60
|
-
vfdRef.value.
|
|
60
|
+
vfdRef.value.setPageJson(json);
|
|
61
61
|
return json;
|
|
62
62
|
};
|
|
63
63
|
const getComponentJson = async (..._args) => getPageJson(options.formCode);
|
|
@@ -23,7 +23,7 @@ var useWebMCP = (context) => {
|
|
|
23
23
|
var _context$widgetRefLis;
|
|
24
24
|
return Array.from(((_context$widgetRefLis = context.widgetRefList) === null || _context$widgetRefLis === void 0 || (_context$widgetRefLis = _context$widgetRefLis.value) === null || _context$widgetRefLis === void 0 ? void 0 : _context$widgetRefLis.keys()) || []);
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
getPageJson: () => {
|
|
27
27
|
var _context$designer;
|
|
28
28
|
const designer = (_context$designer = context.designer) === null || _context$designer === void 0 ? void 0 : _context$designer.value;
|
|
29
29
|
if (designer) return {
|
|
@@ -32,7 +32,7 @@ var useWebMCP = (context) => {
|
|
|
32
32
|
};
|
|
33
33
|
return null;
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
setPageJson: (formJson) => {
|
|
36
36
|
var _context$designer2;
|
|
37
37
|
const designer = (_context$designer2 = context.designer) === null || _context$designer2 === void 0 ? void 0 : _context$designer2.value;
|
|
38
38
|
if (designer) {
|
package/install.js
CHANGED
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@kp-ui/lowcode-pc-v2",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"module": "index.js",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"vxe-pc-ui": "4.10.29",
|
|
11
|
+
"vxe-table": "4.17.18",
|
|
12
|
+
"vuedraggable": "^4.0.0",
|
|
13
|
+
"bpmn-js": "13.2.0",
|
|
14
|
+
"vue-json-viewer": "^3.0.1",
|
|
15
|
+
"ant-design-vue": "4.2.6",
|
|
16
|
+
"query-string": "^6.14.1",
|
|
17
|
+
"dayjs": "^1.11.7",
|
|
18
|
+
"@kp-ui/tool": "2.14.1",
|
|
19
|
+
"tailwindcss": "3.4.9",
|
|
20
|
+
"vue": "3.5.17",
|
|
21
|
+
"vue-echarts": "^8.0.1",
|
|
22
|
+
"file-saver": "^2.0.5",
|
|
23
|
+
"echarts": "^5.6.0"
|
|
24
|
+
},
|
|
25
|
+
"main": "index.js",
|
|
26
|
+
"types": "types/pc/install.d.ts",
|
|
27
|
+
"sideEffects": [
|
|
28
|
+
"./assets/styles/*",
|
|
29
|
+
"./_virtual/*"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"import": "./install.js",
|
|
34
|
+
"types": "./types/pc/install.d.ts"
|
|
7
35
|
},
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"vxe-table": "4.17.18",
|
|
12
|
-
"vuedraggable": "^4.0.0",
|
|
13
|
-
"bpmn-js": "13.2.0",
|
|
14
|
-
"vue-json-viewer": "^3.0.1",
|
|
15
|
-
"ant-design-vue": "4.2.6",
|
|
16
|
-
"query-string": "^6.14.1",
|
|
17
|
-
"dayjs": "^1.11.7",
|
|
18
|
-
"@kp-ui/tool": "2.14.1",
|
|
19
|
-
"tailwindcss": "3.4.9",
|
|
20
|
-
"vue": "3.5.17",
|
|
21
|
-
"vue-echarts": "^8.0.1",
|
|
22
|
-
"file-saver": "^2.0.5",
|
|
23
|
-
"echarts": "^5.6.0"
|
|
24
|
-
},
|
|
25
|
-
"main": "index.js",
|
|
26
|
-
"types": "types/pc/install.d.ts",
|
|
27
|
-
"sideEffects": [
|
|
28
|
-
"./assets/styles/*",
|
|
29
|
-
"./_virtual/*"
|
|
30
|
-
],
|
|
31
|
-
"exports": {
|
|
32
|
-
".": {
|
|
33
|
-
"import": "./install.js",
|
|
34
|
-
"types": "./types/pc/install.d.ts"
|
|
35
|
-
},
|
|
36
|
-
"./style": "./assets/styles/style.css",
|
|
37
|
-
"./styles/*": "./assets/styles/*"
|
|
38
|
-
}
|
|
36
|
+
"./style": "./assets/styles/style.css",
|
|
37
|
+
"./styles/*": "./assets/styles/*"
|
|
38
|
+
}
|
|
39
39
|
}
|
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-039c10e2"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { render_default as default };
|
|
@@ -37,7 +37,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
37
37
|
registerToRefList(formWidgetId);
|
|
38
38
|
});
|
|
39
39
|
watchEffect(() => {
|
|
40
|
-
if (props.formJson) formContext.
|
|
40
|
+
if (props.formJson) formContext.setPageJson(props.formJson);
|
|
41
41
|
});
|
|
42
42
|
__expose({
|
|
43
43
|
formWidgetId,
|
|
@@ -2,6 +2,6 @@ import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_
|
|
|
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/widgets/base/time/index.vue
|
|
5
|
-
var time_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var time_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7b5d160f"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { time_default as default };
|
|
@@ -19,7 +19,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
19
19
|
const timeProps = computed(() => {
|
|
20
20
|
var _props$widget$props, _props$widget$props2;
|
|
21
21
|
return {
|
|
22
|
-
...__props.widget.props
|
|
22
|
+
...__props.widget.props,
|
|
23
23
|
inputReadOnly: (_props$widget$props = __props.widget.props) === null || _props$widget$props === void 0 ? void 0 : _props$widget$props.readonly,
|
|
24
24
|
allowClear: (_props$widget$props2 = __props.widget.props) === null || _props$widget$props2 === void 0 ? void 0 : _props$widget$props2.clearable,
|
|
25
25
|
format: __props.widget.props.format
|