Merge remote-tracking branch 'remotes/origin/develop' into hongbo/file-cabinet
This commit is contained in:
commit
1f16e68272
@ -1,5 +1,11 @@
|
|||||||
# @zhst/biz
|
# @zhst/biz
|
||||||
|
|
||||||
|
## 0.15.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- biz: 视频播放首图添加 od 框
|
||||||
|
|
||||||
## 0.14.0
|
## 0.14.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@zhst/biz",
|
"name": "@zhst/biz",
|
||||||
"version": "0.14.0",
|
"version": "0.15.0",
|
||||||
"description": "业务库",
|
"description": "业务库",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"business",
|
"business",
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Button, Card, Flex, Input, InputProps, Tree } from 'antd';
|
import { Button, Card, ConfigProvider, Flex, Input, InputProps, TransferProps, TreeDataNode, TreeProps, Tree } from 'antd';
|
||||||
import theme from 'antd/es/theme'
|
import theme from 'antd/es/theme'
|
||||||
import { TransferProps, TreeDataNode, TreeProps } from 'antd';
|
|
||||||
import './index.less'
|
import './index.less'
|
||||||
import { DeleteOutlined, DoubleRightOutlined, SearchOutlined } from '@ant-design/icons';
|
import { DeleteOutlined, DoubleRightOutlined, SearchOutlined } from '@ant-design/icons';
|
||||||
import { getAllRootKeyById } from './treeTransferHelper';
|
import { getAllRootKeyById } from './treeTransferHelper';
|
||||||
@ -59,17 +58,27 @@ const TreeTransfer: React.FC<TreeTransferProps> = ({
|
|||||||
bodyStyle={{ padding: 12 }}
|
bodyStyle={{ padding: 12 }}
|
||||||
>
|
>
|
||||||
<Input prefix={<SearchOutlined />} onChange={e => setKeyWords(e.target.value)} placeholder='请输入设备名称' {...searchInputProps} />
|
<Input prefix={<SearchOutlined />} onChange={e => setKeyWords(e.target.value)} placeholder='请输入设备名称' {...searchInputProps} />
|
||||||
<Tree
|
<ConfigProvider
|
||||||
style={{ marginTop: '6px' }}
|
theme={{
|
||||||
height={420}
|
components: {
|
||||||
blockNode
|
Tree: {
|
||||||
checkable
|
colorBgContainer: '#FCFCFC'
|
||||||
checkedKeys={checkedKeys}
|
}
|
||||||
treeData={findNodesWithKeyword(keyWords, dataSource)}
|
}
|
||||||
onCheck={(keys, info) => onTreeCheck?.(keys, info)}
|
}}
|
||||||
onSelect={(keys, info) => onTreeSelect?.(keys, info)}
|
>
|
||||||
{...treeProps}
|
<Tree
|
||||||
/>
|
style={{ marginTop: '6px' }}
|
||||||
|
height={420}
|
||||||
|
blockNode
|
||||||
|
checkable
|
||||||
|
checkedKeys={checkedKeys}
|
||||||
|
treeData={findNodesWithKeyword(keyWords, dataSource)}
|
||||||
|
onCheck={(keys, info) => onTreeCheck?.(keys, info)}
|
||||||
|
onSelect={(keys, info) => onTreeSelect?.(keys, info)}
|
||||||
|
{...treeProps}
|
||||||
|
/>
|
||||||
|
</ConfigProvider>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
<DoubleRightOutlined/>
|
<DoubleRightOutlined/>
|
||||||
@ -82,6 +91,7 @@ const TreeTransfer: React.FC<TreeTransferProps> = ({
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={`${componentName}-right_card__items`}
|
className={`${componentName}-right_card__items`}
|
||||||
|
style={{ maxHeight: '422px' }}
|
||||||
>
|
>
|
||||||
{targetItems.map(item => (
|
{targetItems.map(item => (
|
||||||
<div
|
<div
|
||||||
|
@ -24,6 +24,24 @@ export const boxDataSource: TreeDataNode[] = [
|
|||||||
{ key: '0-1-3-2', title: '分组0-1-3-2', isLeaf: true },
|
{ key: '0-1-3-2', title: '分组0-1-3-2', isLeaf: true },
|
||||||
{ key: '0-1-3-3', title: '分组0-1-3-3', isLeaf: true },
|
{ key: '0-1-3-3', title: '分组0-1-3-3', isLeaf: true },
|
||||||
],
|
],
|
||||||
|
},{
|
||||||
|
key: '0-1-3',
|
||||||
|
title: '分组0-1-3',
|
||||||
|
isLeaf: false,
|
||||||
|
children: [
|
||||||
|
{ key: '0-1-3-1', title: '分组0-1-3-1', isLeaf: true },
|
||||||
|
{ key: '0-1-3-2', title: '分组0-1-3-2', isLeaf: true },
|
||||||
|
{ key: '0-1-3-3', title: '分组0-1-3-3', isLeaf: true },
|
||||||
|
],
|
||||||
|
},{
|
||||||
|
key: '0-1-3',
|
||||||
|
title: '分组0-1-3',
|
||||||
|
isLeaf: false,
|
||||||
|
children: [
|
||||||
|
{ key: '0-1-3-1', title: '分组0-1-3-1', isLeaf: true },
|
||||||
|
{ key: '0-1-3-2', title: '分组0-1-3-2', isLeaf: true },
|
||||||
|
{ key: '0-1-3-3', title: '分组0-1-3-3', isLeaf: true },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
&-left {
|
&-left {
|
||||||
&_card {
|
&_card {
|
||||||
width: 500px;
|
width: 500px;
|
||||||
height: 522px;
|
min-height: 522px;
|
||||||
background-color: #FCFCFC;
|
background-color: #FCFCFC;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -10,7 +10,7 @@
|
|||||||
&-right {
|
&-right {
|
||||||
&_card {
|
&_card {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
height: 522px;
|
min-height: 544px;
|
||||||
background-color: #FCFCFC;
|
background-color: #FCFCFC;
|
||||||
|
|
||||||
&__items {
|
&__items {
|
||||||
@ -27,6 +27,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 4px 12px;
|
padding: 4px 12px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: 0.3s ease-out all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
# @zhst/material
|
# @zhst/material
|
||||||
|
|
||||||
|
## 0.10.1
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies
|
||||||
|
- @zhst/biz@0.15.0
|
||||||
|
|
||||||
## 0.10.0
|
## 0.10.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@zhst/material",
|
"name": "@zhst/material",
|
||||||
"version": "0.10.0",
|
"version": "0.10.1",
|
||||||
"description": "物料库",
|
"description": "物料库",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"business",
|
"business",
|
||||||
|
Loading…
Reference in New Issue
Block a user