@kengic/vue 0.5.34 → 0.5.35

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.
@@ -9266,6 +9266,24 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
9266
9266
  },
9267
9267
  { immediate: !0 }
9268
9268
  );
9269
+ },
9270
+ patchVarSubmitField(e, t, r) {
9271
+ if (!e || !t)
9272
+ return;
9273
+ const n = watch(
9274
+ () => this.getVarSubmitField(e, t),
9275
+ (a) => {
9276
+ a && setTimeout(() => {
9277
+ var s;
9278
+ n(), Object.entries(r).forEach(([i, l]) => {
9279
+ i in a && (a[i] = l);
9280
+ });
9281
+ const o = [...(s = this.varSubmitFieldMap.get(e)) != null ? s : []];
9282
+ o.splice(o.indexOf(a), 1, { ...a }), this.varSubmitFieldMap.set(e, o);
9283
+ });
9284
+ },
9285
+ { immediate: !0 }
9286
+ );
9269
9287
  }
9270
9288
  }
9271
9289
  }).bind(null, pinia())), store$6);
@@ -243,12 +243,19 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
243
243
  */
244
244
  setVarPossibility(formID: string | null | undefined, var_nam: string | null | undefined, varPossibility: VarPossibility): void;
245
245
  /**
246
- * 修改某个变量下拉列表配置中的查询参数, 只修改传入的参数属性, 其他参数属性保持不变.
246
+ * 修改 VarSubmitField 的部分属性.
247
247
  * @param formID 界面标识.
248
248
  * @param var_nam 变量名称
249
- * @param commandParameter 要修改的参数属性.
249
+ * @param properties 要修改的属性.
250
250
  */
251
- patchVarPossibilityCommandParameter(formID: string | null | undefined, var_nam: string | null | undefined, commandParameter: Record<string, any>): void;
251
+ patchVarSubmitField(formID: string | null | undefined, var_nam: string | null | undefined, properties: VarSubmitField): void;
252
+ /**
253
+ * 修改 VarPossibility 的接口参数 cmd_prm 的部分属性.
254
+ * @param formID 界面标识.
255
+ * @param var_nam 变量名称
256
+ * @param properties 要修改的属性.
257
+ */
258
+ patchVarPossibilityCommandParameter(formID: string | null | undefined, var_nam: string | null | undefined, properties: Record<string, any>): void;
252
259
  }>;
253
260
  export declare type IKgVarStore = ReturnType<IKgVarStoreDefinition>;
254
261
  export declare const useKgVarStore: () => IKgVarStoreDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.5.34",
3
+ "version": "0.5.35",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",