star-horse-lowcode 2.7.45 → 2.7.46

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
@@ -66285,41 +66285,6 @@ function getFingerId() {
66285
66285
  return sessionStorage.getItem("deviceId");
66286
66286
  }
66287
66287
 
66288
- /*!
66289
- * vue-router v4.5.1
66290
- * (c) 2025 Eduardo San Martin Morote
66291
- * @license MIT
66292
- */
66293
- var NavigationType;
66294
- (function(NavigationType2) {
66295
- NavigationType2["pop"] = "pop";
66296
- NavigationType2["push"] = "push";
66297
- })(NavigationType || (NavigationType = {}));
66298
- var NavigationDirection;
66299
- (function(NavigationDirection2) {
66300
- NavigationDirection2["back"] = "back";
66301
- NavigationDirection2["forward"] = "forward";
66302
- NavigationDirection2["unknown"] = "";
66303
- })(NavigationDirection || (NavigationDirection = {}));
66304
- Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
66305
- var NavigationFailureType;
66306
- (function(NavigationFailureType2) {
66307
- NavigationFailureType2[NavigationFailureType2["aborted"] = 4] = "aborted";
66308
- NavigationFailureType2[NavigationFailureType2["cancelled"] = 8] = "cancelled";
66309
- NavigationFailureType2[NavigationFailureType2["duplicated"] = 16] = "duplicated";
66310
- })(NavigationFailureType || (NavigationFailureType = {}));
66311
- Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
66312
- Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
66313
- const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
66314
- const routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
66315
- Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
66316
- function useRouter() {
66317
- return inject(routerKey);
66318
- }
66319
- function useRoute(_name) {
66320
- return inject(routeLocationKey);
66321
- }
66322
-
66323
66288
  const userStore = useUserInfoStore(piniaInstance);
66324
66289
  const service = axios.create({
66325
66290
  baseURL: "/",
@@ -66344,7 +66309,7 @@ service.interceptors.request.use(
66344
66309
  }
66345
66310
  );
66346
66311
  function getMenuId() {
66347
- const router = useRouter() ?? window.__hostRouter__;
66312
+ const router = window.__hostRouter__;
66348
66313
  const meta = router?.currentRoute?.value?.meta;
66349
66314
  let menuId = meta?.menuId;
66350
66315
  if (!menuId) {
@@ -93079,9 +93044,14 @@ const batchModifyAction = (items, val, fieldName) => {
93079
93044
  }
93080
93045
  }
93081
93046
  };
93082
- function createComponent(compInfo, app) {
93083
- !app && console.log("app is null");
93084
- return app?.component(compInfo.name, {
93047
+ function createComponent(compInfo) {
93048
+ const app = __starHorseHostApp__;
93049
+ !app && console.log("app is null,please define __starHorseHostApp__");
93050
+ const existingComponent = app.component(compInfo.name);
93051
+ if (existingComponent) {
93052
+ return compInfo.name;
93053
+ }
93054
+ app?.component(compInfo.name, {
93085
93055
  components: compInfo.components || {},
93086
93056
  template: compInfo.template,
93087
93057
  data: () => compInfo.data || {},
@@ -93094,6 +93064,7 @@ function createComponent(compInfo, app) {
93094
93064
  onActivated: compInfo.onActivated,
93095
93065
  onDeactivated: compInfo.onDeactivated
93096
93066
  });
93067
+ return compInfo.name;
93097
93068
  }
93098
93069
  function removeEmptyCondition(condition) {
93099
93070
  const params = [];
@@ -93195,6 +93166,41 @@ const useSelfOperationStore = defineStore("selfOperation", () => {
93195
93166
  };
93196
93167
  });
93197
93168
 
93169
+ /*!
93170
+ * vue-router v4.5.1
93171
+ * (c) 2025 Eduardo San Martin Morote
93172
+ * @license MIT
93173
+ */
93174
+ var NavigationType;
93175
+ (function(NavigationType2) {
93176
+ NavigationType2["pop"] = "pop";
93177
+ NavigationType2["push"] = "push";
93178
+ })(NavigationType || (NavigationType = {}));
93179
+ var NavigationDirection;
93180
+ (function(NavigationDirection2) {
93181
+ NavigationDirection2["back"] = "back";
93182
+ NavigationDirection2["forward"] = "forward";
93183
+ NavigationDirection2["unknown"] = "";
93184
+ })(NavigationDirection || (NavigationDirection = {}));
93185
+ Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
93186
+ var NavigationFailureType;
93187
+ (function(NavigationFailureType2) {
93188
+ NavigationFailureType2[NavigationFailureType2["aborted"] = 4] = "aborted";
93189
+ NavigationFailureType2[NavigationFailureType2["cancelled"] = 8] = "cancelled";
93190
+ NavigationFailureType2[NavigationFailureType2["duplicated"] = 16] = "duplicated";
93191
+ })(NavigationFailureType || (NavigationFailureType = {}));
93192
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
93193
+ Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
93194
+ const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
93195
+ const routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
93196
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
93197
+ function useRouter() {
93198
+ return inject(routerKey);
93199
+ }
93200
+ function useRoute(_name) {
93201
+ return inject(routeLocationKey);
93202
+ }
93203
+
93198
93204
  const userOperation$1 = useSelfOperationStore(piniaInstance);
93199
93205
  const userFunction = (code, context, formData) => {
93200
93206
  if (!code) {
@@ -94012,10 +94018,9 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
94012
94018
  isSearch: __props.isSearch,
94013
94019
  bareFlag: __props.bareFlag,
94014
94020
  field: __props.item,
94015
- dataIndex: __props.dataIndex,
94016
94021
  formData: dataForm.value,
94017
94022
  "onUpdate:formData": _cache[0] || (_cache[0] = ($event) => dataForm.value = $event)
94018
- }, null, 40, ["isDesign", "isSearch", "bareFlag", "field", "dataIndex", "formData"])),
94023
+ }, null, 40, ["isDesign", "isSearch", "bareFlag", "field", "formData"])),
94019
94024
  __props.item.brotherNodes ? (openBlock(), createElementBlock("div", _hoisted_1$V)) : createCommentVNode("", true),
94020
94025
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.item.brotherNodes, (temp, key) => {
94021
94026
  return openBlock(), createElementBlock(Fragment, {
@@ -94042,7 +94047,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
94042
94047
 
94043
94048
  /* unplugin-vue-components disabled */
94044
94049
 
94045
- const __unplugin_components_0$a = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["__scopeId", "data-v-28b3eb5b"]]);
94050
+ const __unplugin_components_0$a = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["__scopeId", "data-v-b2f76090"]]);
94046
94051
 
