star-horse-lowcode 2.7.51 → 2.7.52

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
@@ -69073,7 +69073,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
69073
69073
  width: { type: String, default: "24px" },
69074
69074
  height: { type: String, default: "22px" },
69075
69075
  marginLeft: { type: String, default: "0.1em" },
69076
- marginRight: { type: String, default: "0.1em" },
69076
+ marginRight: { type: String, default: "0.2em" },
69077
69077
  borderRadius: { type: String, default: "5px" },
69078
69078
  boorderPadding: { type: String, default: "3px" },
69079
69079
  // 图标是否有边框
@@ -69084,15 +69084,15 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
69084
69084
  },
69085
69085
  setup(__props) {
69086
69086
  useCssVars((_ctx) => ({
69087
- "6fea7213": __props.cursor,
69088
- "15348369": __props.width,
69089
- "778cefe4": __props.height,
69090
- "141d8506": __props.color,
69091
- "82c66c04": __props.size,
69092
- "22d6cb12": __props.marginLeft,
69093
- "3858f871": __props.marginRight,
69094
- "197a98db": __props.borderRadius,
69095
- "ab5f2926": __props.boorderPadding
69087
+ "56207806": __props.cursor,
69088
+ "f00719d4": __props.width,
69089
+ "5dc2f5d7": __props.height,
69090
+ "f235169a": __props.color,
69091
+ "4671b0b1": __props.size,
69092
+ "51e29f85": __props.marginLeft,
69093
+ "2a709b44": __props.marginRight,
69094
+ "9639c6e4": __props.borderRadius,
69095
+ "0da6ce60": __props.boorderPadding
69096
69096
  }));
69097
69097
  const props = __props;
69098
69098
  const iconName = computed(() => `sh-${props.iconClass}`);
@@ -69124,7 +69124,7 @@ const _export_sfc = (sfc, props) => {
69124
69124
  return target;
69125
69125
  };
69126
69126
 
69127
- const __unplugin_components_0$a = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["__scopeId", "data-v-3209fcce"]]);
69127
+ const __unplugin_components_0$a = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["__scopeId", "data-v-2fe1f17f"]]);
69128
69128
 
69129
69129
  const StarHorseIcon = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
69130
69130
  __proto__: null,
@@ -69681,6 +69681,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
69681
69681
  if (props.item.preps) {
69682
69682
  filterProperties(props.item.preps, exclusions);
69683
69683
  props.item.preps["readonly"] = props.item?.readonly || props.source == 3;
69684
+ props.item.preps["starHorseFieldSource"] = props.source;
69684
69685
  let keys = Object.keys(props.item.preps);
69685
69686
  for (let key in keys) {
69686
69687
  let val = props.item.preps[key];
@@ -69804,7 +69805,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
69804
69805
 
69805
69806
  /* unplugin-vue-components disabled */
69806
69807
 
69807
- const __unplugin_components_0$9 = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["__scopeId", "data-v-a989bbf0"]]);
69808
+ const __unplugin_components_0$9 = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["__scopeId", "data-v-a1b31b43"]]);
69808
69809
 
69809
69810
  const StarHorseItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
69810
69811
  __proto__: null,
@@ -135699,7 +135700,7 @@ const _hoisted_5$9 = {
135699
135700
  };
135700
135701
  const _hoisted_6$4 = { class: "tree-content" };
135701
135702
  const _hoisted_7$3 = { class: "menu-title" };
