fix(测试计划): 修复测试计划日志KEY&修复评论组件限制长度为1000
This commit is contained in:
parent
eff826b97c
commit
9dfdf2fe12
|
@ -43,6 +43,7 @@
|
|||
"@form-create/arco-design": "^3.1.23",
|
||||
"@halo-dev/richtext-editor": "0.0.0-alpha.33",
|
||||
"@tanstack/vue-query": "^5.17.15",
|
||||
"@tiptap/extension-character-count": "^2.4.0",
|
||||
"@tiptap/extension-image": "^2.1.15",
|
||||
"@tiptap/extension-mention": "^2.1.13",
|
||||
"@tiptap/suggestion": "^2.1.13",
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
:upload-image="props.uploadImage"
|
||||
:preview-url="props.previewUrl"
|
||||
class="w-full"
|
||||
:limit-length="1000"
|
||||
placeholder="ms.comment.enterPlaceHolderTip"
|
||||
/>
|
||||
<a-textarea
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
PluginKey,
|
||||
RichTextEditor,
|
||||
} from '@halo-dev/richtext-editor';
|
||||
import CharacterCount from '@tiptap/extension-character-count';
|
||||
import Mention from '@tiptap/extension-mention';
|
||||
import type { queueAsPromised } from 'fastq';
|
||||
import * as fastq from 'fastq';
|
||||
|
@ -91,6 +92,7 @@
|
|||
draggable?: boolean;
|
||||
previewUrl?: string;
|
||||
editable?: boolean;
|
||||
limitLength?: number;
|
||||
}>(),
|
||||
{
|
||||
raw: '',
|
||||
|
@ -329,7 +331,6 @@
|
|||
HTMLAttributes: {
|
||||
class: 'mention',
|
||||
},
|
||||
// TODO第一版本先按照初始化评论的人 不加userMap
|
||||
// @ts-ignore
|
||||
renderHTML({ options, node }) {
|
||||
return [
|
||||
|
@ -341,6 +342,9 @@
|
|||
},
|
||||
suggestion,
|
||||
}) as Extension<any, any>,
|
||||
CharacterCount.configure({
|
||||
limit: props.limitLength || null,
|
||||
}),
|
||||
],
|
||||
autofocus: false,
|
||||
editable: !props.editable,
|
||||
|
|
|
@ -976,8 +976,15 @@ export const pathMap: PathMapItem[] = [
|
|||
level: MENU_LEVEL[2],
|
||||
children: [
|
||||
{
|
||||
key: 'TEST_PLAN_INDEX', // 测试计划-测试计划
|
||||
locale: 'menu.testPlan',
|
||||
key: 'TEST_PLAN_PLAN', // 测试计划-计划
|
||||
locale: 'menu.testPlanShort',
|
||||
route: RouteEnum.TEST_PLAN_INDEX_DETAIL,
|
||||
permission: [],
|
||||
level: MENU_LEVEL[2],
|
||||
},
|
||||
{
|
||||
key: 'TEST_PLAN_GROUP', // 测试计划-计划组
|
||||
locale: 'menu.testPlanGroup',
|
||||
route: RouteEnum.TEST_PLAN_INDEX,
|
||||
permission: [],
|
||||
level: MENU_LEVEL[2],
|
||||
|
|
|
@ -21,6 +21,7 @@ export default {
|
|||
message: {
|
||||
'menu.workbench': 'Workbench',
|
||||
'menu.testPlan': 'Test Plan',
|
||||
'menu.testPlanGroup': 'Planning groups',
|
||||
'menu.testPlanShort': 'Plan',
|
||||
'menu.testPlan.testPlanDetail': 'Test plan details',
|
||||
'menu.bugManagement': 'Bug',
|
||||
|
|
|
@ -20,6 +20,7 @@ export default {
|
|||
message: {
|
||||
'menu.workbench': '工作台',
|
||||
'menu.testPlan': '测试计划',
|
||||
'menu.testPlanGroup': '计划组',
|
||||
'menu.testPlanShort': '计划',
|
||||
'menu.testPlan.testPlanDetail': '测试计划详情',
|
||||
'menu.bugManagement': '缺陷管理',
|
||||
|
|
Loading…
Reference in New Issue