@kengic/vue 0.13.3 → 0.13.4-beta.0

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.
@@ -39,6 +39,13 @@ export declare class KgUtil {
39
39
  static parseParams(params?: Record<string, any> | null, formID?: string | null, $dayjs?: typeof dayjs): any;
40
40
  /**
41
41
  * <p>处理查询参数, 最终拼接为一个 SQL 格式如下: `WHERE ... ORDER BY ...`.</p>
42
+ * <p>
43
+ * 参数 formID 和 operators 只能其中一个传值.
44
+ * <ul>
45
+ * <li>如果 formID 传值, 表示通过变量配置获取各个字段的高级查询操作符.</li>
46
+ * <li>如果 operators 传值, 表示直接使用传入的 operators 作为各个字段的高级查询操作符.</li>
47
+ * </ul>
48
+ * </p>
42
49
  * <ol>
43
50
  * <li>填充通用参数的值:
44
51
  * <ul>
@@ -48,10 +55,11 @@ export declare class KgUtil {
48
55
  * </ol>
49
56
  * @param params 请求参数.
50
57
  * @param formID 界面标识.
58
+ * @param operators 各个字段的高级查询操作符.
51
59
  * @param $dayjs dayjs.
52
60
  * @return 拼接好的 SQL.
53
61
  */
54
- static getQuerySql(params: Record<string, any> | null | undefined, formID: string | null | undefined, $dayjs: typeof dayjs): {
62
+ static getQuerySql(params: Record<string, any> | null | undefined, formID: string | null | undefined, operators: Record<string, any> | null | undefined, $dayjs: typeof dayjs): {
55
63
  sql: string;
56
64
  whereSql: string;
57
65
  orderBySql: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.13.3",
3
+ "version": "0.13.4-beta.0",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",