star-horse-lowcode 2.7.8 → 2.7.10

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/index.es.js CHANGED
@@ -57575,11 +57575,11 @@ async function generateDeviceId(userIp) {
57575
57575
  });
57576
57576
  const data = { browserFinger, hardwareInfo, userIp };
57577
57577
  let deviceId = btoa(JSON.stringify(data));
57578
- localStorage.setItem("deviceId", deviceId);
57578
+ sessionStorage.setItem("deviceId", deviceId);
57579
57579
  return deviceId;
57580
57580
  }
57581
57581
  function getFingerId() {
57582
- return localStorage.getItem("deviceId");
57582
+ return sessionStorage.getItem("deviceId");
57583
57583
  }
57584
57584
 
57585
57585
  var ServiceEnums = /* @__PURE__ */ ((ServiceEnums2) => {
@@ -95637,7 +95637,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
95637
95637
  primaryKey: { type: [String, Object] },
95638
95638
  // 数据索引
95639
95639
  dataIndex: { type: Number, default: -1 },
95640
- bareFlag: { type: Boolean, default: false },
95640
+ bareFlag: { type: Object, default: false },
95641
95641
  batchName: { type: String, default: "" },
95642
95642
  compSize: { type: String, default: Config.compSize },
95643
95643
  isSearch: { type: Boolean, default: false },
@@ -95783,7 +95783,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
95783
95783
  field.value.preps["inactiveText"] = props.item?.inactiveText || "否";
95784
95784
  field.value.preps["activeValue"] = props.item?.activeValue || "Y";
95785
95785
  field.value.preps["inactiveValue"] = props.item?.inactiveValue || "N";
95786
- } else if (itemType.value == "comp") {
95786
+ } else if (itemType.value == "usercomp") {
95787
95787
  field.value.preps["params"] = props.item?.params || {};
95788
95788
  }
95789
95789
  field.value.preps["multiple"] = props.item?.multiple;
@@ -95869,7 +95869,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
95869
95869
  });
95870
95870
  return (_ctx, _cache) => {
95871
95871
  const _component_star_horse_item = resolveComponent("star-horse-item", true);
95872
- return __props.bareFlag || field.value.preps.headerFlag == "Y" ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
95872
+ return __props.bareFlag === true || __props.bareFlag == "Y" || field.value.preps.headerFlag == "Y" ? (openBlock(), createElementBlock("div", _hoisted_1$R, [
95873
95873
  (openBlock(), createBlock(resolveDynamicComponent((dataForm.value && dataForm.value["_" + field.value.preps.name + "Type"] || itemType.value) + "-item"), {
95874
95874
  id: randId.value,
95875
95875
  onSelfFunc: actionDispatcher,
@@ -95953,7 +95953,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
95953
95953
  }
95954
95954
  });
95955
95955
 
95956
- const StarHorseItem = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["__scopeId", "data-v-d74f86fa"]]);
95956
+ const StarHorseItem = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["__scopeId", "data-v-75323739"]]);
95957
95957
 
95958
95958
  const StarHorseItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
95959
95959
  __proto__: null,
@@ -97185,7 +97185,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
97185
97185
  const _component_star_horse_item = StarHorseItem;
97186
97186
  const _component_el_tooltip = ElTooltip;
