Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
49dd888c
Commit
49dd888c
authored
Dec 31, 2020
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增外部链接字段类型
parent
1c562bf4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
0 deletions
+19
-0
index.ts
src/components/template/index.ts
+1
-0
enum.ts
src/const/enum.ts
+1
-0
AddOption.vue
src/views/template/components/AddOption.vue
+5
-0
WordItem.vue
src/views/template/components/WordItem.vue
+1
-0
WordsManager.vue
src/views/template/components/WordsManager.vue
+11
-0
No files found.
src/components/template/index.ts
View file @
49dd888c
...
@@ -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
,
};
};
src/const/enum.ts
View file @
49dd888c
...
@@ -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
{
...
...
src/views/template/components/AddOption.vue
View file @
49dd888c
...
@@ -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
()
{
...
...
src/views/template/components/WordItem.vue
View file @
49dd888c
...
@@ -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'
)
...
...
src/views/template/components/WordsManager.vue
View file @
49dd888c
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment