zhytech-ui 1.2.19 → 1.2.20

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/README.md CHANGED
@@ -90,6 +90,12 @@ npm install --legacy-peer-deps
90
90
 
91
91
  > #### 版本更新清单:
92
92
 
93
+ **V 1.2.20**
94
+ ```html
95
+ 1.删除动态接口请求超时时间配置,用不超时
96
+ 2.调整动态接口设置画面,新增baseUrlFromProps参数,用于从props中获取baseUrl
97
+ ```
98
+
93
99
  **V 1.2.19**
94
100
  ```html
95
101
  1.调整动态接口请求超时时间,60秒
@@ -99,6 +99,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
99
99
  type: BooleanConstructor;
100
100
  default: boolean;
101
101
  };
102
+ /**
103
+ * 接口基础路径
104
+ */
105
+ httpBaseUrl: {
106
+ type: StringConstructor;
107
+ default: string;
108
+ };
102
109
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
103
110
  change: (...args: any[]) => void;
104
111
  test: (...args: any[]) => void;
@@ -200,6 +207,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
200
207
  type: BooleanConstructor;
201
208
  default: boolean;
202
209
  };
210
+ /**
211
+ * 接口基础路径
212
+ */
213
+ httpBaseUrl: {
214
+ type: StringConstructor;
215
+ default: string;
216
+ };
203
217
  }>> & Readonly<{
204
218
  onChange?: ((...args: any[]) => any) | undefined;
205
219
  onTest?: ((...args: any[]) => any) | undefined;
@@ -207,6 +221,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
207
221
  defaultSourceType: string;
208
222
  dictionary: dictionaryData;
209
223
  uploadOptions: uploadOption;
224
+ httpBaseUrl: string;
210
225
  realTimeDisplayAnswerMode: boolean;
211
226
  everyItemDisplayAnalysisSwitch: boolean;
212
227
  showCorrectOrNot: boolean;
@@ -326,6 +341,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
326
341
  type: BooleanConstructor;
327
342
  default: boolean;
328
343
  };
344
+ httpBaseUrl: {
345
+ type: StringConstructor;
346
+ default: string;
347
+ };
329
348
  }>> & Readonly<{
330
349
  onChange?: ((...args: any[]) => any) | undefined;
331
350
  onSelect?: ((...args: any[]) => any) | undefined;
@@ -348,6 +367,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
348
367
  selectMode: boolean;
349
368
  disabled: boolean;
350
369
  uploadOptions: uploadOption;
370
+ httpBaseUrl: string;
351
371
  realTimeDisplayAnswerMode: boolean;
352
372
  everyItemDisplayAnalysisSwitch: boolean;
353
373
  showCorrectOrNot: boolean;
@@ -424,6 +444,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
424
444
  type: BooleanConstructor;
425
445
  default: boolean;
426
446
  };
447
+ httpBaseUrl: {
448
+ type: StringConstructor;
449
+ default: string;
450
+ };
427
451
  }>> & Readonly<{
428
452
  onChange?: ((...args: any[]) => any) | undefined;
429
453
  onSelect?: ((...args: any[]) => any) | undefined;
@@ -443,6 +467,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
443
467
  selectMode: boolean;
444
468
  disabled: boolean;
445
469
  uploadOptions: uploadOption;
470
+ httpBaseUrl: string;
446
471
  realTimeDisplayAnswerMode: boolean;
447
472
  everyItemDisplayAnalysisSwitch: boolean;
448
473
  showCorrectOrNot: boolean;
@@ -96,6 +96,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
96
96
  type: BooleanConstructor;
97
97
  default: boolean;
98
98
  };
99
+ /**
100
+ * 接口基础路径
101
+ */
102
+ httpBaseUrl: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
99
106
  }>, {
100
107
  /**
101
108
  * @description: 获取表单数据
@@ -231,6 +238,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
231
238
  type: BooleanConstructor;
232
239
  default: boolean;
233
240
  };
241
+ /**
242
+ * 接口基础路径
243
+ */
244
+ httpBaseUrl: {
245
+ type: StringConstructor;
246
+ default: string;
247
+ };
234
248
  }>> & Readonly<{
235
249
  onChange?: ((...args: any[]) => any) | undefined;
236
250
  onSelect?: ((...args: any[]) => any) | undefined;
@@ -240,6 +254,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
240
254
  selectMode: boolean;
241
255
  disabled: boolean;
242
256
  uploadOptions: uploadOption;
257
+ httpBaseUrl: string;
243
258
  realTimeDisplayAnswerMode: boolean;
244
259
  everyItemDisplayAnalysisSwitch: boolean;
245
260
  showCorrectOrNot: boolean;
@@ -6,6 +6,10 @@ export interface httpSettingView {
6
6
  * HTTP请求类型
7
7
  */
8
8
  eventType: string;
9
+ /**
10
+ * 是否从组件属性中获取基础URL
11
+ */
12
+ baseUrlFromProps: boolean;
9
13
  /**
10
14
  * HTTP基础URL
11
15
  */
@@ -84,8 +84,9 @@ export declare function useUtils(): {
84
84
  * @description: 调用api
85
85
  * @param httpSetting 接口配置
86
86
  * @param datas 接口参数替换数据
87
+ * @param baseUrl 接口基础url
87
88
  * @param autoDealResult 是否自动处理结果
88
89
  * @return
89
90
  */
90
- callApi(httpSetting: httpSettingView, datas: Record<string, any>, autoDealResult?: boolean): Promise<any>;
91
+ callApi(httpSetting: httpSettingView, datas: Record<string, any>, baseUrl?: string, autoDealResult?: boolean): Promise<any>;
91
92
  };