@kengic/vue 0.13.0 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -397,7 +397,7 @@ export declare class VarProfileDetail {
397
397
  grp_nam?: string | null;
398
398
  /** 主键. */
399
399
  id?: string | null;
400
- /** 提示文字(Placeholder). */
400
+ /** 提示文字. */
401
401
  placeholder?: string | null;
402
402
  /** 查询条件变量名称(ProfileVariableName). */
403
403
  prf_var_nam?: string | null;
@@ -407,11 +407,13 @@ export declare class VarProfileDetail {
407
407
  srtseq?: number | null;
408
408
  /** 表的别名. */
409
409
  table_alias?: string | null;
410
+ /** 高级查询时是否将字段转换为 underscore 命名方式. */
411
+ use_underscore_when_dynamic_query_flag?: number | null;
410
412
  /** 变量名称(VariableName). */
411
413
  var_nam?: string | null;
412
414
  /** 是否可见(VisibleFlag). */
413
415
  vis_flg?: number | null;
414
- /** 控件宽度(Width). */
416
+ /** 控件宽度. */
415
417
  width?: number | null;
416
418
  constructor(obj?: VarProfileDetail);
417
419
  }
@@ -52,7 +52,10 @@ declare const _default: {
52
52
  canNotUpdateSystemVarGridMaster: string;
53
53
  column: string;
54
54
  config: string;
55
+ 'dynamic-query-is-off-in-server': string;
55
56
  emptyText: string;
57
+ 'request-fail-error': string;
58
+ 'request-fail-no-data': string;
56
59
  rowHeight: string;
57
60
  rowHeightH: string;
58
61
  rowHeightL: string;
@@ -52,7 +52,10 @@ declare const _default: {
52
52
  canNotUpdateSystemVarGridMaster: string;
53
53
  column: string;
54
54
  config: string;
55
+ 'dynamic-query-is-off-in-server': string;
55
56
  emptyText: string;
57
+ 'request-fail-error': string;
58
+ 'request-fail-no-data': string;
56
59
  rowHeight: string;
57
60
  rowHeightH: string;
58
61
  rowHeightL: string;
@@ -220,7 +220,11 @@ export declare enum KG_DYNAMIC_QUERY_OPERATOR {
220
220
  BETWEEN = "between"
221
221
  }
222
222
  /** 请求头部. */
223
- export declare enum KG_HEADERS {
223
+ export declare enum KG_HTTP_HEADERS {
224
224
  /** 是否启用高级查询. */
225
- DYNAMIC_QUERY = "Kg-Dynamic-Query"
225
+ KG_DYNAMIC_QUERY = "Kg-Dynamic-Query",
226
+ /** 拼接后的查询 SQL. */
227
+ KG_QUERY_SQL = "Kg-Query-Sql"
226
228
  }
229
+ /** 特殊属性:请求返回的原始响应数据 */
230
+ export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
@@ -37,6 +37,21 @@ export declare class KgUtil {
37
37
  * @param $dayjs dayjs.
38
38
  */
39
39
  static parseParams(params?: Record<string, any> | null, formID?: string | null, $dayjs?: typeof dayjs): any;
40
+ /**
41
+ * <p>处理查询参数, 最终拼接为一个 SQL 格式如下: `WHERE ... ORDER BY ...`.</p>
42
+ * <ol>
43
+ * <li>填充通用参数的值:
44
+ * <ul>
45
+ * <li>仓库: '{WAREHOUSE}'</li>
46
+ * </ul>
47
+ * </li>
48
+ * </ol>
49
+ * @param params 请求参数.
50
+ * @param formID 界面标识.
51
+ * @param $dayjs dayjs.
52
+ * @return 拼接好的 SQL.
53
+ */
54
+ static getQuerySql(params: Record<string, any> | null | undefined, formID: string | null | undefined, $dayjs: typeof dayjs): string;
40
55
  /**
41
56
  * 处理请求参数: 解析字符串类型的参数值.
42
57
  * @param value 参数的原始值.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",