star-horse-lowcode 2.8.6 → 2.8.8

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.
@@ -24,6 +24,7 @@ import { Reactive } from 'vue';
24
24
  import { Ref } from 'vue';
25
25
  import { RouteLocationNormalized } from 'vue-router';
26
26
  import { Router } from 'vue-router';
27
+ import { ShallowRef } from 'vue';
27
28
  import { StoreDefinition } from 'pinia';
28
29
  import { Validator } from 'vanilla-jsoneditor';
29
30
  import { WritableComputedRef } from 'vue';
@@ -2166,6 +2167,7 @@ declare const _default: {
2166
2167
  router?: Router;
2167
2168
  axiosInstance?: AxiosInstance;
2168
2169
  elementPlusOptions?: any;
2170
+ lang?: LangType;
2169
2171
  }) => void;
2170
2172
  piniaInstance: Pinia;
2171
2173
  starHorseAxios: AxiosInstance;
@@ -2945,6 +2947,11 @@ isDesign: boolean;
2945
2947
  showFormItem: boolean;
2946
2948
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2947
2949
 
2950
+ declare enum LangType {
2951
+ EN_US = "en_us",
2952
+ ZH_CN = "zh_cn"
2953
+ }
2954
+
2948
2955
  /**
2949
2956
  * 加载框
2950
2957
  * @param msg
@@ -3253,13 +3260,6 @@ showFormItem: boolean;
3253
3260
  starHorseTableCompRef: unknown;
3254
3261
  }, any>;
3255
3262
 
3256
- /**
3257
- * 创建年月日时分秒
3258
- * @param val
3259
- * @param type
3260
- * @param needSecond
3261
- * @param split
3262
- */
3263
3263
  export declare function parseDateByType(val: any, type: string, needSecond?: boolean, split?: string): any;
3264
3264
 
3265
3265
  export declare const passwordItem: DefineComponent<__VLS_PublicProps_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -5678,10 +5678,10 @@ type: BooleanConstructor;
5678
5678
  default: boolean;
5679
5679
  };
5680
5680
  /**
5681
- * 数据共享人
5682
- * 拿到别人共享的信息
5681
+ * Data sharer
5682
+ * Get information shared by others
5683
5683
  * let resultData = await loadData('/system-config/system/dataPermission/currentMenuPermissionPerson', {});
5684
- * 上面接口主要返回共享人的账号
5684
+ * The above interface mainly returns the account of the sharer
5685
5685
  * commonPersons.value = resultData?.data;
5686
5686
  */
5687
5687
  commonPersons: {
@@ -5811,10 +5811,10 @@ type: BooleanConstructor;
5811
5811
  default: boolean;
5812
5812
  };
5813
5813
  /**
5814
- * 数据共享人
5815
- * 拿到别人共享的信息
5814
+ * Data sharer
5815
+ * Get information shared by others
5816
5816
  * let resultData = await loadData('/system-config/system/dataPermission/currentMenuPermissionPerson', {});
5817
- * 上面接口主要返回共享人的账号
5817
+ * The above interface mainly returns the account of the sharer
5818
5818
  * commonPersons.value = resultData?.data;
5819
5819
  */
5820
5820
  commonPersons: {
@@ -5898,7 +5898,7 @@ default: boolean;
5898
5898
  };
5899
5899
  treeTitle: {
5900
5900
  type: StringConstructor;
5901
- default: string;
5901
+ default: () => string;
5902
5902
  };
5903
5903
  expand: {
5904
5904
  type: BooleanConstructor;
@@ -5953,7 +5953,7 @@ type: PropType<ApiUrls>;
5953
5953
  };
5954
5954
  btnTitle: {
5955
5955
  type: StringConstructor;
5956
- default: string;
5956
+ default: () => string;
5957
5957
  };
5958
5958
  btnVisible: {
5959
5959
  type: BooleanConstructor;
@@ -5961,7 +5961,7 @@ default: boolean;
5961
5961
  };
5962
5962
  rmvTitle: {
5963
5963
  type: StringConstructor;
5964
- default: string;
5964
+ default: () => string;
5965
5965
  };