94047
94052
  const StarHorseItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
94048
94053
  __proto__: null,
@@ -157181,6 +157186,17 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
157181
157186
  emits: ["focusEvent", "blurEvent"],
157182
157187
  setup(__props, { emit: __emit }) {
157183
157188
  const props = __props;
157189
+ const compInfo = computed(
157190
+ () => {
157191
+ return {
157192
+ ...unref(props.item.preps?.compInfo),
157193
+ props: {
157194
+ data: { type: Object },
157195
+ item: { type: Object }
157196
+ }
157197
+ };
157198
+ }
157199
+ );
157184
157200
  const currentRow = ref();
157185
157201
  const focusEvent = (_column) => {
157186
157202
  };
@@ -157308,19 +157324,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
157308
157324
  }, null, 8, ["dataForm", "item", "column", "batchName", "compSize"])
157309
157325
  ]),
157310
157326
  default: withCtx(() => [
157311
- __props.item.preps.compField ? (openBlock(), createBlock(resolveDynamicComponent(
157312
- unref(createComponent)({
157313
- ...__props.item.preps.compField,
157314
- props: {
157315
- data: { type: Object },
157316
- item: { type: Object }
157317
- }
157318
- }, _ctx.__starHorseHostApp__)
157319
- ), {
157327
+ compInfo.value.name ? (openBlock(), createBlock(resolveDynamicComponent(unref(createComponent)(compInfo.value)), {
157320
157328
  key: 0,
157321
- data: scope.row,
157322
- item: __props.item
157323
- }, null, 8, ["data", "item"])) : createCommentVNode("", true)
157329
+ item: __props.item,
157330
+ data: scope.row
157331
+ }, null, 8, ["item", "data"])) : createCommentVNode("", true)
157324
157332
  ]),
157325
157333
  _: 2
