feat: 重塑技能库与统一文件工作台
- 统一分类检索、新建导入和发布交互 - 使用单一文件工作台编辑全部 Skill 资源 - 下沉可复用 Markdown 与代码编辑能力
This commit is contained in:
@@ -164,8 +164,7 @@ onBeforeUnmount(() =>
|
||||
overflow: hidden;
|
||||
background: hsl(var(--surface-panel));
|
||||
border: 1px solid hsl(var(--line-subtle));
|
||||
border-radius: var(--radius-panel);
|
||||
box-shadow: var(--shadow-subtle);
|
||||
border-radius: var(--radius-toolbar);
|
||||
}
|
||||
|
||||
.document-editor-workbench__tree {
|
||||
@@ -177,6 +176,7 @@ onBeforeUnmount(() =>
|
||||
}
|
||||
|
||||
.document-editor-workbench__main {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
|
||||
@@ -5,13 +5,13 @@ import { computed, ref } from 'vue';
|
||||
|
||||
import {
|
||||
ChevronRight,
|
||||
Ellipsis,
|
||||
File,
|
||||
FileCode2,
|
||||
FileImage,
|
||||
FileText,
|
||||
FolderClosed,
|
||||
FolderOpen,
|
||||
Ellipsis,
|
||||
Plus,
|
||||
} from '@easyflow/icons';
|
||||
|
||||
@@ -69,6 +69,7 @@ function activate() {
|
||||
emit('focusPath', props.node.path);
|
||||
if (isDirectory.value) {
|
||||
expanded.value = !expanded.value;
|
||||
return;
|
||||
}
|
||||
emit('select', props.node);
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ describe('file tree panel keyboard navigation', () => {
|
||||
expectFocused('references/nested/deep.md');
|
||||
});
|
||||
|
||||
it('selects files and directories with Enter or Space', async () => {
|
||||
it('selects files while directory activation only toggles expansion', async () => {
|
||||
const wrapper = mountTree();
|
||||
|
||||
treeItem('references/guide.md')?.dispatchEvent(
|
||||
@@ -153,10 +153,7 @@ describe('file tree panel keyboard navigation', () => {
|
||||
);
|
||||
await nextTick();
|
||||
expect(treeItem('references')?.getAttribute('aria-expanded')).toBe('false');
|
||||
expect(wrapper.emitted('select')).toHaveLength(2);
|
||||
expect(wrapper.emitted('select')?.[1]?.[0]).toMatchObject({
|
||||
path: 'references',
|
||||
});
|
||||
expect(wrapper.emitted('select')).toHaveLength(1);
|
||||
});
|
||||
|
||||
it('emits contextual create and file operations from row actions', async () => {
|
||||
|
||||
Reference in New Issue
Block a user