135702
- const _hoisted_8$2 = { class: "name" };
135703
+ const _hoisted_8$2 = { class: "name flex items-center" };
135703
135704
  const _hoisted_9 = {
135704
135705
  key: 0,
135705
135706
  class: "btn"
@@ -135953,10 +135954,9 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
135953
135954
  const _component_el_pagination = ElPagination;
135954
135955
  const _component_el_card = ElCard;
135955
135956
  return openBlock(), createBlock(_component_el_card, {
135956
- class: "inner_content",
135957
+ class: "inner_content h-full",
135957
135958
  style: normalizeStyle({
135958
135959
  width: unref(collapse) ? "60px" : "unset",
135959
- height: "100%",
135960
135960
  padding: "unset"
135961
135961
  })
135962
135962
  }, {
@@ -136077,6 +136077,9 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
136077
136077
  default: withCtx(({ node, data }) => [
136078
136078
  createElementVNode("div", _hoisted_7$3, [
136079
136079
  createElementVNode("div", _hoisted_8$2, [
136080
+ createVNode(_component_star_horse_icon, {
136081
+ "icon-class": data.children?.length > 0 ? "folder" : "document"
136082
+ }, null, 8, ["icon-class"]),
136080
136083
  createTextVNode(toDisplayString(node.label) + " ", 1),
136081
136084
  __props.showCode ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
136082
136085
  createTextVNode(" (" + toDisplayString(data["code"] || data[__props.preps.code || __props.preps.value || "value"] || "") + ") ", 1)
@@ -136156,7 +136159,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
136156
136159
 
136157
136160
  /* unplugin-vue-components disabled */
136158
136161
 
136159
- const StarHorseTree = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-d1e821b2"]]);
136162
+ const StarHorseTree = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-6ffd7d08"]]);
136160
136163
 
136161
136164
  const StarHorseTree$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
136162
136165
  __proto__: null,
@@ -138723,9 +138726,10 @@ const buttonAction = (context, emits, formData, code, evtName = "click") => {
138723
138726
  const checkIsDisabled = (attrs) => {
138724
138727
  const { field } = attrs;
138725
138728
  const fieldName = field.fieldName;
138726
- const isExplicitlyDisabled = attrs?.disabled || attrs.editDisabled || field.disabled || field.preps?.disabled || field.editDisabled || field.preps?.editDisabled;
138727
- const isImplicitlyDisabled = !attrs?.formData?.[`_${fieldName}Editable`] && field?.preps?.disabled === "Y";
138728
- return isExplicitlyDisabled === true || isImplicitlyDisabled === true;
138729
+ const isExplicitlyDisabled = attrs?.disabled || field.disabled || field.preps?.disabled;
138730
+ const eidtDidsabled = (attrs.editDisabled || field.editDisabled || field.preps?.editDisabled) && field.preps?.starHorseFieldSource != 1;
138731
+ const isImplicitlyDisabled = !attrs?.formData?.[`_${fieldName}Editable`] && field?.preps?.disabled;
138732
+ return eidtDidsabled === true || isExplicitlyDisabled === true || isImplicitlyDisabled === true;
138729
138733
  };
138730
138734
 
138731
138735
  const _sfc_main$17 = /* @__PURE__ */ defineComponent({
@@ -142509,8 +142513,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
142509
142513
  "date-format": "YYYY-MM-DD",
142510
142514
  "time-format": "HH:mm"
142511
142515
  }, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
142516
+ onChange: _cache[0] || (_cache[0] = ($event) => itemAction("change")),
142512
142517
  modelValue: formData.value[__props.field.fieldName],
142513
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value[__props.field.fieldName] = $event)
142518
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formData.value[__props.field.fieldName] = $event)
142514
142519
  }), null, 16, ["fid", "disabled", "format", "value-format", "modelValue"])
142515
142520
  ]),
142516
142521
  _: 1
@@ -142521,7 +142526,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
142521
142526
 
142522
142527
  /* unplugin-vue-components disabled */
142523
142528
 
142524
- const datetimeItem = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-82e8a02c"]]);
142529
+ const datetimeItem = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-c12022cd"]]);
142525
142530
 
142526
142531
  const datetimeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
142527
142532
  __proto__: null,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "star-horse-lowcode",
3
3
  "private": false,
4
4
  "author": "l_1019@163.com",
5
- "version": "2.7.51",
5
+ "version": "2.7.52",
6
6
  "type": "module",
7
7
  "description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
8
8
  "keywords": [
@@ -52,16 +52,12 @@
52
52
  "@vueup/vue-quill": "^1.2.0",
53
53
  "axios": "^1.10.0",
54
54
  "element-plus": "^2.10.4",
55
- "glob": "^11.0.3",
56
55
  "jquery": "^3.7.1",
57
56
  "json5": "^2.2.3",
58
- "less": "^4.3.0",
59
- "less-loader": "^12.3.0",
60
- "md-editor-v3": "^5.8.0",
57
+ "md-editor-v3": "^5.8.1",
61
58
  "path": "^0.12.7",
62
59
  "pinia": "^3.0.3",
63
60
  "pinia-plugin-persistedstate": "^4.4.1",
64
- "process": "^0.11.10",
65
61
  "qrcode.vue": "^3.6.0",
66
62
  "quill-image-uploader": "^1.3.0",
67
63
  "smooth-signature": "^1.1.0",
@@ -73,7 +69,7 @@
73
69
  "uuid": "^11.1.0",
74
70
  "vite-plugin-dts": "^4.5.4",
75
71
  "vue": "^3.5.17",
76
- "vue-i18n": "^11.1.9",
72
+ "vue-i18n": "^11.1.10",
77
73
  "vue-m-message": "^4.0.2",
78
74
  "vue-router": "^4.5.1",
79
75
  "vue3-barcode": "^1.0.1",
@@ -88,9 +84,10 @@
88
84
  "@vitejs/plugin-vue": "^6.0.0",
89
85
  "sass-embedded": "^1.89.2",
90
86
  "terser": "^5.43.1",
91
- "vite": "^7.0.4"
87
+ "vite": "^7.0.5"
92
88
  },
93
89
  "engines": {
94
90
  "node": ">=20.13.0"
95
- }
91
+ },
92
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
96
93
  }