amis-formula 2.0.0 → 2.0.1

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/lib/doc.js CHANGED
@@ -974,7 +974,7 @@ exports.doc = [
974
974
  {
975
975
  name: "TIMESTAMP",
976
976
  description: "返回时间的时间戳",
977
- example: "TIMESTAMP(date[, format = \"X\"])",
977
+ example: "TIMESTAMP(date, 'x')",
978
978
  params: [
979
979
  {
980
980
  type: "date",
@@ -1018,7 +1018,7 @@ exports.doc = [
1018
1018
  {
1019
1019
  name: "DATETOSTR",
1020
1020
  description: "将日期转成日期字符串",
1021
- example: "DATETOSTR(date[, format=\"YYYY-MM-DD HH:mm:ss\"])",
1021
+ example: "DATETOSTR(date, 'YYYY-MM-DD')",
1022
1022
  params: [
1023
1023
  {
1024
1024
  type: "date",
package/lib/doc.md CHANGED
@@ -591,7 +591,7 @@
591
591
 
592
592
  ### TIMESTAMP
593
593
 
594
- 用法:`TIMESTAMP(date[, format = "X"])`
594
+ 用法:`TIMESTAMP(date, 'x')`
595
595
 
596
596
  * `date:date` 日期对象
597
597
  * `format:string` 时间戳格式,带毫秒传入 'x'。默认为 'X' 不带毫秒的。
@@ -614,7 +614,7 @@
614
614
 
615
615
  ### DATETOSTR
616
616
 
617
- 用法:`DATETOSTR(date[, format="YYYY-MM-DD HH:mm:ss"])`
617
+ 用法:`DATETOSTR(date, 'YYYY-MM-DD')`
618
618
 
619
619
  * `date:date` 日期对象
620
620
  * `format:string` 日期格式,默认为 "YYYY-MM-DD HH:mm:ss"
package/lib/evalutor.d.ts CHANGED
@@ -775,6 +775,7 @@ export declare class Evaluator {
775
775
  * 返回时间的时间戳
776
776
  *
777
777
  * @example TIMESTAMP(date[, format = "X"])
778
+ * @example TIMESTAMP(date, 'x')
778
779
  * @namespace 日期函数
779
780
  * @param {date} date 日期对象
780
781
  * @param {string} format 时间戳格式,带毫秒传入 'x'。默认为 'X' 不带毫秒的。
@@ -804,6 +805,7 @@ export declare class Evaluator {
804
805
  * 将日期转成日期字符串
805
806
  *
806
807
  * @example DATETOSTR(date[, format="YYYY-MM-DD HH:mm:ss"])
808
+ * @example DATETOSTR(date, 'YYYY-MM-DD')
807
809
  * @namespace 日期函数
808
810
  * @param {date} date 日期对象
809
811
  * @param {string} format 日期格式,默认为 "YYYY-MM-DD HH:mm:ss"
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v2.0.0
2
+ * amis-formula v2.0.1
3
3
  * Copyright 2021-2022 fex
4
4
  */
5
5
 
@@ -1342,6 +1342,7 @@ var Evaluator = /** @class */ (function () {
1342
1342
  * 返回时间的时间戳
1343
1343
  *
1344
1344
  * @example TIMESTAMP(date[, format = "X"])
1345
+ * @example TIMESTAMP(date, 'x')
1345
1346
  * @namespace 日期函数
1346
1347
  * @param {date} date 日期对象
1347
1348
  * @param {string} format 时间戳格式,带毫秒传入 'x'。默认为 'X' 不带毫秒的。
@@ -1377,6 +1378,7 @@ var Evaluator = /** @class */ (function () {
1377
1378
  * 将日期转成日期字符串
1378
1379
  *
1379
1380
  * @example DATETOSTR(date[, format="YYYY-MM-DD HH:mm:ss"])
1381
+ * @example DATETOSTR(date, 'YYYY-MM-DD')
1380
1382
  * @namespace 日期函数
1381
1383
  * @param {date} date 日期对象
1382
1384
  * @param {string} format 日期格式,默认为 "YYYY-MM-DD HH:mm:ss"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-formula",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "负责 amis 里面的表达式实现,内置公式,编辑器等",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -96,5 +96,5 @@
96
96
  }
97
97
  }
98
98
  },
99
- "gitHead": "32dc0167ca8637559ac487006c0e78b627573759"
99
+ "gitHead": "9bbac8183850bcee3231a016d25590f0d09f41cc"
100
100
  }