157326
157334
  }, 1032, ["placement"])) : (openBlock(), createBlock(__unplugin_components_0$a, mergeProps({
@@ -157332,7 +157340,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
157332
157340
  compSize: __props.compSize,
157333
157341
  style: { ...__props.item.preps.styles }
157334
157342
  }, {
157335
- [toHandlerKey(__props.item.preps.compAction)]: ($event) => __props.item.preps.compFunc(scope.row)
157343
+ [toHandlerKey(__props.item.preps?.compAction)]: ($event) => __props.item.preps?.compFunc(scope.row)
157336
157344
  }), null, 16, ["dataForm", "item", "column", "batchName", "compSize", "style"]))
157337
157345
  ], 64)) : prototypeCheck(__props.item) ? (openBlock(), createBlock(resolveDynamicComponent(
157338
157346
  (__props.item.listPrototypeDisplay === true || __props.item.preps?.listPrototypeDisplay === true ? __props.item.type || "input" : __props.item.listPrototypeDisplay || __props.item.preps?.listPrototypeDisplay) + "-item"
@@ -157366,7 +157374,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
157366
157374
 
157367
157375
  /* unplugin-vue-components disabled */
157368
157376
 
157369
- const __unplugin_components_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-65efceb5"]]);
157377
+ const __unplugin_components_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-3f1b8777"]]);
157370
157378
 
157371
157379
  const StarHorseTableColumn = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
157372
157380
  __proto__: null,
@@ -158242,7 +158250,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
158242
158250
 
158243
158251
  /* unplugin-vue-components disabled */
158244
158252
 
158245
- const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-cf418143"]]);
158253
+ const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-dd9a12b9"]]);
158246
158254
 
158247
158255
  const StarHorseButtonList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
158248
158256
  __proto__: null,
@@ -159408,12 +159416,11 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
159408
159416
  key: 1,
159409
159417
  onTableCompFunc: _cache[1] || (_cache[1] = (fun) => tableCompFunc(fun)),
159410
159418
  compUrl: __props.compUrl,
159411
- btnPermission: unref(permissions),
159419
+ btnPermissions: unref(permissions),
159412
159420
  extendBtns: __props.extendBtns,
159413
159421
  dialogProps: unref(dialogProps),
159414
- showType: "dropdown",
159415
159422
  preValidFunc: __props.preValidFunc
159416
- }, null, 8, ["compUrl", "btnPermission", "extendBtns", "dialogProps", "preValidFunc"])) : createCommentVNode("", true)
159423
+ }, null, 8, ["compUrl", "btnPermissions", "extendBtns", "dialogProps", "preValidFunc"])) : createCommentVNode("", true)
159417
159424
  ]),
