amis-formula 1.2.8 → 1.3.2

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/dist/doc.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ export var doc: {
2
+ name: string;
3
+ description: string;
4
+ example: string;
5
+ params: {
6
+ type: string;
7
+ name: string;
8
+ description: string;
9
+ }[];
10
+ returns: {
11
+ type: string;
12
+ description: string;
13
+ };
14
+ namespace: string;
15
+ }[];
package/dist/doc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 公式文档
3
3
  */
4
- export default [
4
+ exports.doc = [
5
5
  {
6
6
  name: "IF",
7
7
  description: "示例:IF(A, B, C)\n\n如果满足条件A,则返回B,否则返回C,支持多层嵌套IF函数。\n\n也可以用表达式如:A ? B : C",
@@ -9,6 +9,10 @@ export interface FunctionMap {
9
9
  }
10
10
  export interface FilterContext {
11
11
  data: Object;
12
+ filter?: {
13
+ name: string;
14
+ args: Array<any>;
15
+ };
12
16
  restFilters: Array<{
13
17
  name: string;
14
18
  args: Array<any>;