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