159418
159425
  createElementVNode("div", _hoisted_5$b, [
159419
159426
  createVNode(_component_star_horse_icon, {
@@ -159738,7 +159745,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
159738
159745
 
159739
159746
  /* unplugin-vue-components disabled */
159740
159747
 
159741
- const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-b768dfee"]]);
159748
+ const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-e12727ce"]]);
159742
159749
 
159743
159750
  const StarHorseTableComp = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
159744
159751
  __proto__: null,
@@ -184959,7 +184966,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
184959
184966
  modelValue: dialogInputVisible.value,
184960
184967
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogInputVisible.value = $event),
184961
184968
  disabled: unref(checkIsDisabled)(props),
184962
- "initial-content": formData.value[__props.field.fieldName],
184969
+ "initial-content": String(formData.value[__props.field.fieldName]),
184963
184970
  onConfirm: handleContentConfirm
184964
184971
  }, null, 8, ["modelValue", "disabled", "initial-content"]),
184965
184972
  createVNode(_component_starhorse_form_item, {
@@ -185066,7 +185073,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
185066
185073
 
185067
185074
  /* unplugin-vue-components disabled */
185068
185075
 
185069
- const inputItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-58f7626e"]]);
185076
+ const inputItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-6231ef28"]]);
185070
185077
 
185071
185078
  const inputItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
185072
185079
  __proto__: null,
@@ -187286,7 +187293,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
187286
187293
  default: withCtx(() => [
187287
187294
  createVNode(_component_el_tag, mergeProps(__props.field.preps, {
187288
187295
  type: tagType(formData.value[__props.field.fieldName]),
187289
- onClick: _cache[0] || (_cache[0] = ($event) => itemAction("click"))
187296
+ onClick: _cache[0] || (_cache[0] = ($event) => itemAction("click")),
187297
+ class: "relative"
187290
187298
  }), {
187291
187299
  default: withCtx(() => [
187292
187300
  createTextVNode(toDisplayString(__props.callBack && __props.callBack() || formData.value[__props.field.fieldName] || __props.field.preps?.placeholder || "请赋值" + __props.field.label), 1)
@@ -1675,9 +1675,8 @@ export declare function copyText(text: any): Promise<void>;
1675
1675
  /**
1676
1676
  * 动态创建组件
1677
1677
  * @param compInfo 组件信息
1678
- * @param app 父组件
1679
1678
  */
1680
- export declare function createComponent(compInfo: DyCompField, app: any): any;
1679
+ export declare function createComponent(compInfo: DyCompField): string;
1681
1680
 
1682
1681
  /**
1683
1682
  * 创建条件
@@ -3933,8 +3932,8 @@ onSelfFunc?: (...args: any[]) => any;
3933
3932
  onSelectItem?: (...args: any[]) => any;
3934
3933
  "onUpdate:formData"?: (value: any) => any;
3935
3934
  }>, {
3936
- formFieldList: unknown[];
3937
3935
  disabled: boolean;
3936
+ formFieldList: unknown[];
3938
3937
  isSearch: boolean;
3939
3938
  bareFlag: boolean;
3940
3939
  isDesign: boolean;
@@ -5025,9 +5024,9 @@ selectedData: (selectData: any) => any;
5025
5024
  "onUpdate:modelValue"?: (modelValue: any) => any;
5026
5025
  onSelectedData?: (selectData: any) => any;
5027
5026
  }>, {
5027
+ displayName: string;
5028
5028
  disabled: boolean;
5029
5029
  compSize: string;
5030
- displayName: string;
5031
5030
  displayValue: string;
5032
5031
  pageSize: number;
5033
5032
  multiple: boolean;
@@ -5041,8 +5040,8 @@ open: () => void;
5041
5040
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
5042
5041
  "update:modelValue": (modelValue: any) => any;
5043
5042
  }, PublicProps, {
5044
- compSize: string;
5045
5043
  displayName: string;
5044
+ compSize: string;
5046
5045
  displayValue: string;
5047
5046
  pageSize: number;
5048
5047
  multiple: boolean;
@@ -5061,8 +5060,8 @@ Defaults: {};
5061
5060
  }>, {
5062
5061
  open: () => void;
5063
5062
  }, {}, {}, {}, {
5064
- compSize: string;
5065
5063
  displayName: string;
5064
+ compSize: string;
5066
5065
  displayValue: string;
5067
5066
  pageSize: number;
5068
5067
  multiple: boolean;
@@ -8324,8 +8323,8 @@ onSelfFunc?: (...args: any[]) => any;
8324
8323
  onSelectItem?: (...args: any[]) => any;
8325
8324
  "onUpdate:formData"?: (value: any) => any;
8326
8325
  }>, {
8327
- formFieldList: Record<string, any>;
8328
8326
  disabled: boolean;
8327
+ formFieldList: Record<string, any>;
8329
8328
  formInfo: Record<string, any>;
8330
8329
  field: any;
8331
8330
  isSearch: boolean;
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.45",
5
+ "version": "2.7.46",
6
6
  "type": "module",
7
7
  "description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
8
8
  "keywords": [
@@ -17,10 +17,10 @@
17
17
  "星马低代码核心库"
18
18
  ],
19
19
  "license": "MIT",
20
- "homepage": "none",
20
+ "homepage": "https://gitee.com/lixingyu/knowledge_demo",
21
21
  "repository": {
22
22
  "type": "git",
23
- "url": "none"
23
+ "url": "https://gitee.com/lixingyu/knowledge_demo"
24
24
  },
25
25
  "main": "dist/index.es.js",
26
26
  "module": "dist/index.es.js",
@@ -57,7 +57,7 @@
57
57
  "json5": "^2.2.3",
58
58
  "less": "^4.3.0",
59
59
  "less-loader": "^12.3.0",
60
- "md-editor-v3": "^5.7.0",
60
+ "md-editor-v3": "^5.7.1",
61
61
  "path": "^0.12.7",
62
62
  "pinia": "^3.0.3",
63
63
  "pinia-plugin-persistedstate": "^4.3.0",