@lark-project/js-sdk 2.0.15 → 2.0.16-alpha.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/es/index.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/types/index.d.ts +33 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
package/dist/lib/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -448,6 +448,38 @@ interface BatchButtonFeatureContext {
|
|
|
448
448
|
* 按钮构成
|
|
449
449
|
*/
|
|
450
450
|
type ButtonFeatureContext = WorkItemButtonFeatureContext | CreateButtonFeatureContext | BatchButtonFeatureContext | ScheduleUnitButtonFeatureContext;
|
|
451
|
+
/**
|
|
452
|
+
* 脚本构成
|
|
453
|
+
*/
|
|
454
|
+
type ScriptFeatureContext = ButtonFeatureContext;
|
|
455
|
+
/**
|
|
456
|
+
* 按钮弹窗配置
|
|
457
|
+
*/
|
|
458
|
+
interface ButtonModalOpenOptions<Context> {
|
|
459
|
+
/**
|
|
460
|
+
* 标题
|
|
461
|
+
*/
|
|
462
|
+
title?: string;
|
|
463
|
+
/**
|
|
464
|
+
* 宽度
|
|
465
|
+
* 默认: 448
|
|
466
|
+
*/
|
|
467
|
+
width?: number;
|
|
468
|
+
/**
|
|
469
|
+
* 高度
|
|
470
|
+
* 默认: 400
|
|
471
|
+
*/
|
|
472
|
+
height?: number;
|
|
473
|
+
/**
|
|
474
|
+
* 传入 ButtonModal 内的上下文数据
|
|
475
|
+
* 注:传入的数据在 Modal 内是通过 sdk.Context.load().getCustomContext() 来获取的
|
|
476
|
+
*/
|
|
477
|
+
context?: Context;
|
|
478
|
+
/**
|
|
479
|
+
* 指定 ButtonModal 内容的代码入口,即在入口文件中导出的模块名
|
|
480
|
+
*/
|
|
481
|
+
entry?: string;
|
|
482
|
+
}
|
|
451
483
|
/**
|
|
452
484
|
* 内嵌页面构成
|
|
453
485
|
* 一个单独的导航入口+内嵌页面
|
|
@@ -2236,4 +2268,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2236
2268
|
* @packageDocumentation
|
|
2237
2269
|
*/
|
|
2238
2270
|
|
|
2239
|
-
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, CustomField, CustomFieldConfig, CustomFieldFeatureContext, CustomFieldProps, CustomFieldValidateMsg, CustomFieldValueType, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, ModalOpenOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, ScheduleCompValidateMsg, ScheduleCompValueType, ScheduleUnitButtonFeatureContext, Shared, Space, Storage, SubFieldType, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|
|
2271
|
+
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonModalOpenOptions, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, CustomField, CustomFieldConfig, CustomFieldFeatureContext, CustomFieldProps, CustomFieldValidateMsg, CustomFieldValueType, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, ModalOpenOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, ScheduleCompValidateMsg, ScheduleCompValueType, ScheduleUnitButtonFeatureContext, ScriptFeatureContext, Shared, Space, Storage, SubFieldType, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|