@kp-ui/lowcode-pc-v2 0.0.12 → 0.0.14

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.
@@ -135,20 +135,21 @@
135
135
  border-radius: 4px;
136
136
  color: #333;
137
137
  }
138
- .layout-render-wrapper[data-v-976bc2cb] {
138
+ .layout-render-wrapper[data-v-cc552ab2] {
139
139
  flex: 1;
140
140
  width: 100%;
141
141
  height: 100%;
142
+ max-height: 100%;
142
143
  min-height: 0;
143
144
  overflow-y: auto;
144
145
  overflow-x: hidden;
145
- background: var(--ee95b64a);
146
+ background: var(--7f03c4fc);
146
147
  }
147
- .loading-wrapper[data-v-976bc2cb] {
148
+ .loading-wrapper[data-v-cc552ab2] {
148
149
  min-height: 300px;
149
150
  padding: 20px;
150
151
  }
151
- .ant-form .ant-form-item-explain.ant-form-item-explain-connected[data-v-976bc2cb] {
152
+ .ant-form .ant-form-item-explain.ant-form-item-explain-connected[data-v-cc552ab2] {
152
153
  display: none;
153
154
  }
154
155
  .field-wrapper[data-v-254940bd] {
@@ -1,5 +1,6 @@
1
1
  import { Fragment, createBlock, createElementBlock, defineComponent, inject, mergeModels, normalizeStyle, openBlock, provide, renderList, resolveDynamicComponent, toRef, unref, useModel } from "vue";
2
2
  //#region ../core/src/components/common/render/RenderWidgetList.vue?vue&type=script&setup=true&lang.ts
3
+ var _hoisted_1 = ["id"];
3
4
  var RenderWidgetList_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
4
5
  inheritAttrs: false,
5
6
  name: "RenderWidgetList",
@@ -25,15 +26,21 @@ var RenderWidgetList_vue_vue_type_script_setup_true_lang_default = /* @__PURE__
25
26
  setup(__props) {
26
27
  const props = __props;
27
28
  const getWidget = inject("getWidget", (widget) => {});
29
+ const getWrapperStyle = (widget, index) => {
30
+ var _props$itemStyle, _props$itemStyle2;
31
+ return (_props$itemStyle = (_props$itemStyle2 = props.itemStyle) === null || _props$itemStyle2 === void 0 ? void 0 : _props$itemStyle2.call(props, widget, index)) !== null && _props$itemStyle !== void 0 ? _props$itemStyle : { display: "contents" };
32
+ };
28
33
  if (typeof props.subFormRowIndex === "number") provide("subFormRowIndex", toRef(props.subFormRowIndex));
29
34
  const list = useModel(__props, "list");
30
35
  return (_ctx, _cache) => {
31
36
  return openBlock(true), createElementBlock(Fragment, null, renderList(list.value, (widget, index) => {
32
- var _ctx$itemStyle;
33
- return openBlock(), createBlock(resolveDynamicComponent(unref(getWidget)(widget)), {
37
+ return openBlock(), createElementBlock("div", {
34
38
  key: `${widget.id}_${index}`,
35
- id: widget.id,
36
- style: normalizeStyle([widget.style, (_ctx$itemStyle = _ctx.itemStyle) === null || _ctx$itemStyle === void 0 ? void 0 : _ctx$itemStyle.call(_ctx, widget, index)]),
39
+ id: _ctx.itemStyle ? widget.id : void 0,
40
+ style: normalizeStyle(getWrapperStyle(widget, index))
41
+ }, [(openBlock(), createBlock(resolveDynamicComponent(unref(getWidget)(widget)), {
42
+ id: _ctx.itemStyle ? void 0 : widget.id,
43
+ style: normalizeStyle(widget.style),
37
44
  widget,
38
45
  field: widget,
39
46
  index
@@ -43,7 +50,7 @@ var RenderWidgetList_vue_vue_type_script_setup_true_lang_default = /* @__PURE__
43
50
  "widget",
44
51
  "field",
45
52
  "index"
46
- ]);
53
+ ]))], 12, _hoisted_1);
47
54
  }), 128);
48
55
  };
49
56
  }
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
1
  {
2
- "name": "@kp-ui/lowcode-pc-v2",
3
- "version": "0.0.12",
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"
2
+ "name": "@kp-ui/lowcode-pc-v2",
3
+ "version": "0.0.14",
4
+ "publishConfig": {
5
+ "access": "public",
6
+ "registry": "https://registry.npmjs.org/"
35
7
  },
36
- "./style": "./assets/styles/style.css",
37
- "./styles/*": "./assets/styles/*"
38
- }
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"
35
+ },
36
+ "./style": "./assets/styles/style.css",
37
+ "./styles/*": "./assets/styles/*"
38
+ }
39
39
  }
@@ -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-976bc2cb"]]);
5
+ var render_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-cc552ab2"]]);
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) => ({ "ee95b64a": unref(formConfig).backgroundColor }));
31
+ useCssVars((_ctx) => ({ "7f03c4fc": unref(formConfig).backgroundColor }));
32
32
  const debug = computed(() => getLocat().debug === "1");
33
33
  const debugVisible = ref(false);
34
34
  const props = __props;