用 bun fmt 格式化全部代码和文档
- bunfig.toml 的 [fmt]:不写分号、单引号、一行最长 160,和原来的写法一致 - .prettierignore:docs/教材摘要/ 是书上的摘录,不格式化 - 模板里一行写两条语句的事件处理(@keydown.delete、@dblclick)改成调用方法:去掉分号后拆成两行,Vue 编译不过 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d4b8bf9241
commit
de277d3e9d
102 files changed
+1971
-1059
No files matched your search
@@ -95,13 +95,7 @@ const itemHeight = computed(() => `${(p.value.ItemHeight as number | undefined)
|
||||
|
||||
<template>
|
||||
<!-- Button -->
|
||||
<button
|
||||
v-if="node.type === 'Button'"
|
||||
class="wf-control wf-button"
|
||||
:style="style"
|
||||
:disabled="!enabled"
|
||||
@click="act({ action: 'click' })"
|
||||
>
|
||||
<button v-if="node.type === 'Button'" class="wf-control wf-button" :style="style" :disabled="!enabled" @click="act({ action: 'click' })">
|
||||
{{ displayText(p.Text) }}
|
||||
</button>
|
||||
|
||||
@@ -230,11 +224,7 @@ const itemHeight = computed(() => `${(p.value.ItemHeight as number | undefined)
|
||||
</div>
|
||||
|
||||
<!-- 教材控件库:LED 显示屏 -->
|
||||
<LedControl
|
||||
v-else-if="node.type === 'WinFormsDeviceControlLibrary.LED'"
|
||||
:node="node"
|
||||
:style="style"
|
||||
/>
|
||||
<LedControl v-else-if="node.type === 'WinFormsDeviceControlLibrary.LED'" :node="node" :style="style" />
|
||||
|
||||
<!-- 其他容器(Panel、UserControl 等):按普通容器渲染 -->
|
||||
<div v-else class="wf-control wf-panel" :style="style" :title="node.type">
|
||||
|
||||
Reference in new issue
Block a user