@kengic/vue 0.31.4 → 0.31.5

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.
@@ -1,6 +1,10 @@
1
1
  import { VarButton } from '../../api/WMS/models';
2
- import { KG__VAR_BUTTON__TYPE, IKgStoreDefinition } from '../../model';
2
+ import { IKgStoreDefinition, IKgVarButtonProperties, KG__VAR_BUTTON__TYPE } from '../../model';
3
3
  export interface IUseKgButtonStoreGetters {
4
+ /**
5
+ * 当前按钮--额外属性.
6
+ */
7
+ $CurrentButton$Properties: IKgVarButtonProperties;
4
8
  /**
5
9
  * <p>当前按钮.</p>
6
10
  * <p>同一时间最多只会有一个按钮处于「正在执行」状态, 比如点击了创建按钮, 则当前按钮就是创建按钮.</p>
@@ -16,9 +16,7 @@ export interface IKgTableRequestParameter {
16
16
  */
17
17
  isPreserveSelectedRows?: boolean;
18
18
  /**
19
- * 是否查询首页, 否则会查询当前页.
20
- *
21
- * @default false
19
+ * 是否查询首页, 否则会查询当前页. 默认为 false.
22
20
  */
23
21
  isSearchFirstPage?: boolean;
24
22
  }
@@ -1545,10 +1545,13 @@ interface IKgVarSubmitConfigProperties {
1545
1545
  * <p>额外的配置属性. 对应 {@link VarButton#props} 字段.</p>
1546
1546
  */
1547
1547
  interface IKgVarButtonProperties {
1548
+ /**
1549
+ * <p>执行成功之后--重新请求表格数据时, 是否请求第一页的数据. 默认为 true, 如果为 false 表示请求当前页的数据.</p>
1550
+ * <p>如果是「更新按钮」, 则默认为 false, 即更新成功之后默认查询当前页的数据.</p>
1551
+ */
1552
+ $AfterOk$isRequestFirstPage?: boolean;
1548
1553
  /**
1549
1554
  * 是否显示, 默认为 true.
1550
- *
1551
- * @default true
1552
1555
  */
1553
1556
  isVisible?: boolean;
1554
1557
  /**
@@ -288,55 +288,23 @@ export declare class KgUtil {
288
288
  kgSearchFormID: string | null | undefined;
289
289
  params: Record<string, any> | null | undefined;
290
290
  }): {
291
+ /** @deprecated 已废弃, 请使用 operatorRecordJSON */
291
292
  operatorObjectJSON: string;
292
- orderBySql: string;
293
- sql: string;
294
- whereObjectJSON: string;
295
- whereSql: string;
296
- whereSql01: string;
297
- whereSql02: string;
298
- whereSql03: string;
299
- whereSql04: string;
300
- whereSql05: string;
301
- } | {
302
293
  /**
303
294
  * 查询操作符对象的 JSON 字符串.
304
295
  */
305
- operatorObjectJSON: string;
306
- /**
307
- * ORDER BY SQL.
308
- */
296
+ operatorRecordJSON: string;
309
297
  orderBySql: string;
310
- /**
311
- * <p>查询字段的 WHERE 片段对象的 JSON 字符串.</p>
312
- * <p>该对象中, 每一个 key 表示字段名, 每一个 value 表示该字段对应的 SQL 片段</p>
313
- */
298
+ valueRecordJSON: string;
299
+ /** @deprecated 已废弃, 请使用 whereSqlSegmentRecordJSON */
314
300
  whereObjectJSON: string;
315
- /**
316
- * WHERE SQL.
317
- */
318
301
  whereSql: string;
319
- /**
320
- * WHERE SQL.
321
- */
322
302
  whereSql01: string;
323
- /**
324
- * WHERE SQL.
325
- */
326
303
  whereSql02: string;
327
- /**
328
- * WHERE SQL.
329
- */
330
304
  whereSql03: string;
331
- /**
332
- * WHERE SQL.
333
- */
334
305
  whereSql04: string;
335
- /**
336
- * WHERE SQL.
337
- */
338
306
  whereSql05: string;
339
- sql?: undefined;
307
+ whereSqlSegmentRecordJSON: string;
340
308
  };
341
309
  }
342
310
  export declare type ModalFunc = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.31.4",
3
+ "version": "0.31.5",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build--development": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",