Skip to content

Commit

Permalink
style: 修复颜色选择器样式
Browse files Browse the repository at this point in the history
容器布局重构之后,组件外层div去除flex属性;
  • Loading branch information
mengshang918 committed Jan 21, 2022
1 parent ea35c0d commit 91a32f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/drip-form-theme-antd/src/ColorPickerField/index.styl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.drip-form--colorpicker
display flex

.colorpicker--show
margin-right 5px
padding 1px
Expand Down
6 changes: 3 additions & 3 deletions packages/drip-form-theme-antd/src/ColorPickerField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: jiangxiaowei
* @Date: 2020-05-14 13:33:14
* @Last Modified by: jiangxiaowei
* @Last Modified time: 2021-08-11 14:34:36
* @Last Modified time: 2022-01-21 11:25:34
*/
import React, { memo, useState } from 'react'
// import PropTypes from 'prop-types'
Expand Down Expand Up @@ -57,7 +57,7 @@ const ColorPickerField = ({
}, [_onChange, initColor])

return (
<>
<div className="drip-form--colorpicker">
{disabled ? (
<div
className={cx('colorpicker--show', {
Expand Down Expand Up @@ -106,7 +106,7 @@ const ColorPickerField = ({
style={{ width: 120, marginRight: 5 }}
/>
{!disabled && <Button onClick={_changeInitColor}>恢复默认</Button>}
</>
</div>
)
}

Expand Down

0 comments on commit 91a32f0

Please sign in to comment.