Commit 49dd888c authored by chenqikuai's avatar chenqikuai

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

parent 1c562bf4
...@@ -20,4 +20,5 @@ export default { ...@@ -20,4 +20,5 @@ export default {
8: TypeEight, 8: TypeEight,
9: TypeNine, 9: TypeNine,
10: TypeTen, 10: TypeTen,
11: TypeZero,
}; };
...@@ -46,6 +46,7 @@ export enum DataType { ...@@ -46,6 +46,7 @@ export enum DataType {
Video = 8, // 视频 Video = 8, // 视频
Audio = 9, // 音频 Audio = 9, // 音频
TextArea = 10, // 多行文本 TextArea = 10, // 多行文本
Link = 11, // 外部链接
} }
export enum AuthStatus { export enum AuthStatus {
......
...@@ -106,6 +106,11 @@ export default class AddOption extends Vue { ...@@ -106,6 +106,11 @@ export default class AddOption extends Vue {
title: '编辑器', title: '编辑器',
desc: '编辑器', desc: '编辑器',
type: DataType.Editor, type: DataType.Editor,
},
{
title: '外部链接',
desc: '外部链接',
type: DataType.Link,
} }
]; ];
private addOption() { private addOption() {
......
...@@ -58,6 +58,7 @@ export default class WordItem extends Vue { ...@@ -58,6 +58,7 @@ export default class WordItem extends Vue {
8: '视频', 8: '视频',
9: '音频', 9: '音频',
10: '多行文本输入', 10: '多行文本输入',
11: '外部链接',
}; };
private DataType: any = DataType; private DataType: any = DataType;
@Emit('show-action-handler') @Emit('show-action-handler')
......
...@@ -174,6 +174,7 @@ export default class Add extends Vue { ...@@ -174,6 +174,7 @@ export default class Add extends Vue {
[DataType.Video]: '视频', [DataType.Video]: '视频',
[DataType.Audio]: '音频', [DataType.Audio]: '音频',
[DataType.TextArea]: '多行文本', [DataType.TextArea]: '多行文本',
[DataType.Link]: '外部链接',
}; };
private typeValue: any = { private typeValue: any = {
0: { 0: {
...@@ -272,6 +273,16 @@ export default class Add extends Vue { ...@@ -272,6 +273,16 @@ export default class Add extends Vue {
key: '', key: '',
label: '多行文本', label: '多行文本',
}, },
11: {
data: {
type: 'text',
format: 'string',
value: '',
},
type: 11,
key: '',
label: '外部链接',
}
}; };
private showActionHandler({ index, parentIndex }: any) { private showActionHandler({ index, parentIndex }: any) {
this.showMoreAction = true; 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