star-horse-lowcode 2.7.73 → 2.7.74

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
@@ -68318,7 +68318,7 @@ var ServiceEnums = /* @__PURE__ */ ((ServiceEnums2) => {
68318
68318
  })(ServiceEnums || {});
68319
68319
 
68320
68320
  let loading = null;
68321
- const dictUrl = `${ServiceEnums.SYSTEM_PREFIX}dictinfoEntity/getAllByCondition`;
68321
+ const dictUrl = `${ServiceEnums.SYSTEM_PREFIX}dictinfo/getAllByCondition`;
68322
68322
  async function loadData(url, params, orderBy = []) {
68323
68323
  let data = null;
68324
68324
  let error2 = "";
@@ -124089,7 +124089,7 @@ const useButtonPermissionStore = defineStore("buttonPermission", () => {
124089
124089
  const pageBtnPermisson = ref({});
124090
124090
  const currentPermission = ref({});
124091
124091
  const permissionUrlPrefix = ref(
124092
- "/system-config/system/resourcesEntity/permissionResources/"
124092
+ "/system-config/system/resources/permissionResources/"
124093
124093
  );
124094
124094
  const addRoute = async (route) => {
124095
124095
  let data = route ?? (window.__hostRouter__?.currentRoute || window.__hostRouter__);
@@ -124097,7 +124097,7 @@ const useButtonPermissionStore = defineStore("buttonPermission", () => {
124097
124097
  return await getPagePermission(meta?.menuId);
124098
124098
  };
124099
124099
  const setPermissionUrl = (url) => {
124100
- permissionUrlPrefix.value = url;
124100
+ permissionUrlPrefix.value = url ?? permissionUrlPrefix.value;
124101
124101
  };
124102
124102
  const addPermission = (menuId, data) => {
124103
124103
  pageBtnPermisson.value[menuId] = data;
@@ -124512,6 +124512,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
124512
124512
  if (props.btnPermissions && Object.keys(props.btnPermissions).length > 0) {
124513
124513
  permissions.value = props.btnPermissions;
124514
124514
  } else {
124515
+ pagePermission.setPermissionUrl(props.compUrl?.permissionsUrl);
124515
124516
  permissions.value = await pagePermission.addRoute(
124516
124517
  window.__hostRouter__?.currentRoute.value
124517
124518
  );
@@ -125413,7 +125414,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
125413
125414
 
125414
125415
  /* unplugin-vue-components disabled */
125415
125416
 
125416
- const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-5ffa6113"]]);
125417
+ const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-f97ea38a"]]);
125417
125418
 
125418
125419
  const StarHorseTableComp = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
125419
125420
  __proto__: null,
@@ -539,6 +539,10 @@ export declare type ApiUrls = {
539
539
  * 接口路径前缀
540
540
  */
541
541
  basePrefix?: string;
542
+ /**
543
+ * 权限接口,此接口需要用户自己赋值,如果不赋值则使用系统默认接口
544
+ */
545
+ permissionsUrl?: string;
542
546
  /**
543
547
  * 应用名称
544
548
  */
@@ -9644,6 +9648,7 @@ importUrl?: string;
9644
9648
  executeUrl?: string;
9645
9649
  modifyColumnsUrl?: string;
9646
9650
  basePrefix?: string;
9651
+ permissionsUrl?: string;
9647
9652
  appName?: string;
9648
9653
  condition?: {
9649
9654
  propertyName?: string;
@@ -9743,6 +9748,7 @@ importUrl?: string;
9743
9748
  executeUrl?: string;
9744
9749
  modifyColumnsUrl?: string;
9745
9750
  basePrefix?: string;
9751
+ permissionsUrl?: string;
9746
9752
  appName?: string;
9747
9753
  condition?: {
9748
9754
  propertyName?: string;
@@ -9855,6 +9861,7 @@ importUrl?: string;
9855
9861
  executeUrl?: string;
9856
9862
  modifyColumnsUrl?: string;
9857
9863
  basePrefix?: string;
9864
+ permissionsUrl?: string;
9858
9865
  appName?: string;
9859
9866
  condition?: {
9860
9867
  propertyName?: string;
@@ -9954,6 +9961,7 @@ importUrl?: string;
9954
9961
  executeUrl?: string;
9955
9962
  modifyColumnsUrl?: string;
9956
9963
  basePrefix?: string;
9964
+ permissionsUrl?: string;
9957
9965
  appName?: string;
9958
9966
  condition?: {
9959
9967
  propertyName?: string;
@@ -10066,6 +10074,7 @@ importUrl?: string;
10066
10074
  executeUrl?: string;
10067
10075
  modifyColumnsUrl?: string;
10068
10076
  basePrefix?: string;
10077
+ permissionsUrl?: string;
10069
10078
  appName?: string;
10070
10079
  condition?: {
10071
10080
  propertyName?: string;
@@ -10165,6 +10174,7 @@ importUrl?: string;
10165
10174
  executeUrl?: string;
10166
10175
  modifyColumnsUrl?: string;
10167
10176
  basePrefix?: string;
10177
+ permissionsUrl?: string;
10168
10178
  appName?: string;
10169
10179
  condition?: {
10170
10180
  propertyName?: string;
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.73",
5
+ "version": "2.7.74",
6
6
  "type": "module",
7
7
  "description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
8
8
  "keywords": [