Commit b18a298d authored by 涂茜's avatar 涂茜

Merge branch 'fix/bug' into 'dev'

Fix/bug See merge request !32
parents d5841ce2 a0b7b2e4
Pipeline #26469 failed with stages
in 15 seconds
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.4.4](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/basictable@1.4.2...@wisdom-components/basictable@1.4.4) (2021-04-22)
### Bug Fixes
- update package ([403ae9d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/403ae9d9e5cec67084343cdbfc06370ee07b1681))
- update package ([f0b3401](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/f0b34012654a1a9af9d20f72589b78671cb231a0))
## [1.4.3](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/basictable@1.4.2...@wisdom-components/basictable@1.4.3) (2021-04-22) ## [1.4.3](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/basictable@1.4.2...@wisdom-components/basictable@1.4.3) (2021-04-22)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/basictable", "name": "@wisdom-components/basictable",
"version": "1.4.3", "version": "1.4.4",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.2.9](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/basictools@1.2.7...@wisdom-components/basictools@1.2.9) (2021-04-22)
### Bug Fixes
- update package ([403ae9d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/403ae9d9e5cec67084343cdbfc06370ee07b1681))
- update package ([f0b3401](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/f0b34012654a1a9af9d20f72589b78671cb231a0))
## [1.2.8](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/basictools@1.2.7...@wisdom-components/basictools@1.2.8) (2021-04-22) ## [1.2.8](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/basictools@1.2.7...@wisdom-components/basictools@1.2.8) (2021-04-22)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/basictools", "name": "@wisdom-components/basictools",
"version": "1.2.8", "version": "1.2.9",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.3.13](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/devicetree@1.3.12...@wisdom-components/devicetree@1.3.13) (2021-04-22)
### Bug Fixes
- update package ([403ae9d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/403ae9d9e5cec67084343cdbfc06370ee07b1681))
## [1.3.12](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/devicetree@1.3.8...@wisdom-components/devicetree@1.3.12) (2021-04-22) ## [1.3.12](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/devicetree@1.3.8...@wisdom-components/devicetree@1.3.12) (2021-04-22)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/devicetree", "name": "@wisdom-components/devicetree",
"version": "1.3.12", "version": "1.3.13",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.3.11](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/empty@1.3.10...@wisdom-components/empty@1.3.11) (2021-04-22)
### Bug Fixes
- update package ([403ae9d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/403ae9d9e5cec67084343cdbfc06370ee07b1681))
## [1.3.10](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/empty@1.3.9...@wisdom-components/empty@1.3.10) (2021-04-22) ## [1.3.10](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/empty@1.3.9...@wisdom-components/empty@1.3.10) (2021-04-22)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/empty", "name": "@wisdom-components/empty",
"version": "1.3.10", "version": "1.3.11",
"description": "@wisdom-components/empty", "description": "@wisdom-components/empty",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.0.9](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/exportexcel@1.0.7...@wisdom-components/exportexcel@1.0.9) (2021-04-22)
### Bug Fixes
- update package ([403ae9d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/403ae9d9e5cec67084343cdbfc06370ee07b1681))
## [1.0.8](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/exportexcel@1.0.7...@wisdom-components/exportexcel@1.0.8) (2021-04-22) ## [1.0.8](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/exportexcel@1.0.7...@wisdom-components/exportexcel@1.0.8) (2021-04-22)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/exportexcel", "name": "@wisdom-components/exportexcel",
"version": "1.0.8", "version": "1.0.9",
"description": "> TODO: description", "description": "> TODO: description",
"author": "lijiwen <961370825@qq.com>", "author": "lijiwen <961370825@qq.com>",
"homepage": "", "homepage": "",
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.4.12](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/historyinfo@1.4.11...@wisdom-components/historyinfo@1.4.12) (2021-04-22)
### Bug Fixes
- update package ([403ae9d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/403ae9d9e5cec67084343cdbfc06370ee07b1681))
## [1.4.11](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/historyinfo@1.4.8...@wisdom-components/historyinfo@1.4.11) (2021-04-22) ## [1.4.11](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/historyinfo@1.4.8...@wisdom-components/historyinfo@1.4.11) (2021-04-22)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/historyinfo", "name": "@wisdom-components/historyinfo",
"version": "1.4.11", "version": "1.4.12",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.3.11](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/imageselect@1.3.10...@wisdom-components/imageselect@1.3.11) (2021-04-22)
### Bug Fixes
- update package ([403ae9d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/403ae9d9e5cec67084343cdbfc06370ee07b1681))
- update quotaselect ([2bdb602](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/2bdb602dc2349b12aad76d3561dd90adfb71e9f6))
## [1.3.10](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/imageselect@1.3.8...@wisdom-components/imageselect@1.3.10) (2021-04-22) ## [1.3.10](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/imageselect@1.3.8...@wisdom-components/imageselect@1.3.10) (2021-04-22)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/imageselect", "name": "@wisdom-components/imageselect",
"version": "1.3.10", "version": "1.3.11",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -50,7 +50,7 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect }) ...@@ -50,7 +50,7 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect })
const renderImageList = (data = []) => { const renderImageList = (data = []) => {
return ( return (
<Row gutter={[0, 24]}> <Row gutter={[0, 12]}>
{!!data && {!!data &&
data.map((item, index) => ( data.map((item, index) => (
<Col <Col
...@@ -93,39 +93,41 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect }) ...@@ -93,39 +93,41 @@ const ImageSelect = ({ src, url, width, title, dataSource, onSearch, onSelect })
</div> </div>
)} )}
</div> </div>
<Modal {visible && (
width={width} <Modal
centered width={width}
title={ centered
<div className={classNames(`${prefixCls}-modal-header`)}> title={
<div className={classNames(`${prefixCls}-modal-title`)}>{title}</div> <div className={classNames(`${prefixCls}-modal-header`)}>
<Input <div className={classNames(`${prefixCls}-modal-title`)}>{title}</div>
className={classNames(`${prefixCls}-modal-search`)} <Input
placeholder="搜索图片关键词" className={classNames(`${prefixCls}-modal-search`)}
allowClear placeholder="搜索图片关键词"
bordered={false} allowClear
prefix={<SearchOutlined />} bordered={false}
onChange={onChange} prefix={<SearchOutlined />}
onPressEnter={onPressEnter} onChange={onChange}
/> onPressEnter={onPressEnter}
</div> />
} </div>
footer={null} }
visible={visible} footer={null}
onCancel={handleCancel} visible={true}
className={classNames(`${prefixCls}-modal`)} onCancel={handleCancel}
> className={classNames(`${prefixCls}-modal`)}
{!!imgList.length && >
imgList.map((item, index) => { {!!imgList.length &&
return ( imgList.map((item, index) => {
<div key={item.text + index} className={classNames(`${prefixCls}-modal-folder`)}> return (
<div className={classNames(`${prefixCls}-modal-path-title`)}>{item.text}</div> <div key={item.text + index} className={classNames(`${prefixCls}-modal-folder`)}>
<div>{renderImageList(item.list)}</div> <div className={classNames(`${prefixCls}-modal-path-title`)}>{item.text}</div>
</div> <div>{renderImageList(item.list)}</div>
); </div>
})} );
{!imgList.length && <Empty />} })}
</Modal> {!imgList.length && <Empty />}
</Modal>
)}
</div> </div>
); );
}; };
......
...@@ -80,8 +80,15 @@ ...@@ -80,8 +80,15 @@
} }
&-item-wrap { &-item-wrap {
padding: 10px 0;
text-align: center; text-align: center;
border: 1px solid transparent; border: 1px solid transparent;
&.selected {
background: linear-gradient(0deg, #f1f4fb 0%, #ffffff 100%);
border: 1px solid #b8d6fb;
border-radius: 2px;
}
} }
&-item-wrap:hover { &-item-wrap:hover {
...@@ -96,12 +103,6 @@ ...@@ -96,12 +103,6 @@
height: 40px; height: 40px;
} }
&.selected {
background: linear-gradient(0deg, #f1f4fb 0%, #ffffff 100%);
border: 1px solid #b8d6fb;
border-radius: 2px;
}
&-item-text { &-item-text {
font-size: 12px; font-size: 12px;
white-space: nowrap; white-space: nowrap;
......
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.7.7](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/quotaselect@1.7.6...@wisdom-components/quotaselect@1.7.7) (2021-04-22)
### Bug Fixes
- update package ([403ae9d](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/403ae9d9e5cec67084343cdbfc06370ee07b1681))
- update quotaselect ([2bdb602](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/2bdb602dc2349b12aad76d3561dd90adfb71e9f6))
## [1.7.6](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/quotaselect@1.7.2...@wisdom-components/quotaselect@1.7.6) (2021-04-22) ## [1.7.6](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/quotaselect@1.7.2...@wisdom-components/quotaselect@1.7.6) (2021-04-22)
### Bug Fixes ### Bug Fixes
......
{ {
"name": "@wisdom-components/quotaselect", "name": "@wisdom-components/quotaselect",
"version": "1.7.6", "version": "1.7.7",
"description": "> TODO: description", "description": "> TODO: description",
"author": "tuqian <webtuqian@163.com>", "author": "tuqian <webtuqian@163.com>",
"homepage": "", "homepage": "",
......
...@@ -221,97 +221,99 @@ const QuotaSelect = ({ ...@@ -221,97 +221,99 @@ const QuotaSelect = ({
return ( return (
<div className={classNames(prefixCls)}> <div className={classNames(prefixCls)}>
<Button {...buttonProps} onClick={showModal} /> <Button {...buttonProps} onClick={showModal} />
<Modal {visible && (
centered <Modal
width={width} centered
title={title} width={width}
cancelText={cancelText} title={title}
okText={okText} cancelText={cancelText}
visible={visible} okText={okText}
onCancel={handleCancel} visible={true}
onOk={onOk} onCancel={handleCancel}
className={classNames(`${prefixCls}-modal`)} onOk={onOk}
> className={classNames(`${prefixCls}-modal`)}
<div className={classNames(`${prefixCls}-modal-wrap`)}> >
<div className={classNames(`${prefixCls}-modal-left`)}> <div className={classNames(`${prefixCls}-modal-wrap`)}>
<div className={classNames(`${prefixCls}-modal-select-wrap`)}> <div className={classNames(`${prefixCls}-modal-left`)}>
<Input <div className={classNames(`${prefixCls}-modal-select-wrap`)}>
className={classNames(`${prefixCls}-modal-search`)} <Input
placeholder={placeholder} className={classNames(`${prefixCls}-modal-search`)}
bordered={false} placeholder={placeholder}
prefix={searchPrefix} bordered={false}
onChange={onSearch} prefix={searchPrefix}
onPressEnter={onSearch} onChange={onSearch}
/> onPressEnter={onSearch}
<div className={classNames(`${prefixCls}-modal-target`)}> />
<div>指标:</div> <div className={classNames(`${prefixCls}-modal-target`)}>
<Radio.Group onChange={onRadioChange} defaultValue={targetValue}> <div>指标:</div>
<Radio.Button value="emphasis">重点指标</Radio.Button> <Radio.Group onChange={onRadioChange} defaultValue={targetValue}>
<Radio.Button value="all">全部</Radio.Button> <Radio.Button value="emphasis">重点指标</Radio.Button>
</Radio.Group> <Radio.Button value="all">全部</Radio.Button>
</Radio.Group>
</div>
<div
className={classNames(`${prefixCls}-modal-select`, {
warning: !(selectData.length < maximum),
})}
>
{selectData.length < maximum ? (
<>
<ExclamationCircleFilled />
<div>已选择 {selectData.length} 个指标</div>
</>
) : (
<>
<ExclamationCircleFilled />
<div>已达上限,最多选择 {maximum} 个指标</div>
</>
)}
</div>
</div> </div>
<div <div className={classNames(`${prefixCls}-modal-option-wrap`)}>
className={classNames(`${prefixCls}-modal-select`, { {!quotaList.length && <Empty />}
warning: !(selectData.length < maximum), <Row gutter={[0, 6]}>
})} {!!quotaList.length &&
> quotaList.map((item) => (
{selectData.length < maximum ? ( <Col span={8} key={item.key}>
<> <Checkbox
<ExclamationCircleFilled /> value={item.title}
<div>已选择 {selectData.length} 个指标</div> checked={item.checked}
</> disabled={
) : ( (selectData.length > maximum || selectData.length === maximum) &&
<> !item.checked
<ExclamationCircleFilled /> }
<div>已达上限,最多选择 {maximum} 个指标</div> onChange={handleCheckboxChange}
</> >
)} {item.title}
</Checkbox>
</Col>
))}
</Row>
</div> </div>
</div> </div>
<div className={classNames(`${prefixCls}-modal-option-wrap`)}> <div className={classNames(`${prefixCls}-modal-right`)}>
{!quotaList.length && <Empty />} <div className={classNames(`${prefixCls}-modal-number`)}>
<Row gutter={[0, 6]}> 已选:{selectData.length}/{maximum}
{!!quotaList.length && </div>
quotaList.map((item) => ( <div className={classNames(`${prefixCls}-modal-tree`)}>
<Col span={8} key={item.key}> <Tree draggable={true} onDrop={handleDrop} {...treeProps}>
<Checkbox {selectData.map((item) => (
value={item.title} <TreeNode
checked={item.checked} key={item.key}
disabled={ title={
(selectData.length > maximum || selectData.length === maximum) && <div className={classNames(`${prefixCls}-modal-tree-title`)}>
!item.checked <div>{item.title}</div>
} <CloseOutlined onClick={() => handleCancelSelect(item)} />
onChange={handleCheckboxChange} </div>
> }
{item.title} />
</Checkbox>
</Col>
))} ))}
</Row> </Tree>
</div> </div>
</div>
<div className={classNames(`${prefixCls}-modal-right`)}>
<div className={classNames(`${prefixCls}-modal-number`)}>
已选:{selectData.length}/{maximum}
</div>
<div className={classNames(`${prefixCls}-modal-tree`)}>
<Tree draggable={true} onDrop={handleDrop} {...treeProps}>
{selectData.map((item) => (
<TreeNode
key={item.key}
title={
<div className={classNames(`${prefixCls}-modal-tree-title`)}>
<div>{item.title}</div>
<CloseOutlined onClick={() => handleCancelSelect(item)} />
</div>
}
/>
))}
</Tree>
</div> </div>
</div> </div>
</div> </Modal>
</Modal> )}
</div> </div>
); );
}; };
......
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