|
@@ -54,6 +54,10 @@ export default {
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
default: false
|
|
default: false
|
|
|
},
|
|
},
|
|
|
|
|
+ wordLimit: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ default: true
|
|
|
|
|
+ },
|
|
|
destroy: {
|
|
destroy: {
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
default: false
|
|
default: false
|
|
@@ -92,12 +96,18 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
|
|
+ const formatCurrentDate = ()=> {
|
|
|
|
|
+ let arr = defaultConfig()
|
|
|
|
|
+ let arr1 = defaultConfig()
|
|
|
|
|
+ arr.wordCount=false
|
|
|
|
|
+ return this.wordLimit==true?arr1:arr
|
|
|
|
|
+ }
|
|
|
return {
|
|
return {
|
|
|
editor: null,
|
|
editor: null,
|
|
|
id: null,
|
|
id: null,
|
|
|
status: 0,
|
|
status: 0,
|
|
|
initValue: '',
|
|
initValue: '',
|
|
|
- defaultConfig: defaultConfig()
|
|
|
|
|
|
|
+ defaultConfig: formatCurrentDate()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|