Commit b757f342 authored by 田翔's avatar 田翔

fix: 锁死版本号

parent f7074a49
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "2.6.5", "version": "2.6.7",
"description": "2.6.5: 样式修改", "description": "2.6.7: 锁死版本号",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
"@wisdom-utils/utils": "0.0.46", "@wisdom-utils/utils": "0.0.46",
"antd": "4.20.7", "antd": "4.20.7",
"antd-img-crop": "^3.14.1", "antd-img-crop": "^3.14.1",
"form-render": "^1.14.7", "form-render": "1.14.7",
"fr-generator": "^2.8.4", "fr-generator": "2.8.4",
"http-proxy-middleware": "^1.0.6", "http-proxy-middleware": "^1.0.6",
"moment": "^2.29.1", "moment": "^2.29.1",
"qrcode.react": "^3.1.0", "qrcode.react": "^3.1.0",
......
import React, { useContext } from 'react' import React, { useContext } from 'react'
import { Divider, ConfigProvider } from 'antd' import { Divider, ConfigProvider } from 'antd'
import './index.less' import styles from './index.less'
const Header = (props) => { const Header = (props) => {
const { getPrefixCls } = useContext(ConfigProvider.ConfigContext) // const { getPrefixCls } = useContext(ConfigProvider.ConfigContext)
const prefixCls = getPrefixCls('pandaXform') // const prefixCls = getPrefixCls('pandaXform')
const { title, value } = props const { title, value } = props
return ( return (
<div> <div className={styles.object}>
<div <div
className={`${prefixCls}-title`} className={styles.title}
style={{ justifyContent: 'left' }}
> >
{title ? <i className={`${prefixCls}-bg`}></i> : null} {title ? <i className={styles.bg}></i> : null}
{title} {title}
</div> </div>
{title ? <Divider /> : ''} {title ? <Divider /> : ''}
......
@import '~antd/es/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
@pandaXform: ~'@{ant-prefix}-pandaXform'; // @pandaXform: ~'@{ant-prefix}-pandaXform';
.@{pandaXform} { // .@{pandaXform} {
.@{pandaXform}-title { // .@{pandaXform}-title {
// display: flex;
// align-items: center;
// justify-content: center;
// font-size: 16px;
// }
// .@{pandaXform}-bg {
// width: 3px;
// height: 16px;
// margin-right: 10px;
// background-color: #337ab7;
// }
// // .fr-label-object {
// // .fr-label-title {
// // padding: 10px 10px 0 0;
// // }
// // .fr-label-title::after {
// // content: '';
// // }
// // }
// // .b--black-20 {
// // border-color: rgba(232, 240, 237, 1);
// // }
// }
.object {
.title {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: left;
font-size: 16px; font-size: 16px;
} }
.@{pandaXform}-bg { .bg {
width: 3px; width: 3px;
height: 16px; height: 16px;
margin-right: 10px; margin-right: 10px;
background-color: #337ab7; background-color: #337ab7;
} }
.fr-label-object {
.fr-label-title {
padding: 10px 10px 0 0;
}
.fr-label-title::after {
content: '';
}
}
.b--black-20 {
border-color: rgba(232, 240, 237, 1);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment