@jlceda/pro-api-types 0.1.145 → 0.1.146
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/index.d.ts +70 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -13872,9 +13872,74 @@ declare class SYS_Dialog {
|
|
|
13872
13872
|
* @param callbackFn - 回调函数
|
|
13873
13873
|
*/
|
|
13874
13874
|
showConfirmationMessage(content: string, title?: string, mainButtonTitle?: string, buttonTitle?: string, callbackFn?: (mainButtonClicked: boolean) => void): void;
|
|
13875
|
-
|
|
13876
|
-
|
|
13877
|
-
|
|
13875
|
+
/**
|
|
13876
|
+
* 弹出输入窗口
|
|
13877
|
+
*
|
|
13878
|
+
* @beta
|
|
13879
|
+
* @param beforeContent - 输入框上方文字
|
|
13880
|
+
* @param afterContent - 输入框下方文字
|
|
13881
|
+
* @param title - 弹出窗口标题
|
|
13882
|
+
* @param type - 输入框类型
|
|
13883
|
+
* @param value - 输入框默认值
|
|
13884
|
+
* @param otherProperty - 其它参数,可参考 {@link https://developer.mozilla.org/docs/Web/HTML/Element/input#attributes | The HTML Input element}
|
|
13885
|
+
* @param callbackFn - 回调函数
|
|
13886
|
+
* @returns 用户输入的值,始终为 `string` 类型,除非用户点击了 **取消** 按钮
|
|
13887
|
+
*/
|
|
13888
|
+
showInputDialog(beforeContent?: string, afterContent?: string, title?: string, type?: 'color' | 'date' | 'datetime-local' | 'email' | 'mouth' | 'number' | 'password' | 'tel' | 'text' | 'time' | 'url' | 'week', value?: string | number, otherProperty?: {
|
|
13889
|
+
max?: number;
|
|
13890
|
+
maxlength?: number;
|
|
13891
|
+
min?: number;
|
|
13892
|
+
minlength?: number;
|
|
13893
|
+
multiple?: boolean;
|
|
13894
|
+
pattern?: RegExp;
|
|
13895
|
+
placeholder?: string;
|
|
13896
|
+
readonly?: boolean;
|
|
13897
|
+
step?: number;
|
|
13898
|
+
}, callbackFn?: (value: any) => void): void;
|
|
13899
|
+
/**
|
|
13900
|
+
* 弹出选择窗口
|
|
13901
|
+
*
|
|
13902
|
+
* @beta
|
|
13903
|
+
* @param options -
|
|
13904
|
+
* 选项列表,可以为字符串数组或对象数组,在未指定 `defaultOption` 时,默认值为列表的第一项;
|
|
13905
|
+
*
|
|
13906
|
+
* 如若为字符串数组,则选项的值和选项的展示内容将保持一致;
|
|
13907
|
+
*
|
|
13908
|
+
* 如若为对象数组,则 `value` 表示选项的值,`displayContent` 表示选项的展示内容
|
|
13909
|
+
* @param beforeContent - 选择框上方文字
|
|
13910
|
+
* @param afterContent - 选择框下方文字
|
|
13911
|
+
* @param title - 选择框标题
|
|
13912
|
+
* @param defaultOption - 默认选项,以选项的值作为匹配参数,如若 `multiple` 参数为 `true`,则此处需要传入字符串数组
|
|
13913
|
+
* @param multiple - 是否支持多选,默认为单选框
|
|
13914
|
+
* @param callbackFn - 回调函数
|
|
13915
|
+
* @returns 用户选择的值,对应传入的 `options` 中的 `value` 字段
|
|
13916
|
+
*/
|
|
13917
|
+
showSelectDialog(options: Array<string> | Array<{
|
|
13918
|
+
value: string;
|
|
13919
|
+
displayContent: string;
|
|
13920
|
+
}>, beforeContent?: string, afterContent?: string, title?: string, defaultOption?: string, multiple?: false, callbackFn?: (value: string) => void): void;
|
|
13921
|
+
/**
|
|
13922
|
+
* 弹出多选窗口
|
|
13923
|
+
*
|
|
13924
|
+
* @beta
|
|
13925
|
+
* @param options -
|
|
13926
|
+
* 选项列表,可以为字符串数组或对象数组,在未指定 `defaultOption` 时,默认值为列表的第一项;
|
|
13927
|
+
*
|
|
13928
|
+
* 如若为字符串数组,则选项的值和选项的展示内容将保持一致;
|
|
13929
|
+
*
|
|
13930
|
+
* 如若为对象数组,则 `value` 表示选项的值,`displayContent` 表示选项的展示内容
|
|
13931
|
+
* @param beforeContent - 多选框上方文字
|
|
13932
|
+
* @param afterContent - 多选框下方文字
|
|
13933
|
+
* @param title - 多选框标题
|
|
13934
|
+
* @param defaultOption - 默认选项数组,以选项的值作为匹配参数
|
|
13935
|
+
* @param multiple - 是否支持多选
|
|
13936
|
+
* @param callbackFn - 回调函数
|
|
13937
|
+
* @returns 用户选择的值的集合数组,对应传入的 `options` 中的 `value` 字段
|
|
13938
|
+
*/
|
|
13939
|
+
showSelectDialog(options: Array<string> | Array<{
|
|
13940
|
+
value: string;
|
|
13941
|
+
displayContent: string;
|
|
13942
|
+
}>, beforeContent?: string, afterContent?: string, title?: string, defaultOption?: Array<string>, multiple?: true, callbackFn?: (value: Array<string>) => void): void;
|
|
13878
13943
|
}
|
|
13879
13944
|
|
|
13880
13945
|
/**
|
|
@@ -13906,7 +13971,7 @@ declare class SYS_Environment {
|
|
|
13906
13971
|
*/
|
|
13907
13972
|
isEasyEDAProEdition(): boolean;
|
|
13908
13973
|
/**
|
|
13909
|
-
*
|
|
13974
|
+
* 是否为 嘉立创EDA 专业版本
|
|
13910
13975
|
*
|
|
13911
13976
|
* @public
|
|
13912
13977
|
* @returns 是否为嘉立创EDA 专业版本
|
|
@@ -13969,7 +14034,7 @@ declare class SYS_FileManager {
|
|
|
13969
14034
|
* @remarks
|
|
13970
14035
|
* 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
13971
14036
|
*
|
|
13972
|
-
* 注意:本接口需要启用
|
|
14037
|
+
* 注意:本接口需要启用 **工程管理 \> 下载工程** 权限,没有权限调用将始终 `throw Error`
|
|
13973
14038
|
*
|
|
13974
14039
|
* @param fileName - 文件名
|
|
13975
14040
|
* @param password - 加密密码
|