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
d6143137
Commit
d6143137
authored
Sep 28, 2020
by
yyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加多行输入文本
parent
e80a6f3a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
4 deletions
+55
-4
TypeTen.vue
src/components/template/TypeTen.vue
+36
-0
index.ts
src/components/template/index.ts
+2
-0
enum.ts
src/const/enum.ts
+1
-0
AddOption.vue
src/views/template/components/AddOption.vue
+5
-4
WordsManager.vue
src/views/template/components/WordsManager.vue
+11
-0
No files found.
src/components/template/TypeTen.vue
0 → 100644
View file @
d6143137
<
template
>
<div
class=
"van-hairline--bottom"
>
<van-field
:value=
"value.value"
rows=
"3"
type=
"textarea"
autosize
v-model=
"aa"
@
input=
"input"
:label=
"proofSubItem.label"
placeholder=
"请输入"
/>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Model
,
Emit
,
Vue
}
from
'vue-property-decorator'
;
import
{
Field
}
from
'vant'
;
@
Component
({
name
:
'TypeTen'
,
components
:
{
[
Field
.
name
]:
Field
,
},
})
export
default
class
TypeTen
extends
Vue
{
@
Prop
()
private
proofSubItem
:
any
;
// @Model ('input', {type: String})
@
Prop
()
private
value
!
:
any
;
// @Emit('input')
private
aa
:
string
=
this
.
value
.
value
;
private
input
()
{
this
.
$emit
(
'update:value'
,
{...
this
.
value
,
value
:
this
.
aa
});
}
}
</
script
>
src/components/template/index.ts
View file @
d6143137
...
@@ -6,6 +6,7 @@ import TypeFive from './TypeFive.vue';
...
@@ -6,6 +6,7 @@ import TypeFive from './TypeFive.vue';
import
TypeSix
from
'./TypeSix.vue'
;
import
TypeSix
from
'./TypeSix.vue'
;
import
TypeEight
from
'./TypeEight.vue'
;
import
TypeEight
from
'./TypeEight.vue'
;
import
TypeNine
from
'./TypeNine.vue'
;
import
TypeNine
from
'./TypeNine.vue'
;
import
TypeTen
from
'./TypeTen.vue'
;
export
default
{
export
default
{
0
:
TypeZero
,
0
:
TypeZero
,
...
@@ -16,4 +17,5 @@ export default {
...
@@ -16,4 +17,5 @@ export default {
6
:
TypeSix
,
6
:
TypeSix
,
8
:
TypeEight
,
8
:
TypeEight
,
9
:
TypeNine
,
9
:
TypeNine
,
10
:
TypeTen
,
};
};
src/const/enum.ts
View file @
d6143137
...
@@ -41,6 +41,7 @@ export enum DataType {
...
@@ -41,6 +41,7 @@ export enum DataType {
Date
=
6
,
// 时间戳
Date
=
6
,
// 时间戳
Video
=
8
,
// 视频
Video
=
8
,
// 视频
Audio
=
9
,
// 音频
Audio
=
9
,
// 音频
TextArea
=
10
,
// 多行文本
}
}
export
enum
AuthStatus
{
export
enum
AuthStatus
{
...
...
src/views/template/components/AddOption.vue
View file @
d6143137
...
@@ -69,10 +69,11 @@ export default class AddOption extends Vue {
...
@@ -69,10 +69,11 @@ export default class AddOption extends Vue {
desc
:
'可以上传多个图片,但只能选择一项'
,
desc
:
'可以上传多个图片,但只能选择一项'
,
type
:
DataType
.
Image
,
type
:
DataType
.
Image
,
},
},
// {
{
// title: '多行文本',
title
:
'多行文本'
,
// desc: '可以输入多行,适合文字多的内容',
desc
:
'可以输入多行,适合文字多的内容'
,
// },
type
:
DataType
.
TextArea
,
},
{
{
title
:
'PDF文件'
,
title
:
'PDF文件'
,
desc
:
'选择PDF文件'
,
desc
:
'选择PDF文件'
,
...
...
src/views/template/components/WordsManager.vue
View file @
d6143137
...
@@ -95,6 +95,7 @@ export default class Add extends Vue {
...
@@ -95,6 +95,7 @@ export default class Add extends Vue {
[
DataType
.
Date
]:
'日期'
,
[
DataType
.
Date
]:
'日期'
,
[
DataType
.
Video
]:
'视频'
,
[
DataType
.
Video
]:
'视频'
,
[
DataType
.
Audio
]:
'音频'
,
[
DataType
.
Audio
]:
'音频'
,
[
DataType
.
TextArea
]:
'多行文本'
,
};
};
private
typeValue
:
any
=
{
private
typeValue
:
any
=
{
0
:
{
0
:
{
...
@@ -174,6 +175,16 @@ export default class Add extends Vue {
...
@@ -174,6 +175,16 @@ export default class Add extends Vue {
key
:
''
,
key
:
''
,
label
:
'音频'
,
label
:
'音频'
,
},
},
10
:
{
data
:
{
type
:
'text'
,
format
:
'string'
,
value
:
''
,
},
type
:
10
,
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