index.vue
1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<template>
<div class="CommonForm-container app-container nohead">
<div class="dataForm">
<el-alert title="文本域、HTML编辑器" type="warning" :closable="false" />
<el-col :span="16" class="mt-10">
<el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="110px">
<el-form-item label="文本域">
<el-input v-model="dataForm.Ttextarea" placeholder="文本域" type="textarea" :rows="3" />
</el-form-item>
<el-form-item label="HTML编辑器">
<NCC-Quill v-model="dataForm.ModifyOpinion" />
</el-form-item>
</el-form>
</el-col>
</div>
</div>
</template>
<script>
export default {
name: 'extend-formDemo-fieldForm4',
data() {
return {
dataForm: {
Ttextarea: '',
ModifyOpinion: '',
},
dataRule: {}
}
},
methods: {
init() {
this.$refs['dataForm'].resetFields()
},
dataFormSubmit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
// this.$message({
// message: '验证成功',
// type: 'success',
// duration: 1500,
// })
}
})
}
}
}
</script>
<style lang="scss" scoped>
.CommonForm-container {
.NCC-common-head {
height: 50px;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
}
.dataForm {
flex: 1;
overflow: auto;
.el-input {
width: 300px;
}
.tip {
margin-left: 10px;
color: darkgray;
}
}
}
</style>