5966
5966
  rmvVisible: {
5967
5967
  type: BooleanConstructor;
@@ -5991,9 +5991,9 @@ setSelectData: (datas: Array<any>) => void;
5991
5991
  createSearchParams: (params?: SearchParams[], orderBy?: OrderByInfo[]) => void;
5992
5992
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5993
5993
  selectData: (...args: any[]) => void;
5994
+ changeCollapse: (...args: any[]) => void;
5994
5995
  addData: (...args: any[]) => void;
5995
5996
  removeData: (...args: any[]) => void;
5996
- changeCollapse: (...args: any[]) => void;
5997
5997
  "update:treeDatas": (value: any) => void;
5998
5998
  }, string, PublicProps, Readonly<ExtractPropTypes< {
5999
5999
  preps: {
@@ -6013,7 +6013,7 @@ default: boolean;
6013
6013
  };
6014
6014
  treeTitle: {
6015
6015
  type: StringConstructor;
6016
- default: string;
6016
+ default: () => string;
6017
6017
  };
6018
6018
  expand: {
6019
6019
  type: BooleanConstructor;
@@ -6068,7 +6068,7 @@ type: PropType<ApiUrls>;
6068
6068
  };
6069
6069
  btnTitle: {
6070
6070
  type: StringConstructor;
6071
- default: string;
6071
+ default: () => string;
6072
6072
  };
6073
6073
  btnVisible: {
6074
6074
  type: BooleanConstructor;
@@ -6076,7 +6076,7 @@ default: boolean;
6076
6076
  };
6077
6077
  rmvTitle: {
6078
6078
  type: StringConstructor;
6079
- default: string;
6079
+ default: () => string;
6080
6080
  };
6081
6081
  rmvVisible: {
6082
6082
  type: BooleanConstructor;
@@ -6102,9 +6102,9 @@ type: PropType<any>;
6102
6102
  };
6103
6103
  }>> & Readonly<{
6104
6104
  onSelectData?: (...args: any[]) => any;
6105
+ onChangeCollapse?: (...args: any[]) => any;
6105
6106
  onAddData?: (...args: any[]) => any;
6106
6107
  onRemoveData?: (...args: any[]) => any;
6107
- onChangeCollapse?: (...args: any[]) => any;
6108
6108
  "onUpdate:treeDatas"?: (value: any) => any;
6109
6109
  }>, {
6110
6110
  preps: any;
@@ -6114,10 +6114,6 @@ showCheckBox: boolean;
6114
6114
  expand: boolean;
6115
6115
  showPageBar: boolean;
6116
6116
  commonPersons: any;
6117
- btnTitle: string;
6118
- rmvTitle: string;
6119
- btnVisible: boolean;
6120
- rmvVisible: boolean;
6121
6117
  showCollapse: boolean;
6122
6118
  treeTitle: string;
6123
6119
  showSelectData: boolean;
@@ -6127,6 +6123,10 @@ treeType: string;
6127
6123
  showCode: boolean;
6128
6124
  isDynamicData: boolean;
6129
6125
  autoLoad: boolean;
6126
+ btnTitle: string;
6127
+ btnVisible: boolean;
6128
+ rmvTitle: string;
6129
+ rmvVisible: boolean;
6130
6130
  showDropdown: boolean;
6131
6131
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
6132
6132
  treeRef: unknown;
@@ -6668,7 +6668,7 @@ currentFormPreps: Ref<any, any>;
6668
6668
  currentSubItemId: Ref<string, string>;
6669
6669
  isEdit: Ref<boolean, boolean>;
6670
6670
  isDragging: Ref<boolean, boolean>;
6671
- currentComp: Ref<any, any>;
6671
+ currentComp: ShallowRef<any, any>;
6672
6672
  draggingItem: Ref<any, any>;
6673
6673
  refresh: Ref<number, number>;
6674
6674
  historyRecord: Ref<any, any>;
@@ -6725,7 +6725,7 @@ currentFormPreps: Ref<any, any>;
6725
6725
  currentSubItemId: Ref<string, string>;
6726
6726
  isEdit: Ref<boolean, boolean>;
6727
6727
  isDragging: Ref<boolean, boolean>;
6728
- currentComp: Ref<any, any>;
6728
+ currentComp: ShallowRef<any, any>;
6729
6729
  draggingItem: Ref<any, any>;
6730
6730
  refresh: Ref<number, number>;
6731
6731
  historyRecord: Ref<any, any>;
@@ -6782,7 +6782,7 @@ currentFormPreps: Ref<any, any>;
6782
6782
  currentSubItemId: Ref<string, string>;
6783
6783
  isEdit: Ref<boolean, boolean>;
6784
6784
  isDragging: Ref<boolean, boolean>;
6785
- currentComp: Ref<any, any>;
6785
+ currentComp: ShallowRef<any, any>;
6786
6786
  draggingItem: Ref<any, any>;
6787
6787
  refresh: Ref<number, number>;
6788
6788
  historyRecord: Ref<any, any>;
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.8.6",
5
+ "version": "2.8.8",
6
6
  "type": "module",
7
7
  "description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
8
8
  "keywords": [
@@ -62,14 +62,14 @@
62
62
  },
63
63
  "dependencies": {
64
64
  "@element-plus/icons-vue": "^2.3.2",
65
- "@eslint/js": "^9.33.0",
65
+ "@eslint/js": "^9.34.0",
66
66
  "@originjs/vite-plugin-commonjs": "^1.0.3",
67
67
  "@rollup/plugin-inject": "^5.0.5",
68
68
  "@tailwindcss/vite": "^4.1.12",
69
- "@vitejs/plugin-vue-jsx": "^5.0.1",
69
+ "@vitejs/plugin-vue-jsx": "^5.1.1",
70
70
  "@vueup/vue-quill": "^1.2.0",
71
71
  "axios": "^1.11.0",
72
- "element-plus": "^2.10.7",
72
+ "element-plus": "^2.11.1",
73
73
  "eslint-config-prettier": "^10.1.8",
74
74
  "eslint-plugin-prettier": "^5.5.4",
75
75
  "globals": "^16.3.0",
@@ -84,12 +84,12 @@
84
84
  "smooth-signature": "^1.1.0",
85
85
  "sortablejs": "^1.15.6",
86
86
  "tailwindcss": "^4.1.12",
87
- "unplugin-auto-import": "^20.0.0",
87
+ "unplugin-auto-import": "^20.1.0",
88
88
  "unplugin-element-plus": "^0.10.0",
89
89
  "unplugin-vue-components": "^29.0.0",
90
90
  "uuid": "^11.1.0",
91
91
  "vite-plugin-dts": "^4.5.4",
92
- "vue": "^3.5.18",
92
+ "vue": "^3.5.20",
93
93
  "vue-eslint-parser": "^10.2.0",
94
94
  "vue-i18n": "^11.1.11",
95
95
  "vue-m-message": "^4.0.2",
@@ -99,20 +99,20 @@
99
99
  "vuedraggable": "^4.1.0"
100
100
  },
101
101
  "devDependencies": {
102
- "@types/jquery": "^3.5.32",
102
+ "@types/jquery": "^3.5.33",
103
103
  "@types/node": "^24.3.0",
104
104
  "@types/prismjs": "^1.26.5",
105
105
  "@types/sortablejs": "^1.15.8",
106
106
  "@types/uuid": "^10.0.0",
107
- "@typescript-eslint/eslint-plugin": "^8.40.0",
108
- "@typescript-eslint/parser": "^8.40.0",
107
+ "@typescript-eslint/eslint-plugin": "^8.41.0",
108
+ "@typescript-eslint/parser": "^8.41.0",
109
109
  "@vitejs/plugin-vue": "^6.0.1",
110
- "eslint": "^9.33.0",
110
+ "eslint": "^9.34.0",
111
111
  "eslint-config-prettier": "^10.1.8",
112
112
  "eslint-plugin-prettier": "^5.5.4",
113
113
  "eslint-plugin-vue": "^10.4.0",
114
114
  "prettier": "^3.6.2",
115
- "sass-embedded": "^1.90.0",
115
+ "sass-embedded": "^1.91.0",
116
116
  "terser": "^5.43.1",
117
117
  "vite": "^7.1.3"
118
118
  },