Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-16 01:51:36 +00:00
parent a4605e311a
commit 58905d02c2
28599 changed files with 2179074 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import React from 'react';
export type ProCardDividerProps = {
/**
* 样式
*
* @ignore
*/
style?: React.CSSProperties;
/**
* ClassName
*
* @ignore
*/
className?: string;
/**
* 布局类型
*
* @default vertical
*/
type?: 'horizontal' | 'vertical';
};
declare const ProCardDivider: React.FC<ProCardDividerProps>;
export default ProCardDivider;

View File

@@ -0,0 +1,25 @@
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import { ConfigProvider } from 'antd';
import classNames from 'classnames';
import React, { useContext } from 'react';
import useStyle from "./style";
import { jsx as _jsx } from "react/jsx-runtime";
var ProCardDivider = function ProCardDivider(props) {
var _useContext = useContext(ConfigProvider.ConfigContext),
getPrefixCls = _useContext.getPrefixCls;
var proCardPrefixCls = getPrefixCls('pro-card');
var prefixCls = "".concat(proCardPrefixCls, "-divider");
var _useStyle = useStyle(proCardPrefixCls),
wrapSSR = _useStyle.wrapSSR,
hashId = _useStyle.hashId;
var className = props.className,
_props$style = props.style,
style = _props$style === void 0 ? {} : _props$style,
type = props.type;
var classString = classNames(prefixCls, className, hashId, _defineProperty({}, "".concat(prefixCls, "-").concat(type), type));
return wrapSSR( /*#__PURE__*/_jsx("div", {
className: classString,
style: style
}));
};
export default ProCardDivider;

View File

@@ -0,0 +1,5 @@
/// <reference types="react" />
export default function useStyle(prefixCls: string): {
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
hashId: string;
};

View File

@@ -0,0 +1,37 @@
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import { useStyle as useAntdStyle } from '@ant-design/pro-provider';
var genDividerStyle = function genDividerStyle(token) {
var componentCls = token.componentCls;
return _defineProperty({}, componentCls, {
'&-divider': {
flex: 'none',
width: token.lineWidth,
marginInline: token.marginXS,
marginBlock: token.marginLG,
backgroundColor: token.colorSplit,
'&-horizontal': {
width: 'initial',
height: token.lineWidth,
marginInline: token.marginLG,
marginBlock: token.marginXS
}
},
'&&-size-small &-divider': {
marginBlock: token.marginLG,
marginInline: token.marginXS,
'&-horizontal': {
marginBlock: token.marginXS,
marginInline: token.marginLG
}
}
});
};
export default function useStyle(prefixCls) {
return useAntdStyle('ProCardDivider', function (token) {
var proCardDividerToken = _objectSpread(_objectSpread({}, token), {}, {
componentCls: ".".concat(prefixCls)
});
return [genDividerStyle(proCardDividerToken)];
});
}