feat(@zhst/meta):修改视频传参

This commit is contained in:
NICE CODE BY DEV 2024-01-16 14:20:43 +08:00
parent 1d12b3f529
commit 1260619b42
24 changed files with 84 additions and 13 deletions

View File

@ -6,9 +6,9 @@ export default defineConfig({
favicons: ['/logo.jpg'], favicons: ['/logo.jpg'],
history: { type: 'hash' }, history: { type: 'hash' },
themeConfig: { themeConfig: {
name: 'lambo', name: 'Lambo',
socialLinks: { socialLinks: {
gitlab: 'http://10.0.0.88/web-project/zhst-component', gitlab: 'http://10.0.0.88/web-project/zhst-Lambo',
}, },
}, },
alias: { alias: {

4
.gitignore vendored
View File

@ -7,3 +7,7 @@ node_modules
/docs-dist /docs-dist
vueuse vueuse
/temp /temp
packages/**/es
packages/**/lib
/es
/lib

View File

@ -3,7 +3,9 @@
"ahooks", "ahooks",
"antd", "antd",
"COMPATER", "COMPATER",
"favicons",
"flvjs", "flvjs",
"lambo",
"remuxer", "remuxer",
"transmuxer", "transmuxer",
"zhst" "zhst"

View File

@ -1,5 +1,13 @@
# @zhst/biz # @zhst/biz
## 0.3.1
### Patch Changes
- feat: 修改时间戳
- Updated dependencies
- @zhst/meta@0.3.1
## 0.3.0 ## 0.3.0
### Minor Changes ### Minor Changes

View File

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

View File

@ -1,5 +1,11 @@
# @zhst/biz # @zhst/biz
## 0.3.1
### Patch Changes
- feat: 修改时间戳
## 0.3.0 ## 0.3.0
### Minor Changes ### Minor Changes

View File

@ -1,2 +1,3 @@
export * from './camera'; export * from './camera';
export * from './base'; export * from './base';
export * from './user';

View File

@ -1,2 +1,3 @@
export * from "./camera"; export * from "./camera";
export * from "./base"; export * from "./base";
export * from "./user";

View File

@ -0,0 +1,2 @@
declare const _default: {};
export default _default;

View File

@ -0,0 +1 @@
export default {};

View File

@ -1,2 +1,3 @@
export * from './camera'; export * from './camera';
export * from './base'; export * from './base';
export * from './user';

View File

@ -18,8 +18,10 @@ var src_exports = {};
module.exports = __toCommonJS(src_exports); module.exports = __toCommonJS(src_exports);
__reExport(src_exports, require("./camera"), module.exports); __reExport(src_exports, require("./camera"), module.exports);
__reExport(src_exports, require("./base"), module.exports); __reExport(src_exports, require("./base"), module.exports);
__reExport(src_exports, require("./user"), module.exports);
// Annotate the CommonJS export names for ESM import in node: // Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = { 0 && (module.exports = {
...require("./camera"), ...require("./camera"),
...require("./base") ...require("./base"),
...require("./user")
}); });

View File

@ -0,0 +1,2 @@
declare const _default: {};
export default _default;

View File

@ -0,0 +1,25 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/user/index.ts
var user_exports = {};
__export(user_exports, {
default: () => user_default
});
module.exports = __toCommonJS(user_exports);
var user_default = {};

View File

