@cloudbase/cals 1.0.19-alpha.5 → 1.0.19-alpha.6
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/cloudbase.cals.umd.min.js +5 -0
- package/lib/types/lcds.d.ts +73 -51
- package/lib/types/lcds.d.ts.map +1 -1
- package/lib/utils/dts/auto-generated.d.ts +1 -1
- package/lib/utils/dts/auto-generated.d.ts.map +1 -1
- package/lib/utils/dts/auto-generated.js +121 -125
- package/package.json +2 -2
- package/lib/utils/version-migrations/common.d.ts +0 -5
- package/lib/utils/version-migrations/common.d.ts.map +0 -1
- package/lib/utils/version-migrations/common.js +0 -29
- package/lib/utils/version-migrations/version4.d.ts +0 -3
- package/lib/utils/version-migrations/version4.d.ts.map +0 -1
- package/lib/utils/version-migrations/version4.js +0 -199
|
@@ -147,7 +147,7 @@ declare namespace $w {
|
|
|
147
147
|
* 用户权限相关方法和属性
|
|
148
148
|
*/
|
|
149
149
|
namespace auth {
|
|
150
|
-
|
|
150
|
+
|
|
151
151
|
interface CurrentUserInfo {
|
|
152
152
|
/**
|
|
153
153
|
* 用户 ID
|
|
@@ -351,41 +351,26 @@ interface ICallWorkflowParams {
|
|
|
351
351
|
|
|
352
352
|
/**
|
|
353
353
|
* 调用数据源
|
|
354
|
-
*
|
|
355
|
-
* @privateForWeDa
|
|
356
|
-
* {"group": "cloud", "displayType": "function", "description": "调用数据源"}
|
|
357
354
|
*/
|
|
358
355
|
function callDataSource(params: ICallDataSourceParams): any;
|
|
359
356
|
|
|
360
357
|
/**
|
|
361
358
|
* 通过 cloudid 获取静态文件的 http 访问地址
|
|
362
|
-
*
|
|
363
|
-
* @privateForWeDa
|
|
364
|
-
* {"group": "cloud", "displayType": "function", "description": "通过 cloudid 获取静态文件的 http 访问地址"}
|
|
365
359
|
*/
|
|
366
360
|
function getTempFileURL(params: string | string[]): Promise<string | string[]>;
|
|
367
361
|
|
|
368
362
|
/**
|
|
369
363
|
* 调用流程
|
|
370
|
-
*
|
|
371
|
-
* @privateForWeDa
|
|
372
|
-
* {"group": "cloud", "displayType": "function", "description": "调用流程"}
|
|
373
364
|
*/
|
|
374
365
|
function callWorkflow(action: ICallWorkflowParams): Promise<any>;
|
|
375
366
|
|
|
376
367
|
/**
|
|
377
368
|
* 调用云开发的云函数, 与 $w.cloud.getCloudInstance 示例中的效果大体一致
|
|
378
|
-
*
|
|
379
|
-
* @privateForWeDa
|
|
380
|
-
* {"group": "cloud", "displayType": "function", "description": "调用云开发的云函数, 与 $w.cloud.getCloudInstance 示例中的效果大体一致"}
|
|
381
369
|
*/
|
|
382
370
|
function callFunction(params: ICallFunctionParams, parseOptions?: IParseOptions): Promise<any>;
|
|
383
371
|
|
|
384
372
|
/**
|
|
385
373
|
* 返回云开发web-sdk初始化后的实例(无需关心tcb环境信息及认证登录的处理), 即 tcb.init 后返回的对象, 可用该对象直接调用tcb的各种能力
|
|
386
|
-
*
|
|
387
|
-
* @privateForWeDa
|
|
388
|
-
* {"group": "cloud", "displayType": "function", "description": "返回云开发web-sdk初始化后的实例(无需关心tcb环境信息及认证登录的处理), 即 tcb.init 后返回的对象, 可用该对象直接调用tcb的各种能力"}
|
|
389
374
|
*/
|
|
390
375
|
function getCloudInstance(): Promise<CloudInstance>;
|
|
391
376
|
|
|
@@ -559,6 +544,19 @@ function navigateBack(options: navigateBackOptions);
|
|
|
559
544
|
*/
|
|
560
545
|
function formatEnum(path, optionname, app);
|
|
561
546
|
|
|
547
|
+
/**
|
|
548
|
+
* 获取枚举值
|
|
549
|
+
*/
|
|
550
|
+
function getEnumValue({
|
|
551
|
+
enumOptions,
|
|
552
|
+
optionSetName,
|
|
553
|
+
key,
|
|
554
|
+
}: {
|
|
555
|
+
enumOptions?: { key: any; value: any }[] | { response?: { data?: { items?: any } } } | any;
|
|
556
|
+
optionSetName?: string;
|
|
557
|
+
key?: any;
|
|
558
|
+
});
|
|
559
|
+
|
|
562
560
|
}
|
|
563
561
|
|
|
564
562
|
/**
|
|
@@ -698,7 +696,7 @@ const platforms: ('WEB' | 'MOBILEWEB' | 'PCWEB' | 'MP')[];
|
|
|
698
696
|
* 计算传入数字的绝对值
|
|
699
697
|
*
|
|
700
698
|
* @privateForWeDa
|
|
701
|
-
* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation", "doc": "https://
|
|
699
|
+
* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算传入数字的绝对值" , "definition": "ABS(数字):数字"}
|
|
702
700
|
*/
|
|
703
701
|
function ABS(num: number): number;
|
|
704
702
|
/**
|
|
@@ -708,7 +706,7 @@ const platforms: ('WEB' | 'MOBILEWEB' | 'PCWEB' | 'MP')[];
|
|
|
708
706
|
* 返回一组数字中的最小值
|
|
709
707
|
*
|
|
710
708
|
* @privateForWeDa
|
|
711
|
-
* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation", "doc": "https://
|
|
709
|
+
* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最小值" , "definition": "Min(数字1, [数字2, ...]):数字"}
|
|
712
710
|
*/
|
|
713
711
|
function Min(...args: number[]): number;
|
|
714
712
|
/**
|
|
@@ -718,7 +716,7 @@ const platforms: ('WEB' | 'MOBILEWEB' | 'PCWEB' | 'MP')[];
|
|
|
718
716
|
* 返回一组数字中的最大值
|
|
719
717
|
*
|
|
720
718
|
* @privateForWeDa
|
|
721
|
-
* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation", "doc": "https://
|
|
719
|
+
* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最大值" , "definition": "Max(数字1, [数字2, ...]):数字"}
|
|
722
720
|
*/
|
|
723
721
|
function Max(...args: number[]): number;
|
|
724
722
|
/**
|
|
@@ -728,7 +726,7 @@ const platforms: ('WEB' | 'MOBILEWEB' | 'PCWEB' | 'MP')[];
|
|
|
728
726
|
* 返回一组数字中的平均值
|
|
729
727
|
*
|
|
730
728
|
* @privateForWeDa
|
|
731
|
-
* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation", "doc": "https://
|
|
729
|
+
* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的平均值" , "definition": "Average(数字1, [数字2, ...]):数字"}
|
|
732
730
|
*/
|
|
733
731
|
function Average(...args: number[]): number;
|
|
734
732
|
/**
|
|
@@ -738,7 +736,7 @@ const platforms: ('WEB' | 'MOBILEWEB' | 'PCWEB' | 'MP')[];
|
|
|
738
736
|
* 返回传入数字向下取整的结果
|
|
739
737
|
*
|
|
740
738
|
* @privateForWeDa
|
|
741
|
-
* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation", "doc": "https://
|
|
739
|
+
* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向下取整的结果" , "definition": "Floor(数字):数字"}
|
|
742
740
|
*/
|
|
743
741
|
function Floor(num: number): number;
|
|
744
742
|
/**
|
|
@@ -748,7 +746,7 @@ const platforms: ('WEB' | 'MOBILEWEB' | 'PCWEB' | 'MP')[];
|
|
|
748
746
|
* 返回传入数字向上取整的结果
|
|
749
747
|
*
|
|
750
748
|
* @privateForWeDa
|
|
751
|
-
* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation", "doc": "https://
|
|
749
|
+
* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向上取整的结果" , "definition": "Ceiling(数字):数字"}
|
|
752
750
|
*/
|
|
753
751
|
function Ceiling(num: number): number;
|
|
754
752
|
/**
|
|
@@ -758,7 +756,7 @@ const platforms: ('WEB' | 'MOBILEWEB' | 'PCWEB' | 'MP')[];
|
|
|
758
756
|
* 返回传入数字四舍五入后的结果
|
|
759
757
|
*
|
|
760
758
|
* @privateForWeDa
|
|
761
|
-
* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation", "doc": "https://
|
|
759
|
+
* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字四舍五入后的结果" , "definition": "Round(数字):数字"}
|
|
762
760
|
*/
|
|
763
761
|
function Round(num: number): number;
|
|
764
762
|
/**
|
|
@@ -768,7 +766,7 @@ const platforms: ('WEB' | 'MOBILEWEB' | 'PCWEB' | 'MP')[];
|
|
|
768
766
|
* 返回一组数字中的和
|
|
769
767
|
*
|
|
770
768
|
* @privateForWeDa
|
|
771
|
-
* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation", "doc": "https://
|
|
769
|
+
* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的和" , "definition": "Sum(数字1, [数字2, ...]):数字"}
|
|
772
770
|
*/
|
|
773
771
|
function Sum(...args: number[]): number;
|
|
774
772
|
/**
|
|
@@ -778,7 +776,7 @@ const platforms: ('WEB' | 'MOBILEWEB' | 'PCWEB' | 'MP')[];
|
|
|
778
776
|
* 返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数
|
|
779
777
|
*
|
|
780
778
|
* @privateForWeDa
|
|
781
|
-
* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation", "doc": "https://
|
|
779
|
+
* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数" , "definition": "Rand(数字):数字"}
|
|
782
780
|
*/
|
|
783
781
|
function Rand(num: number): number;
|
|
784
782
|
|
|
@@ -794,7 +792,7 @@ alternate?: any;
|
|
|
794
792
|
* 按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。
|
|
795
793
|
*
|
|
796
794
|
* @privateForWeDa
|
|
797
|
-
* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, '您好', 'hello')", "subGroup": "logic", "doc": "https://
|
|
795
|
+
* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, '您好', 'hello')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。" , "definition": "If(判断条件, 满足时返回的值, 不满足时返回的值):任何类型"}
|
|
798
796
|
*/
|
|
799
797
|
function If(params: IIfObjectParam): any;
|
|
800
798
|
function If(condition: boolean, consequent?: any, alternate?: any): any;
|
|
@@ -805,7 +803,7 @@ alternate?: any;
|
|
|
805
803
|
* 判断传入的文本是否为空
|
|
806
804
|
*
|
|
807
805
|
* @privateForWeDa
|
|
808
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty('hello')", "subGroup": "logic", "doc": "https://
|
|
806
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty('hello')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的文本是否为空" , "definition": "IsEmpty(值):布尔值"}
|
|
809
807
|
*/
|
|
810
808
|
function IsEmpty(text: string | string[]): boolean;
|
|
811
809
|
/**
|
|
@@ -815,7 +813,7 @@ alternate?: any;
|
|
|
815
813
|
* 判断传入的字段值是否包含数据,即不为 NULL
|
|
816
814
|
*
|
|
817
815
|
* @privateForWeDa
|
|
818
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为null", "insertText": "NotNull(null)", "subGroup": "logic", "doc": "https://
|
|
816
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为null", "insertText": "NotNull(null)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的字段值是否包含数据,即不为 NULL" , "definition": "NotNull(字段):布尔值"}
|
|
819
817
|
*/
|
|
820
818
|
function NotNull(val: any): boolean;
|
|
821
819
|
/**
|
|
@@ -825,7 +823,7 @@ alternate?: any;
|
|
|
825
823
|
* 用于确定所有判断条件是否为真
|
|
826
824
|
*
|
|
827
825
|
* @privateForWeDa
|
|
828
|
-
* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic", "doc": "https://
|
|
826
|
+
* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "用于确定所有判断条件是否为真" , "definition": "And(判断条件1, [判断条件2,...]):布尔值"}
|
|
829
827
|
*/
|
|
830
828
|
function And(...args: boolean[]): boolean;
|
|
831
829
|
/**
|
|
@@ -835,7 +833,7 @@ alternate?: any;
|
|
|
835
833
|
* 任意一个判断条件为真,则结果为真;所有条件为否,结果才为否
|
|
836
834
|
*
|
|
837
835
|
* @privateForWeDa
|
|
838
|
-
* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic", "doc": "https://
|
|
836
|
+
* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "任意一个判断条件为真,则结果为真;所有条件为否,结果才为否" , "definition": "Or(判断条件1, [判断条件2,...]):布尔值"}
|
|
839
837
|
*/
|
|
840
838
|
function Or(...args: boolean[]): boolean;
|
|
841
839
|
|
|
@@ -846,7 +844,7 @@ alternate?: any;
|
|
|
846
844
|
* 获取传入文本的字符数
|
|
847
845
|
*
|
|
848
846
|
* @privateForWeDa
|
|
849
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len('文本')", "subGroup": "text", "doc": "https://
|
|
847
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "获取传入文本的字符数" , "definition": "Len(文本):数字"}
|
|
850
848
|
*/
|
|
851
849
|
function Len(text: string): number;
|
|
852
850
|
/**
|
|
@@ -856,7 +854,7 @@ alternate?: any;
|
|
|
856
854
|
* 判断文本 1 是否包含文本 2
|
|
857
855
|
*
|
|
858
856
|
* @privateForWeDa
|
|
859
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains('文本1', '文本2')", "subGroup": "text", "doc": "https://
|
|
857
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断文本 1 是否包含文本 2" , "definition": "Contains(文本1, 文本2):布尔值"}
|
|
860
858
|
*/
|
|
861
859
|
function Contains(text1: string, text2: string): boolean;
|
|
862
860
|
/**
|
|
@@ -866,7 +864,7 @@ alternate?: any;
|
|
|
866
864
|
* 根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split("张三,李四,王五", ",")
|
|
867
865
|
*
|
|
868
866
|
* @privateForWeDa
|
|
869
|
-
* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split('文本1', '文本2')", "subGroup": "text", "doc": "https://
|
|
867
|
+
* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split('张三,李四,王五', ',')" , "definition": "Split(文本1,文本2):文本数组"}
|
|
870
868
|
*/
|
|
871
869
|
function Split(text1: string, text2: string): string[];
|
|
872
870
|
/**
|
|
@@ -876,7 +874,7 @@ alternate?: any;
|
|
|
876
874
|
* 删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除
|
|
877
875
|
*
|
|
878
876
|
* @privateForWeDa
|
|
879
|
-
* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim('文本')", "subGroup": "text", "doc": "https://
|
|
877
|
+
* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除" , "definition": "Trim(文本):文本"}
|
|
880
878
|
*/
|
|
881
879
|
function Trim(text: string): string;
|
|
882
880
|
/**
|
|
@@ -886,7 +884,7 @@ alternate?: any;
|
|
|
886
884
|
* 将传入的文本转为全大写文本
|
|
887
885
|
*
|
|
888
886
|
* @privateForWeDa
|
|
889
|
-
* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper('文本')", "subGroup": "text", "doc": "https://
|
|
887
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全大写文本" , "definition": "Upper(文本):文本"}
|
|
890
888
|
*/
|
|
891
889
|
function Upper(text: string): string;
|
|
892
890
|
/**
|
|
@@ -896,7 +894,7 @@ alternate?: any;
|
|
|
896
894
|
* 将传入的文本转为全小写文本
|
|
897
895
|
*
|
|
898
896
|
* @privateForWeDa
|
|
899
|
-
* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower('文本')", "subGroup": "text", "doc": "https://
|
|
897
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全小写文本" , "definition": "Lower(文本):文本"}
|
|
900
898
|
*/
|
|
901
899
|
function Lower(text: string): string;
|
|
902
900
|
/**
|
|
@@ -906,7 +904,7 @@ alternate?: any;
|
|
|
906
904
|
* 返回多个文本拼接后的新文本
|
|
907
905
|
*
|
|
908
906
|
* @privateForWeDa
|
|
909
|
-
* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat('文本1', '文本2')", "subGroup": "text", "doc": "https://
|
|
907
|
+
* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回多个文本拼接后的新文本" , "definition": "Concat(文本1, [文本2,...]):文本"}
|
|
910
908
|
*/
|
|
911
909
|
function Concat(...text: string[]): string;
|
|
912
910
|
|
|
@@ -917,7 +915,7 @@ alternate?: any;
|
|
|
917
915
|
* 返回当前系统时间,通常与其他日期时间函数搭配使用
|
|
918
916
|
*
|
|
919
917
|
* @privateForWeDa
|
|
920
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time", "doc": "https://
|
|
918
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回当前系统时间,通常与其他日期时间函数搭配使用" , "definition": "Now():日期时间"}
|
|
921
919
|
*/
|
|
922
920
|
function Now(): number;
|
|
923
921
|
/**
|
|
@@ -927,7 +925,7 @@ alternate?: any;
|
|
|
927
925
|
* 根据输入的日期时间返回时间戳
|
|
928
926
|
*
|
|
929
927
|
* @privateForWeDa
|
|
930
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time", "doc": "https://
|
|
928
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回时间戳" , "definition": "Timestamp(日期时间):日期时间"}
|
|
931
929
|
*/
|
|
932
930
|
function Timestamp(arg: number | string | Date): number;
|
|
933
931
|
/**
|
|
@@ -937,7 +935,7 @@ alternate?: any;
|
|
|
937
935
|
* 根据输入的日期时间返回该时间的秒数
|
|
938
936
|
*
|
|
939
937
|
* @privateForWeDa
|
|
940
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time", "doc": "https://
|
|
938
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的秒数" , "definition": "Second(日期时间):数字"}
|
|
941
939
|
*/
|
|
942
940
|
function Second(arg: number | string | Date): number;
|
|
943
941
|
/**
|
|
@@ -947,7 +945,7 @@ alternate?: any;
|
|
|
947
945
|
* 根据输入的日期时间返回该时间的分钟部分
|
|
948
946
|
*
|
|
949
947
|
* @privateForWeDa
|
|
950
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time", "doc": "https://
|
|
948
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的分钟部分" , "definition": "Minute(日期时间):数字"}
|
|
951
949
|
*/
|
|
952
950
|
function Minute(arg: number | string | Date): number;
|
|
953
951
|
/**
|
|
@@ -957,7 +955,7 @@ alternate?: any;
|
|
|
957
955
|
* 根据输入的日期时间返回该时间的小时部分,24小时制
|
|
958
956
|
*
|
|
959
957
|
* @privateForWeDa
|
|
960
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time", "doc": "https://
|
|
958
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的小时部分,24小时制" , "definition": "Hour(日期时间):数字"}
|
|
961
959
|
*/
|
|
962
960
|
function Hour(arg: number | string | Date): number;
|
|
963
961
|
/**
|
|
@@ -967,7 +965,7 @@ alternate?: any;
|
|
|
967
965
|
* 根据输入的日期时间返回该时间的日部分,范围为 1-31
|
|
968
966
|
*
|
|
969
967
|
* @privateForWeDa
|
|
970
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time", "doc": "https://
|
|
968
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的日部分,范围为 1-31" , "definition": "Day(日期时间):数字"}
|
|
971
969
|
*/
|
|
972
970
|
function Day(arg: number | string | Date): number;
|
|
973
971
|
/**
|
|
@@ -977,7 +975,7 @@ alternate?: any;
|
|
|
977
975
|
* 根据输入的日期时间返回该时间的星期数
|
|
978
976
|
*
|
|
979
977
|
* @privateForWeDa
|
|
980
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time", "doc": "https://
|
|
978
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的星期数" , "definition": "DayOfWeek(日期时间):数字"}
|
|
981
979
|
*/
|
|
982
980
|
function DayOfWeek(arg: number | string | Date): number;
|
|
983
981
|
/**
|
|
@@ -987,7 +985,7 @@ alternate?: any;
|
|
|
987
985
|
* 根据输入的日期时间返回该时间的月份
|
|
988
986
|
*
|
|
989
987
|
* @privateForWeDa
|
|
990
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time", "doc": "https://
|
|
988
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的月份" , "definition": "Month(日期时间):数字"}
|
|
991
989
|
*/
|
|
992
990
|
function Month(arg: number | string | Date): number;
|
|
993
991
|
/**
|
|
@@ -997,7 +995,7 @@ alternate?: any;
|
|
|
997
995
|
* 根据输入的日期时间返回该时间的年份
|
|
998
996
|
*
|
|
999
997
|
* @privateForWeDa
|
|
1000
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time", "doc": "https://
|
|
998
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的年份" , "definition": "Year(日期时间):数字"}
|
|
1001
999
|
*/
|
|
1002
1000
|
function Year(arg: number | string | Date): number;
|
|
1003
1001
|
/**
|
|
@@ -1007,7 +1005,7 @@ alternate?: any;
|
|
|
1007
1005
|
* 根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)
|
|
1008
1006
|
*
|
|
1009
1007
|
* @privateForWeDa
|
|
1010
|
-
* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time", "doc": "https://
|
|
1008
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)" , "definition": "GetDate(数字,数字,数字):日期时间"}
|
|
1011
1009
|
*/
|
|
1012
1010
|
function GetDate(year: number, month: number, day: number): number;
|
|
1013
1011
|
/**
|
|
@@ -1017,7 +1015,7 @@ alternate?: any;
|
|
|
1017
1015
|
* 将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue("2021-12-11 01:19:12", "yyyy-MM-dd HH:mm:ss")
|
|
1018
1016
|
*
|
|
1019
1017
|
* @privateForWeDa
|
|
1020
|
-
* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue('2011-07-02', 'YYYY:MM:DD')", "subGroup": "time", "doc": "https://
|
|
1018
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue('2011-07-02', 'YYYY:MM:DD')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue('2021-12-11 01:19:12', 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateTimeValue(文本, 文本):日期时间"}
|
|
1021
1019
|
*/
|
|
1022
1020
|
function DateTimeValue(arg: string, val: string): number;
|
|
1023
1021
|
/**
|
|
@@ -1027,7 +1025,7 @@ alternate?: any;
|
|
|
1027
1025
|
* 根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))
|
|
1028
1026
|
*
|
|
1029
1027
|
* @privateForWeDa
|
|
1030
|
-
* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1028
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))" , "definition": "Age(日期时间,日期时间):数字"}
|
|
1031
1029
|
*/
|
|
1032
1030
|
function Age(arg: number | string | Date, val: number | string | Date): number;
|
|
1033
1031
|
/**
|
|
@@ -1037,7 +1035,7 @@ alternate?: any;
|
|
|
1037
1035
|
* 计算当前年龄,例如 AgeOfNow(Date(2017,3,24))
|
|
1038
1036
|
*
|
|
1039
1037
|
* @privateForWeDa
|
|
1040
|
-
* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1038
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算当前年龄,例如 AgeOfNow(Date(2017,3,24))" , "definition": "AgeOfNow(日期时间):数字"}
|
|
1041
1039
|
*/
|
|
1042
1040
|
function AgeOfNow(arg: number | string | Date): number;
|
|
1043
1041
|
/**
|
|
@@ -1047,7 +1045,7 @@ alternate?: any;
|
|
|
1047
1045
|
* 在传入的日期时间上增加 X 天,支持负数
|
|
1048
1046
|
*
|
|
1049
1047
|
* @privateForWeDa
|
|
1050
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://
|
|
1048
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期时间上增加 X 天,支持负数" , "definition": "DateAdd(日期时间, 数字):日期时间"}
|
|
1051
1049
|
*/
|
|
1052
1050
|
function DateAdd(arg: number | string | Date, day: number): number;
|
|
1053
1051
|
/**
|
|
@@ -1057,7 +1055,7 @@ alternate?: any;
|
|
|
1057
1055
|
* 在传入的日期和时间上增加 X 月,支持负数
|
|
1058
1056
|
*
|
|
1059
1057
|
* @privateForWeDa
|
|
1060
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://
|
|
1058
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 月,支持负数" , "definition": "MonthAdd(日期时间, 数字):日期时间"}
|
|
1061
1059
|
*/
|
|
1062
1060
|
function MonthAdd(arg: number | string | Date, month: number): number;
|
|
1063
1061
|
/**
|
|
@@ -1067,7 +1065,7 @@ alternate?: any;
|
|
|
1067
1065
|
* 在传入的日期和时间上增加 X 年,支持负数
|
|
1068
1066
|
*
|
|
1069
1067
|
* @privateForWeDa
|
|
1070
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://
|
|
1068
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 年,支持负数" , "definition": "YearAdd(日期时间, 数字):日期时间"}
|
|
1071
1069
|
*/
|
|
1072
1070
|
function YearAdd(arg: number | string | Date, year: number): number;
|
|
1073
1071
|
/**
|
|
@@ -1077,7 +1075,7 @@ alternate?: any;
|
|
|
1077
1075
|
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
1078
1076
|
*
|
|
1079
1077
|
* @privateForWeDa
|
|
1080
|
-
* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1078
|
+
* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "DateDiff(日期时间, 日期时间):数字"}
|
|
1081
1079
|
*/
|
|
1082
1080
|
function DateDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1083
1081
|
/**
|
|
@@ -1087,7 +1085,7 @@ alternate?: any;
|
|
|
1087
1085
|
* 返回两个日期时间字段之间的小时差,如果为同一小时,差数为零
|
|
1088
1086
|
*
|
|
1089
1087
|
* @privateForWeDa
|
|
1090
|
-
* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1088
|
+
* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的小时差,如果为同一小时,差数为零" , "definition": "HourDiff(日期时间, 日期时间):数字"}
|
|
1091
1089
|
*/
|
|
1092
1090
|
function HourDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1093
1091
|
/**
|
|
@@ -1097,7 +1095,7 @@ alternate?: any;
|
|
|
1097
1095
|
* 返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零
|
|
1098
1096
|
*
|
|
1099
1097
|
* @privateForWeDa
|
|
1100
|
-
* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1098
|
+
* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零" , "definition": "MinuteDiff(日期时间, 日期时间):数字"}
|
|
1101
1099
|
*/
|
|
1102
1100
|
function MinuteDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1103
1101
|
/**
|
|
@@ -1107,7 +1105,7 @@ alternate?: any;
|
|
|
1107
1105
|
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
1108
1106
|
*
|
|
1109
1107
|
* @privateForWeDa
|
|
1110
|
-
* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1108
|
+
* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "SecondDiff(日期时间, 日期时间):数字"}
|
|
1111
1109
|
*/
|
|
1112
1110
|
function SecondDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1113
1111
|
/**
|
|
@@ -1117,7 +1115,7 @@ alternate?: any;
|
|
|
1117
1115
|
* 返回两个日期时间字段之间的月数差,如果为同一月,差数为零
|
|
1118
1116
|
*
|
|
1119
1117
|
* @privateForWeDa
|
|
1120
|
-
* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1118
|
+
* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的月数差,如果为同一月,差数为零" , "definition": "MonthDiff(日期时间, 日期时间):数字"}
|
|
1121
1119
|
*/
|
|
1122
1120
|
function MonthDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1123
1121
|
/**
|
|
@@ -1127,7 +1125,7 @@ alternate?: any;
|
|
|
1127
1125
|
* 返回两个日期时间字段之间的年数差,如果为同一年,差数为零
|
|
1128
1126
|
*
|
|
1129
1127
|
* @privateForWeDa
|
|
1130
|
-
* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1128
|
+
* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的年数差,如果为同一年,差数为零" , "definition": "YearDiff(日期时间, 日期时间):数字"}
|
|
1131
1129
|
*/
|
|
1132
1130
|
function YearDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1133
1131
|
/**
|
|
@@ -1137,30 +1135,29 @@ alternate?: any;
|
|
|
1137
1135
|
* 格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), "yyyy-MM-dd HH:mm:ss")
|
|
1138
1136
|
*
|
|
1139
1137
|
* @privateForWeDa
|
|
1140
|
-
* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, 'YYYY-MM-DD HH:mm:ss')", "subGroup": "time", "doc": "https://
|
|
1138
|
+
* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, 'YYYY-MM-DD HH:mm:ss')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateText(日期时间, 文本):文本"}
|
|
1141
1139
|
*/
|
|
1142
1140
|
function DateText(createdTime: number | string | Date, text: string): string;
|
|
1143
1141
|
/**
|
|
1144
|
-
*
|
|
1142
|
+
* 是否为今天
|
|
1145
1143
|
*
|
|
1146
1144
|
* @remarks
|
|
1147
|
-
*
|
|
1145
|
+
* 判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))
|
|
1148
1146
|
*
|
|
1149
1147
|
* @privateForWeDa
|
|
1150
|
-
* {"group": "formula", "displayType": "function", "displayName": "
|
|
1148
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))" , "definition": "IsToday(日期时间):布尔值"}
|
|
1151
1149
|
*/
|
|
1152
|
-
function
|
|
1150
|
+
function IsToday(date: number | string | Date): boolean;
|
|
1153
1151
|
/**
|
|
1154
|
-
*
|
|
1152
|
+
* 时间格式化
|
|
1155
1153
|
*
|
|
1156
1154
|
* @remarks
|
|
1157
|
-
*
|
|
1155
|
+
* 格式化时间为指定格式的文本,输入时间为(小时 * 60 * 60 + 分钟 * 60) * 1000计算而来,例如 TimeText(28800000, 'HH:mm')
|
|
1158
1156
|
*
|
|
1159
1157
|
* @privateForWeDa
|
|
1160
|
-
* {"group": "formula", "displayType": "function", "displayName": "
|
|
1158
|
+
* {"group": "formula", "displayType": "function", "displayName": "时间格式化", "insertText": "TimeText(28800000, 'HH:mm')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328#.E6.97.B6.E9.97.B4.E6.97.A5.E6.9C.9F" , "description": "格式化时间为指定格式的文本,输入时间为(小时 * 60 * 60 + 分钟 * 60) * 1000计算而来,例如 TimeText(28800000, 'HH:mm')" , "definition": "TimeText(时间, 文本):文本"}
|
|
1161
1159
|
*/
|
|
1162
|
-
|
|
1163
|
-
|
|
1160
|
+
function TimeText(createdTime: number, text: string): string;
|
|
1164
1161
|
|
|
1165
1162
|
// used widgets Inner Begin
|
|
1166
1163
|
// used widgets - Don't touch me
|
|
@@ -1284,7 +1281,7 @@ declare namespace $comp {
|
|
|
1284
1281
|
* 计算传入数字的绝对值
|
|
1285
1282
|
*
|
|
1286
1283
|
* @privateForWeDa
|
|
1287
|
-
* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation", "doc": "https://
|
|
1284
|
+
* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算传入数字的绝对值" , "definition": "ABS(数字):数字"}
|
|
1288
1285
|
*/
|
|
1289
1286
|
declare function ABS(num: number): number;
|
|
1290
1287
|
/**
|
|
@@ -1294,7 +1291,7 @@ declare function ABS(num: number): number;
|
|
|
1294
1291
|
* 返回一组数字中的最小值
|
|
1295
1292
|
*
|
|
1296
1293
|
* @privateForWeDa
|
|
1297
|
-
* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation", "doc": "https://
|
|
1294
|
+
* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最小值" , "definition": "Min(数字1, [数字2, ...]):数字"}
|
|
1298
1295
|
*/
|
|
1299
1296
|
declare function Min(...args: number[]): number;
|
|
1300
1297
|
/**
|
|
@@ -1304,7 +1301,7 @@ declare function Min(...args: number[]): number;
|
|
|
1304
1301
|
* 返回一组数字中的最大值
|
|
1305
1302
|
*
|
|
1306
1303
|
* @privateForWeDa
|
|
1307
|
-
* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation", "doc": "https://
|
|
1304
|
+
* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最大值" , "definition": "Max(数字1, [数字2, ...]):数字"}
|
|
1308
1305
|
*/
|
|
1309
1306
|
declare function Max(...args: number[]): number;
|
|
1310
1307
|
/**
|
|
@@ -1314,7 +1311,7 @@ declare function Max(...args: number[]): number;
|
|
|
1314
1311
|
* 返回一组数字中的平均值
|
|
1315
1312
|
*
|
|
1316
1313
|
* @privateForWeDa
|
|
1317
|
-
* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation", "doc": "https://
|
|
1314
|
+
* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的平均值" , "definition": "Average(数字1, [数字2, ...]):数字"}
|
|
1318
1315
|
*/
|
|
1319
1316
|
declare function Average(...args: number[]): number;
|
|
1320
1317
|
/**
|
|
@@ -1324,7 +1321,7 @@ declare function Average(...args: number[]): number;
|
|
|
1324
1321
|
* 返回传入数字向下取整的结果
|
|
1325
1322
|
*
|
|
1326
1323
|
* @privateForWeDa
|
|
1327
|
-
* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation", "doc": "https://
|
|
1324
|
+
* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向下取整的结果" , "definition": "Floor(数字):数字"}
|
|
1328
1325
|
*/
|
|
1329
1326
|
declare function Floor(num: number): number;
|
|
1330
1327
|
/**
|
|
@@ -1334,7 +1331,7 @@ declare function Floor(num: number): number;
|
|
|
1334
1331
|
* 返回传入数字向上取整的结果
|
|
1335
1332
|
*
|
|
1336
1333
|
* @privateForWeDa
|
|
1337
|
-
* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation", "doc": "https://
|
|
1334
|
+
* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向上取整的结果" , "definition": "Ceiling(数字):数字"}
|
|
1338
1335
|
*/
|
|
1339
1336
|
declare function Ceiling(num: number): number;
|
|
1340
1337
|
/**
|
|
@@ -1344,7 +1341,7 @@ declare function Ceiling(num: number): number;
|
|
|
1344
1341
|
* 返回传入数字四舍五入后的结果
|
|
1345
1342
|
*
|
|
1346
1343
|
* @privateForWeDa
|
|
1347
|
-
* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation", "doc": "https://
|
|
1344
|
+
* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字四舍五入后的结果" , "definition": "Round(数字):数字"}
|
|
1348
1345
|
*/
|
|
1349
1346
|
declare function Round(num: number): number;
|
|
1350
1347
|
/**
|
|
@@ -1354,7 +1351,7 @@ declare function Round(num: number): number;
|
|
|
1354
1351
|
* 返回一组数字中的和
|
|
1355
1352
|
*
|
|
1356
1353
|
* @privateForWeDa
|
|
1357
|
-
* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation", "doc": "https://
|
|
1354
|
+
* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的和" , "definition": "Sum(数字1, [数字2, ...]):数字"}
|
|
1358
1355
|
*/
|
|
1359
1356
|
declare function Sum(...args: number[]): number;
|
|
1360
1357
|
/**
|
|
@@ -1364,7 +1361,7 @@ declare function Sum(...args: number[]): number;
|
|
|
1364
1361
|
* 返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数
|
|
1365
1362
|
*
|
|
1366
1363
|
* @privateForWeDa
|
|
1367
|
-
* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation", "doc": "https://
|
|
1364
|
+
* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数" , "definition": "Rand(数字):数字"}
|
|
1368
1365
|
*/
|
|
1369
1366
|
declare function Rand(num: number): number;
|
|
1370
1367
|
|
|
@@ -1380,7 +1377,7 @@ alternate?: any;
|
|
|
1380
1377
|
* 按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。
|
|
1381
1378
|
*
|
|
1382
1379
|
* @privateForWeDa
|
|
1383
|
-
* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, '您好', 'hello')", "subGroup": "logic", "doc": "https://
|
|
1380
|
+
* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, '您好', 'hello')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。" , "definition": "If(判断条件, 满足时返回的值, 不满足时返回的值):任何类型"}
|
|
1384
1381
|
*/
|
|
1385
1382
|
declare function If(params: IIfObjectParam): any;
|
|
1386
1383
|
declare function If(condition: boolean, consequent?: any, alternate?: any): any;
|
|
@@ -1391,7 +1388,7 @@ declare function If(condition: boolean, consequent?: any, alternate?: any): any;
|
|
|
1391
1388
|
* 判断传入的文本是否为空
|
|
1392
1389
|
*
|
|
1393
1390
|
* @privateForWeDa
|
|
1394
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty('hello')", "subGroup": "logic", "doc": "https://
|
|
1391
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty('hello')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的文本是否为空" , "definition": "IsEmpty(值):布尔值"}
|
|
1395
1392
|
*/
|
|
1396
1393
|
declare function IsEmpty(text: string | string[]): boolean;
|
|
1397
1394
|
/**
|
|
@@ -1401,7 +1398,7 @@ declare function IsEmpty(text: string | string[]): boolean;
|
|
|
1401
1398
|
* 判断传入的字段值是否包含数据,即不为 NULL
|
|
1402
1399
|
*
|
|
1403
1400
|
* @privateForWeDa
|
|
1404
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为null", "insertText": "NotNull(null)", "subGroup": "logic", "doc": "https://
|
|
1401
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为null", "insertText": "NotNull(null)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的字段值是否包含数据,即不为 NULL" , "definition": "NotNull(字段):布尔值"}
|
|
1405
1402
|
*/
|
|
1406
1403
|
declare function NotNull(val: any): boolean;
|
|
1407
1404
|
/**
|
|
@@ -1411,7 +1408,7 @@ declare function NotNull(val: any): boolean;
|
|
|
1411
1408
|
* 用于确定所有判断条件是否为真
|
|
1412
1409
|
*
|
|
1413
1410
|
* @privateForWeDa
|
|
1414
|
-
* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic", "doc": "https://
|
|
1411
|
+
* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "用于确定所有判断条件是否为真" , "definition": "And(判断条件1, [判断条件2,...]):布尔值"}
|
|
1415
1412
|
*/
|
|
1416
1413
|
declare function And(...args: boolean[]): boolean;
|
|
1417
1414
|
/**
|
|
@@ -1421,7 +1418,7 @@ declare function And(...args: boolean[]): boolean;
|
|
|
1421
1418
|
* 任意一个判断条件为真,则结果为真;所有条件为否,结果才为否
|
|
1422
1419
|
*
|
|
1423
1420
|
* @privateForWeDa
|
|
1424
|
-
* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic", "doc": "https://
|
|
1421
|
+
* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "任意一个判断条件为真,则结果为真;所有条件为否,结果才为否" , "definition": "Or(判断条件1, [判断条件2,...]):布尔值"}
|
|
1425
1422
|
*/
|
|
1426
1423
|
declare function Or(...args: boolean[]): boolean;
|
|
1427
1424
|
|
|
@@ -1432,7 +1429,7 @@ declare function Or(...args: boolean[]): boolean;
|
|
|
1432
1429
|
* 获取传入文本的字符数
|
|
1433
1430
|
*
|
|
1434
1431
|
* @privateForWeDa
|
|
1435
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len('文本')", "subGroup": "text", "doc": "https://
|
|
1432
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "获取传入文本的字符数" , "definition": "Len(文本):数字"}
|
|
1436
1433
|
*/
|
|
1437
1434
|
declare function Len(text: string): number;
|
|
1438
1435
|
/**
|
|
@@ -1442,7 +1439,7 @@ declare function Len(text: string): number;
|
|
|
1442
1439
|
* 判断文本 1 是否包含文本 2
|
|
1443
1440
|
*
|
|
1444
1441
|
* @privateForWeDa
|
|
1445
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains('文本1', '文本2')", "subGroup": "text", "doc": "https://
|
|
1442
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断文本 1 是否包含文本 2" , "definition": "Contains(文本1, 文本2):布尔值"}
|
|
1446
1443
|
*/
|
|
1447
1444
|
declare function Contains(text1: string, text2: string): boolean;
|
|
1448
1445
|
/**
|
|
@@ -1452,7 +1449,7 @@ declare function Contains(text1: string, text2: string): boolean;
|
|
|
1452
1449
|
* 根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split("张三,李四,王五", ",")
|
|
1453
1450
|
*
|
|
1454
1451
|
* @privateForWeDa
|
|
1455
|
-
* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split('文本1', '文本2')", "subGroup": "text", "doc": "https://
|
|
1452
|
+
* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split('张三,李四,王五', ',')" , "definition": "Split(文本1,文本2):文本数组"}
|
|
1456
1453
|
*/
|
|
1457
1454
|
declare function Split(text1: string, text2: string): string[];
|
|
1458
1455
|
/**
|
|
@@ -1462,7 +1459,7 @@ declare function Split(text1: string, text2: string): string[];
|
|
|
1462
1459
|
* 删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除
|
|
1463
1460
|
*
|
|
1464
1461
|
* @privateForWeDa
|
|
1465
|
-
* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim('文本')", "subGroup": "text", "doc": "https://
|
|
1462
|
+
* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除" , "definition": "Trim(文本):文本"}
|
|
1466
1463
|
*/
|
|
1467
1464
|
declare function Trim(text: string): string;
|
|
1468
1465
|
/**
|
|
@@ -1472,7 +1469,7 @@ declare function Trim(text: string): string;
|
|
|
1472
1469
|
* 将传入的文本转为全大写文本
|
|
1473
1470
|
*
|
|
1474
1471
|
* @privateForWeDa
|
|
1475
|
-
* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper('文本')", "subGroup": "text", "doc": "https://
|
|
1472
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全大写文本" , "definition": "Upper(文本):文本"}
|
|
1476
1473
|
*/
|
|
1477
1474
|
declare function Upper(text: string): string;
|
|
1478
1475
|
/**
|
|
@@ -1482,7 +1479,7 @@ declare function Upper(text: string): string;
|
|
|
1482
1479
|
* 将传入的文本转为全小写文本
|
|
1483
1480
|
*
|
|
1484
1481
|
* @privateForWeDa
|
|
1485
|
-
* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower('文本')", "subGroup": "text", "doc": "https://
|
|
1482
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全小写文本" , "definition": "Lower(文本):文本"}
|
|
1486
1483
|
*/
|
|
1487
1484
|
declare function Lower(text: string): string;
|
|
1488
1485
|
/**
|
|
@@ -1492,7 +1489,7 @@ declare function Lower(text: string): string;
|
|
|
1492
1489
|
* 返回多个文本拼接后的新文本
|
|
1493
1490
|
*
|
|
1494
1491
|
* @privateForWeDa
|
|
1495
|
-
* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat('文本1', '文本2')", "subGroup": "text", "doc": "https://
|
|
1492
|
+
* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回多个文本拼接后的新文本" , "definition": "Concat(文本1, [文本2,...]):文本"}
|
|
1496
1493
|
*/
|
|
1497
1494
|
declare function Concat(...text: string[]): string;
|
|
1498
1495
|
|
|
@@ -1503,7 +1500,7 @@ declare function Concat(...text: string[]): string;
|
|
|
1503
1500
|
* 返回当前系统时间,通常与其他日期时间函数搭配使用
|
|
1504
1501
|
*
|
|
1505
1502
|
* @privateForWeDa
|
|
1506
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time", "doc": "https://
|
|
1503
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回当前系统时间,通常与其他日期时间函数搭配使用" , "definition": "Now():日期时间"}
|
|
1507
1504
|
*/
|
|
1508
1505
|
declare function Now(): number;
|
|
1509
1506
|
/**
|
|
@@ -1513,7 +1510,7 @@ declare function Now(): number;
|
|
|
1513
1510
|
* 根据输入的日期时间返回时间戳
|
|
1514
1511
|
*
|
|
1515
1512
|
* @privateForWeDa
|
|
1516
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1513
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回时间戳" , "definition": "Timestamp(日期时间):日期时间"}
|
|
1517
1514
|
*/
|
|
1518
1515
|
declare function Timestamp(arg: number | string | Date): number;
|
|
1519
1516
|
/**
|
|
@@ -1523,7 +1520,7 @@ declare function Timestamp(arg: number | string | Date): number;
|
|
|
1523
1520
|
* 根据输入的日期时间返回该时间的秒数
|
|
1524
1521
|
*
|
|
1525
1522
|
* @privateForWeDa
|
|
1526
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1523
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的秒数" , "definition": "Second(日期时间):数字"}
|
|
1527
1524
|
*/
|
|
1528
1525
|
declare function Second(arg: number | string | Date): number;
|
|
1529
1526
|
/**
|
|
@@ -1533,7 +1530,7 @@ declare function Second(arg: number | string | Date): number;
|
|
|
1533
1530
|
* 根据输入的日期时间返回该时间的分钟部分
|
|
1534
1531
|
*
|
|
1535
1532
|
* @privateForWeDa
|
|
1536
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1533
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的分钟部分" , "definition": "Minute(日期时间):数字"}
|
|
1537
1534
|
*/
|
|
1538
1535
|
declare function Minute(arg: number | string | Date): number;
|
|
1539
1536
|
/**
|
|
@@ -1543,7 +1540,7 @@ declare function Minute(arg: number | string | Date): number;
|
|
|
1543
1540
|
* 根据输入的日期时间返回该时间的小时部分,24小时制
|
|
1544
1541
|
*
|
|
1545
1542
|
* @privateForWeDa
|
|
1546
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1543
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的小时部分,24小时制" , "definition": "Hour(日期时间):数字"}
|
|
1547
1544
|
*/
|
|
1548
1545
|
declare function Hour(arg: number | string | Date): number;
|
|
1549
1546
|
/**
|
|
@@ -1553,7 +1550,7 @@ declare function Hour(arg: number | string | Date): number;
|
|
|
1553
1550
|
* 根据输入的日期时间返回该时间的日部分,范围为 1-31
|
|
1554
1551
|
*
|
|
1555
1552
|
* @privateForWeDa
|
|
1556
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1553
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的日部分,范围为 1-31" , "definition": "Day(日期时间):数字"}
|
|
1557
1554
|
*/
|
|
1558
1555
|
declare function Day(arg: number | string | Date): number;
|
|
1559
1556
|
/**
|
|
@@ -1563,7 +1560,7 @@ declare function Day(arg: number | string | Date): number;
|
|
|
1563
1560
|
* 根据输入的日期时间返回该时间的星期数
|
|
1564
1561
|
*
|
|
1565
1562
|
* @privateForWeDa
|
|
1566
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1563
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的星期数" , "definition": "DayOfWeek(日期时间):数字"}
|
|
1567
1564
|
*/
|
|
1568
1565
|
declare function DayOfWeek(arg: number | string | Date): number;
|
|
1569
1566
|
/**
|
|
@@ -1573,7 +1570,7 @@ declare function DayOfWeek(arg: number | string | Date): number;
|
|
|
1573
1570
|
* 根据输入的日期时间返回该时间的月份
|
|
1574
1571
|
*
|
|
1575
1572
|
* @privateForWeDa
|
|
1576
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1573
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的月份" , "definition": "Month(日期时间):数字"}
|
|
1577
1574
|
*/
|
|
1578
1575
|
declare function Month(arg: number | string | Date): number;
|
|
1579
1576
|
/**
|
|
@@ -1583,7 +1580,7 @@ declare function Month(arg: number | string | Date): number;
|
|
|
1583
1580
|
* 根据输入的日期时间返回该时间的年份
|
|
1584
1581
|
*
|
|
1585
1582
|
* @privateForWeDa
|
|
1586
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1583
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的年份" , "definition": "Year(日期时间):数字"}
|
|
1587
1584
|
*/
|
|
1588
1585
|
declare function Year(arg: number | string | Date): number;
|
|
1589
1586
|
/**
|
|
@@ -1593,7 +1590,7 @@ declare function Year(arg: number | string | Date): number;
|
|
|
1593
1590
|
* 根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)
|
|
1594
1591
|
*
|
|
1595
1592
|
* @privateForWeDa
|
|
1596
|
-
* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time", "doc": "https://
|
|
1593
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)" , "definition": "GetDate(数字,数字,数字):日期时间"}
|
|
1597
1594
|
*/
|
|
1598
1595
|
declare function GetDate(year: number, month: number, day: number): number;
|
|
1599
1596
|
/**
|
|
@@ -1603,7 +1600,7 @@ declare function GetDate(year: number, month: number, day: number): number;
|
|
|
1603
1600
|
* 将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue("2021-12-11 01:19:12", "yyyy-MM-dd HH:mm:ss")
|
|
1604
1601
|
*
|
|
1605
1602
|
* @privateForWeDa
|
|
1606
|
-
* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue('2011-07-02', 'YYYY:MM:DD')", "subGroup": "time", "doc": "https://
|
|
1603
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue('2011-07-02', 'YYYY:MM:DD')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue('2021-12-11 01:19:12', 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateTimeValue(文本, 文本):日期时间"}
|
|
1607
1604
|
*/
|
|
1608
1605
|
declare function DateTimeValue(arg: string, val: string): number;
|
|
1609
1606
|
/**
|
|
@@ -1613,7 +1610,7 @@ declare function DateTimeValue(arg: string, val: string): number;
|
|
|
1613
1610
|
* 根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))
|
|
1614
1611
|
*
|
|
1615
1612
|
* @privateForWeDa
|
|
1616
|
-
* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1613
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))" , "definition": "Age(日期时间,日期时间):数字"}
|
|
1617
1614
|
*/
|
|
1618
1615
|
declare function Age(arg: number | string | Date, val: number | string | Date): number;
|
|
1619
1616
|
/**
|
|
@@ -1623,7 +1620,7 @@ declare function Age(arg: number | string | Date, val: number | string | Date):
|
|
|
1623
1620
|
* 计算当前年龄,例如 AgeOfNow(Date(2017,3,24))
|
|
1624
1621
|
*
|
|
1625
1622
|
* @privateForWeDa
|
|
1626
|
-
* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1623
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算当前年龄,例如 AgeOfNow(Date(2017,3,24))" , "definition": "AgeOfNow(日期时间):数字"}
|
|
1627
1624
|
*/
|
|
1628
1625
|
declare function AgeOfNow(arg: number | string | Date): number;
|
|
1629
1626
|
/**
|
|
@@ -1633,7 +1630,7 @@ declare function AgeOfNow(arg: number | string | Date): number;
|
|
|
1633
1630
|
* 在传入的日期时间上增加 X 天,支持负数
|
|
1634
1631
|
*
|
|
1635
1632
|
* @privateForWeDa
|
|
1636
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://
|
|
1633
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期时间上增加 X 天,支持负数" , "definition": "DateAdd(日期时间, 数字):日期时间"}
|
|
1637
1634
|
*/
|
|
1638
1635
|
declare function DateAdd(arg: number | string | Date, day: number): number;
|
|
1639
1636
|
/**
|
|
@@ -1643,7 +1640,7 @@ declare function DateAdd(arg: number | string | Date, day: number): number;
|
|
|
1643
1640
|
* 在传入的日期和时间上增加 X 月,支持负数
|
|
1644
1641
|
*
|
|
1645
1642
|
* @privateForWeDa
|
|
1646
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://
|
|
1643
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 月,支持负数" , "definition": "MonthAdd(日期时间, 数字):日期时间"}
|
|
1647
1644
|
*/
|
|
1648
1645
|
declare function MonthAdd(arg: number | string | Date, month: number): number;
|
|
1649
1646
|
/**
|
|
@@ -1653,7 +1650,7 @@ declare function MonthAdd(arg: number | string | Date, month: number): number;
|
|
|
1653
1650
|
* 在传入的日期和时间上增加 X 年,支持负数
|
|
1654
1651
|
*
|
|
1655
1652
|
* @privateForWeDa
|
|
1656
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://
|
|
1653
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 年,支持负数" , "definition": "YearAdd(日期时间, 数字):日期时间"}
|
|
1657
1654
|
*/
|
|
1658
1655
|
declare function YearAdd(arg: number | string | Date, year: number): number;
|
|
1659
1656
|
/**
|
|
@@ -1663,7 +1660,7 @@ declare function YearAdd(arg: number | string | Date, year: number): number;
|
|
|
1663
1660
|
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
1664
1661
|
*
|
|
1665
1662
|
* @privateForWeDa
|
|
1666
|
-
* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1663
|
+
* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "DateDiff(日期时间, 日期时间):数字"}
|
|
1667
1664
|
*/
|
|
1668
1665
|
declare function DateDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1669
1666
|
/**
|
|
@@ -1673,7 +1670,7 @@ declare function DateDiff(startDay: number | string | Date, endDay: number | str
|
|
|
1673
1670
|
* 返回两个日期时间字段之间的小时差,如果为同一小时,差数为零
|
|
1674
1671
|
*
|
|
1675
1672
|
* @privateForWeDa
|
|
1676
|
-
* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1673
|
+
* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的小时差,如果为同一小时,差数为零" , "definition": "HourDiff(日期时间, 日期时间):数字"}
|
|
1677
1674
|
*/
|
|
1678
1675
|
declare function HourDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1679
1676
|
/**
|
|
@@ -1683,7 +1680,7 @@ declare function HourDiff(startDay: number | string | Date, endDay: number | str
|
|
|
1683
1680
|
* 返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零
|
|
1684
1681
|
*
|
|
1685
1682
|
* @privateForWeDa
|
|
1686
|
-
* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1683
|
+
* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零" , "definition": "MinuteDiff(日期时间, 日期时间):数字"}
|
|
1687
1684
|
*/
|
|
1688
1685
|
declare function MinuteDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1689
1686
|
/**
|
|
@@ -1693,7 +1690,7 @@ declare function MinuteDiff(startDay: number | string | Date, endDay: number | s
|
|
|
1693
1690
|
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
1694
1691
|
*
|
|
1695
1692
|
* @privateForWeDa
|
|
1696
|
-
* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1693
|
+
* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "SecondDiff(日期时间, 日期时间):数字"}
|
|
1697
1694
|
*/
|
|
1698
1695
|
declare function SecondDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1699
1696
|
/**
|
|
@@ -1703,7 +1700,7 @@ declare function SecondDiff(startDay: number | string | Date, endDay: number | s
|
|
|
1703
1700
|
* 返回两个日期时间字段之间的月数差,如果为同一月,差数为零
|
|
1704
1701
|
*
|
|
1705
1702
|
* @privateForWeDa
|
|
1706
|
-
* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1703
|
+
* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的月数差,如果为同一月,差数为零" , "definition": "MonthDiff(日期时间, 日期时间):数字"}
|
|
1707
1704
|
*/
|
|
1708
1705
|
declare function MonthDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1709
1706
|
/**
|
|
@@ -1713,7 +1710,7 @@ declare function MonthDiff(startDay: number | string | Date, endDay: number | st
|
|
|
1713
1710
|
* 返回两个日期时间字段之间的年数差,如果为同一年,差数为零
|
|
1714
1711
|
*
|
|
1715
1712
|
* @privateForWeDa
|
|
1716
|
-
* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://
|
|
1713
|
+
* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的年数差,如果为同一年,差数为零" , "definition": "YearDiff(日期时间, 日期时间):数字"}
|
|
1717
1714
|
*/
|
|
1718
1715
|
declare function YearDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1719
1716
|
/**
|
|
@@ -1723,30 +1720,29 @@ declare function YearDiff(startDay: number | string | Date, endDay: number | str
|
|
|
1723
1720
|
* 格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), "yyyy-MM-dd HH:mm:ss")
|
|
1724
1721
|
*
|
|
1725
1722
|
* @privateForWeDa
|
|
1726
|
-
* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, 'YYYY-MM-DD HH:mm:ss')", "subGroup": "time", "doc": "https://
|
|
1723
|
+
* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, 'YYYY-MM-DD HH:mm:ss')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateText(日期时间, 文本):文本"}
|
|
1727
1724
|
*/
|
|
1728
1725
|
declare function DateText(createdTime: number | string | Date, text: string): string;
|
|
1729
1726
|
/**
|
|
1730
|
-
* 时间格式化
|
|
1731
|
-
*
|
|
1732
|
-
* @remarks
|
|
1733
|
-
* 格式化时间为指定格式的文本,输入时间为(小时 * 60 * 60 + 分钟 * 60) * 1000计算而来,例如 TimeText(28800000, "HH:mm")
|
|
1734
|
-
*
|
|
1735
|
-
* @privateForWeDa
|
|
1736
|
-
* {"group": "formula", "displayType": "function", "displayName": "时间格式化", "insertText": "TimeText(28800000, 'HH:mm')", "subGroup": "time", "doc": "https://docs.cloudbase.net/lowcode/api/expression-utils#.E6.97.B6.E9.97.B4.E6.97.A5.E6.9C.9F" , "description": "格式化时间为指定格式的文本,输入时间为(小时 * 60 * 60 + 分钟 * 60) * 1000计算而来,例如 TimeText(28800000, 'HH:mm')" , "definition": "TimeText(时间, 文本):文本"}
|
|
1737
|
-
*/
|
|
1738
|
-
declare function TimeText(createdTime: number, text: string): string;
|
|
1739
|
-
/**
|
|
1740
1727
|
* 是否为今天
|
|
1741
1728
|
*
|
|
1742
1729
|
* @remarks
|
|
1743
1730
|
* 判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))
|
|
1744
1731
|
*
|
|
1745
1732
|
* @privateForWeDa
|
|
1746
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time", "doc": "https://
|
|
1733
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))" , "definition": "IsToday(日期时间):布尔值"}
|
|
1747
1734
|
*/
|
|
1748
1735
|
declare function IsToday(date: number | string | Date): boolean;
|
|
1749
|
-
|
|
1736
|
+
/**
|
|
1737
|
+
* 时间格式化
|
|
1738
|
+
*
|
|
1739
|
+
* @remarks
|
|
1740
|
+
* 格式化时间为指定格式的文本,输入时间为(小时 * 60 * 60 + 分钟 * 60) * 1000计算而来,例如 TimeText(28800000, 'HH:mm')
|
|
1741
|
+
*
|
|
1742
|
+
* @privateForWeDa
|
|
1743
|
+
* {"group": "formula", "displayType": "function", "displayName": "时间格式化", "insertText": "TimeText(28800000, 'HH:mm')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328#.E6.97.B6.E9.97.B4.E6.97.A5.E6.9C.9F" , "description": "格式化时间为指定格式的文本,输入时间为(小时 * 60 * 60 + 分钟 * 60) * 1000计算而来,例如 TimeText(28800000, 'HH:mm')" , "definition": "TimeText(时间, 文本):文本"}
|
|
1744
|
+
*/
|
|
1745
|
+
declare function TimeText(createdTime: number, text: string): string;
|
|
1750
1746
|
|
|
1751
1747
|
// Global Formula End
|
|
1752
1748
|
|