97187
97187
  return openBlock(), createElementBlock(Fragment, null, [
97188
- __props.item.type == "comp" ? (openBlock(), createBlock(_component_star_horse_item, {
97188
+ __props.item.type == "usercomp" ? (openBlock(), createBlock(_component_star_horse_item, {
97189
97189
  key: 0,
97190
97190
  primaryKey: "id",
97191
97191
  dataForm: dataForm.value,
@@ -102566,7 +102566,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
102566
102566
  return (_ctx, _cache) => {
102567
102567
  const _component_star_horse_item = StarHorseItem;
102568
102568
  const _component_el_form_item = ElFormItem;
102569
- return __props.item.type == "comp" || __props.item.type == "button" ? (openBlock(), createBlock(_component_star_horse_item, {
102569
+ return __props.item.type == "usercomp" || __props.item.type == "button" ? (openBlock(), createBlock(_component_star_horse_item, {
102570
102570
  key: 0,
102571
102571
  primaryKey: __props.primaryKey,
102572
102572
  dataForm: dataForm.value,
@@ -103156,7 +103156,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
103156
103156
  default: withCtx(() => [
103157
103157
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.item, (sitem) => {
103158
103158
  return openBlock(), createElementBlock(Fragment, null, [
103159
- sitem.type != "button" && sitem.type != "comp" ? (openBlock(), createBlock(_component_el_col, {
103159
+ sitem.type != "button" && sitem.type != "usercomp" ? (openBlock(), createBlock(_component_el_col, {
103160
103160
  key: 0,
103161
103161
  span: sitem.colspan || sitem.preps?.colspan || 24 / __props.item.length
103162
103162
  }, {
@@ -109518,7 +109518,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
109518
109518
  formItem: { type: Object, required: true },
109519
109519
  isDesign: { type: Boolean, default: true },
109520
109520
  //是否需要css 修饰
109521
- bareFlag: { type: Boolean, default: false }
109521
+ bareFlag: { type: Object, default: false }
109522
109522
  },
109523
109523
  setup(__props) {
109524
109524
  const props = __props;
@@ -109601,9 +109601,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
109601
109601
  ]),
109602
109602
  _: 1
109603
109603
  }, 8, ["dialog-visible"]),
109604
- __props.bareFlag ? (openBlock(), createElementBlock("div", {
109604
+ __props.bareFlag === true || __props.bareFlag == "Y" ? (openBlock(), createElementBlock("div", {
109605
109605
  key: 0,
109606
- class: "item-info",
109606
+ class: normalizeClass({ "item-info": __props.formItem.preps?.itemType != "usercomp" }),
109607
109607
  style: normalizeStyle({ margin: __props.formItem.preps?.itemType == "button" ? "5px auto" : "unset" })
109608
109608
  }, [
109609
109609
  __props.formItem.preps?.helpMsg ? (openBlock(), createBlock(_component_help, {
@@ -109611,7 +109611,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
109611
109611
  message: __props.formItem.preps?.helpMsg
109612
109612
  }, null, 8, ["message"])) : createCommentVNode("", true),
109613
109613
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
109614
- ], 4)) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
109614
+ ], 6)) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
109615
109615
  __props.isDesign ? (openBlock(), createElementBlock("div", {
109616
109616
  key: 0,
109617
109617
  class: normalizeClass({
@@ -109640,7 +109640,10 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
109640
109640
  _: 3
109641
109641
  }, 8, ["size", "label", "prop", "required", "rules"])) : (openBlock(), createElementBlock("div", {
109642
109642
  key: 1,
109643
- class: "bare-item item-info",
109643
+ class: normalizeClass({
109644
+ "bare-item": true,
109645
+ "item-info": __props.formItem.preps?.itemType != "usercomp"
109646
+ }),
109644
109647
  style: normalizeStyle({ margin: __props.formItem?.itemType == "button" ? "5px auto" : "unset" })
109645
109648
  }, [
109646
109649
  __props.formItem.preps?.helpMsg ? (openBlock(), createBlock(_component_help, {
@@ -109648,7 +109651,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
109648
109651
  message: __props.formItem.preps?.helpMsg
109649
109652
  }, null, 8, ["message"])) : createCommentVNode("", true),
109650
109653
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
109651
- ], 4)),
109654
+ ], 6)),
109652
109655
  unref(isEdit) && unref(currentItemId) == __props.formItem?.preps.id ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
109653
109656
  __props.parentField?.itemType ? (openBlock(), createBlock(_component_el_tooltip, {
109654
109657
  key: 0,
@@ -109761,7 +109764,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
109761
109764
  }
109762
109765
  });
109763
109766
 
109764
- const __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-f2a579b2"]]);
109767
+ const __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-a153e7de"]]);
109765
109768
 
109766
109769
  const starhorseFormItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
109767
109770
  __proto__: null,
@@ -110331,7 +110334,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
110331
110334
  fieldList: {
110332
110335
  fieldList: _ctx.field.preps?.fieldList
110333
110336
  }
110334
- }, null, 8, ["fieldList"])) : _ctx.field.preps?.viewType == "comp" ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.field.preps?.componentName), {
110337
+ }, null, 8, ["fieldList"])) : _ctx.field.preps?.viewType == "usercomp" ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.field.preps?.componentName), {
110335
110338
  key: 1,
110336
110339
  ref: "btnCompRef",
110337
110340
  params: _ctx.field.preps?.params
@@ -110377,7 +110380,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
110377
110380
  }, 8, ["isDesign", "bareFlag", "form-item", "parentField"])
110378
110381
  ], 64);
110379
110382
  }
110380
- const buttonItem = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$C], ["__scopeId", "data-v-259e1c67"]]);
110383
+ const buttonItem = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$C], ["__scopeId", "data-v-17dd4ad1"]]);
110381
110384
 
110382
110385
  const buttonItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
110383
110386
  __proto__: null,
@@ -186321,7 +186324,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
186321
186324
  let query = getUserInfo()?.idUsersinfo;
186322
186325
  await postRequest("/system-config/system/informationsEntity/getUserSystem/" + query, []).then((res) => {
186323
186326
  dataList.value = res?.data?.data;
186324
- console.log(dataList.value.length);
186325
186327
  }).catch((err) => {
186326
186328
  console.log(err);
186327
186329
  });
@@ -186348,7 +186350,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
186348
186350
  }
186349
186351
  });
186350
186352
 
186351
- const StarHorseHmenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5abf251e"]]);
186353
+ const StarHorseHmenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f9aad1c3"]]);
186352
186354
 
186353
186355
  const StarHorseHmenu$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
186354
186356
  __proto__: null,