ruoyi-plus-soybean/src/typings/union-key.d.ts

57 lines
1.5 KiB
TypeScript
Raw Normal View History

2023-02-23 08:38:03 +08:00
declare namespace UnionKey {
/** http请求头的content-type类型 */
type ContentType = 'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data';
2023-03-08 06:40:40 +08:00
/**
*
* - basic
* - blank
*/
type LayoutComponentType = 'basic' | 'blank';
2023-02-23 08:38:03 +08:00
/**
*
* - pwd-login: 账密登录
* - code-login: 手机验证码登录
* - register: 注册
* - reset-pwd: 重置密码
* - bind-wechat: 微信绑定
*/
type LoginModule = 'pwd-login' | 'code-login' | 'register' | 'reset-pwd' | 'bind-wechat';
/**
*
* - vertical: 左侧菜单模式
* - horizontal: 顶部菜单模式
* - vertical-mix: 左侧菜单混合模式
* - horizontal-mix: 顶部菜单混合模式
*/
type ThemeLayoutMode = 'vertical' | 'horizontal' | 'vertical-mix' | 'horizontal-mix';
/**
*
* - chrome: 谷歌风格
* - button: 按钮风格
*/
type ThemeTabMode = 'chrome' | 'button';
/**
*
* - flex-start: 居左
* - center: 居中
* - flex-end: 居右
*/
type ThemeHorizontalMenuPosition = 'flex-start' | 'center' | 'flex-end';
/**
*
* - zoom-fade: 渐变
* - zoom-out: 闪现
* - fade-slide: 滑动
* - fade: 消退
* - fade-bottom: 底部消退
* - fade-scale: 缩放消退
*/
type ThemeAnimateMode = 'zoom-fade' | 'zoom-out' | 'fade-slide' | 'fade' | 'fade-bottom' | 'fade-scale';
}