Commit 49dd888c authored by chenqikuai's avatar chenqikuai

feat: 新增外部链接字段类型

parent 1c562bf4
......@@ -20,4 +20,5 @@ export default {
8: TypeEight,
9: TypeNine,
10: TypeTen,
11: TypeZero,
};
......@@ -46,6 +46,7 @@ export enum DataType {
Video = 8, // 视频
Audio = 9, // 音频
TextArea = 10, // 多行文本
Link = 11, // 外部链接
}
export enum AuthStatus {
......
......@@ -106,6 +106,11 @@ export default class AddOption extends Vue {
title: '编辑器',
desc: '编辑器',
type: DataType.Editor,
},
{
title: '外部链接',
desc: '外部链接',
type: DataType.Link,
}
];
private addOption() {
......
......@@ -58,6 +58,7 @@ export default class WordItem extends Vue {
8: '视频',
9: '音频',
10: '多行文本输入',
11: '外部链接',
};
private DataType: any = DataType;
@Emit('show-action-handler')
......
......@@ -174,6 +174,7 @@ export default class Add extends Vue {
[DataType.Video]: '视频',
[DataType.Audio]: '音频',
[DataType.TextArea]: '多行文本',
[DataType.Link]: '外部链接',
};
private typeValue: any = {
0: {
......@@ -272,6 +273,16 @@ export default class Add extends Vue {
key: '',
label: '多行文本',
},
11: {
data: {
type: 'text',
format: 'string',
value: '',
},
type: 11,
key: '',
label: '外部链接',
}
};
private showActionHandler({ index, parentIndex }: any) {
this.showMoreAction = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment