style(icons): 三个插件改用指定 lucide 图标(标注 pencil-ruler / 抠图 scissors / 白底图 vector-square)
- image-annotate:plugin/glue.js 的命令与节点操作 icon: layer → pencil-ruler(已重新构建 src/index.js)1.0.2 → 1.0.3 - xianyi-cutout:两条注册 icon: ref → scissors,1.0.2 → 1.0.3 - white-bg-800:两条注册 icon: fit → vector-square,1.2.0 → 1.2.1 - npm run validate:7/7 通过 注:宿主已内置同名图标(pencil-ruler / scissors / vector-square),发布到 KV 后刷新即生效。
This commit is contained in:
1 parent
68af559a57
commit
c31c92d07a
7 files changed
+24
-16
No files matched your search
@@ -105,7 +105,7 @@ export function createGlue(ctx, css) {
|
||||
ctx.nodeActions.register({
|
||||
id: 'annotate-node',
|
||||
title: '标注 / 修图',
|
||||
icon: 'layer',
|
||||
icon: 'pencil-ruler',
|
||||
appliesTo: appliesTo,
|
||||
run: function (node) { return openEditor(node) },
|
||||
})
|
||||
@@ -113,7 +113,7 @@ export function createGlue(ctx, css) {
|
||||
ctx.commands.register({
|
||||
id: 'annotate-selected',
|
||||
title: '标注 / 修图:选中节点',
|
||||
icon: 'layer',
|
||||
icon: 'pencil-ruler',
|
||||
run: function () {
|
||||
const selected = ctx.canvas.getSelectedNode()
|
||||
if (!selected) return Promise.reject(new Error('请先选中一个带图的节点'))
|
||||
|
||||
Reference in new issue
Block a user