Skip to content

Commit 07851a5

Browse files
committed
update version
1 parent 0ec882d commit 07851a5

6 files changed

Lines changed: 11 additions & 6 deletions

File tree

apps/app-pc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@script-example/app-pc",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"private": true,
55
"type": "module",
66
"scripts": {

apps/app-pc/src/pages/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"binds": [],
3-
"description": "<b>run</b> 函数用于执行核心业务逻辑,返回 <code>int</code> 类型的结果。<br><br><span style='color:#e5c07b'>▸ 入参</span><br> request: <code>MyScriptRequest</code> 请求对象,包含 count、test 等字段<br><span style='color:#e5c07b'>▸ 返回值</span><br> <code>Integer</code> 处理后的整型结果<br><span style='color:#e5c07b'>▸ 示例</span><br> <code style='background:rgba(255,255,255,0.08);padding:2px 6px;border-radius:3px'>def result = run(request)</code><br><br><em>注意:request 中的 count 字段必须大于 0,否则将抛出异常。</em>",
3+
"description": "<p>这是标题</p><b>run</b> 函数用于执行核心业务逻辑,返回 <code>int</code> 类型的结果。<br><br><span style='color:#e5c07b'>▸ 入参</span><br> request: <code>MyScriptRequest</code> 请求对象,包含 count、test 等字段<br><span style='color:#e5c07b'>▸ 返回值</span><br> <code>Integer</code> 处理后的整型结果<br><span style='color:#e5c07b'>▸ 示例</span><br> <code style='background:rgba(255,255,255,0.08);padding:2px 6px;border-radius:3px'>def result = run(request)</code><br><br><em>注意:request 中的 count 字段必须大于 0,否则将抛出异常。</em>",
44
"mainMethod": "run",
55
"requests": [
66
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coding-script/root",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "script-engine",
55
"main": "index.js",
66
"scripts": {

packages/script-engine/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coding-script/script-engine",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "script-engine components",
55
"keywords": [
66
"coding-script",

packages/script-engine/src/components/theme-colors.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ export function ensureScrollbarStyle() {
6262
.${SCROLL_CLASS}::-webkit-scrollbar-track { background: transparent; }
6363
body.se-panel-resizing { cursor: col-resize !important; user-select: none !important; }
6464
body.se-panel-resizing * { cursor: col-resize !important; user-select: none !important; }
65+
.se-desc-tip p { margin: 0 0 4px 0; }
66+
.se-desc-tip p:last-child { margin-bottom: 0; }
67+
.se-desc-tip code { font-family: Menlo, Consolas, monospace; font-size: 11px; }
6568
`;
6669
document.head.appendChild(style);
6770
}

packages/script-engine/src/components/toolbar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ToolbarButton } from './toolbar-button';
33
import { FormatIcon } from './format-icon';
44
import { MaximizeIcon, MinimizeIcon } from './fullscreen-icon';
55
import type { ToolbarItem } from '../types';
6-
import { themes } from './theme-colors';
6+
import { themes, ensureScrollbarStyle } from './theme-colors';
77

88
// 锤子图标(编译/构建)
99
const HammerIcon: React.FC<{ color: string }> = ({ color }) => (
@@ -135,6 +135,7 @@ export const Toolbar: React.FC<ToolbarProps> = ({
135135

136136
useEffect(() => {
137137
if (!showDesc) return;
138+
ensureScrollbarStyle();
138139
updateTipPos();
139140
window.addEventListener('scroll', updateTipPos, true);
140141
window.addEventListener('resize', updateTipPos);
@@ -303,6 +304,7 @@ export const Toolbar: React.FC<ToolbarProps> = ({
303304
{showDesc && tipPos && descHtml && (
304305
<div
305306
ref={tipRef}
307+
className="se-desc-tip"
306308
style={{
307309
position: 'fixed',
308310
top: tipPos.top,
@@ -316,7 +318,7 @@ export const Toolbar: React.FC<ToolbarProps> = ({
316318
borderRadius: 6,
317319
color: colors.text,
318320
fontSize: 12,
319-
lineHeight: 1.65,
321+
lineHeight: 1.5,
320322
wordBreak: 'break-word',
321323
zIndex: 9999,
322324
boxShadow: '0 4px 16px rgba(0,0,0,0.3)',

0 commit comments

Comments
 (0)