star-horse-lowcode 2.7.59 → 2.7.60

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
@@ -133189,7 +133189,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
133189
133189
  });
133190
133190
  };
133191
133191
  const cellClick = (row, column) => {
133192
- if (!props.cellEditable || props.item["disabled"] || props.item["editDisabled"]) {
133192
+ if (!props.cellEditable || props.item.preps?.["disabled"] || props.item.preps?.["editDisabled"]) {
133193
133193
  return;
133194
133194
  }
133195
133195
  row["isSelected"] = true;
@@ -133278,12 +133278,13 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
133278
133278
  reference: withCtx(() => [
133279
133279
  createVNode(_component_star_horse_item, {
133280
133280
  dataForm: scope.row,
133281
+ "onUpdate:dataForm": ($event) => scope.row = $event,
133281
133282
  item: __props.item,
133282
133283
  column: scope.column,
133283
133284
  batchName: __props.batchName,
133284
133285
  bareFlag: true,
133285
133286
  compSize: __props.compSize
133286
- }, null, 8, ["dataForm", "item", "column", "batchName", "compSize"])
133287
+ }, null, 8, ["dataForm", "onUpdate:dataForm", "item", "column", "batchName", "compSize"])
133287
133288
  ]),
133288
133289
  default: withCtx(() => [
133289
133290
  compInfo.value.name ? (openBlock(), createBlock(resolveDynamicComponent(unref(createComponent)(compInfo.value)), {
@@ -133293,17 +133294,15 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
133293
133294
  }, null, 8, ["item", "data"])) : createCommentVNode("", true)
133294
133295
  ]),
133295
133296
  _: 2
133296
- }, 1032, ["placement"])) : (openBlock(), createBlock(_component_star_horse_item, mergeProps({
133297
+ }, 1032, ["placement"])) : (openBlock(), createBlock(_component_star_horse_item, {
133297
133298
  key: 1,
133298
133299
  dataForm: scope.row,
133300
+ "onUpdate:dataForm": ($event) => scope.row = $event,
133299
133301
  item: __props.item,
133300
133302
  column: scope.column,
133301
133303
  batchName: __props.batchName,
133302
- compSize: __props.compSize,
133303
- style: { ...__props.item.preps.styles }
133304
- }, {
133305
- [toHandlerKey(__props.item.preps?.compAction)]: ($event) => __props.item.preps?.compFunc(scope.row)
133306
- }), null, 16, ["dataForm", "item", "column", "batchName", "compSize", "style"]))
133304
+ compSize: __props.compSize
133305
+ }, null, 8, ["dataForm", "onUpdate:dataForm", "item", "column", "batchName", "compSize"]))
133307
133306
  ], 64)) : prototypeCheck(__props.item) ? (openBlock(), createBlock(resolveDynamicComponent(
133308
133307
  (__props.item.listPrototypeDisplay === true || __props.item.preps?.listPrototypeDisplay === true ? __props.item.type || "input" : __props.item.listPrototypeDisplay || __props.item.preps?.listPrototypeDisplay) + "-item"
133309
133308
  ), {
@@ -133313,9 +133312,10 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
133313
133312
  field: createPreps(__props.item),
133314
133313
  formData: scope.row
133315
133314
  }, null, 8, ["callBack", "field", "formData"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
133316
- scope.row.isSelected && (scope.row.selectName == __props.item.hideName || scope.row.selectName == __props.item.fieldName) ? (openBlock(), createBlock(_component_star_horse_item, {
133315
+ scope.row.isSelected && scope.row.selectName == scope.column.property ? (openBlock(), createBlock(_component_star_horse_item, {
133317
133316
  key: 0,
133318
133317
  dataForm: scope.row,
133318
+ "onUpdate:dataForm": ($event) => scope.row = $event,
133319
133319
  item: __props.item,
133320
133320
  column: scope.column,
133321
133321
  batchName: __props.batchName,
@@ -133323,7 +133323,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
133323
133323
  compSize: __props.compSize,
133324
133324
  onBlur: blurEvent,
133325
133325
  source: __props.source
133326
- }, null, 8, ["dataForm", "item", "column", "batchName", "compSize", "source"])) : (openBlock(), createElementBlock("p", {
133326
+ }, null, 8, ["dataForm", "onUpdate:dataForm", "item", "column", "batchName", "compSize", "source"])) : (openBlock(), createElementBlock("p", {
133327
133327
  key: 1,
133328
133328
  onClick: ($event) => cellClick(scope.row, scope.column)
133329
133329
  }, toDisplayString(currentDataFormat(scope)), 9, _hoisted_1$K))
@@ -133337,7 +133337,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
133337
133337
 
133338
133338
  /* unplugin-vue-components disabled */
133339
133339
 
133340
- const __unplugin_components_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-f034861b"]]);
133340
+ const __unplugin_components_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-558161e3"]]);
133341
133341
 
133342
133342
  const StarHorseTableColumn = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
133343
133343
  __proto__: null,
@@ -139111,13 +139111,15 @@ const initCompCallEvent = (props, emits, formData) => {
139111
139111
  const doInitCallEvent = (props, emits, formData) => {
139112
139112
  const events = Object.keys(props.field.actions || {});
139113
139113
  events?.forEach((event) => {
139114
- allAction(
139115
- props,
139116
- emits,
139117
- formData,
139118
- event,
139119
- true
139120
- );
139114
+ if (props.field.preps?.starHorseFieldSource != 5) {
139115
+ allAction(
139116
+ props,
139117
+ emits,
139118
+ formData,
139119
+ event,
139120
+ true
139121
+ );
139122
+ }
139121
139123
  });
139122
139124
  };
139123
139125
 
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.59",
5
+ "version": "2.7.60",
6
6
  "type": "module",
7
7
  "description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
8
8
  "keywords": [
@@ -26,7 +26,11 @@
26
26
  "module": "dist/index.es.js",
27
27
  "types": "dist/types/index.d.ts",
28
28
  "files": [
29
- "dist"
29
+ "dist",
30
+ "!src",
31
+ "!.git",
32
+ "!node_modules",
33
+ "!.vite-inspect"
30
34
  ],
31
35
  "exports": {
32
36
  ".": {
@@ -98,7 +102,7 @@
98
102
  "@types/uuid": "^10.0.0",
99
103
  "@typescript-eslint/eslint-plugin": "^8.38.0",
100
104
  "@typescript-eslint/parser": "^8.38.0",
101
- "@vitejs/plugin-vue": "^6.0.0",
105
+ "@vitejs/plugin-vue": "^6.0.1",
102
106
  "eslint": "^9.32.0",
103
107
  "prettier": "^3.6.2",
104
108
  "eslint-config-prettier": "^10.1.8",