@ -1,6 +1,6 @@
{ {
"name": "@zhst/constants", "name": "@zhst/constants",
"version": "0.3.0", "version": "0.3.1",
"description": "常量库", "description": "常量库",
"keywords": [ "keywords": [
"constants", "constants",

View File

@ -1,5 +1,13 @@
# @zhst/biz # @zhst/biz
## 0.3.1
### Patch Changes
- Updated dependencies
- @zhst/meta@0.3.1
- @zhst/biz@0.3.1
## 0.3.0 ## 0.3.0
### Minor Changes ### Minor Changes

View File

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

View File

@ -1,5 +1,11 @@
# @zhst/utils # @zhst/utils
## 0.3.1
### Patch Changes
- feat: 修改时间戳
## 0.3.0 ## 0.3.0
### Minor Changes ### Minor Changes

View File

@ -64,6 +64,7 @@
&--zoomin { &--zoomin {
height: 100%; height: 100%;
} }
&__tab { &__tab {

View File

@ -32,7 +32,8 @@ import "./index.less";
var componentName = "zhst-image__video-view"; var componentName = "zhst-image__video-view";
var VideoPlayer = /*#__PURE__*/forwardRef(function (props, ref) { var VideoPlayer = /*#__PURE__*/forwardRef(function (props, ref) {
var url = props.url, var url = props.url,
maxDuration = props.maxDuration, _props$maxDuration = props.maxDuration,
maxDuration = _props$maxDuration === void 0 ? 20 : _props$maxDuration,
_props$screenshotButt = props.screenshotButtonAlign, _props$screenshotButt = props.screenshotButtonAlign,
screenshotButtonAlign = _props$screenshotButt === void 0 ? { screenshotButtonAlign = _props$screenshotButt === void 0 ? {
points: ['bl', 'br'], points: ['bl', 'br'],

View File

@ -52,7 +52,7 @@ var componentName = `zhst-image__video-view`;
var VideoPlayer = (0, import_react.forwardRef)((props, ref) => { var VideoPlayer = (0, import_react.forwardRef)((props, ref) => {
const { const {
url, url,
maxDuration, maxDuration = 20,
screenshotButtonAlign = { screenshotButtonAlign = {
points: ["bl", "br"], points: ["bl", "br"],
offset: [6, 0], offset: [6, 0],

View File

@ -1,6 +1,6 @@
{ {
"name": "@zhst/meta", "name": "@zhst/meta",
"version": "0.3.0", "version": "0.3.1",
"description": "原子组件", "description": "原子组件",
"keywords": [ "keywords": [
"meta", "meta",

View File

@ -55,7 +55,7 @@ export interface VideoViewRef {
const VideoPlayer = forwardRef<VideoViewRef, VideoViewProps>((props, ref) => { const VideoPlayer = forwardRef<VideoViewRef, VideoViewProps>((props, ref) => {
const { const {
url, url,
maxDuration, maxDuration = 20,
screenshotButtonAlign = { screenshotButtonAlign = {
points: ['bl', 'br'], points: ['bl', 'br'],
offset: [6, 0], offset: [6, 0],

View File

@ -27,7 +27,7 @@ export default () => {
<Button type="primary" onClick={() => videoRef.current?.setShowCrop(true)}>截图</Button> <Button type="primary" onClick={() => videoRef.current?.setShowCrop(true)}>截图</Button>
<Button onClick={() => setUrl('ws://10.0.0.120:9033/flv/HaikangNvr/34.flv?ip=10.0.2.103&stime=1705302394&etime=1705302414')}>下一个</Button> <Button onClick={() => setUrl('ws://10.0.0.120:9033/flv/HaikangNvr/34.flv?ip=10.0.2.103&stime=1705302394&etime=1705302414')}>下一个</Button>
<Button onClick={() => videoRef.current?.setShowCrop(false)}>取消</Button> <Button onClick={() => videoRef.current?.setShowCrop(false)}>取消</Button>
<VideoPlayer ref={videoRef} url={url} maxDuration={29} /> <VideoPlayer ref={videoRef} url={url} />
</Space> </Space>
) )
} }
@ -36,4 +36,4 @@ export default () => {
| 参数名 | 参数类型 | 参数说明 | | 参数名 | 参数类型 | 参数说明 |
| ------ | -------- | ---- | | ------ | -------- | ---- |
| url | string必填 | 当前视频链接 | | url | string必填 | 当前视频链接 |
| maxDuration | number必填) | 视频截取长度 | | maxDuration | number选填) | 默认20s, 视频截取长度(注意视频原始长度) |