Socket
Socket
Sign inDemoInstall

@ray-js/types

Package Overview
Dependencies
Maintainers
0
Versions
371
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ray-js/types - npm Package Compare versions

Comparing version 1.5.27 to 1.5.28

86

esm/global.config.d.ts

@@ -7,2 +7,87 @@ export type GlobalConfig = {

};
type BoardMenuItem = {
/**
* 菜单项的 key 值,必须唯一
*/
key: string;
/**
* 菜单项的图标路径,不支持网络图片,支持主题变量配置。
*/
iconPath: string;
/**
* 菜单项的标题,支持多语言。
*/
text: string;
};
type BoardMenus = BoardMenuItem[];
export type TyGlobalConfig = {
/**
* 窗口的背景色
* 默认值: #ffffff
*/
backgroundColor?: string;
/**
* 底部窗口的背景色,仅 iOS 支持
* 默认值: #ffffff
*/
backgroundColorBottom?: string;
/**
* 顶部窗口的背景色,仅 iOS 支持
* 默认值: #ffffff
*/
backgroundColorTop?: string;
/**
* 下拉 loading 的样式,仅支持 dark / light
* 默认值: dark
*/
backgroundTextStyle?: 'dark' | 'light';
/**
* 自定义导航栏,只保留右上角胶囊按钮
* 默认值: false
*/
custom?: boolean;
/**
* 是否开启全局的下拉刷新
* 默认值: false
*/
enablePullDownRefresh?: boolean;
/**
* 导航栏背景颜色,如 #000000
* 默认值: #ffffff
*/
navigationBarBackgroundColor?: string;
/**
* 导航栏标题颜色,仅支持 black / white
* 默认值: black
*/
navigationBarTextStyle?: 'black' | 'white';
/**
* 导航栏标题文字内容
*/
navigationBarTitleText?: string;
/**
* default 默认样式 custom 自定义导航栏,只保留右上角胶囊按钮
* 默认值: default
*/
navigationStyle?: string;
/**
* 是否隐藏右上角胶囊按钮
* 默认值: false
*/
hideMenuButton?: boolean;
/**
* 页面上拉触底事件触发时距页面底部距离,单位为 px
* 默认值: 50
*/
onReachBottomDistance?: number;
/**
* 自定义菜单配置, 容器版本 ≥ 2.3.0
*/
boardMenus?: BoardMenus;
/**
* 屏幕旋转设置,默认值为portrait(竖屏),可选landscape(横屏), auto 自动
* 默认值: portrait
*/
pageOrientation?: string;
};
export type WebGlobalConfig = {

@@ -14,1 +99,2 @@ window: {

};
export {};

@@ -7,2 +7,87 @@ export type GlobalConfig = {

};
type BoardMenuItem = {
/**
* 菜单项的 key 值,必须唯一
*/
key: string;
/**
* 菜单项的图标路径,不支持网络图片,支持主题变量配置。
*/
iconPath: string;
/**
* 菜单项的标题,支持多语言。
*/
text: string;
};
type BoardMenus = BoardMenuItem[];
export type TyGlobalConfig = {
/**
* 窗口的背景色
* 默认值: #ffffff
*/
backgroundColor?: string;
/**
* 底部窗口的背景色,仅 iOS 支持
* 默认值: #ffffff
*/
backgroundColorBottom?: string;
/**
* 顶部窗口的背景色,仅 iOS 支持
* 默认值: #ffffff
*/
backgroundColorTop?: string;
/**
* 下拉 loading 的样式,仅支持 dark / light
* 默认值: dark
*/
backgroundTextStyle?: 'dark' | 'light';
/**
* 自定义导航栏,只保留右上角胶囊按钮
* 默认值: false
*/
custom?: boolean;
/**
* 是否开启全局的下拉刷新
* 默认值: false
*/
enablePullDownRefresh?: boolean;
/**
* 导航栏背景颜色,如 #000000
* 默认值: #ffffff
*/
navigationBarBackgroundColor?: string;
/**
* 导航栏标题颜色,仅支持 black / white
* 默认值: black
*/
navigationBarTextStyle?: 'black' | 'white';
/**
* 导航栏标题文字内容
*/
navigationBarTitleText?: string;
/**
* default 默认样式 custom 自定义导航栏,只保留右上角胶囊按钮
* 默认值: default
*/
navigationStyle?: string;
/**
* 是否隐藏右上角胶囊按钮
* 默认值: false
*/
hideMenuButton?: boolean;
/**
* 页面上拉触底事件触发时距页面底部距离,单位为 px
* 默认值: 50
*/
onReachBottomDistance?: number;
/**
* 自定义菜单配置, 容器版本 ≥ 2.3.0
*/
boardMenus?: BoardMenus;
/**
* 屏幕旋转设置,默认值为portrait(竖屏),可选landscape(横屏), auto 自动
* 默认值: portrait
*/
pageOrientation?: string;
};
export type WebGlobalConfig = {

@@ -14,1 +99,2 @@ window: {

};
export {};

4

package.json
{
"name": "@ray-js/types",
"version": "1.5.27",
"version": "1.5.28",
"description": "Ray types",

@@ -40,3 +40,3 @@ "keywords": [

},
"gitHead": "777cbad246bec69c4e625926a6360d8621fe9fed"
"gitHead": "40359d8769cb30688c912044b009dc7115e73c31"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc