Merge branch 'hongbo/file-cabinet' into 'develop'

fix: 边框颜色主题色,实时监控窗口有图片和选中,预警记录文字溢出

See merge request web-project/zhst-lambo!27
This commit is contained in:
江志雄 2024-05-13 10:27:13 +08:00
commit 72db5f1273
4 changed files with 7 additions and 7 deletions

View File

@ -51,7 +51,7 @@ export const WindowToggle: React.FC<WindowToggleProps> = (props) => {
<div className='body'> <div className='body'>
<Row gutter={[0, 20]} style={{ width: "100%" }}> {/* 设置栅格间距 */} <Row gutter={[0, 20]} style={{ width: "100%" }} > {/* 设置栅格间距 */}
{ {
size === "large" ? size === "large" ?
<> <>
@ -59,7 +59,7 @@ export const WindowToggle: React.FC<WindowToggleProps> = (props) => {
dataSource?.map((item, index) => { // 仅显示前四个元素,即两行两列 dataSource?.map((item, index) => { // 仅显示前四个元素,即两行两列
if (index > 0) return null if (index > 0) return null
return ( return (
<Col xs={24} sm={24} md={24} lg={24} xl={24} > <Col xs={24} sm={24} md={24} lg={24} xl={24} key={item.windowKey}>
<VideoPlayerCard <VideoPlayerCard
key={""} key={""}
selectedWindowKey={selectedWindowKey} selectedWindowKey={selectedWindowKey}
@ -76,7 +76,7 @@ export const WindowToggle: React.FC<WindowToggleProps> = (props) => {
: <> : <>
{dataSource?.map((item) => { {dataSource?.map((item) => {
return ( return (
<Col xs={24} sm={12} md={12} lg={12} xl={12} className='sm-card'> <Col xs={24} sm={12} md={12} lg={12} xl={12} className='sm-card' key={item.windowKey}>
<VideoPlayerCard <VideoPlayerCard
key={item.windowKey} key={item.windowKey}
selectedWindowKey={selectedWindowKey} selectedWindowKey={selectedWindowKey}

View File

@ -1,5 +1,4 @@
import { Card, Space, CardProps, Spin, Button } from 'antd'; import { Card, Space, CardProps, Spin, Button, theme } from 'antd';
import { theme } from 'antd/lib';
import { ConfigProvider, VideoPlayer, CropperImage, type VideoViewRef, } from '@zhst/meta'; import { ConfigProvider, VideoPlayer, CropperImage, type VideoViewRef, } from '@zhst/meta';
import React, { useState, useEffect, ReactNode, useRef, useContext } from 'react'; import React, { useState, useEffect, ReactNode, useRef, useContext } from 'react';
import { CloseOutlined, LoadingOutlined } from '@ant-design/icons'; import { CloseOutlined, LoadingOutlined } from '@ant-design/icons';
@ -63,6 +62,7 @@ export const VideoPlayerCard: React.FC<VideoPlayerCardProps> = (props) => {
<div style={{ width: "100%", height: "100%" }}> <div style={{ width: "100%", height: "100%" }}>
<CropperImage <CropperImage
// editAble={true} // editAble={true}
selectAble={false}
odList={odRectDefault} odList={odRectDefault}
url={imageKey} url={imageKey}
/> />
@ -88,7 +88,7 @@ export const VideoPlayerCard: React.FC<VideoPlayerCardProps> = (props) => {
</div> </div>
</Space>} </Space>}
style={{ display: "flex", flexDirection: "column", borderRadius: 4, overflow: "hidden", ...cardStyle }} style={{ display: "flex", flexDirection: "column", borderRadius: 4, overflow: "hidden", ...cardStyle }}
bodyStyle={{ flex: 1 }} styles={{ body: { flex: 1 } }}
{...cardProps} {...cardProps}
> >
{cardContent ? ( {cardContent ? (

View File

@ -2,7 +2,6 @@ import { Card, Space, Divider, CardProps, theme } from 'antd';
import React, { useContext } from 'react'; import React, { useContext } from 'react';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { ConfigProvider, CropperImage } from '@zhst/meta'; import { ConfigProvider, CropperImage } from '@zhst/meta';
import './index.less' import './index.less'
export interface IRecord { export interface IRecord {

View File

@ -9,6 +9,7 @@
&-card { &-card {
border-radius: 4px; border-radius: 4px;
max-width: 380px;
&-img { &-img {
width: 356px ; width: 356px ;