Skip to content

Commit

Permalink
chore: 版本升级
Browse files Browse the repository at this point in the history
  • Loading branch information
llq0802 committed Dec 22, 2023
1 parent 2151585 commit a693c5b
Show file tree
Hide file tree
Showing 62 changed files with 488 additions and 484 deletions.
2 changes: 1 addition & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default defineConfig({
link: 'https://github.com/llq0802/lighting-design/tree/v2',
},
{
title: '更新日志 - V2.1.26',
title: '更新日志 - V2.1.27',
link: 'https://github.com/llq0802/lighting-design/releases',
},
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lighting-design",
"version": "2.1.26",
"version": "2.1.27",
"description": "🎨 Lighting Design 是一款使用 TypeScript + React 编写的实用业务组件库。",
"keywords": [
"lighting-design",
Expand Down
12 changes: 6 additions & 6 deletions src/CaptchaButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,42 @@ export interface LCaptchaButtonProps extends Omit<ButtonProps, 'disabled'> {
/**
* 倒计时的秒数
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCaptchaButtonProps
*/
second?: number;
/**
*@author 李岚清 <https://github.com/llq0802>
*@description 是否开始发送
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCaptchaButtonProps
*/
start?: boolean;
/**
* 倒计时的文字, 会带上 second 秒
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCaptchaButtonProps
*/
disabledText?: string;
/**
* 缓存的key、页面刷新后倒计时继续 , 多个倒计时组件请设置不同的key。
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCaptchaButtonProps
*/
cacheKey: string;
/**
* 用于重置倒计时
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCaptchaButtonProps
*/
cancelRef?: React.MutableRefObject<(() => void) | undefined>;
/**
*@author 李岚清 <[email protected]>
*@description 倒计时完成后触发
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCaptchaButtonProps
*@see https://ant.design/components/button-cn/
*/
Expand Down
28 changes: 14 additions & 14 deletions src/CardGroup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,98 +23,98 @@ export interface LCardGroupProps {
/**
*是否把每个选项的 label 包装到 value 中,会把 value 类型从 string 变为 { value: string, label: ReactNode } 的格式
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
labelInValue?: boolean;
/**
*默认值
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
defaultValue?: ValueType;
/**
*受控值
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
value?: ValueType;
/**
*值发生变化时出发
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
onChange?: (values: ValueType) => void;
/**
* 是否支持多选
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
multiple?: boolean;
/**
* 数据选项
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
options?: LCardGroupOptions[];
/**
* 是否禁用全部
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
disabled?: boolean;
/**
* 再次点击是否可以取消
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
cancelable?: boolean;
/**
* 卡片之间的间隔
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
gap?: number;
/**
*类名
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
className?: string;
/**
*样式
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
style?: CSSProperties;
/**
* 卡片的样式 比每一项中的 cardProps.bodyStyle 优先级高
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
* */
cardBodyStyle?: CSSProperties;
/**
* 卡片的样式 比每一项中的cardProps.style优先级高
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
cardStyle?: CSSProperties;
/**
* 选中卡片的样式
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCardGroupProps
*/
activeStyle?: CSSProperties;
Expand Down
2 changes: 1 addition & 1 deletion src/CollapseCard/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ toc: content

:::warning{title=注意}

-`2.1.26` 起使用此组件时, antd 的版本应 `>=5.6.0`
-`2.1.27` 起使用此组件时, antd 的版本应 `>=5.6.0`

:::

Expand Down
36 changes: 18 additions & 18 deletions src/CollapseCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,126 +14,126 @@ export type LCollapseCardProps = {
/**
* 初始化是否展开
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
defaultCollapsed?: boolean;
/**
* 受控是否展开
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
collapsed?: boolean;
/**
* 受控展开时的回调
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
onCollapsed?: (bool: boolean) => void;
/**
* 是否能展开
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
collapsible?: boolean;
/**
* 强制被隐藏时是否渲染 DOM 结构
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
forceRender?: boolean;
/**
* 使面板透明且无边框
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
ghost?: boolean;
/**
* 带边框风格的面板
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
bordered?: boolean;
/**
* 是否禁用
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
disabled?: boolean;
/**
* 销毁折叠隐藏的面板
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
destroyContent?: boolean;
/**
* 设置图标位置
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
collapsePosition?: 'left' | 'right';
/**
* 标题
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
title?: ReactNode;
/*
* 右上角额外内容
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
extra?: ReactNode;
/**
* 自定义切换图标
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
expandIcon?: (props: Record<string, any>) => ReactNode;
/**
* 展开时的内容类名
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
contentClassName?: string;
/**
* 组件根类名
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
className?: string;
/**
* 组件根样式
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
style?: CSSProperties;
/**
* 组件大小
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
size?: CollapseProps['size'];
/**
* 触发折叠的位置
*@author 李岚清 <https://github.com/llq0802>
*@version 2.1.26
*@version 2.1.27
*@see 官网 https://llq0802.github.io/lighting-design/latest LCollapseCardProps
*/
triggerPosition?: 'header' | 'icon';
Expand Down
14 changes: 7 additions & 7 deletions src/ColorPick/base/BaseColor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,49 @@ export interface ColorProps extends HTMLAttributes<HTMLSpanElement> {
/**
* 类名
* @author 李岚清 <https://github.com/llq0802>
* @version 2.1.26
* @version 2.1.27
* @see 官网 https://llq0802.github.io/lighting-design/latest ColorProps
*/
className?: string;
/**
* 样式
* @author 李岚清 <https://github.com/llq0802>
* @version 2.1.26
* @version 2.1.27
* @see 官网 https://llq0802.github.io/lighting-design/latest ColorProps
*/
style?: CSSProperties;
/**
* 值
* @author 李岚清 <https://github.com/llq0802>
* @version 2.1.26
* @version 2.1.27
* @see 官网 https://llq0802.github.io/lighting-design/latest ColorProps
*/
value?: string;
/**
* 是否禁用
* @author 李岚清 <https://github.com/llq0802>
* @version 2.1.26
* @version 2.1.27
* @see 官网 https://llq0802.github.io/lighting-design/latest ColorProps
*/
disabled?: boolean;
/**
* 是否显示颜色值文本
* @author 李岚清 <https://github.com/llq0802>
* @version 2.1.26
* @version 2.1.27
* @see 官网 https://llq0802.github.io/lighting-design/latest ColorProps
*/
showText?: boolean;
/**
* 颜色组件大小
* @author 李岚清 <https://github.com/llq0802>
* @version 2.1.26
* @version 2.1.27
* @see 官网 https://llq0802.github.io/lighting-design/latest ColorProps
*/
size?: 'small' | 'middle' | 'large';
/**
* 重新渲染
* @author 李岚清 <https://github.com/llq0802>
* @version 2.1.26
* @version 2.1.27
* @see 官网 https://llq0802.github.io/lighting-design/latest ColorProps
*/
renderColor?: (dom: JSX.Element) => ReactNode;
Expand Down
Loading

0 comments on commit a693c5b

Please sign in to comment.