Merge branch 'develop' into feat/cropper-upgrade

This commit is contained in:
NICE CODE BY DEV 2024-05-13 10:51:47 +08:00
commit 457fa88dcc
9 changed files with 29 additions and 9 deletions

View File

@ -1,5 +1,12 @@
pnpm install --force pnpm install --force
# 打包 npm 包
pnpm run pkg:build
# 发布 npm 包到私有仓库
pnpm run pub
# 打包 npm 相关文档
pnpm run build:master pnpm run build:master
mkdir -p ./app/public/ mkdir -p ./app/public/

View File

@ -1,5 +1,11 @@
# @zhst/biz # @zhst/biz
## 0.21.3
### Patch Changes
- zhst/biz: fix: 边框颜色主题色,实时监控窗口有图片和选中,预警记录文字溢出
## 0.21.2 ## 0.21.2
### Patch Changes ### Patch Changes

View File

@ -1,6 +1,6 @@
{ {
"name": "@zhst/biz", "name": "@zhst/biz",
"version": "0.21.2", "version": "0.21.3",
"description": "业务库", "description": "业务库",
"keywords": [ "keywords": [
"business", "business",

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 ;

View File

@ -1,5 +1,12 @@
# @zhst/material # @zhst/material
## 0.17.2
### Patch Changes
- Updated dependencies
- @zhst/biz@0.21.3
## 0.17.1 ## 0.17.1
### Patch Changes ### Patch Changes

View File

@ -1,6 +1,6 @@
{ {
"name": "@zhst/material", "name": "@zhst/material",
"version": "0.17.1", "version": "0.17.2",
"description": "物料库", "description": "物料库",
"keywords": [ "keywords": [
"business", "business",