star-horse-lowcode 3.1.5 → 3.1.7

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.
Files changed (38) hide show
  1. package/README.md +11 -0
  2. package/dist/api/star_horse_apis.d.ts +1 -1
  3. package/dist/api/star_horse_utils.d.ts +7 -5
  4. package/dist/api/system.d.ts +3 -3
  5. package/dist/assets/index.css +1 -1
  6. package/dist/components/comp/StarHorseDataSelector.vue.d.ts +2 -2
  7. package/dist/components/comp/utils/DataPicker.vue.d.ts +0 -45
  8. package/dist/components/formcomp/utils/ItemRelationEventUtils.d.ts +13 -3
  9. package/dist/components/types/ApiUrls.d.ts +20 -0
  10. package/dist/components/types/ItemPreps.d.ts +155 -2
  11. package/dist/components/types/PageFieldInfo.d.ts +8 -0
  12. package/dist/index.es.js +6 -6
  13. package/dist/lang/en_US.d.ts +16 -0
  14. package/dist/lang/zh_CN.d.ts +16 -0
  15. package/dist/store/FormDataCache.d.ts +252 -0
  16. package/dist/store/SelfOperation.d.ts +30 -0
  17. package/dist/store/StoreManager.d.ts +564 -0
  18. package/dist/types/api/star_horse_apis.d.ts +1 -1
  19. package/dist/types/api/star_horse_utils.d.ts +7 -6
  20. package/dist/types/api/system.d.ts +3 -3
  21. package/dist/types/components/comp/StarHorseDataSelector.vue.d.ts +2 -2
  22. package/dist/types/components/comp/StarHorseTableComp.vue.d.ts +1 -1
  23. package/dist/types/components/comp/StarHorseTree.vue.d.ts +2 -2
  24. package/dist/types/components/comp/utils/DataPicker.vue.d.ts +0 -45
  25. package/dist/types/components/formcomp/utils/ItemRelationEventUtils.d.ts +13 -3
  26. package/dist/types/components/system/PageConfig.vue.d.ts +1 -1
  27. package/dist/types/components/system/code-editor/ApiConfigDialog.vue.d.ts +2 -2
  28. package/dist/types/components/types/ApiUrls.d.ts +20 -0
  29. package/dist/types/components/types/ItemPreps.d.ts +155 -2
  30. package/dist/types/components/types/PageFieldInfo.d.ts +8 -0
  31. package/dist/types/lang/en_US.d.ts +16 -0
  32. package/dist/types/lang/zh_CN.d.ts +16 -0
  33. package/dist/types/store/FormDataCache.d.ts +252 -0
  34. package/dist/types/store/SelfOperation.d.ts +30 -0
  35. package/dist/types/store/StoreManager.d.ts +564 -0
  36. package/dist/types/utils/ImagePreview.d.ts +105 -0
  37. package/dist/utils/ImagePreview.d.ts +105 -0
  38. package/package.json +13 -12
package/README.md CHANGED
@@ -596,4 +596,15 @@ barcode 条形码组件
596
596
  ```
597
597
  -解决类型丢失问题
598
598
  ```
599
+ #### v3.1.6
599
600
 
601
+ ```
602
+ -优化DataPicker 数据操作习惯,增加按钮查询和回车查询兼容,已选数据区域增加排序
603
+ -删除 preview-image-js 插件,此插件导致和表单组件冲突,原imagesPreview 正常使用
604
+ ```
605
+ #### v3.1.7
606
+
607
+ ```
608
+ -增加5个ApUrl 对象的自定义接口配置
609
+ -增加联动策略中调用第三方接口带出数据
610
+ ```
@@ -50,7 +50,7 @@ export declare function httpRequest(url: string, method: string, data: any): Pro
50
50
  * @param url
51
51
  * @param data
52
52
  */
53
- export declare function uploadRequest(url: string, data: Array<any>): Promise<AxiosResponse<any, any, {}>>;
53
+ export declare function uploadRequest(url: string, data: any): Promise<AxiosResponse<any, any, {}>>;
54
54
  /**
55
55
  * 加载Post 数据
56
56
  * @param url 接口地址
@@ -144,15 +144,16 @@ export declare function batchFieldDefaultValues(datas: BatchFieldInfo, dataForm:
144
144
  * 动态组件数据
145
145
  * @param field 组件参数信息
146
146
  * @param analysisUrl 是否解析Url
147
+ * @param proxyUrl 代理接口
147
148
  */
148
- export declare function compDynamicData(field: any, analysisUrl?: false): Promise<any>;
149
+ export declare function compDynamicData(field: any, analysisUrl?: false, proxyUrl?: string): Promise<any>;
149
150
  /**
150
151
  *
151
152
  * @param preps 组件参数信息
152
153
  * @param queryInfo 查询条件
153
154
  * @param proxyUrl 代理接口,为空时,默认使用/system-config/redirect/execute
154
155
  */
155
- export declare function dynamicUrlOperation(preps: any, queryInfo?: SearchParams[], proxyUrl?: string): Promise<SelectOption[]>;
156
+ export declare function dynamicUrlOperation(preps: any, queryInfo?: SearchParams[], proxyUrl?: string): Promise<any>;
156
157
  /**
157
158
  * 创建过滤器
158
159
  * @param queryString 查询参数
@@ -195,10 +196,11 @@ export declare function objectToBase64(object: any): string;
195
196
  */
196
197
  export declare function base64Decode(param: string): string;
197
198
  /**
198
- * 预览图片
199
- * @param images
199
+ * 预览图片(纯JS实现,无第三方依赖)
200
+ * @param images 图片URL数组或单个URL
200
201
  */
201
- export declare function imagesPreview(images: Array<string> | string): void;
202
+ export { ImagePreview, imagesPreview } from '../utils/ImagePreview';
203
+ export type { ImagePreviewOptions, ImageTransition } from '../utils/ImagePreview';
202
204
  /**
203
205
  * 设置css 全局变量
204
206
  * @param name 变量名称
@@ -1,7 +1,7 @@
1
1
  import { DyCompField } from '../components/types/DyCompField';
2
- import { RelationDetail } from '../components/types/ItemPreps';
3
2
  import { SearchParams } from '../components/types/Params';
4
3
  import { Ref } from 'vue';
4
+ import { ItemRelation } from '../components/types';
5
5
  /**
6
6
  * UUID
7
7
  */
@@ -74,5 +74,5 @@ export declare const useZIndex: (zIndexOverrides?: Ref<number>) => {
74
74
  nextZIndex: () => number;
75
75
  };
76
76
  export declare const baseEvent: (eventName: string, recall?: Function) => (e: Event) => void;
77
- export declare const baseRelationEvent: (props: any, relationDetails: RelationDetail[], actionName: string) => (e: Event) => void;
78
- export declare function getDynamicEvents(props: any, recall: Function): Record<string, any>;
77
+ export declare const baseRelationEvent: (props: any, relation: ItemRelation, formData: any, actionName: string) => (e: Event) => void;
78
+ export declare function getDynamicEvents(props: any, recall: Function, formData: any): Record<string, any>;