From b603234e0ce6173f434a1fbdeb44afd0b99ef625 Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Thu, 31 Oct 2024 11:23:57 +0800 Subject: [PATCH] release(logcat): v0.4.1 --- index.json | 2 +- src/logcat/package.json | 2 +- src/logcat/react.tsx | 4 +++- src/logcat/story.js | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/index.json b/index.json index b5a04e9..29d310e 100644 --- a/index.json +++ b/index.json @@ -163,7 +163,7 @@ }, "logcat": { "react": true, - "version": "0.4.0", + "version": "0.4.1", "style": true, "icon": false, "test": true, diff --git a/src/logcat/package.json b/src/logcat/package.json index 73a0cab..afb1550 100644 --- a/src/logcat/package.json +++ b/src/logcat/package.json @@ -1,6 +1,6 @@ { "name": "logcat", - "version": "0.4.0", + "version": "0.4.1", "description": "Android logcat viewer", "luna": { "react": true diff --git a/src/logcat/react.tsx b/src/logcat/react.tsx index e039836..dfe4e7d 100644 --- a/src/logcat/react.tsx +++ b/src/logcat/react.tsx @@ -1,4 +1,4 @@ -import { CSSProperties, FC, useEffect, useRef } from 'react' +import { CSSProperties, FC, MouseEventHandler, useEffect, useRef } from 'react' import each from 'licia/each' import Logcat, { IOptions } from './index' import { useNonInitialEffect } from '../share/hooks' @@ -6,6 +6,7 @@ import { useNonInitialEffect } from '../share/hooks' interface IILogcatProps extends IOptions { style?: CSSProperties className?: string + onContextMenu?: MouseEventHandler onCreate?: (logcat: Logcat) => void } @@ -39,6 +40,7 @@ const LunaLogcat: FC = (props) => {
) diff --git a/src/logcat/story.js b/src/logcat/story.js index f8c78f1..f19ea0a 100644 --- a/src/logcat/story.js +++ b/src/logcat/story.js @@ -57,6 +57,7 @@ const def = story( maxNum={maxNum} filter={filter} view={view} + onContextMenu={() => console.log('context menu')} onCreate={(logcat) => each(logs, (log) => logcat.append(log))} /> )