-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 代码比较CodeReview组件增加多行选中功能。使用allow-checked参数控制。增加详细使用示例和文档说明。#1876 (
#1885) * 组件易用性优化,category-search组件唤出textInput时,input框自动聚焦 (#1842) * feat: 代码比较CodeReview组件增加行/多行选中功能。使用allow-checked参数控制。增加详细使用示例和文档说明。 #1876
- Loading branch information
Showing
10 changed files
with
603 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
/* @jsxImportSource vue */ | ||
import { defineComponent } from 'vue'; | ||
import type { SetupContext } from 'vue'; | ||
import { codeEditorProps, CodeEditorProps } from './code-editor-types'; | ||
import { useCodeEditor } from './composables/use-code-editor'; | ||
import './code-editor.scss'; | ||
|
||
export default defineComponent({ | ||
name: 'DCodeEditor', | ||
props: codeEditorProps, | ||
emits: ['update:modelValue', 'afterEditorInit', 'click'], | ||
setup(props: CodeEditorProps, ctx: SetupContext) { | ||
const { editorEl } = useCodeEditor(props, ctx); | ||
|
||
return () => <div ref={editorEl} class="devui-code-editor"></div>; | ||
} | ||
name: 'DCodeEditor', | ||
props: codeEditorProps, | ||
emits: ['update:modelValue', 'afterEditorInit', 'click'], | ||
setup(props: CodeEditorProps, ctx: SetupContext) { | ||
const { editorEl } = useCodeEditor(props, ctx); | ||
return () => <div ref={editorEl} class="devui-code-editor"></div>; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/devui-vue/devui/code-review/src/components/code-review-header.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/devui-vue/devui/code-review/src/components/code-review-icons.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.