提交 8a0a3306 作者: 曹云

Merge branch 'master' of ssh://git.mmcuav.cn:8222/root/sharefly-web-nextjs into caoyun

//字符省略样式
@mixin ellipsis($count){
display: -webkit-box; /* 使用弹性盒子布局 */
-webkit-line-clamp: $count; /* 显示行数 */
-webkit-box-orient: vertical; /* 垂直排列 */
overflow: hidden; /* 隐藏溢出部分 */
text-overflow: ellipsis; /* 使用省略号代替溢出部分 */
}
\ No newline at end of file
import React from "react"; import React from "react";
import { ConfigProvider } from "antd"; import { ConfigProvider } from "antd";
const testGreenColor = "#52c41a";
const testRedColor = "#ff0000";
const withTheme = (node: JSX.Element) => ( const withTheme = (node: JSX.Element) => (
<> <>
<ConfigProvider <ConfigProvider
theme={{ theme={{
token: { token: {
colorPrimary: '#52c41a', colorPrimary: "rgba(255, 85, 45, 1)",
}, },
}} }}
> >
<ConfigProvider <ConfigProvider
theme={{ theme={{
token: { token: {
borderRadius: 16, borderRadius: 6,
}, },
}} }}
> >
...@@ -24,6 +21,6 @@ const withTheme = (node: JSX.Element) => ( ...@@ -24,6 +21,6 @@ const withTheme = (node: JSX.Element) => (
</ConfigProvider> </ConfigProvider>
</ConfigProvider> </ConfigProvider>
</> </>
) );
export default withTheme; export default withTheme;
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论