This repository was archived by the owner on Oct 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" email" >
3
3
<div class =" container" >
4
4
<p style =" text-align : center ;margin-bottom : 10px ; font-size : 40px ; text-decoration : underline " ><b > Customer Proof</b ></p >
5
- <!-- {{formSchemaInstance.data}} -->
6
5
<schemasubform v-if =" !flag" :schemainstance =" formSchemaInstance" ></schemasubform >
6
+ <!-- <schemasubform v-if="!flag" :is="componentLoader"></schemasubform> -->
7
7
<div class =" row" v-if =" flag" >
8
8
<div class =" col-md-6" >
9
9
<div class =" form-group" >
59
59
</div >
60
60
</template >
61
61
<script >
62
- import Editor from ' @tinymce/tinymce-vue'
63
62
import sendmailModal from ' @/api/sendmail'
64
63
import config from ' @/config'
65
64
import schemaModel from ' @/api/schema'
66
- import SchemaSubForm from ' ./SchemaSubForm'
67
65
/* eslint-disable*/
68
66
export default {
69
67
name: ' email' ,
70
68
computed: {
69
+ // componentLoader () {
70
+ // return () => import('./${this.formSchemaInstance}')
71
+ // }
71
72
},
72
73
components: {
73
- ' editor' : Editor ,
74
- ' schemasubform' : SchemaSubForm
74
+ ' editor ' : function ( resolve ) { require ([ ' @tinymce/tinymce-vue ' ], resolve)} ,
75
+ ' schemasubform ' : function ( resolve ) { require ([ ' ./ SchemaSubForm' ], resolve)}
75
76
},
76
77
props: {
77
78
' btnArr' : Object ,
Original file line number Diff line number Diff line change 6
6
</div >
7
7
<div class =" editor" v-if =" newTemplate" >
8
8
<h2 class =" heading" >Create Template</h2 >
9
- <editor v-model =" GetHtmlOfEditor" api-key =" ppzi01crrfo3pvd43s3do89pguwkhowrwajpjdqdkginzj7k" :toolbar =" toolbar1" :plugins =" plugins" :init =" settings" :initial-value =" gethtmlcontent" ></editor >
9
+ <keep-alive >
10
+ <editor v-model =" GetHtmlOfEditor" api-key =" ppzi01crrfo3pvd43s3do89pguwkhowrwajpjdqdkginzj7k" :toolbar =" toolbar1" :plugins =" plugins" :init =" settings" :initial-value =" gethtmlcontent" ></editor >
11
+ </keep-alive >
10
12
<Input v-model =" templateName" placeholder =" Enter Template name" style =" width : 300px " class =" dataEnter" />
11
13
<Button type =" primary" @click =" saveTemplate" class =" dataEnter" >Save Template</Button >
12
14
</div >
You can’t perform that action at this time.
0 commit comments